11-07-2012 09:25 AM
Hi everyone.
I tried LIFA a while back. i abandond it for this project because LIFA was still in its infint stages. now more time has past, LIFA has grown alot.
MY project is a 3D printer/milling machine. to start i would like LIFA to beable to control the xy table. (the motors are 48v 8A, but thats not important) so i have 2 motors requireing a DIR + PWM signal. that shouldnt be to hard, each Axis has a Quad. Encoder (using my current code i get 1000 counts per revolution.)
How would i go about... lets start out easy... user inputing X+Y locations, than Labview running threw a PID loop and outputting the values to the motor controller threw the arduino.
So Labview reading Encoder, using that value to modify a PID loop, and outputting that to the motor controller.
The Inputs: USER_Destination_VALUE, Encoder_A+_PIN, Encoder_B+_PIN, P_PID, I_PID, D_PID
The Outputs: PWM_VALUE(+or-), ERROR.
How can i impliment my own Arduino Side Code? for encoder and call it from LIFA.
11-07-2012 04:48 PM
You do not want to use LIFA in a fast closed loop control system like a DC Servo that uses Quadrature encoders.for feedback. The signal delay in sending data between Labview and Arduino is to long compared to the equirements of a fast closed loop control system. Instead you need to do all of the processing requird to build a closed loop system in an Aduino. You would then only use Labview to generate command signals and to display position information.
An Arduino Uno is only capeable of handling one quadrature encoder. For two quardratur encoders you need an Arduino Mega.
hrh1818
02-26-2014 02:37 AM
dear sir your answer do guide me
Actually when the coding for the encoder dc geared motor is done.
I have to interface the coding with labvuew right ( lifa)
but how to do it, this is dnt understand