09-19-2011 01:39 PM - edited 09-19-2011 01:43 PM
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
09-20-2011 03:10 PM
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,
09-22-2011 10:59 AM
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.
09-26-2011 08:53 AM
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,