12-18-2007 03:30 AM
12-19-2007 12:50 PM
Hi,
It seems like you are using the correct functions and proper syntax. One question I have is; are you receiving any errors? Or does it just never trigger and then timeout? If you are not receiving errors are you certain that your trigger signal is actually being sent, or in the case of the analog trigger that your signal is reaching the specified level?
As an example of proper syntax I have included a snippet from the example contAcquire-ExtClk-DigStart.c
// Triggering parameters
char triggerSource[] = "/Dev1/PFI0";
uInt32 triggerSlope = DAQmx_Val_RisingSlope;
uInt32 triggerSamples = 100;
DAQmxErrChk (DAQmxBaseCfgDigEdgeStartTrig(taskHandle,triggerSource,triggerSlope));
I do notice that triggerSamples is missing from the example program’s function call I would try removing this from your call and allowing the program to use the default value to see if this changes the behavior any. I hope this helps!!
12-24-2007 05:29 AM