ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simple listbox example code

I am looking for sample code that creates a very simple listbox.  I want to create a list of items and then run a VI associated with each item. 

 

Thanks in advance,

 

Nina

0 Kudos
Message 1 of 9
(4,951 Views)

List this?

 

What do you want demonstrated? Clicking an item? Populating it?

0 Kudos
Message 2 of 9
(4,947 Views)

You need to look into enumerated values and type definitions in the LabVIEW examples.

Tim
GHSP
0 Kudos
Message 3 of 9
(4,945 Views)

Hi--

I want to create a list of instrument tests.  When the user clicks on the test name, the VI associated with that test should be invoked.

 

Thanks again for your help--N.

0 Kudos
Message 4 of 9
(4,937 Views)

@Nina S wrote:

Hi--

I want to create a list of instrument tests.  When the user clicks on the test name, the VI associated with that test should be invoked.

 

Thanks again for your help--N.



Heres an updated one.

 

But now youre getting into event structures and arrays. Not so simple for a beginner (not saying you are a beginner).

 

Like aeastet said... your best bet is to look into enums. 

0 Kudos
Message 5 of 9
(4,933 Views)

Quite true 😞  I am a beginner (more or less...)

 

 

 

 

0 Kudos
Message 6 of 9
(4,914 Views)

Everybody has to start somewhere.

0 Kudos
Message 7 of 9
(4,912 Views)

Here is a quick example of what I would suggest that you do.

Tim
GHSP
Download All
0 Kudos
Message 8 of 9
(4,906 Views)

I'm so used to the array... I forget about the RingText property.

I used the array long before I knew about it.

0 Kudos
Message 9 of 9
(4,898 Views)