LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

run vi automatically by clicking a bollean control

when i click the boolean control,it should automatically run the VI(i.e.if switch is on it should run the vi)....Hw can i do that??

0 Kudos
Message 1 of 5
(2,258 Views)

what do you mean by using boolean control to run VI?

 

1. another VI? - use VI server (property or invoke nodes)

 

5.jpg

 

2. your own VI? - you cannot do that. in order make you boolean control functionable, you must first run your LabVIEW program (its like trying to drive your car w/o starting its engine Smiley Very Happy)

Ivel R. | CLAD
0 Kudos
Message 2 of 5
(2,250 Views)

You can have a event structure and can place your other vi inside event of boolean value change. (if you do not want to do any other activity while your other vi is running). Also do not forget to go to sub vi node set up and select option "Show front panel when called".

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
0 Kudos
Message 3 of 5
(2,242 Views)

And, if you want your program to run when you click on it, you can call it with a short cut icon and set the vi's properties to run when opened.

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 4 of 5
(2,224 Views)

Did you try a search? Your question is based on not understanding how programs are executed (and this is applicable to ALL programming languages).


See here: http://forums.ni.com/t5/LabVIEW/Adding-Run-Button-to-VI/m-p/1027332

 

Read message #5 in particular.

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