Igor 6 bug: 'expected wave name' even though the wave exists

I am using Igor 6 and am encountering a bug which I've encountered multiple times before on different systems. In this particular instance, I loaded waves from .dat files and had no problems plotting them, putting them in tables, etc. I'm not sure if this is related, but I then ran the Multi-peak fitting 2.0 without issues.

 

After this, I tried 'display wave0 vs wave1' and start receiving 'expected wave name' errors -- earlier, this executed properly. I cannot edit, display, or otherwise operate on any pre-existing waves which were previously operable. If I create new waves, I can operate on them without issue.

 

It is as if Igor suddenly loses memory of all of its waves. The peculiar thing is that I can still see the waves in the Data Browser, so I know the data is there, I just cannot reference it by its wave name.

 

I have not been able to find anyway to recover the waves. I've been forced to lose all of my progress and reload an earlier save or just create a new Experiment altogether. 

 

I know this is an old version of Igor, but I'm just a student and this is the only version I have access to. I rely on Igor regularly for analysis and this bug keeps happening, often causing me to lose hours worth of work -- please help!

First note that IP6 is very old and should be updated. 

The symptoms that you are describing could be a result of a change in current data folder.  Please make sure that your Data Browser window is open and that you can see that the waves that you are trying to use are present in the current data folder. 

If you are getting this error in a function try using a full wave reference.  For example:

Wave/Z w0=root:packages:someFolder:wave0

if(WaveExists(w0)==0)

  doAlert 0,"Missing w0."

 ...

endif

 

I hope this helps,

 

AG

 

It is quite possible that you are using an old version of Multi-peak Fit 2 that has bugs that can leave the current data folder set to something other than root: or whatever data folder you had selected. Bring up the DataBrowser and restore the current data folder selection.