Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

error -200587 on DAQmxStartTask()

Hi everyone,

Im trying to start a task for a PCI-DIO-96 board, but i alwais get as return the number -200587 (DAQmxErrorDigLinesReservedOrUnavailable). Anyone can help me with this?. I have tried with "Dev1/port5", "Dev1/port0","Dev1/port5/line0:7" and few more combinations, but not working

Heres the code that im using:

DAQmxCreateTask("myTask",&task);
DAQmxCreateDIChan(task,"Dev1/port5/line0:7","",DAQmx_Val_ChanForAllLines);
DAQmxStartTask(task);   ----------> the return of this function is -200587.

Thanks in advance,

Ruzz
0 Kudos
Message 1 of 2
(3,487 Views)
I got the problem: other application was using the lines that i wanted to use, that was the reason of the -200587 error.

🙂
0 Kudos
Message 2 of 2
(3,454 Views)