Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Generate a train pulse and data acquisition

Hi !!! I am a rookie in the domain but i have got a Ni pci 6602 Card. I'm programming with with Visual C++. With one counter i generate a signal1 with a choosen frequency and with another counter i' m receiving an external signal2. My objective is to count the number of pulses of the signal1 occurred between 2 rising edges of the signal2. I would like some tips PLEASE !!!!
Thank.
0 Kudos
Message 1 of 3
(3,491 Views)

Hi,

See the following links about edge counting they might help you for your problem:

http://zone.ni.com/devzone/conceptd.nsf/webmain/518ca6a920ce63ff86256802007b852e

http://zone.ni.com/devzone/conceptd.nsf/webmain/51113501fbb9b10986256802007b8aa3

These document are mostly related to LabVIEW but it should be working the same way with Visual C++ if you are using the DAQmx API.

Hope this help,

Regards

ClémentG
0 Kudos
Message 2 of 3
(3,446 Views)
Also there are good references for C programming with DAQmx contained within the DAQmx driver.  When you install it, there is a C reference help located at Start >> Programs >> National Instruments >> NI-DAQ >> NI-DAQmx C Reference Help.

Some examples are also installed with the driver.  These will be located at C:\Program Files\National Instruments\NI-DAQ\Examples.

Brian B
Account Manager
National Instruments
0 Kudos
Message 3 of 3
(3,427 Views)