(1) To get started with DAQmx, the best sources of information are
(a) for general NI-DAQmx topics, the "NI-DAQmx Help" file under National Instruments/NI-DAQ in your Start menu.
(b) for API information, the .NET API has more documentation to help you get started than the C++ API, but the APIs are almost identical, so have a look at the "Using the Measurement Studio DAQmx .NET Library" topic in the .NET help (clicking
here will take you to the topic if you have the help installed). In addition, the C++ library has an overview page (
here) that gives you a quick tour of the ke
y classes.
(2) Create a CNiDAQmxTask object. It has a "Timing" property that returns a class that has a "ConfigureChangeDetection" method that should set up the task to do what you want as well as a "ChangeDetectionOverflowed" property to alert you if changes occur too rapidly for the system to keep up.
(3) There should be an example demonstrating change detection on your system at C:\Program Files\National Instruments\MeasurementStudio70\VCNET\Examples\DAQmx\Digital\Read Values\ReadDigChan_ChangeDetection. Currently, all examples we have ship with DAQmx and should be installed on your system if you selected to install the examples.
I hope this helps. Good luck with your project.
Tony H.
Measurement Studio