LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

User can pick which element they pick in Labview.

Can anyone help me? I made a list, I want to make it so that the User can select certain elements and it will display as an indicator. Does anyone know how to do this. 

0 Kudos
Message 1 of 8
(3,296 Views)

That picture doesn't seem to have anything to do with your question... could you upload the actual VI you are talking about?

0 Kudos
Message 2 of 8
(3,287 Views)

I have not done anything in the Vi. The only thing I am trying to do right now is pick certain elements from a list and display them all.

0 Kudos
Message 3 of 8
(3,284 Views)

@Rayzab wrote:

I made a list, I want to make it so that the User can select certain elements and it will display as an indicator.


This is what I want to see, otherwise I will most likely choose a "list" and "indicator" that you don't like.

0 Kudos
Message 4 of 8
(3,278 Views)

This is my VI, it is an extremely simple code. 

0 Kudos
Message 5 of 8
(3,273 Views)

Although I've been coding with LabVIEW for quite a few years, I'm not sure I've ever used a ListBox.  Do you understand what and how they work?  What "value" do you expect it to return?  What do you have to do to change that value?

 

I wired an I32 Indicator to the output of the ListBox (that gave me no error).  What value do you think the Indicator showed when the ListBox value "eight" was selected?  Yes, it gave the number 7.  Is this useful to you?  Do you understand why this is the proper result?

 

Bob Schor

0 Kudos
Message 6 of 8
(3,251 Views)

I cannot open the VI because I have LV 2016, but this is how I would display the text from the listbox:

 

Capture.PNG

Message 7 of 8
(3,247 Views)

How do you want the data to be displayed?  Do you want the index or the string value?  If you are after a string value, I recommend you look at the Combobox.  A Combobox looks like a drop down menu item and has a string data type.  This makes the code simpler for you.


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 8 of 8
(3,214 Views)