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

Sample C or CPP code for Continuous Pulse Train Generation on the PCIe 6612 card

$
0
0

Hello,

We would like to generate a continuous pulse train from one of the counters of an NI PCIe 6612 card using C/C++ language, with the NIDAQmx interface.

Our software needs to be able to continuously go to sleep and wake up each time counter output changes from low level to high level (i.e. on the rising edge of the counter output).

In some scenarios, we need to wake up on the falling edge of the counter output.

Note that we do not want to poll in a busy-loop for counter output.

The pulse train frequency needs to be constant (e.g. 100 Hz).

Is there an example program that demonstrates how to do that?

Thank you,

Itai

 


Viewing all articles
Browse latest Browse all 1271

Trending Articles



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