MWEL state graph

mhisted's Avatar

mhisted

08 Apr, 2019 01:23 PM

Hi Chris,

I wrote some code a while ago to parse the XML experiment files and produce a state machine graph (example attached). This helps me a lot during debugging, especially for more complicated expts.

Is there an easy way to convert the MWEL files to XML so I can use this?
Or alternatively, would you be interested in taking this code, bringing it up to date, and including it in MWorks?

Mark

  1. Support Staff 1 Posted by Christopher Sta... on 08 Apr, 2019 01:35 PM

    Christopher Stawarz's Avatar

    Hi Mark,

    Is there an easy way to convert the MWEL files to XML so I can use this?

    Yes, like this:

    /Library/Application\ Support/MWorks/MWEL/mwel2xml exp.mwel > exp.xml
    

    If you want the output to be a bit more readable (by a human), use the option --omit-metadata:

    /Library/Application\ Support/MWorks/MWEL/mwel2xml --omit-metadata exp.mwel > exp.xml
    

    Cheers,
    Chris

  2. Christopher Stawarz closed this discussion on 16 Apr, 2019 01:58 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac