DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

How to put a Group property in a Curve Related Text label with Curve Expansion

Solved!
Go to solution

Hi

 

I am working on a Graph which Plots a WaveFormChannel named "Test". Since I have activated the curve expansion, the graph shows all the Channels named "Test" within the DataPortal. Now I want to put the value of the group property "MyGroupProperty" in the legend, so every time I add a new group, automaticaly add the new signal "Test" and show "MyGroupProperty" in the legend.

So far I tried to use the curve related text in the label option, with something like this

 

@GroupPropGet(GroupNumber,"MyGroupProperty")@, but I have to give the value of GroupNumber, and then it shows the same value for all the signals. So If I add a new group to the dataportal with a channel Test, The legend will show the label of the new signal but, the MyGroupProperty remains as the same for all the labels

 

 

Doubt.JPG

 

 

Thanks in advance for your help

0 Kudos
Message 1 of 3
(4,696 Views)
Solution
Accepted by topic author dslemusp

Hi dslemusp,

 

You can use the global variable "CGI" in a DIAdem expression to supply the Current Group Index of the curve being plotted (even in expansion mode).  I prepared an example for you that shows this and attached it below.

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

Message 2 of 3
(4,681 Views)

Thank you Brad, It worked

0 Kudos
Message 3 of 3
(4,662 Views)