Error -200428 in LabVIEW with DAQmx

Updated Oct 24, 2018

Reported In

Software

  • LabVIEW
  • Measurement & Automation Explorer (MAX)

Driver

  • 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?

Solution

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

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.

WAS THIS ARTICLE HELPFUL?

Not Helpful