LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multiple selection with control key in ring, enum, or radio buttons on Speedy-33 ?

Hi all,

I want to create a list of entries via ring, enum, or radio buttons with using LV on Speedy-33 DSP Board. With this, I just want the user to be able to select more than one entry from the list.. This is normally doable with windows applications by using control key. However, how could I do the same thing or let the user choose more than one entry from the list? Any idea is greatly appreciated..
Thanks so much!
0 Kudos
Message 1 of 4
(3,361 Views)
Look at the listbox control.  You can right click on it and change the selection mode to 0 or 1 or more items.  The value of this control is an array of the index numbers of the selected items.  You can compare that array of the selected items to the entire array of item names to determine which items are selected.
Message 2 of 4
(3,358 Views)

hi Ravens Fan,  thanks so much for your reply but the it gives the following error "Empty or dynamic size arrays are not supported. Array size must be static."

Please beware that the platform is Speedy 33.. I may be missing something, but when you change the selection to 0 or more items, there is no menu-item or something to enter the values to be selected,  either.. Thanks so much for your comments as well..

Cassiopea

0 Kudos
Message 3 of 4
(3,354 Views)
Try the 1 or more items selection.  I was pretty much trying to say 0 or more OR 1 or more are the ways of selecting multiple items.  I guess in your situation, an empty array (as in no items selected) is likely a problem.  (I'm not familiar with the Speedy-33.)
 
If the problem goes bigger than that with regards to the message about a "dynamic sized" array (does it give problems with a 1 element array sometimes and a 3 element array another time?), you could initialize an array of a certain size and do a replace array subset for each item that is in the output array from the listbox.  Then the question is if you send a 4 element array, but you have only selected 2 elements, what should the other 2 elements of the array be?
 
Other ideas, make sure a row is preselected, or have a case structure that handles the case of an empty array.
 
PS.  I think I did see something on the forums about static arrays one time.  I don't think you see it often in normal Labview programming, and I don't remember how it got created.  If you still have problems, you may want to search on "static arrays" and see if anything comes up. 

Message Edited by Ravens Fan on 08-02-2007 12:13 AM

Message 4 of 4
(3,352 Views)