08-04-2011 08:37 AM
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
Solved! Go to Solution.
08-04-2011 08:43 AM
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.