DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

2D chart in TDR with different group names

Solved!
Go to solution

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. 

0 Kudos
Message 1 of 2
(3,847 Views)
Solution
Accepted by topic author Mr. Spark Plug

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...)

0 Kudos
Message 2 of 2
(3,841 Views)