LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I control a stepper motor drive using a DAQ card?


I need to control a simple CW/CCW stepper motor drive using a DAQ card.  I simply need to output a 5 volt signal and then a drop in the signal, and so on 200 times or steps for 1 revolution.  I have desiigned the basic program, but do not know how to output the appropriate signal.

Cheers,
Matt
0 Kudos
Message 1 of 4
(2,864 Views)

What DAQ card do you have? Ideally, one with a counter output to generate the steps, where you can control frequency. If you try to start the motor too fast (acceleration or abrupt application of fast pulses) it may stall out. Search in Help/Search for Examples for 'frequency' and 'pulse' for example of frequency generation. You can also use a digital output on the DAQ card to control direction.

If DAQ card does not have a counter, you coul do a software timed loop to toggle a digital output to generate the pulse train. It may not be fast enough nor accurate for your application, do not know from info you have given

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 2 of 4
(2,860 Views)
My DAQ card is a NI USB-6009.  To generate my signal, what commands and output function will I use.  Can you possible explain the connection of this function in the block diagram?

Cheers,
Matt

0 Kudos
Message 3 of 4
(2,853 Views)

You'll probably still need some sort of an amplifier to drive the motor windings as well.  I don't know of any DAQ cards that can source or sink the power levels you'll need to drive all but the tiniest stepper motors.

 

Sheldon

Technical geek, engineer, research scientist, biodegradable...
0 Kudos
Message 4 of 4
(2,850 Views)