05-29-2009 03:26 AM
I have borrowed a USB-6251 DAQ to drive a stepper motor. The data sheet says that this DAQ is capable of MHz timing for digital IO. I have tried writing a simple programme (attached) to set the motor ENABLE and PULSE pins hi, and then send pulses to the PULSE pin using a "timed loop with frames" to set the PULSE pin hi and lo alternatively.
I would like to know:
1. How to setup a MHz timebase for the timed loop (both internal and external, and which of these options is recommended)
2. How to insert a wait function of microsecond order in the timed loop such that the pulse duration may be controlled (or any recommended alternative method)
Many thanks...
Jordi
06-01-2009 01:01 PM
Duplicate post, let's consolidate this here.