- This topic has 0 replies, 1 voice, and was last updated 2 years, 4 months ago by Anonymous.
- August 2, 2017 at 4:26 am #18392RichardGuest
for my own needs I wrote an Scilab script to visualize the mooshimeter log data. … aaand I figured someone else might find this useful as well, so here you go:
– 2-Axes Plot for CH1 and CH2 with different colors
– Automatic time scaling (sec, min, hrs, …) depending on log duration
– Lots of log information
– Automatic saving of the graph as PDF
To state the obvious: this script is catered for my needs, so you probably need to customize it for your own needs. However there should be plenty of example code in it, also I commented a lot of the code.
Tested only under Linux, but it should work under Windows as well.
Here you can get the software: http://www.scilab.org/
(free and open source)
- September 9, 2017 at 11:39 am #18875AnonymousInactive
fortunately the good James could recover my response, so here it follows (it was btw, because of an to sensitive acting spam filter .. I had another topic affected completely by that, so I got in touch with him)
I just found the time and it’s awesome, but also a very komplex application. ^^
I’m a technician (Mechatroniker, to be exact) but I haven’t studied, so komplex math and scripting skills aren’t unfortunately my level. But I understand at least the substance of your code. So putting the desc via an if condition on file name was no problem. But the next I didn’t get and need a little help there.
The output looks really nice, but I wish there where straight lines plotted from the left y axis (if possible the right too) and the x axis.
I think it should look nice and useful if the lines where in the color of axis and very thin. I read a while trough documentation, plot2d, axes properties,… but I didn’t find anything about, nor an example code. That surprised me a bit. I don’t think such an mighty application can not handle this? Can you help me out how to realize that in your code?
And I have 2 additional questions:
1) I have 2 (now a couple more) logs where the additional Info box isn’t printed. From the code, as far as I understood, It should always be printed. Or is there something I don’t understand correctly? I could give you the logfiles + pdf if you will have a look on it. This is not life-important – but I really would like to unterstand why. :)
2) The generated PDFs are in landscape mode, but turned over 90° (so in fact standard DINA4 portrait, but I have to turn it manually to read without neck hurting ^^). I found out that, if it’s set instead to ‘portrait’ in the code, the output file is in proper landscape mode. Do you have an explanation for that? :D
Thx in advance for your time!
PS: We could also write in german, but I thought this may could be interesting for other users too (now or then..), so if my poor english don’t bother you … ^^
- September 15, 2017 at 5:05 am #18941AnonymousGuest
glad your post could be recovered. Scilab is indeed a very powerful application and as such needs some training to get used to. But I would say it is totally worth it, especially in your career as a mechatronic or for private hobbies. :-)
Regarding your questions, right now I’m not on PC with scilab installed so I can’t test it, but my thoughts:
1. “thin lines”
Could it be that you mean a grid? If so you should check out:
Unfortunately there is no way (yet) to tell the infobox to have it in the “lower left”, instead I had to hardcode the coordinates:
In this case 0 / 0.1 – so if this is outside your axes boundary, you will not see the infobox. You can check this by zooming out in the graph window. To fix it, try changing the coordinates in the script.
Need to check this, might be a bug (or feature) of scilab.
Hope this helps and feel free to ask again. :-)
- September 15, 2017 at 5:14 am #18942AnonymousGuest
About the grid actually it can be set as an axes property:
- October 25, 2017 at 12:53 pm #19110AnonymousGuest
- July 11, 2020 at 7:49 pm #20556AnonymousGuest
Hello, I know its a long shot if you will see this, but is it possible to get that script? The links appear to have expired.
- July 12, 2020 at 4:13 am #20557AnonymousInactive
I looked up in my folder and made a reup for you. enjoy!
PS: I had 3 versions of script there, this is the newest. So if anything is wrong I could give the 2 older ones, too. Just I didn’t used them for a while so I can’t say for sure what the differences exactly are, and if it where mine ore Richard’s edit (didn’t comment this… -.-)
- July 12, 2020 at 9:11 pm #20558AnonymousGuest
Thank you for the upload Harry!
Thank you Richard for making this script, it works great!
So much easier than fighting with Excel.