Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

error -200170 with DAQmx when testing pci-mio-16E-4 with MAX

Solved!
Go to solution

Hello,

 

With DAQmx, I get error -2000170 when I test my old PCI-MIO-16E-4 card with the Test Panels in MAX. It means the name of my I/O ports are not recognised as a valid name for my card. I have tried names with the syntax 'AI #', and also with the syntax of the Traditional NI-DAQ, and also the names in the user manual of the card.

What is odd is the fact that I cannot choose a name for the port that I want to test (the unscrolling list is grey) therefore I have to type by myself something.

 

With Traditional NI-DAQ, the test pannels works fine: I can see in scope mode the voltage on the analog entries of the card.

 

The problem occured after upgrading from Labwiew 7.1 to Labview 8.5. As our application didn't work anymore, I re-installed everything as before:

- Complet un-installation of the NI programms, turn off computer

- Removing of the PCI-MIO-16E-4

- Installation of Labview 7.1

- Installation of DAQmx 7.2, turn off computer

- Place the PCI-MIO-16E-4 in its slot, reboot

- Auto-detection by windows XP of the card, I chosen "install the software automatically"

Thanks a lot for your advice

0 Kudos
Message 1 of 6
(4,321 Views)
That syntax is not correct. The correct syntax would be something like Deva\ai0. However, it would seem that your card is not using DAQmx since you can run the traditional DAQ test panels. In MAX, try doing a reset of the device and make sure the device is listed under MAX. I have not checked the version of DAQmx that you are using so you might want to verify that the card is actually supported with the version of DAQmx that you are using.
0 Kudos
Message 2 of 6
(4,312 Views)

Thank you for your reply Dennis,

 

In MAX, the name of my PCI card is PCI-MIO-16E-4: "Dev1". Therefore I tried with the syntax "Dev1/ai0". This gives again the error -200170, but that time, in the window describing the error, it is written: "Device: Dev1" and as before: "Physical Channel Name: ai0". When I type "Dev2/ai0", I get an error -200220 "Device identifier is not valid". I think this means that MAX the PCI card is well recognized by MAX. Is it right?

 

I made a reset of the card through MAX with the button "Reset Device". The card also successfully passed the test with the "Self-Test" button (although the answer "The device has passed the self-test" seemed to me suspiciously instantaneous). I always has this problem of error -200170.

 

I checked in the documentation of my DAQmx version (7.2) if the card is supported. It is the case:

 

*       Devices Supported in NI-DAQmx and Traditional NI-DAQ Devices 

·         NI PCI-MIO-16E-4 (PCI-6040E) 500 kS/s (1-channel), 250 kS/s (multichannel), 12-bit, 16 AI channel, two AO channel, 8 DIO-line, two counter/timer device 

 

What I wonder is the following: Is it normal that I cannot select a name from an un-scrolling list for the IO port I want to check in the Test Panels of MAX (with DAQmx)? The field "Channel Name" is grey and I have to type something inside. It seems like the driver of the card, with the description of its I/Os, is not completely installed in my computer.

 

Therefore I followed the installation procedure described in http://forums.ni.com/ni/board/message?board.id=250&requireLogin=False&thread.id=15038, but without any success.

 

My last question is: As what I need is to make working again our Labview application, is it the correct methodology to try to figure out what is wrong with IMAX?

 

In thank you in advance very much for your advice.

0 Kudos
Message 3 of 6
(4,286 Views)

Coul you please post some screenshots so I can understand what exactly you mean?

 

 Regards,

Andreas Stark
LabVIEW Lead @ Rocket Factory Augsburg
0 Kudos
Message 4 of 6
(4,267 Views)
Solution
Accepted by topic author didof
The problem is solved. The driver of the PCI card was not properly uninstalled before the new installation.I followed this procedure: 

a) Uninstall all NI applications with Control Panel -> Add or Remove Programs

 b) Right click on My computer -> Properties -> Hardware -> Device Manager -> Right click on PCI device (yellow Question mark) -> Uninstall c) Turn off computer and remove the PCI-MIO-16E-4 card from the slot, reboot d) Installation of Labwiew, then DAQmx e) Switch Off computer, insert the PCI-MIO-16E-4 in its slot f) Reboot, Auto-detection by windows XP of the card, I chosen "install the software automatically" The key points are points b) and c), without these it seems that the wrong driver is not completely removed  Andreas, please find a screenshot  (with the problem solved): now I can chose names from an un-scroling list in the field “Channel Name”. Before it was grey and I had to write by myself “Dev1/ai0” but even with the correct syntax the error -200170 was always there. Anyway, thanks a lot for support (feeling not alone is already very nice 😉  Channel Name.JPG-). 
0 Kudos
Message 5 of 6
(4,256 Views)
Glad you could solve the problem!
Andreas Stark
LabVIEW Lead @ Rocket Factory Augsburg
0 Kudos
Message 6 of 6
(4,243 Views)