LabVIEW

cancel
Showing results 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.

Message 1 of 5
(1,295 Views)

Re: Timer help

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.

Message 2 of 5
(1,272 Views)

Re: Timer help

@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

Message 3 of 5
(1,259 Views)

Re: Timer help

maybe this will help...

Spoiler

Message 4 of 5
(1,231 Views)

Re: Timer help

UMBC482L

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

Message 5 of 5
(1,203 Views)