03-24-2010 05:03 PM
Hello everyone. I am new to Labview and am having a problem figuring out how to set up my VI to change states based on a time delay. The system should work like so.
I have a case structure with that goes into 1 of the following 4 states based on how much time has elapsed since the cycle started.
between 0 and 4 seconds motor one needs to be running
between 4 and 6 seconds motor one and two need to be running
between 6 and 15 seconds only motor two is running
between 15 and 30 seconds both motors are off
after 30 seconds have passed the cycle starts over and the process repeats.
I tried using the Elapsed Time VI but cant seem to get it to work.
Any suggestions are greatly appreciated.
I am using Labview version 8.2
Thanks
03-24-2010 11:30 PM
03-25-2010 08:38 AM - edited 03-25-2010 08:40 AM
Hi Abe,
I have attached a small vi that will do what you ask. It is very simple, if you plan on adding extra functionality to this project then i would suggest starting with a different architecture. Look at Producer/Consumer architectures, especially if you are going to be adding any user interface actions. As i said the vi i have attached will do what you have asked but no more.
Hope this helps.
Rgs,
Lucither