LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI-DAQmx Base Error -200428

When trying to run my VI I get this error at every DAQmx:

 

NIDAQmx base error 200428

 

The error message then says:

 

Possible reason(s):

 

Value passed to the Task/Channels In control is invalid.

The value must refer to a valid task or valid virtual channels.

 

Task Name: QuickCapture

 

How do I fix this?

 

Message 1 of 15
(4,582 Views)

Not much information here. It's dangerous to go alone! Take this.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 2 of 15
(4,576 Views)

What other info would help here?

0 Kudos
Message 3 of 15
(4,501 Views)

We need information pertaining to your specific subVI and/or task configuration. This error is a generic error that tells you that you didn't write the correct task to the DAQmx input, or your task isn't set up right. Without seeing what you're actally doing with your DAQmx task, that help article is the best advice that can be given when you just give us the error code.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 4 of 15
(4,496 Views)

The vi is a subvi to a huge code containing hundreds of subvi's. So would it change anything if I said I only started noticing it when I added an export waveform to excel node?

0 Kudos
Message 5 of 15
(4,483 Views)

Error code Block Diagram.PNG

0 Kudos
Message 6 of 15
(4,469 Views)

First off, you're not handling any of your error clusters. Wire those puppies up so you can see if one of your DAQmx VIs throws an error.

 

Are you getting the error within the subVI that you shared the screenshot of, or are you seeing the error after that subVI finishes running? You have a Clear DAQmx Task VI there, which could cause trouble if you try to do other things with the task after that.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 7 of 15
(4,454 Views)

It looks like the error occurs within the subvi. and at every DAQmx part of the code.

0 Kudos
Message 8 of 15
(4,429 Views)
Well then something is happening before you get to this subVI with that DAQmx task. Are you setting up the task in MAX or are you setting it up with the DAQmx VIs somewhere else in your code?

That Task/Channels input better be getting initialized and set up somewhere else. If that's not happening correctly, then there's your problem.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 9 of 15
(4,423 Views)
You are using DAQmx base? On a Mac?
0 Kudos
Message 10 of 15
(4,415 Views)