Topic | Scilab Script for visualization of Mooshimeter Log files

Home Forums Mooshimeter Support Scilab Script for visualization of Mooshimeter Log files

Viewing 7 reply threads
  • Author
    • #18392 Reply

      Hey Folks,
      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.

      Have fun!

      Tested only under Linux, but it should work under Windows as well.

      Here you can get the software:
      (free and open source)

    • #18875 Reply

      Hey Richard,

      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!
      cheers Harry

      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 … ^^

    • #18941 Reply

      Hey Harry,
      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:

      2. infobox
      Unfortunately there is no way (yet) to tell the infobox to have it in the “lower left”, instead I had to hardcode the coordinates:
      > xstring(1,0.1,infobox,0,1);
      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.

      3. PDF
      Need to check this, might be a bug (or feature) of scilab.

      Hope this helps and feel free to ask again. :-)

    • #18942 Reply

      About the grid actually it can be set as an axes property:

    • #19110 Reply
    • #20556 Reply

      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.

      Thank you

    • #20557 Reply

      Hi Bratster

      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… -.-)

    • #20558 Reply

      Thank you for the upload Harry!

      Thank you Richard for making this script, it works great!

      So much easier than fighting with Excel.

Viewing 7 reply threads
Reply To: Scilab Script for visualization of Mooshimeter Log files
Your information:

This site is protected by reCaptcha and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.