07-04-2017 10:21 AM - edited 07-04-2017 10:26 AM
Hello
I have got a simple program that utilises DAQmx vis. I would like to know how to use this VI on a seperate computer that does not have LabVIEW installed. I have used Application Builder to build the exe file but it cannot find the DAQmx files. I have copied the VI library into the same folder as the .exe file and this has not helped either.
Any advice greatly appreciated
Solved! Go to Solution.
07-04-2017 02:56 PM
Your picture does not tell too much.
Build an installer along with your exe. You can do this with Application builder. The installer should automatically include all of the libraries, eg, DAQmx, Runtime engine, etc, needed to run your exe. When you run the installer on your other computer all the libraries should be installed and your exe should run.
Cheers,
mcduff
07-05-2017 06:50 AM
Hi McDuff
Thanks, the computer I am trying it on already had run time and MAX installed which is the only parts the 'Install' seems to include or does it somehow include the VI libraries as well?
Thanks
07-05-2017 07:11 AM
Hi Cran,
the AppBuilder should include all needed drivers - atleast in more recent LabVIEW versions. Which version do you use?
If it doesn't you can always select the drivers manually in the BuildSpec: you will need the DAQmx drivers!
On your screenshot: you surely want to program some (atleast basic) error handling!?
07-05-2017 07:16 AM
Hi GerdW
I am using Labview 2014.
I have tried building an installer with the additional installers 'Labview Runtime 2014' and 'Ni Measurement and Automation Explorer 16.1' however I am getting an error that the program can't find the NI MAX file. I have tried locating the file myself but cannot find it. I have tried downloading it again with no success.
Both of the above were installed manually on the computer I am trying to use the exe on and it still didn't work so I'm not sure if this 'installer' is going to change anything.
Any ideas?
Thanks
07-05-2017 07:33 AM
Hi Cran,
when I create an installer for a VI, which uses DAQmx functions, then LV2017 includes "LV Runtime" and "DAQmx Runtime" as additional installers…
(MAX is just a configuration tool for several drivers/devices, but it's not the driver itself.)
07-05-2017 07:39 AM
Hi Gerd
Sorry, so what are you suggesting is the solution? I can add 'NI-DAQmx Runtime 16.1' to my Installer but i get the same issue in that it cannot find the file location.
I have downloaded the NI-DaqMX driver which automatically installs MAX also on the new computer.
Thanks
07-05-2017 07:48 AM - edited 07-05-2017 07:49 AM
That's all needed. The important thing is to install DAQ-mx drivers on the target PC, either included into the program installer or with a separate installation.
07-05-2017 07:54 AM - edited 07-05-2017 07:55 AM
Hi Cran,
I can add 'NI-DAQmx Runtime 16.1' to my Installer but i get the same issue in that it cannot find the file location.
This problem can occur, when the LabVIEW AppBuilder tries to find the install packages needed for the installer: it searches in the location they were, when LabVIEW was installed on your development computer. If you fiddled with those packages later on you're doomed 😄
(You may solve this problem by a complete re-install of your LabVIEW installation…)
As has been said: you can also install that DAQmx runtime on the production computer "manually"!
07-06-2017 04:43 AM
Thanks Paulo, I have done that and now only one of the sub VIs is 'missing', the 'DAQmx Create Channel'. This seems odd that it can find the others but not this one?