LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Building LabVIEW 8 Application Looses DAQmx Configuration

I create a very simple VI (DAQmx read in a loop - output to a chart):

Attached Image

and I create the channel in my LabVIEW 8 Project. When run in the LabVIEW development environment it works fine

Attached Image

but once built I get error -200428 "Value passed to the Task/Channels In control is invalid. The value must refer to a valid task or valid virtual channels."

Attached Image

Anyone got any ideas? (I've attached the full project in a zip)




Copyright © 2004-2024 Christopher G. Relf. Some Rights Reserved. This posting is licensed under a Creative Commons Attribution 4.0 License.
0 Kudos
Message 1 of 4
(3,025 Views)
Check out this thread and see if it solves your problems.

From the page: After the DAQmx Task Name you only need to put down the Start Task.VI. Finally, you only need to put down the Stop Task.VI, you don't need the Clear Task.VI.

You might want to put in the Start and Stop VIs and see if it works for you.  I don't have the hardware so i can run the VI to verify.
Kenny

0 Kudos
Message 2 of 4
(3,017 Views)
Thanks for the suggestion, but I'm using DAQmx, not DAQmx Base.  Actually, a LAVA member pointed me in the right direction: the builder creates the wrong path in the application's .ini file - my NI-DAQmx.ApplicationStorageFile was set to "applicationfolder\nidaqmx.ini", where it should have been just ".\nidaqmx.ini" - looks like a bug to me!




Copyright © 2004-2024 Christopher G. Relf. Some Rights Reserved. This posting is licensed under a Creative Commons Attribution 4.0 License.
Message 3 of 4
(3,011 Views)
After further research, it turns out that it needs to be a fully-qualified absolute path Smiley Mad




Copyright © 2004-2024 Christopher G. Relf. Some Rights Reserved. This posting is licensed under a Creative Commons Attribution 4.0 License.
0 Kudos
Message 4 of 4
(2,994 Views)