08-25-2005 07:07 PM - edited 08-25-2005 07:07 PM
Message Edited by niyant on 08-25-2005 07:11 PM
08-26-2005 10:46 AM
You can use the counters on the 6024 to output a pulse train with variable frequency and number of pulses. To make things easier since you have to cycle 4 inputs sequentially and repeatedly- use a 4 bit counter chip with some karnaugh logic that takes a freqency input and produces the 4 sequential bit pattern states. You can probably seach the web for such a circuit.
Or you could purchase a stepper motor driver unit off the shelf that take a direction input and step input. Again, use the counter output on the 6024 to provide the pulse train to step the motor.
And another, much less desirable option IMO, use the digital output bits on the 6024 to toggle the A and B signals directly in a pattern (state machine or sequence) with variable software loop timing to act as the freqency. May be sloppy in freqency stability due to software overhead.
08-26-2005 01:39 PM - edited 08-26-2005 01:39 PM
Hi All-
AnalogKid's suggestions are excellent- the hardware-timed approach using a counter output with some external logic circuitry is the best option, but if software-timed latencies are not a huge concern you can use the method I suggest in the attached VI.
Basically each of your four control signals will be attached to different digital lines on the DAQ board. In the method I show, the lines will be as follow:
A == Port0/Line0
B == Port0/Line1
A'== Port0/Line2
B'== Port0/Line3
The data to be written is dictated by the states of the boolean switch controls and the number of iterations of the complete pattern is set by the "Number of Loops" control.
Please take a look and let us know if you have any additional questions.
Thanks
Message Edited by Tom W. on 08-26-2005 01:40 PM
08-26-2005 04:34 PM
08-26-2005 04:43 PM
08-26-2005 04:48 PM