Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Digital Output (not counter) pulse timing

I have NI USB-6229 & 6251, (I'm using one at at time).  I've reversed engineered an old device with a X-Y matrix keypad. I've replaced the keypad with a bunch of photoMOS relays, to automate the operation of the device.  I would like to send digital output pulses to the keypad to simulate key presses.  Pulse duration will be on the order of 200ms, but not more than 400ms (least I get 2 increments).  I'm only sending a pulse to one digital output at a time, but I'll have multiple digital outputs. 

 

I'm familiar with the examples for generating a pulse using a counter, but I don't know how I can route that output to the digital outputs (different pins).   I'm using all of the digital outputs, so I can't limit myself to the PFx outputs.  So I'm trying to find an accurate timing approach to generate the pulses on the digital outputs, like P0.0 and P0.1.  I can generate the pulses in Labview software, but I'd rather not rely on Windows timing if there is an approach that takes advantage of any of the onboard timers. If this isn't possible, I'll use a timed loop.

 

I do have a simulatenous analog input continuous data acquisition loop, so I might be able to run/link with that timer, but I've not been able to figure out how I would do that from the examples that I've seen.

 

 Any insight/links that you might provide would be appreciated.

 

0 Kudos
Message 1 of 4
(3,038 Views)

Hey,

 

Look for clocked or correlated DIO examples with M-Series.

There you use any other Task (AI, AO, Counter) to create a Timing Source to clock the DIOs.

 

 

Hope this helps,

Christian

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

The only examples that I could find that are representative were under "clocked":  "Cont Gen Current Updates Wfm-Int Clk.vi" and "Gen Mult Current Update-Int Clk.vi".  These are for analog outputs using the Waveform Buffer Generation and a waveform output, but the second one is for Finite Samples with a desired frequency, so I'll try to modify it for a digital output. Thanks.

 

 

0 Kudos
Message 3 of 4
(3,024 Views)

There is a good example here -> http://zone.ni.com/devzone/cda/epd/p/id/1566

 

 

Christian

0 Kudos
Message 4 of 4
(3,022 Views)