Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Fast digital output from 6602 to control motor

I have a 6602 board that would like to use to control a linear piezo stage that accepts an enable and direction signal.  To achieve the maximum resolution of the stage, the enable signal needs to be able to be pulsed with pulses as fast as 10us.   So basically what I want is a set of pulses with predefined widths and delays, out of two channels (to get XY motion) synchronized.  I figure this is something similar to buffered digital output (having labview loop through single pulses of varying widths and delays won't be fast enough).  I don't have much experience with low-level digital output programming or gated counter programming.  First question, can the 6602 do this?  I figure it can.  Second question, is there any example code that I can use as a start for this?  I've found the continuous pulse train code, the single pulse code, and the pwm code.  I guess the PWM stuff is similar, but I want a completely arbitrary pattern (let's say two arrays, the first pulse width and the second delay to next pulse) to be written.  Any suggestions?  I'm not quite sure where to start.  Thanks for the help.  If I haven't described what I'm looking for well enough please let me know.  I will need 4 channels (2 enable, 2 direction) for this system to get nice XY control.  I know there are other NI cards that would make this much easier, but I figured I'd use what I have, which is the 6602.
                                                                                                                                                                           Leon
0 Kudos
Message 1 of 2
(3,153 Views)
 
Hi,
I am assuming that you are trying to output varying pulses at high frequencies. The PCI-6602 is not capable of this.  If you are trying to output a single, consistent pulse, then you can use counters.  However, the counters will not allow you to change the pulse widths on the fly with the specifications that you provided. You would have to use digital i/o lines instead of counters for this. I recommend looking into our M series boards because they have hardware timed digital input and output.
 
Regards,
Hal L.
0 Kudos
Message 2 of 2
(3,140 Views)