LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

dll

Hey , i tried to find a dll that connect a software of "Analog Devices" to CVI. I have the commponent LTC6946 and i want to control it from CVI with the dll and NOT from the software that comes with it. 
Can someone pls help?

0 Kudos
Message 1 of 2
(1,033 Views)

If you have the DLL and according header and the correct import library for your DLL you simply include the header in the file you want to use the functions from, link the import library with your CVI project and make sure the DLL is located in a folder where Windows can find it. 

 

There are of course some minor possible gotchas with this.

 

- The header file may use syntax that isn't fully compatible with LabWindows/CVI so you will need to have some C programming knowledge to resolve such issues by modifying the header file if needed.

 

- The import library must be compatible with LabWindows/CVI. This means the bitness must be the same as what your LabWindows/CVI project is and it must be in the Microsoft Visual C COFF library format. Nowadays that is usually always the case but some fringe compilers out there prefer to create OMF libraries (Borland aka. Symantec) and GCC is a whole story of its own.

 

- Placing the DLL in the right location can be a challenge. Generally it is easiest to put it in the same directory where your executable is going to be located.

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 2 of 2
(992 Views)