Duplicate wave updating with changes on the original
I've always used "Duplicate originalwave newwave" to make different operations on a 3D wave, for example, and save multiple 2D waves. So originalwave = wave resulting from an operation.
However, something changed (even without changing my procesures or IGOR version), and now every time I make a new operation the "newwave" is getting rewritten to be equal to the "originalwave". How can that be? Can I lock "newwave" so it won't be rewritten?
EDIT:
I have a procedure (annex) that generates a panel to manipulate different 2D cuts of a 3D wave. The original wave is "map21_tnrk" and the middle panel is "map21_tnrkb". This is shown below.
I want to duplicate a given cut of panel b and make a graph with the image, so I run the following code •Duplicate map21_tnrkb map21leftpocketXZ •Display;DelayUpdate •AppendImage map21leftpocketXZ •ModifyGraph tickUnit=1,standoff=0;DelayUpdate •ModifyGraph manTick(left)={0,0.2,0,1},manMinor(left)={0,0} •ModifyGraph mirror=2 •ModifyGraph margin(left)=51,margin(bottom)=48,margin(right)=13,margin(top)=13 •ModifyGraph fSize=12 •ModifyGraph lblMargin(bottom)=10
However, when I change panel b of the procedure window, the duplicate is also changing.
This should definitely never happen and never has for me in the past. Duplicate does never touch the original wave. You should post your relevant procedure code and/or attach the procedure here with an explanation what exactly you do. Then we can have a look and might tell you what is going on.
August 9, 2022 at 06:36 pm - Permalink
Yes please post the code in question. I also never encountered that.
This could be some wave formula going rogue, in case you are using that.
August 10, 2022 at 04:42 am - Permalink
Thank you for the comments. I have updated the post with more details on the procedure and operations.
August 10, 2022 at 08:50 am - Permalink
Your code uses SetFormula which creates a dependency by which one wave is automatically updated when another wave changes. Use the Misc->Object Status dialog to determine what dependencies exist.
For background information:
DisplayHelpTopic "Dependencies"
August 10, 2022 at 10:19 am - Permalink
In reply to Your code uses SetFormula… by hrodstein
Thank you for your comment. I was not aware of the functioning of such dependencies.
August 11, 2022 at 10:42 am - Permalink