06-28-2013 02:41 PM
Hi,
I am writing a program that users can put a check mark on several boxes for input voltages (like 0.6v 1 v 2 v 3 v).The seleted voltage will be looped into an Vset vi. Does anyone has any idea how to make this?
Thanks!
Solved! Go to Solution.
06-28-2013 03:54 PM
I would use a listbox with a selection mode of 1 or more
06-28-2013 07:03 PM
Thank you! Jeff.
That's what I want.
Tianshu
06-28-2013 07:48 PM
06-30-2013 12:00 PM - edited 06-30-2013 12:22 PM
Don't forget that you were initially talking about checkboxes. You can easily change the listbox to "show symbols", then change the symbols to a checkmark for each selected element.
06-30-2013 12:09 PM
07-02-2013 09:38 AM
Very appreciate this answear!
07-02-2013 10:01 AM
Of course my example is very primitive and just shows the idea. In real life you should use an event structure to update the control only when things change. Also the selection color needs to be set only once at the start of the program or even be saved with the VI and not set at all programmatically after that.
07-02-2013 11:18 AM
How Can I read each value from the listbox? I found the value coming out from the listbox is the index but not the actual elements.
Thanks!
07-02-2013 11:32 AM
Just use the array of selected indices and index into the array of item names. Wrap a for loop and you'll get an array of all selections.