From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
12-17-2014 05:39 PM
I'd like to have multiple text rings, all having the same list of item/value pairs. How do I do that? While I can copy the same text rings it'd very bothersome if I want to update the list. I have not been successful in Googling for this.
Thank you very much.
Solved! Go to Solution.
12-17-2014 06:29 PM
Ideas:
12-17-2014 08:49 PM
I'd go with an enum.
But if the list has to be dynamic, create an array references of the rings and use a FOR loop to update the items.
12-18-2014 10:55 AM
I thought enum is the same as text ring except it doesn't allow customized Values (always sequential from 0)
http://digital.ni.com/public.nsf/allkb/79BA4505AE8C755E86256FB2000140B0
And even when I tried that I still don't see a way to share the list.
I think what I want is closer to Type Def. But when I tried that I noticed even when I update my .ctl, the control that uses is is not update accordingly.
12-18-2014 11:12 AM
If you make a type def enum, then every control that is linked to that type def will have the exact same list. If you make a type def ring, they will not. If you make a Strict Type Def ring, then they will have to look exactly the same, but they will have the same list.
What exactly are your requirements? What are you trying to do with these controls? Is the list dynamic (can change at runtime)?
12-18-2014 12:23 PM
I'll try the strict type def ring.
I want non-sequential values to control scaling of waveform chart. I have multiple waveform charts so I need multiple of those ring sharing the same list of scaling factors. No run time changes needed.
Thanks.