LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

numeric menu input to 1D array

Hello everyone,

I have a task where I have to create a menu from which the user should select 1 or 2 or multiple items ( in my case those items are numeric which seems to be bugging me)  and then output them into array. The problem is i cant figure out how to do that menu. I've tried with cluster, listbox, checkbox, prompt user but i think I'm not using them correctly. I would be very thankful if somebody point me into the right direction.

 

Thanks!

0 Kudos
Message 1 of 5
(2,727 Views)

I would use the Listbox.  There is a right-click option for the selection.  One of them is to allow multiple selections.  The terminal will give you an array of indexes if that is selected.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 5
(2,705 Views)

Ok, but is there a way when i select the number 30 from the listbox to output me that value?

0 Kudos
Message 3 of 5
(2,695 Views)

I was going to make a snide comment about "Read the LabVIEW Help", but there isn't much, is there?  However, if you do a Web search for LabVIEW ListBox, you can find several hits that include Examples.  I've not used them, myself, but have used Combo Boxes (String Control) -- since these are designed to be used with Property and Invoke Nodes, they are not exactly "elementary" ...

 

Bob Schor

0 Kudos
Message 4 of 5
(2,682 Views)

@Student2018 wrote:

Ok, but is there a way when i select the number 30 from the listbox to output me that value?



GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 5
(2,677 Views)