Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Status Code: -200088

I'm trying to create a digital input task with a few digital lines on the PCI-6602 (in LabWindows/CVI Ver 9.0) as below:

 

status = DAQmxCreateTask("",&digital_output_taskHandle);

status = DAQmxCreateDIChan(digital_input_taskHandle, "PCI_6602/port0/line0:3","",DAQmx_Val_ChanForAllLines);

 

but I got a Non-Fatal Run-Time Error with a status code = -200088 when I tried to run the program.  Could someone please tell me what the problem is?  BTW, when I create a digital output task on the same 6602, I don't have any problem.

TIA

0 Kudos
Message 1 of 2
(5,272 Views)

TIA,

 

Thank you for posting on the NI Forums.  Everything looks good in your code except I am not quite sure why you are coding "status =". I would recommend looking at the examples in the Example Finder provided by CVI for Digital Input for the PCI-6602. The example"ReadDigChan.prj" will work for the PCI-6602, it can be found under Hardware Input and Output >> DAQmx >> Digital Measurements >> ReadDigChan.prj. 

Aaron W.
National Instruments
CLA, CTA and CPI
0 Kudos
Message 2 of 2
(5,258 Views)