Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating two synchronous digital outputs

Hi,

 

I'm trying to create a clock and data signal to load a register. For my data I'm converting a boolean array into a digital waveform. I'm having trouble creating these synchronous signals. I have been trying to use a CO pulse to create the clock with some delay ( for setup time ) and then use the same sample clk to generate the data signal. The signals that are output are defintely not synchronized though. What is the best way to do this? I've attatched screen capture of the vi I've been working on.

 

Thanks, Wes

0 Kudos
Message 1 of 4
(2,845 Views)

Hey Wes,

 

Check out the Correlated Digital Write With Counter example.  You should be able to just add in your boolean array to digital waveform code in place of the current waveform to make it match your needs.

 

Hope this helps you,

0 Kudos
Message 2 of 4
(2,818 Views)

I have seen this example. How can you adjust the setup time of the data signal. I would need to have some adjustable delay (or at least a useable delay) between the ctr0InternalOutput and and ctr0 Out. Right now I have something working but I am using an extra counter to trigger the other counter and digital data output.

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

Hey Wes,

 

Try looking at Different Counter Retrigger and Initial Delay Behavior in Traditional (Legacy) NI-DAQ and NI-DAQmx.  It looks like you will in fact have to use an extra counter for the delay.

 

Hope this helps you out,

0 Kudos
Message 4 of 4
(2,775 Views)