Error -200220: DAQmx Device Identifier is Invalid

Updated Oct 29, 2018

Reported In

Hardware

  • CompactDAQ Chassis

Software

  • LabVIEW
  • Measurement & Automation Explorer (MAX)

Driver

  • NI-DAQmx

Issue Details

I recently changed or added new hardware to my data acquisition system using NI-DAQmx and now I'm getting the following error:

Error -200220 occurred.
 
Possible reason(s):
 
Device identifier is invalid.

Solution

Follow the steps below to ensure the name given to the hardware in NI Measurement & Automation Explorer (NI MAX) matches the name of the resource being specified and used in your DAQmx function.
 
  1. Open MAX and expand Devices and Interfaces in the left-hand pane.
    1. If you are using a National Instruments Real-Time Controller that has a DAQmx device connected to it, find the Real-Time Controller under Remote Systems and check Devices and Interfaces under the controller. 
 
 
  1. Find your desired hardware and take note of the name in quotes. Alternatively, right-click and rename the resource to the DAQmx alias name that is used in your code.
 
 
  1. In your LabVIEW code, ensure the name used in your DAQmx VI function calls matches the alias name in NI MAX. By default, the drop-down menu for DAQmx physical channels will only auto-populate with valid names.

     
  2. If you still receive the DAQmx error and are running the code on a Real-Time controller, ensure the code is being run on your Real-Time target. To check if it is being run on the Real-Time controller, your VI should be listed in your LabVIEW project under your Real-Time controller and the VI window title should be formatted in the following way:
    <VI Name>.vi Front Panel on <Project Name>.lvproj/<Target> 
    where the target is the name of your Real-Time controller. If it is not, close the VI and then reopen it from your project underneath the Real-Time target.
 

WAS THIS ARTICLE HELPFUL?

Not Helpful