
Get a list of all loaded waves

ryleighmoore
I have been searching for a way to get a list of all loaded waves in an igor experiment for a few weeks now. I have tried WaveList("*",";","") but that gets all the waves in the folder even if they aren't already loaded. I have also looked at the waveselectorwidget example but I am still not able to get it.
Thanks for the help.
Ryleigh
When you open an Igor experiment file, all waves in the experiment are loaded into memory. So "even if they aren't already loaded" does not make sense.
WaveList("*",";","") gives you a list of all waves in the current data folder. Note that a "data folder" is not the same as a folder on disk.
To learn about data folders, execute:
DisplayHelpTopic "Data Folders"
May 20, 2015 at 02:14 pm - Permalink
To see a list of all the waves in the experiment:
print GUIPListObjs ("root:", 1, "*", 1, "")
If you are looking for a list of files in a directory on disk, well I have a function to do that as well, from the same package. It has many options, and you have to make an Igor path.
For example, the following command:
print GUIPListFiles ("MyPath", "????", "*", 8, "")
will make a new Igor Path named MyPath and the user will have an opportunity to choose the folder the path points to. It will return a list of files of all file types.
cheers,
Dr. Jamie Boyd, Ph.D.
May 20, 2015 at 10:51 pm - Permalink
May 21, 2015 at 01:25 pm - Permalink