08-10-2012 07:31 AM - edited 08-10-2012 07:37 AM
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
Thanks in advance for your help
Solved! Go to Solution.
08-11-2012 11:56 AM
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
08-14-2012 03:52 AM
Thank you Brad, It worked