Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

USB 6009: Linux daqmx DAQmxBase Error: -200170

Hi there,

I have yesterday managed to successfully install DAQmx base 2.1, NIKAL 1.6, and NI-VISA 4.2 on my Linux Fedora Core 7 box. The posts here helped enourmously, thank you to the community.

I would like to start using my USB-6009, as you might imagine. I can see the device when I issue lsdaq (see below). I can compile the example programs, but they all seem to yield some errors.

Here is what I receive (the first few lines are for your information only):

[dlueerss@ogt-lap-tri-001 ai]$ uname -a
Linux ogt-lap-tri-001.internal.ogtip.com 2.6.23.2-1.OGT #2 SMP Tue Nov 20 15:10:22 GMT 2007 i686 i686 i386 GNU/Linux
[dlueerss@ogt-lap-tri-001 ai]$ lsdaq
--------------------------------
Detecting National Instruments DAQ Devices
Found the following DAQ Devices:
NI USB-6009: "Dev1"    (USB0::0x3923::0x717B::012CDF3A::RAW)
--------------------------------
[dlueerss@ogt-lap-tri-001 ai]$ ./acquireNScans
DAQmxBase Error: -200170
[dlueerss@ogt-lap-tri-001 ai]$ ./acquire1Scan
DAQmxBase Error: Physical channel specified does not exist on this device.

Refer to the documentation for channels available on this device.
[dlueerss@ogt-lap-tri-001 dio]$ ./readDigPort
DAQmxBase Error -200170: Physical channel specified does not exist on this device.

Refer to the documentation for channels available on this device.

Thank you in advance for your help.

Best regards,
Dietrich

0 Kudos
Message 1 of 5
(3,193 Views)

Hi Dietrich,

Sadly I don't have access to an FC box here to try this out, however I will try this now with our Linux box to see if I can recreate the error. The error code you are seeing is to do with a firmware error on the device.

http://digital.ni.com/public.nsf/allkb/9F61B1CE00D6CE7586257204006B207E?OpenDocument

 

If you could also post your modules so I can see what you have installed overall on your system that would be great

"lsmod | grep ni" as root

 

Thanks,

Regards,

Applications Engineer
0 Kudos
Message 2 of 5
(3,168 Views)
Hi Dietrich,
 
This forum post looks very similar to the problems you are having:
 
The last few pages of the post talks about settings for permission errors as well as firmware problems which (I'm pretty sure) is the problem you are having. I'm hoping working through the posts on there will solve your problem with the errors your are seeing.
 
Thanks,
Regards,
Applications Engineer
0 Kudos
Message 3 of 5
(3,164 Views)
Dear Rob,

thank you for your posts. I have solved the problem now, and your links were very useful for that. Here is what I did:

1. In Windows, I installed DaqMx Base 2.2, and used the firmware change procedure to change the firmware of the USB-6009.
        -> using this procedure, I can only see the device as a USB device, and not as a DaqMx Base device in MAX.
2. Reboot into Linux, and the example programs worked.

What surprised me about the procedure is that I had not used the USB-6009 before trying to connect it to the FC7 box. Would it be normal that the normal firmware does not work with the base system?

Regardless of these questions, I am a happy customer now that the device does what I want it to do.

Best regards,
Dietrich
0 Kudos
Message 4 of 5
(3,162 Views)

Hi Dietrich,

I'm glad to hear you've solved the issue, the firmware on the USB-600x doesn't ship with base by default.

Best of luck! and thanks for letting me know you got it working,

Regards,

Applications Engineer
0 Kudos
Message 5 of 5
(3,159 Views)