06-02-2011 09:49 AM
I built a stand-alone application from a VI file that uses DAQmx. When I try to run the new .exe file on another laptop, it cannot find the DAQmx tasks that I created in MAX for the control box. This laptop does not have labview; I want to be able to run the application on any laptop as a tool. Please help. Thanks.
Solved! Go to Solution.
06-05-2011 11:36 AM
Hello krang
This is likely due to not including the DAQmx drivers in your build. Here are the full instructions for accomplishing what you are trying to do!
Note: Does not work for RT
Note: In the Wizard you don’t have to add the DAQmx objects in the source files page it is done automatically
Note: You can also use simulated devices for this procedure
Note: This procedure assumes you have installed all software, hardware and licenses.
OVERVIEW
Create a project which contains a VI referencing MAX Tasks, Channels and Scales. Build an executable out of this VI. Then build an installer. In the installer specifications include your MAX hardware configuration (Option is on the advanced page). Also go to the "Additional Installers" page to check NI-DAQmx.
1. Open "Measurements and Automation Explorer" (MAX)
2. Verify Hardware is installed correctly and working
"Create DAQmx Task"
"Create DAQmx Channel"
"Create VI"
"Save Project"
"Build Executable"
"Test Executable"
"Build Installer"
"Test Installer"
Please let me know if I can be of any further assistance in this regard. All the best!
06-06-2011 12:58 PM
Since the DAQmx tasks and channels were already created for the existing vi, I skipped through to the build instructions. The executable worked fine, but when I tested the installer on another machine, I still got the DAC error code 200428. I also made sure the DAQmx drivers were included in the build. I'm not sure whether the existing DAQmx tasks were included in the project file. The instructions you provided seem to apply to creating a new task for the project instead of using existing ones. How could I check to make sure DAQmx tasks are included in the installer?
06-07-2011 12:31 PM
Hello krang
I am sorry the above was not helpful to you.
I believe the answer you are looking for is available in the following document under section "Building an NI-DAQmx Application Installer" Step 6.
Creating an NI-DAQmx Application Installer with LabVIEW
http://zone.ni.com/devzone/cda/tut/p/id/5406
I have also included some more documentation on the errror code you have received as well as some other documents for your interest.
NI-DAQmx Base Error -200428
http://digital.ni.com/public.nsf/allkb/7705D38D59EF562886256F79007E4B5A
Programmatic Saves of NI-DAQmx Tasks, Channels, and Scales Examples
http://sine.ni.com/devzone/cda/epd/p/id/1668
What is the Difference Between a Static and Dynamic Example for NI-DAQmx Base?
http://digital.ni.com/public.nsf/websearch/81BFABF907AD65D886256F9A00824FEF
Please let me know of your progress on this issue.
Thank you for choosing National Instruments!
06-08-2011 03:32 PM
Thank you, Greg. The application now works. You've been a big help.
06-08-2011 05:13 PM
Hello krang
No problem! It was my pleasure! Thank you for choosing National Instruments!
11-28-2018 03:15 PM
what was wrong in your setup?