04-26-2013 01:38 PM
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.
04-26-2013 02:28 PM
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.
04-26-2013 02:45 PM - edited 04-26-2013 03:13 PM
@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....
look at the comparison pallete, elapsed timer,logic and bool shift registers
04-26-2013 03:56 PM - edited 04-26-2013 03:59 PM
04-26-2013 10:09 PM
UMBC482L
Any chance that means Univ. of MD - Baltimore County?