Hi,
I have digital IO NI9402 and AI NI 9220 mounted in a NIcDAQ-9174, and im programming in Matlab and with the C-Functions from the NIDAQmx.h file. With the digital IO Module I trigger my signal source to start the data output, with this same signal I want my data acquistion to start. Therefor, I connected my digital output to another channel within the device,then I programmed a digital edge start trigger.
[err] = calllib(lib,'DAQmxSetStartTrigType',taskh.AIs, DAQmx_Val_DigitalEdge);
[err] = calllib(lib,'DAQmxSetDigEdgeStartTrigSrc',taskh.AIs,'/cDAQ1Mod1/PFI3');
[err] = calllib(lib,'DAQmxSetDigEdgeStartTrigEdge',taskh.AIs,DAQmx_Val_Rising);
But I always get an error when starting the task, saying an internal error occured.
So I tried this using NI MAX and it worked out, what did I miss in my trigger configuration?