Wav arithmetic

Dear Igor Users,

I am relatively new to coding and am trying to create my own procedure to reduce my data processing time.

In brief; I use a third party add-in to baseline subtract my data. I then duplicate the data from their folder into Root, and correct the wave scaling of the data. I then create a graph of the data of all the data.
I then extract the sub-sets within the wave to new waves (easier for me to see what is going on with relevant names) by duplication. I then duplicate the extracted portions to create my normalised wave. It is here in the arithmetic bit where I fail to compile. I keep receiving the error, 'Tried to access the parent data folder of the root or of a non-existent data folder' when I try to make the duplicated wave equal to the original extracted wave divided by the mean of itself. Am I missing something? The line works in the command window but not in my procedure?

I've attached the IPF file to help see what I am talking about.

Thanks in advance,
Dave
CopyWavesFromIolite.ipf (12.48 KB)
Hi Dave,

It looks like your current data folder is root and you are telling Igor to look for waves that are back up the folder structure (but you are already at the top). I think you would fix it by not referencing waves like ::::waveName in the last part, i.e. just use waveName since you are already in root.
Hi sjr51,

Thanks for the advice. I have tried removing the '::::' prefix as suggested, but with no luck. My thinking was that it may be related to the add-in I use (supplied by a 3rd party), however upon disabling this and trying with and without the '::::' prefix, I still receive the same error message upon compiling. I think I'll try to export/save my waves and load them back into Igor with the add-in disabled from the outset.

However, if you have any other suggestions I'd be happy to hear them and give them a go.

Thanks
Dave
Ah OK. I'm not great with Data Folders... the only other thing I see from your ipf is some waves called *_NORM whereas you're making waves called *_N. Could this be the problem?