SaveData into subfolder
I was wondering if it is possible to store/backup a part of an experiment somewhere else. SaveData was promising but I faced some problems.
LoadData /Q/O=2 /R /S="SubFolder1:SubFolder2:Subfolder3:" targetFile can load Data from subfolders within another file. But SaveData /O/R /T=$"Subfolder1:Subfolder2" targetFile does not work. It seems that in case of SaveData you can only generate one subfolder (SaveData /O/R /T=$"Subfolder1" targetFile). Unfortunately the folder hierachy of the source and target files might be different and therefore it is not possible to save and restore the full hierachy.Is someone aware of any workaround here?
Alex
SaveData saves the current data folder and, if you use /R, any sub-data folders. The /J flag allows you to specify the simple names (not paths) of objects in the current data folder to be saved instead of saving all objects.
If your hierarchy looks like this:
September 25, 2014 at 05:58 am - Permalink
Still I have some questions concerning some of your statements.
[quote=hrodstein]Your use of /T in SaveData is wrong. It just sets the name of the top-level data folder in the output file. Reread the documentation for /T.[/quote]
The documentation concerning /T[=topLevelName] says:
[quote]Creates an enclosing data folder in the target with the specified name, topLevelName, and writes the data to the new data folder.[/quote]
And infact the standard top-level data folder is not just renamed, but an additional enclosing data folder is generated
[quote=hrodstein]The /J flag allows you to specify the simple names (not paths) of objects in the current data folder to be saved instead of saving all objects.
If your hierarchy looks like this:
September 25, 2014 at 07:01 am - Permalink
Unfortunately you cannote filter by folders names (only variable, string or wave names).
[/quote]
I was afraid of that.
[quote]
If there is a "trick" to use the /J flag to filter folders would be perfect.
[/quote]
There are no tricks. I think you'll have to use the MoveDataFolder or CopyDataFolder technique.
September 25, 2014 at 10:36 am - Permalink