From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Run a VI using sensor level

Solved!
Go to solution

Hello,

 

I'm currently using sensor and I would like that my VI start when they are above a certain level.

 

Is there a way to start a VI without clicking on the ''Run'' button ?

 

 

 

Would this be a solution ? 

 

Have an Initialization Case Structure and do not get to the next case before the level has been reached.

 

Thanks

 

Weepet

0 Kudos
Message 1 of 2
(1,853 Views)
Solution
Accepted by topic author Weepet

It would be possible to open a sub-vi when the condition occurs, but typically, your VI should be running when opened if an application.  It sound like you are wanting to use it in your developement environment.  Not the best way over-all.  You can do it with your case structure, in which case your top-level VI is running, then when the condition is met, the next case is executed, which will execute the code for that condition, or a sub-VI to handle it.  You will need a state machine to control the program flow.

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 2 of 2
(1,852 Views)