Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

error 200428 in linux example code

Hi All;
I'm trying to use the mx daq-base on a redhat 9.0 system. I have a 6031E installed(pci). I've installed the hardware, then the software and compiled the example code. When I try to run the writeDigPort example I get;
Device indentifier is invalid.
DAQmxBase Error: -200428

lsdaq reports:
NI 603E: "Dev2" (PXIO::16::0)


Nay ideas?
Pat
0 Kudos
Message 1 of 4
(2,829 Views)
After further looking into the problem I'm getting an error -200220

here is the suspect code

char chan[] = "dev1/port0:1";
...

error1= DAQmxBaseCreateDOChan(taskHandle,chan,"",DAQmx_Val_ChanForAllLines);
DAQmxBaseGetExtendedErrorInfo (errBuff, 2048);
printf("\nDAQmxBaseCreateDOChan returned %d %s",error1,errBuff);


This gives the following output

DAQmxBaseCreateTask returned 0
DAQmxBaseCreateDOChan returned -200220 Device identifier is invalid.
Data to write: 0x55

DAQmxBaseGetExtendedErrorInfo returned -200428 Value passed to the Task/Channels In control is invalid.


Anyone have any idea?
Pat
0 Kudos
Message 2 of 4
(2,810 Views)
Greetings,

Changing

char chan[] = "dev1/port0:1";

to

char chan[] = "Dev2/port0:1" should solve your problem.

Reply back if you are still having trouble!
Good luck,
Anuj D.
Message 3 of 4
(2,803 Views)
Great that was it. I cant beleive I didn't see it!
Thanks
Pat
0 Kudos
Message 4 of 4
(2,797 Views)