What is the best way to operate on all waves on a graph without naming each one? For instance if i want to clip a segment of each wave on the graph using the marque tool, how would I refrence all waves?
The wavelist function will give a semicolon separated list of waves in your graph, if you use the "WIN" option to indicate your graph name. You will have to write a loop to step through each wave in the list and modify each wave individually.
The WaveList function is not great because it operates only on waves in the current data folder.
I recommend using TraceNameList to get a string containing a list of trace names and then TraceNameToWaveRef to get a wave reference to the wave corresponding to a given trace. For an example, execute:
DisplayHelpTopic"Trace Name Programming Example"
See the function AppendSmoothedWavesToGraph in that section.
November 14, 2012 at 06:06 pm - Permalink
I recommend using TraceNameList to get a string containing a list of trace names and then TraceNameToWaveRef to get a wave reference to the wave corresponding to a given trace. For an example, execute:
See the function AppendSmoothedWavesToGraph in that section.
It seems like you could also use WaveRefIndexed.
November 14, 2012 at 08:04 pm - Permalink