LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why the Vi called in the main Vi automaticly run?

Hi,everyone, I am just using Labview to build a DAQ application, and I have build some VI subapplications.
Just as some one mentioned, I aslo build a main operate board with several buttons. When you press any
button, it trigger associated subVI.
 I have just referenced some examples to achieve that, such as "Dialog  Box Demo.vi", "Login dialog,vi" .
But have anybody find that when the associated subVI is opened while you try to run the main VI, the associated
subVI automaticly run.
Open both "Dialog Box Demo.vi" and its subVI "Dialog Box.vi", then run "Dialog Box Demo,vi", so, what can you do?
0 Kudos
Message 1 of 5
(2,419 Views)
Addition: edition of labview I used is7.1
0 Kudos
Message 2 of 5
(2,416 Views)

if I understand you right, the subvi is not actually running (look at the stop button, until it is running, you can't press it, but you also can't press run).  If you run a higher level VI, it takes control of the running of the lower level VIs and prevents you from running it (because if a lower level VI is already running, the top level can not start)

 

0 Kudos
Message 3 of 5
(2,408 Views)
yeah, How foolish I am, Thank you!
0 Kudos
Message 4 of 5
(2,401 Views)
If a SubVI is open (because you where editing it) and is set to Modal
(because it is a dialog), the VI will appear to be running if you start the
main VI. If it's enabled, you can simply close the panel.

Regards,

Wiebe.


0 Kudos
Message 5 of 5
(2,376 Views)