LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

user interaction on VI and subVI running simultaneously

By using labview6.1 how can i create an application which hav some buttons on the vi (say parent VI) & on clicking on any of these buttons will pop another VI(say child VI) to execute.

NOTE :: Any child VI's(subVI) "Diagram" is in a while loop i.e. it will not return and has to wait for the user interaction.

PROBLEM :: Initially if i clicks on any button present on parent VI then
the corresponding childVI pops up and start executing,thats fine...., but
now if i clicks another button present on parent VI then the click event doesnt works i.e. one more child VI doen't comes up.

The conclusion is that the Graphical user Interaction can be only on called
SubVI(while in execution) but not on the main VI si
multaneously.

I hav searched examples for the similar kind of problem but didnt found any. Kindly help me for rectifying the above problem.
0 Kudos
Message 1 of 2
(2,575 Views)
You have partially answered the question yourself;

"NOTE :: Any child VI's(subVI) "Diagram" is in a while loop i.e. it will not return and has to wait for the user interaction."

The fact that the parent is halted until the sub-vi returns is in other words as it is supposed to be; it's data flow controlled execution...However you can put the sub-vi in another loop (that way only that loop will halt), or you can call it dynamically using an invoke node with the wait until finished set to false.
0 Kudos
Message 2 of 2
(2,575 Views)