Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

USB-6251internal MHz timing

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

0 Kudos
Message 1 of 2
(3,074 Views)

Duplicate post, let's consolidate this here.

John Passiak
0 Kudos
Message 2 of 2
(3,054 Views)