I'm playing around with DAQmx 8.3 and receive an undocumented internal error -88700.
Example code:
DAQmxCreateTask ("Task_0", &hTask);
DAQmxSetReadAttribute (hTask, DAQmx_Read_AutoStart, TRUE);
DAQmxCreateAIVoltageChan (hTask, "PCI-6220/ai1", "",
DAQmx_Val_NRSE, -10.0, 10.0,
DAQmx_Val_Volts, "");
DAQmxCfgSampClkTiming (hTask, NULL, 200000.0, DAQmx_Val_Rising,
DAQmx_Val_FiniteSamps, 2);
Calling DAQmxReadAnalogF64(...) now causes the -88700.
Adding DAQmxStartTask(hTask) right before DAQmxReadAnalogF64(...) resolves the issue.
Is auto start generally not possible/allowed this way or should it work?
-----------------------
/* Nothing past this point should fail if the code is working as intended */