Hans Wurst
2006-12-19 15:10:15 UTC
Hello there,
I have a problem with the following routine, because after the successful execution of the 'DAQmxWriteDigitalU16' function, the programm doesn't go on with the next line 'DAQmxStartTask'.
I do not get back any error message.
DAQmxCreateDOChan(taskHandleWrite, "Dev1/port2", "", DAQmx_Val_ChanForAllLines);
DAQmxSetDODataXferMech(taskHandleWrite, "Dev1/port2", DAQmx_Val_DMA);
DAQmxCfgSampClkTiming (taskHandleWrite, "OnboardClock", clockRate, DAQmx_Val_Rising, DAQmx_Val_FiniteSamps, numSampsPerChanWrite);
DAQmxCfgOutputBuffer(taskHandleWrite, numSampsPerChanWrite);
DAQmxWriteDigitalU16(taskHandleWrite, numSampsPerChanWrite, true, 10.0, DAQmx_Val_GroupByScanNumber, writeArray, sampsPerChanWritten, reserved);
DAQmxStartTask(taskHandleWrite);
DAQmxStopTask(taskHandleWrite);
Does anybody know, what's wrong?
Thanks in advance for your help!
Tobias
I have a problem with the following routine, because after the successful execution of the 'DAQmxWriteDigitalU16' function, the programm doesn't go on with the next line 'DAQmxStartTask'.
I do not get back any error message.
DAQmxCreateDOChan(taskHandleWrite, "Dev1/port2", "", DAQmx_Val_ChanForAllLines);
DAQmxSetDODataXferMech(taskHandleWrite, "Dev1/port2", DAQmx_Val_DMA);
DAQmxCfgSampClkTiming (taskHandleWrite, "OnboardClock", clockRate, DAQmx_Val_Rising, DAQmx_Val_FiniteSamps, numSampsPerChanWrite);
DAQmxCfgOutputBuffer(taskHandleWrite, numSampsPerChanWrite);
DAQmxWriteDigitalU16(taskHandleWrite, numSampsPerChanWrite, true, 10.0, DAQmx_Val_GroupByScanNumber, writeArray, sampsPerChanWritten, reserved);
DAQmxStartTask(taskHandleWrite);
DAQmxStopTask(taskHandleWrite);
Does anybody know, what's wrong?
Thanks in advance for your help!
Tobias