06-07-2017 11:06 AM
Hello,
I am trying to control a motor driver using labview and I am lost as to what the process would be. I want to use a motor driver like this one https://www.sparkfun.com/products/9457 and I am not sure if I can directly interface it with my equipment. I am using a NI USB-6251 connected to a SC2345. Which pins would I use to control the pins on the driver? Also how would I go about creating a program to do this? I want to be able to start the motor and control the speed of it using PWM. Any help would be greatly appreciated.
Thank you,
JimboMcJambo
06-08-2017 01:29 PM
Hi!
Have you worked with LabVIEW before? You need LabVIEW along with the NI DAQmx driver to control the USB DAQ-6251. the NI SC2345 will only route the DAQ outputs. You basically only need digital signals to control the drive and you have enough in your DAQ. However, you will need a separate power supply for the motor(s). For the PWM signals that control the velocity of the motor, I would recommend using a DAQmx Counter Output task so the PWM is generated hardware-timed. You could also use Digital Output task and generate the PWM software-timed, but it is going to be less stable. For the rest of the signals that the drive requires you can use Digital Output tasks.
Regards!