LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Runtime filling ring in a control

Hi all,
 
I have an existing application where a control (strict type) is defined to store recipe information in form of a cluster. See attachment. Throughout the application variables based on this control are filled/read using bundle/unbundle. The same control is used to visualise recipe information throughout the application.
 
This all works fine.
 
Now i'd like to add a Ring-control to the control, which can be filled (strings and values) at runtime, when initialising my program. For example reading them from a configuration file at the initialisation of my application. I tried referencing the ring inside a control based on the type and setting the strings and values property, but it's readonly!
 
Is this posible? Maybe I can reference somehow to the .CTL where the strict data type is defined?
 
Regards,
 
Jos.
0 Kudos
Message 1 of 4
(2,838 Views)

Hi Jos,

you can create a reference of the ring control and use the property node to write the strings. Therefore you have to change your "strict type def" to "type def". See the attachment please.

Hope it helps.

Download All
Message 2 of 4
(2,834 Views)
Thanks for the fast response. I'll try it tomorrow.
0 Kudos
Message 3 of 4
(2,795 Views)
Works perfectly. Thank you.
0 Kudos
Message 4 of 4
(2,778 Views)