Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx error -88700

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 */
Message 1 of 2
(2,762 Views)
Hello,
Could you please test the example "Acq-IntClk" (C:\Programme\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Analog In\Measure Voltage\Acq-Int Clk) on your computer? I tested this example and should work with and without DAQmx Start, with and without setting up auto start without any errors.


Thanks,
AmirG

0 Kudos
Message 2 of 2
(2,704 Views)