LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Timer help

Hi,

 

We are new to Labview and need some help with our project. We are using labview to analyze the amplitude of an oscillating beam to actuate a DC motor. When the amplitude is high enough  the motor will turn on. As long as the amplitude stays above the minimum amplitude the motor will run. We would like to make it so that the motor actuates when the minimum amplitude is achieved but stays running based on a timer of some sort. For example, if the amplitude is reached, the motor would run for 5 seconds and then stop. Does anyone know how we would do this? Attached is a picture of our code.

0 Kudos
Message 1 of 5
(1,247 Views)

Use the In Range and Coerce function. Wire the amplitude to the "x" terminal, then enter your upper and lower limit. Then you can use a case structure to control how long the motor stays on.

 

 in range.png

0 Kudos
Message 2 of 5
(1,224 Views)

@UMBC482L wrote:

Hi,

 

We are new to Labview and need some help with our project. We are using labview to analyze the amplitude of an oscillating beam to actuate a DC motor. When the amplitude is high enough  the motor will turn on. As long as the amplitude stays above the minimum amplitude the motor will run. We would like to make it so that the motor actuates when the minimum amplitude is achieved but stays running based on a timer of some sort. For example, if the amplitude is reached, the motor would run for 5 seconds and then stop. Does anyone know how we would do this? Attached is a picture of our code.


oscillating amplitude? explain more in detail when the signal is oscillating at your set point and what you want your motor to do....

  • constant amplitude above your set point and for how long...
  • oscillating amplitude...once reached turn motor on for 5sec...
  • oscillating amplitude...multiple times and when you want the motor to execute

look at the comparison pallete, elapsed timer,logic and bool shift registers

0 Kudos
Message 3 of 5
(1,211 Views)

maybe this will help...

 

Spoiler
timer.png

 

0 Kudos
Message 4 of 5
(1,183 Views)

UMBC482L

 

Any chance that means Univ. of MD - Baltimore County?

0 Kudos
Message 5 of 5
(1,155 Views)