LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

EXE unable to load DAQmx VIs

Solved!
Go to solution

I have LabVIEW8.6 and NI-DAQ8.8 on my system.  I created my EXE and Installer successfully.  When I installed the program onto the lab machine, I received the following error when I tried to run the program:

LabVIEW: Resource not found

An error occurred loading VI "DAQmx Clear Task.vi"

LabVIEW load error code 3: Could not load front panel

 

I have verified that the DAQms VIs are under the support directory C:\Program Files\DrawTest\data and the exe is located at C:\Program Files\DrawTest.

0 Kudos
Message 1 of 5
(3,747 Views)
Solution
Accepted by topic author CarolK
Did you include the DAQmx driver in your installer? Did you include MAX and did you export the hardware config from your pc?
Message 2 of 5
(3,744 Views)

Thanks so much!  It's my first time to use LabVIEW and I didn't realize I needed to include those items.  Now the front panel will load but all measurements are reading 0 and I received an error:

Error -200428 occurred at DAQmx Start Task.vi: 22

Possible reason(s):

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

The value must refer to a valid task or valide virtual channel.

 

Task Name: Temperature Input 2

 

This lead me to open Measurement and Automoation and I do not see my tasks and scales there.  I did select to include my hardware configuration in my Installer build options.  Any suggestions?

0 Kudos
Message 3 of 5
(3,724 Views)
I never create tasks or scales in MAX since I prefer to create everything in my code but did you do all of the steps required? On the Hardware Configuration category, did you click the configure button to run the Export Wizard? Another thing to try is if you chose to run the import silently, try changing it to launch the import wizard to see if there is an error with the import.
0 Kudos
Message 4 of 5
(3,708 Views)
Thank you for your help.  I discovered that I hadn't selected any items for the Hardware Configuration file.  Once I added the tasks to that, my application is working correctly.
Message 5 of 5
(3,698 Views)