LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

run exe constructed in labview 6i without loaded nidaq drivers.

Exe is constructed using labview 6i. It would be convenient to install the exe and run time engine on the HDD,
and execute as a demonstration program, without loading the nidaq drivers.
No daq card in pc, nidaq would be on CD. Suggestions are appreciated.
0 Kudos
Message 1 of 3
(2,530 Views)
What do you mean with "without loading the nidaq drivers"?

If you do not have any NI-DAQ VIs build into the exe you do not need to install anything. You can copy the files and folders from the C:\Program Files\National Instruments\shared\LabVIEW Run-Time\6.0 folder in the same folder where your exe is. You can start your exe from CD without the need to copy it to the HDD.

If you have any NI-DAQ VIs build into the exe but will not use it when running the program I'm not sure if it is succesfull to copy the NI-DAQ DLLs from system32 folder to the same folder where your exe is. Maybe you get some initialising error dialogs for each NI-DAQ VI loaded. I have never tried this so I have no experience with it.

If you have the NI-DAQ VIs is an own hirarchy which you load through VI-Server than you can load a stub if you are in demo mode.
Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
Message 2 of 3
(2,520 Views)
If you want to run an exe without loading DAQ drivers, you will need to ensure that no DAQ calls are statically linked in the final executable. As waldemar.hersacher mentioned, you can do this by using VI server for all your DAQ calls, then calling stub routines if you are using the laptop for demo purposes. It would probably be easiest to put all your DAQ calls into a few subVIs and call those dynamically instead of each individual DAQ VI call. If you miss one, your launch will fail when DAQ is not present (you will get the standard LabVIEW searching for subVIs dialog and then a message telling you that you need the full version of LabVIEW to correct the problem).

There are lots of ways to switch between the "demo" mode and the "live" mode. A dialog which pops up on startup and is accessible from the menus is the most obvious.

Good luck. If you need more hints, let us know.
Message 3 of 3
(2,501 Views)