LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multiple functions

I want to create a VI that would allow me to choose which subvi in the VI to one.  I think I can do the following.  Let me know if you have a good idea.

 

I have a case structe that contain all the subvi that the user can choose to run.  For example, if the user select 1, the subvi in case 1 will be selected to run, and its controls and indicator will appear (will do that with properties node). 

 

If I have a polymorphic, is it posible to select which instance to run without using a case structure?  How I only make the control and indicator of the instance that I want to run to appear?

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 1 of 3
(2,600 Views)

Hi jyand72211,

 

I would use a case structure. If you want to be able to select controls and indicators you can select "Open front panel when loaded" in the subvi setup.

Joe Daily
National Instruments
Applications Engineer

may the G be with you ....
Message 2 of 3
(2,566 Views)

Hi jyang7221,

 

The image below should help, incorporating this into an event structure that you set each case to run on a boolean button press.

 

Example.PNG

 

 

 

 

 

 

 

 

 

Hope this helps!

John McLaughlin
Academic Account Manager
National Instruments UK & Ireland
Message 3 of 3
(2,552 Views)