01-27-2007 02:25 PM
01-29-2007 01:57 PM
Hi Yajai,
You've got the right idea about working from an example. The Meas2EdgeSeperation is actually a C# example - does that matter for you? You can program in C# using the Managed .NET Class, C++ only unmanaged is supported. If you want to use C++, you'll want to use the Two-Edge SeperationBuff-Cont example under C:\Program Files\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Counter\Measure 2 Edge Separation\Two Edge Separation-Buff-Cont. You can set the input terminals using the DAQmxSetCITwoEdgeSepFirstTerm() and DAQmxSetCITwoEdgeSepSecondTerm(). Check out the DAQmx C Reference Help for info on those functions.
If you are using Managed in C#, then you'll still want to set those properties; TwoEdgeSeparationFirstTerminal and TwoEdgeSeparationSecondTerminal are properties of the CIChannel class. I always end up referencing the NI Measurement Studio Help when working with the Managed Classes.
Hope this helps,
Andrew S.
National Instruments