Date of experiment recorded in MWorks data file?

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.

Thanks,
Seth

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 0.7.dev
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.

Cheers,
Chris

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.

Cheers,
Seth