A couple of additions to built-in functions for easier programming with traces
Wed, 10/09/2019 - 10:17 am
1. It would be helpful if the TraceInfo function returned the "Y wave" for a trace, as a keyed-list item, similar to how it reports "XWAVE". For "user-named" traces, the Y wave name is difficult to determine programmatically. I am guessing it's absence is simply the result of how easy it was to get the Y wave for a trace in the days before user-named traces, when traces were always <name of ywave>#<trace instance number>. Here's exactly the functionality I'd like:
yWaveRefForTrace = stringbykey("YWAVE",info) //yWaveRefForTrace now holds the name of the y wave for myTraceName plotted on myGraphName
2. It would also be helpful if the GetWindow WaveList keyword (i.e., the command "GetWindow myGraphName,wavelist") had an additional column containing: a semi-colon delimited list of the trace names associated with each wave. This would extent it's utility beyond just a helper with WinRecreation (option 2).
It's currently hard to programmatically figure out what, if any, traces are associated with a particular wave. These additions would help make that easier.