11-02-2007 01:48 PM
Hi,
I am using Labview 8.2 with DAQ-6062E. I have a linear actuator and a 15 amp bidirectional digital PWM motor speed controller (from critical velocity, inc). Also, I have a linear potentiometer for position measurements.
I would like to control the actuator through labview that
a) starts and stops at certain positions
b) after stops at a certain position, waits for sometime (few seconds) and then reverse direction.
c) and I would be able to control the actuator for different speeds.
Could I use the system I have to do the motor control? And is there any example? Do I need to use motion control toolkit?
Thanks,
Azadeh
11-02-2007 07:42 PM
11-05-2007 04:10 PM
Hi Azadeh,
I see no issue with using your hardware to complete this task without the need of an additional toolkit. This application will be software timed therefore more of a fuzzy logic system than a deterministic system, meaning that your timing may vary due to its dependence on the operating system. I would use an analog output to control the position and either an analog output or a digital line to control the direction. Concerning examples, this program in essence will be an analog input that determines the values of analog outputs. The examples that I would use are Gen Voltage Update.vi for the output and Cont Acq&Graph Voltage-Int Clk.vi for the input. Both of these examples can be found by selecting Help>>Find examples>>Hardware Input and Output>> DAQmx and either Analog Generation or Measurement followed by Voltage for each. I hope this information helps please post back if you have any further questions.
11-06-2007 01:16 PM
Thanks for the reply. I was able to control the speed of the motor through the program. I have attached my vi. (right now, I am not using the position sensor). By clicking the “motor reverse” button, the motor is reversing. However, I would like after I press the button, the motor stops for 5 seconds and then starts. I tried to send out 0 voltage to analog out after the “motor reverse button” is clicked but I was not successful. Any suggestion?
Thanks,
A
11-07-2007 03:14 PM - edited 11-07-2007 03:15 PM
Hi Azadeh,
11-08-2007 11:55 AM