02-21-2013 04:50 AM
hi,
I want to use adrop down menu in front panel, but i dont want to use enum as enum do not passes the exact value in the mune but passes its index.
is there a way to get a drop down of predefined values for numeric control..
for example user can only enter 200 , 400, 600, 800, or 1000 in the control. without actually typing, just cloicking on the drop down.
thanks
02-21-2013 05:03 AM
You can use a ring.
02-21-2013 05:17 AM
Look into the ring control. It behaves a lot like an enum, but you can dynamically set its contents and values associated with those contents.
02-21-2013 05:22 AM - edited 02-21-2013 05:28 AM
Hey,
I agree with all the posts above. With an enum LabVIEW will always preassign the numeric values it uses to pass the data but using a ring we can disable this sequential preassignment in order to allocate our own values. The items in the ring will be strings which you can assign to any numeric value, by default this will be using a U16 representation.
Do let us know if this is not the functionality you were intending.
Thanks,