Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

calling dll driver in labview exe

Solved!
Go to solution

I have an instrument driver in LabVIEW.  The driver functions always call a DLL in instr.lib through the call library function.  When I compile an exe that uses the driver functions, where should I put that DLL?  Would it be ok to compile the DLL into the exe?  If it is ok, how does that work, since the driver will look for the DLL in instr.lib?  Thanks!

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 1 of 4
(3,575 Views)
I have no idea what you mean by compiling the DLL into the exe. A DLL is already compiled.

The DLL should get placed in the data folder just like any other DLL that is used (i.e. lvanyls.dll).
0 Kudos
Message 2 of 4
(3,565 Views)

What I meant by compling the DLL into an EXE is choosing the exe as the distination of the DLL when generating the EXE.  When the driver VIs are in development mode, the call libray function reference the instr.lib folder for the DLL.  If the DLL's destination is the EXE or the data folder after the exe is generated, would the exe be able to find the DLL?  Thanks!

------------------------------------------------------------------

Kudos and Accepted as Solution are welcome!
0 Kudos
Message 3 of 4
(3,563 Views)
Solution
Accepted by topic author jyang72211
You can't choose the exe as the destination of the DLL. Yes, the DLL will be found in the data folder.
Message 4 of 4
(3,558 Views)