Date of experiment recorded in MWorks data file?

swegger's Avatar


13 Jul, 2016 06:16 PM

Hi Chris,

Is the date that the data for an experiment ran in MWorks recorded anywhere in the associated mwk file? I'm looking for a robust method to detect the version of an experiment during data extraction. I know that you recently added the date to the automatic file name, but ideally my solution would be independent of the file name since the experimenter still has control over that and there is always the possibility that files are renamed.


  1. Support Staff 1 Posted by Christopher Sta... on 13 Jul, 2016 06:31 PM

    Christopher Stawarz's Avatar

    Hi Seth,

    As of MWorks 0.6, the MWorks version and current date/time are announced whenever an experiment starts running. In the console window, you'll see something like this:

    00:00:24:  Running MWorks
    00:00:24:  Current date/time is Wed Jul 13 14:21:17 EDT 2016

    These messages are stored in the event file via the #announceMessage variable.

    Additionally, the complete experiment XML is stored in the event file via the #loadedExperiment variable. If you really want to be sure what version of an experiment was used, you can extract the value of this variable and compare it to your saved XML files.


  2. 2 Posted by swegger on 13 Jul, 2016 08:56 PM

    swegger's Avatar

    Hi Chris,

    Thanks! I looks grabbing the #annouceMessages will do the trick. I was
    aware of the XML, but didn't want to turn to that unless I had to.


  3. Christopher Stawarz closed this discussion on 14 Jul, 2016 11:53 AM.

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

Keyboard shortcuts


? 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