Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

How to set Timestamps to several Counters using NIDAQmx and CSharp

Hello,

 

I'm using a single PCIe-6612 card to read six TTL Signals from different sources with different frequencies (25 Hz-100 KHz).

 

For every Counter there is a counter task (DAQmxCreateCICountEdgesChan()) and i read it with DAQmxReadCounterScalarU32() which for the span of the measurements is enough.

What I need is to put a common Timestamp from a highfrequency generator/source to every counter. As there is no other external source in the system I'm trying to generate it from the DAQ board.

I'm using:

 

DAQmxCreateCOPulseChanFreq(taskHandleTick,"Dev1/ctr0", "", DAQmx_Val_Hz,DAQmx_Val_Low, 0.0, 1000, 0.01));
DAQmxCfgImplicitTiming(taskHandleTick, DAQmx_Val_ContSamps, 1000);

 

which generates signal with configurable frequency, but how can I read it as it is on the output of ctr0? Or is there a better why to do that? Any suggestions are highly appreciated

0 Kudos
Message 1 of 2
(3,861 Views)

Found the answer here:

 

http://forums.ni.com/t5/Counter-Timer/problem-routing-with-ANSI-C-DAQmx-on-PCI-6601-error-89132/td-p...

 

just needed the DAQmxSetCICountEdgesTerm(...)function

0 Kudos
Message 2 of 2
(3,845 Views)