mergeexperiment

Hi all,

I have to questions concerning "mergeexperiment".

1)
Why does
string cmd = ""
sprintf cmd, "MERGEEXPERIMENT /Q %s", (S_path+S_fileName)
Execute cmd

not work but only:
string cmd = ""
sprintf cmd, "MERGEEXPERIMENT /Q %s", (S_path+S_fileName)
Execute /P cmd

(notice the /P after excecute).

2.)
I try to load several *.pxt data files this way. All these files contain a single wave. Is there a way how to obatin the wave name and directory where it was saved in the project? After merging a single *.pxt into the experiment I would like to do some automatic manipulation on the wave.

Thanks.
1) That operation (and other similar Operation Queue operations) can cause profound changes to the running environment. Not a good thing to do while running procedures. Execute/P puts off execution of the command until it's safe to do it.

2) Not really- think of the general situation where you have lots of waves and data folders. You could do a recursive check of all data folders and their children. Maybe better would be to save the wave into a binary wave file (.bwav). Then you can just load it with LoadWaves.

John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
hrodstein wrote:
For number 2 I recommend that you use the LoadData operation with the /T flag.


Thank you, this helped. Actually I was not aware that I could load the *.pxt data this way.
Another question: Can I open a *.pxt make some changes and save it again to *.pxt?
Quote:
Can I open a *.pxt make some changes and save it again to *.pxt?

Yes but you have to do a Save As.