
Break a wave with $ reference?

geologic
Can I sever the connection between the dummy tempwave name and the actual name of the wave?
function wavepadding(prefstartpoint,prefendpoint,actstartpoint,actendpoint,sample,templist) variable prefstartpoint,prefendpoint,actstartpoint,actendpoint string sample, templist variable i make/o tempwave for(i=0;i<itemsinlist(templist);i+=1) string tempstring = sample +"_"+ stringfromlist(i,templist) wave tempwave = $tempstring if(numpnts(tempwave)>3) insertpoints actendpoint, prefendpoint-actendpoint, tempwave else insertpoints prefstartpoint, actstartpoint-prefstartpoint, tempwave endif endfor end <pre><code class="language-igor">
To kill the actual tempwave rather than what the tempwave WAVE reference points to, you can do one of the following:
or just
You could also use a free wave and not bother with a KillWaves like so
Larry Hutchinson
WaveMetrics
support@WaveMetrics.com
January 25, 2015 at 09:41 am - Permalink
January 25, 2015 at 11:14 am - Permalink
This makes a wave reference named tempwave that points to an already-existing wave whose name is stored in a string:
I don't know why you are making a wave named tempwave. It seem more likely that you just need the wave reference.
For details execute:
DisplayHelpTopic "Wave References"
January 25, 2015 at 02:24 pm - Permalink
Thanks for your help.
January 25, 2015 at 04:35 pm - Permalink