ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why do I get error 200428 from executable?

Solved!
Go to solution

I have a NI-DAQ application running correctly using a project under development LabVIEW 8.6 and NI-DAQ 8.8.  When I use the exact same project to build the executable on the same PC, I get error 200428 - "Measurements: Value passed to Task/Channels In control is invalid" on startup.  How could this be?  I am using DAQ tasks built with the DAQ wizard and stored in the project.

0 Kudos
Message 1 of 5
(3,597 Views)
An exe is not part of a project so it's not surprising that the task cannot be found. If you really need saved tasks, then I would recomend you save it in MAX.
0 Kudos
Message 2 of 5
(3,585 Views)
I am well aware that the executable is not the project.  LabVIEW executables, however, are always built within project context.  The NI-DAQ tasks defined inside the project are part of that context.  If I make the NI-DAQ VI a top-level VI and build the executable, everything works fine.  It is something about embedding this VI in a larger application (executable only, not development) that is causing my problem.
0 Kudos
Message 3 of 5
(3,570 Views)
When an exe runs, it is not part of the project context. It is totally separate from any project.
0 Kudos
Message 4 of 5
(3,565 Views)
Solution
Accepted by topic author ww.brown
For the record, I resolved this problem by importing to MAX the project maintained file: Build\Data\NI-DAQmx.ini.  This imported all my DAQ tasks to MAX and the executable now runs correctly.  Thanks.
0 Kudos
Message 5 of 5
(3,553 Views)