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.
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.
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"
Please let me know if I can be of any further assistance in this regard. All the best!
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?
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
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
Programmatic Saves of NI-DAQmx Tasks, Channels, and Scales Examples
What is the Difference Between a Static and Dynamic Example for NI-DAQmx Base?
Please let me know of your progress on this issue.
Thank you for choosing National Instruments!
No problem! It was my pleasure! Thank you for choosing National Instruments!