From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Best practise to log counter events in C#

Hi,

 

I'm just getting started with daq programming, so please bare with me, if I ask some basic stuff. Most of the time I'm working with a virtual device only (cDAQ-9171 + NI 9401) and I'd like to observe Inputs and Outputs within my C# program. I created a Counter that generates pulses with 1Hz. How can I trigger an event in my code everytime a pulse occurs?

 

Best

Tom

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

Hi,

 

There are several examples that instal with DAQmx at

 

C:\Users\Public\Documents\National Instruments\NI-DAQ\Examples\DotNET4.0\Counter

 

Curt

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