03-22-2011 03:48 AM
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??
03-22-2011 04:10 AM
what do you mean by using boolean control to run VI?
1. another VI? - use VI server (property or invoke nodes)
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 )
03-22-2011 04:32 AM
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".
03-22-2011 08:57 AM
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.
03-22-2011 10:04 AM - edited 03-22-2011 10:05 AM
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.