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,124 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,118 Views)

What other info would help here?

0 Kudos
Message 3 of 15
(4,043 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,038 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,025 Views)

Error code Block Diagram.PNG

0 Kudos
Message 6 of 15
(4,011 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
(3,996 Views)

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

0 Kudos
Message 8 of 15
(3,971 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
(3,965 Views)
You are using DAQmx base? On a Mac?
0 Kudos
Message 10 of 15
(3,957 Views)