02-02-2012 02:08 PM - edited 02-02-2012 02:10 PM
I have a TDR that I would like to use on various data sets. The channel names will always be the same, but occasionally each channel will be in a different group in the data set. So lets say data set one, my y-values are "Group_1/Temperature", but in data set two it is "Group_6/Temperature". Actually, the y-values in this case are simple, just don't use the group when specifying the y-axis for the curve. The problem is the x-values of the curve. Each group has a time channel in it, each one called "time". So the x-values from data set one is "Group_1/time" and data set two is "Group_6/time". Keep in mind "time" is not a unique channel in each data set, as each group has a time channel. So, this means that in data set one, there is "Group_1/time", "Group_2/time"; "Group_3/time", etc.
So, what is the easiest way to make a TDR that will handle this situation. The main problem is how to specify the correct group for the time channel (x-values)
Any help is appreciated.
Solved! Go to Solution.
02-02-2012 03:13 PM - edited 02-02-2012 03:14 PM
I found a workaround: Press Ctrl-A whil in script record mode and you have the 2D Axis dialog box open. This records all the parameters to the script. I then use this for the x and y channels:
D2CChnXName = "[" & ChnGroup(Cno("Temperature")) & "]/time"
D2CChnYName = "Temperature"
I have only tested it on a limited basis, but it seems work.
If anyone has a better suggestion, I am all ears. (I now love Ctrl-A, btw...)