LoadData

simcacl
Posts: 34
Joined: 2012-08-19
Location: Italy

I have a problem with Loaddata command. I would like to load multiple folders from an other .pxp experiment. is it possible?


ChrLie
Posts: 266
Joined: 2009-01-06
Location: Switzerland

If you don't need to do this programmatically, simply use the Data Browser and the "Browse Expt..." option (drag and drop).


simcacl
Posts: 34
Joined: 2012-08-19
Location: Italy

I would like to avoid exactly to do that many times....


thomas_braun
Posts: 586
Joined: 2009-10-07
Location: Germany

@simcacl: What exactly is not working?


simcacl
Posts: 34
Joined: 2012-08-19
Location: Italy

I wrote this code to load two folder from a selected file but it doesn't work (with a single folder it works...)

Function loadingfolders ()
String folderlist
 
	folderlist="name1;name2"
	loaddata/T/S=folderlist
 
End


thomas_braun
Posts: 586
Joined: 2009-10-07
Location: Germany

I'd say you need the /J parameter to give a list of names.


Posts: 1675
Joined: 2007-06-21
Location: United States

As the documentation says, /S:

Quote:

Specifies a sub-data folder within a packed experiment file to be loaded.

You can make two separate calls to LoadData.

It may be possible to do it in one call using /J but I'm not sure. It depends on the organization of your data. In that case you would omit /S or use /S to specify the parent of the data folders you want to load.

In Igor8, LoadData supports a /GREP that give you finer control over what is loaded. You probably don't need that in this case.


Back to top