From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

event question??

Hi,

I have written several vi's for getting measurement data out of instruments trough GPIB.
Now I am creating a sort of start page where
you can choose whitch vi you want to use.
I was thinking of a listbox in the panel with all the vi names in it,but if I try to create an event for each of the possibilities it doesn't appear in the controls under event sources.
Creating a seperate button for each vi would out of the question since the large amount of possiblities.
Any idea how to do it using events?

Tx
0 Kudos
Message 1 of 2
(2,730 Views)
F_D,

Thanks for contacting National Instruments.

My first thought on this one would be to have an event trigger off a change in value of the listbox, then have a case statement inside the listbox event frame which selected a sub-VI based off of the listbox value.

Feel free to post here if this idea does not work out for you.

Sincerely,

Ross C
National Instruments
Applications Engineer
0 Kudos
Message 2 of 2
(2,730 Views)