04-09-2009 11:09 AM
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
04-10-2009 01:53 PM
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.