Finding out mwel filename

Hi Chris,

Is there a way to retrieve the name of the .mwel file that was run from its corresponding .mwk file?
Thanks,


Sujay

Hi Sujay,

As we discussed offline, the name and contents of all MWEL files used in an experiment are recorded in the data file via the variable #loadedExperiment.

I’ve attached a Python script that reads #loadedExperiment and prints the name and contents of all experiment files. It works for both XML- and MWEL-based experiments (and is an updated version of an older script I wrote for Evan Remington a while back). Of course, you can perform an equivalent operation in MATLAB, if you prefer.

Cheers,
Chris

Attachment: extract_experiment_files.py (1004 Bytes)