10-24-2006 02:32 PM
10-25-2006 01:29 PM
10-25-2006 01:37 PM
Hello Neil,
We are using Visual Studio. The application is written in MFC/c++.
Thank you,
Jack.
10-26-2006 03:54 PM
int32 DAQmxCreateCICountEdgesChan (TaskHandle taskHandle, const char counter[], const char nameToAssignToChannel[], int32 edge, uInt32 initialCount, int32 countDirection);
int32 __CFUNC DAQmxSetCICountEdgesTerm(TaskHandle taskHandle, const char channel[], const char *data); // set the source for the pulses
int32 __CFUNC DAQmxSetCIDupCountPrevent(TaskHandle taskHandle,
const char channel[], bool32 data);
int32 DAQmxCfgSampClkTiming (TaskHandle taskHandle, const char source[], float64 rate, int32 activeEdge, int32 sampleMode, uInt64 sampsPerChanToAcquire); // set the clock source to the same PFI line as used for source of pulses
int32 DAQmxRegisterEveryNSamplesEvent (TaskHandle taskHandle, int32 everyNsamplesEventType, uInt32 nSamples, uInt32 options, DAQmxEveryNSamplesEventCallbackPtr callbackFunction, void *callbackData); // set nSamples to 1 select a function that you want to run with each pulse.
int32 DAQmxStartTask (TaskHandle taskHandle);