Error -200428 in LabVIEW with DAQmx

Updated Dec 28, 2023

Reported In


  • LabVIEW
  • Measurement & Automation Explorer (MAX)


  • NI-DAQmx

Issue Details

I have a LabVIEW program to communicate to a DAQ device through DAQmx. Whenever I run it, I get the following error:

What causes this error and how can I fix it?


Error -200428 indicates that a task or channel is invalid. This most often occurs when the task has been closed and you try to edit it.

Potential Debugging Steps:
  • Check your wiring to ensure that you aren't accidentally closing the task before the VI called out in the error.
  • If you're getting this error while using the DAQ Assistant, it's likely due to an improper configuration. Refer to the information and links below for reference.
  • If you're calling a DAQmx task  directly from  NI-MAX into LabVIEW, verify that the task stills present under My System>>Data Neighborhood
  • Ensure you have the correct version of DAQmx for your device and for the LabVIEW version you are using. You can verify this by checking the Readme documentation found on the DAQmx download page.
  • Ensure you DAQ device is set to the correct Programming Mode in MAX

Additional Information

This error is common when getting started with DAQmx. It usually indicates a incorrect application of the DAQmx API. If you're unfamiliar with the DAQmx API, we recommend checking out the related links. Additionally, you can find examples on DAQmx within LabVIEW under Help>>Find Examples...>>Hardware Input and Output\DAQmx.