05-31-2016 09:10 AM
HI all,
I have an output array as mentioned in the attached code. on the other hand, I need a control that updated its values automatically depends on the output array. for instance, Enm control updated its values depends on that output. Is it possible to do that??
Solved! Go to Solution.
05-31-2016 09:25 AM
Eh... what? Sorry but I do not understand what you're trying to do at all. If you want to programatically populate an enum, that is impossible to do while the VI that uses it is running, you need to reference to it while it's shut down in another VI, then run it.
05-31-2016 09:34 AM
Depending on what you want to have, there are a couple of options.
Just like Daikataro tells you, adding or removing items from an Enum during runtime is not possible. However, you can enable/disable (grayed out) items via property node. This is the first option.
The second option would be to use a Combo Box or instead of an Text Ring depending if you prefer a string or an integer in your block diagram. Both of these provide the option to add/remove items during runtime.
Norbert
05-31-2016 09:38 AM
Maybe it's better to use a text ring control.
Attached could work?
05-31-2016 09:43 AM
Hi Marco,
Yeah that's what I wanted, can you please send me this code in the attached photo? thanks in advance
Daikataro nad Norert: thank you so much for your feedback
05-31-2016 09:50 AM
see attached (LV 13)
bye!
05-31-2016 10:06 AM
Hi Marco,
Sorry for bothering you. I've asked you to send me your code becasue I couldn't found the option (String and values) in the property node? can you please tell me how did you find it? I tried to replicate what you have done but it doesn't work with me!! thanks in advance
05-31-2016 10:36 AM
Sorry Marco, I found it, thank you