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

External counter timebase when trying out NI sample Meas2EdgeSeparation_BufCont C#

$
0
0

I have a newbie question on measurement of edge separation between two rising edges.


I am trying to configure an external counter timebase to measure the time between the rising edges of two digital signals. The external counter timebase is 10MHz. Is it possible to phase lock this signal so that the internal 80MHz uses this as the reference?

I am using the C# example code from NI, Meas2EdgeSeparation_BufCont

CIChannel cChannel = myTask.CIChannels.CreateTwoEdgeSeparationChannel(
counterComboBox.Text,"",
Convert.ToDouble(minimumTextBox.Text),
Convert.ToDouble(maximumTextBox.Text),
firstEdge, secondEdge, CITwoEdgeSeparationUnits.Seconds);

cChannel.CounterTimebaseSource = "/Dev1/PFI7";
cChannel.CounterTimebaseRate = 10000000;

Is this the correct way to specify the external counter timebase rate?


Viewing all articles
Browse latest Browse all 1271

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>