Quantcast
Channel: Counter/Timer topics
Viewing all articles
Browse latest Browse all 1271

Pulse or two edge separation measurement with implicit timing in ticks: What do minVal and maxVal mean?

$
0
0

When I do pulse measurement or two edge separation measurement, using implicit timing, DAQmx chooses (I believe) a suitable internal timebase for the measurement. My X series board (a 6320) e.g. has an internal 100 MHz timebase. I think I can enforce usage of a specific timebase (using the DAQmxSetCICtrTimebaseSrc property setter to set the counter timebase to the value "100MHzTimebase"). But the docs of the DAQmxCreateCIPulseChanTicks and the DAQmxCreateCITwoEdgeSepChan functions (the latter one called with parameter units set to DAQmx_Val_Ticks) make me pass a minVal and maxVal. These values are supposedly used to (internally) determine a suitable timebase for implicit timing. But how should I choose the specific values for minVal/maxVal? They obviously depend on the timebase, so this is kind of a chicken/egg situation. Should I simply say "1" or "0.1" or even "0"? Because I *want* the 100 MHz timebase to be used. Or can I simply call DAQmxSetCICtrTimebaseSrc after DAQmxCreateCIPulseChanTicks?


Viewing all articles
Browse latest Browse all 1271

Trending Articles