09-30-2011 01:55 PM
Hi, I'm using a Labview program that is taking in user data and activating a second vi if certain conditions of user data are met. My problem is that I cant figure out how to keep the program running once these conditions are met. The goal is to have the prgram activate the vi if the input meets the requirements, and then keep the second vi running for about 4 seconds, and then shut off the second vi, but allow it to be activated again if the conditions are met a second time. Is there a way to do this?
09-30-2011 02:42 PM
Have you tried using the Elapsed Time express VI? Have a look at it and try to integrate that in your application.
09-30-2011 03:45 PM
I would recommend first that you look at using a state machine. A state machine will allow you to control this type of activity. There are many options for controlling the second VI. You can communicate to it using queues, notifiers or user events. Any of these will allow you to give it actions to perform such as start and stop. In fact, your second VI could be running all the time and simply be activated by your controlling VI wheneve necessary.