LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing states based on time elapsed

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

0 Kudos
Message 1 of 3
(2,646 Views)
It is difficult to help you figure out why your VI doesn't work if you don't post the VI.
0 Kudos
Message 2 of 3
(2,628 Views)

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.

 

Timed Motor Snippet.png

 

Hope this helps.

 

Rgs,

 

Lucither

Message Edited by Lucither on 03-25-2010 08:40 AM
------------------------------------------------------------------------------------------------------
"Everything should be made as simple as possible but no simpler"
0 Kudos
Message 3 of 3
(2,615 Views)