When trying to run my VI I get this error at every DAQmx:
NIDAQmx base error 200428
The error message then says:
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?
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.
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?
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.