LoadData
| kangaroo | August 25, 2010 - 05:29 | ||
|---|---|---|---|
|
Hello, I frequently use LoadData in functions for transferring data between Igor experiments. In most cases I specify a folder from which waves are to be loaded into the current experiment using the /S parameter. Usually that works fine, but there may be cases in which the experiment to be read does not contain the specified folder. Then the function terminates with an error message. Is there a possibility to test the existence of the datafolder in the "remote" pxp file prior to using LoadData? Any help on this would be greatly appreciated |
|||

Joined: 2007-06-21
Location: United States
I think calling GetRTError(1) should clear the error:
Joined: 2008-06-30
Location: United States
Dear hrdostein,
thanks for the reply. Using GetRTError() solved the problem and I realised that part of my problem arised from having "debug on error" enabled.
however, a datafolderexists() command for the remote experiment would have been much more to my taste. Maybe there's a possibility to have that in upcoming versions of IGOR.
kangaroo
Joined: 2007-06-21
Location: United States
I'll keep it in mind.