Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

how to synchronize digital data output from NI PCI-6071E to the ctr used as a clock?

I have created a task that puts out 20Mhz pulses from ctr0. Now, I want to output 8 4-bit samples of data, synchronized with the pulses from ctr0 (e.g. one sample per clk cycle), out on port0/line0/1/2/3. When I try to config the clk (DAQmxCfgSampClkTiming) for this task (consisting of the 4 lines), it does not permit me to synchronize with the pulses on ctr0. What is the recommended method of putting out a clock and 8 samples of data synchronized to that clock? It is important that the data be synchronized to the output clock because this clock drives the downstream devices that reads in the 8 samples of data.
0 Kudos
Message 1 of 2
(2,881 Views)
You should be able to route the counter signal to one of the RTSI lines and trigger your output from that line. There is a DAQmxConnectTerms function to do the routing of the counter to the RTSI line. And you should be able to choose that RTSI line in your DAQmxCfgSamlClkTiming function.
0 Kudos
Message 2 of 2
(2,881 Views)