LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

UI Events in SubVis

Hello

I am a little bit confused.

I build several SubVis, they are working seperate and each hast event
Structures in a while loop. The Event Structures react on SubVIs Frontpanel
Actions
(May I have those while structures in a SubVI ?)


Now I want to build a MainVI, that hast the posibility to Execute each
SubVi, in radonly order.
Can I acieve this, if yes how ... ? I don't want to build all Frontpanel
Actions in the MainVI, as it would be to much.

Can anybody provide a complex example with EVENTS and SubVis ?


Thanks in Advance,
Sascha


--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
0 Kudos
Message 1 of 2
(2,548 Views)
Sascha,

To call the SubVIs in a random order I would suggest using a state machine architecture. Where in a loop you have a case structure. Each case calling a separate SubVI, and then just randomly wire in a value to the selector of the case structure.

Then I would suggest setting the properties of the SubVIs to show their front panel when called and close when finished. That way you are able use all the SubVIs and their event structures that already work, and you would not need to modify the main VI.

Evan
0 Kudos
Message 2 of 2
(2,548 Views)