LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I create a DLL if the file extension is .msi?

I have a problem to create a DLL with a file that I download from your database with extension .msi the error appear like this one "checkerr IVI_INSTRUMENT_FIRMWARE_REVISION" when .c file is trying to compile. when I download an instrument driver with extension .zip it's to easy to create a DLL just with the files .c,.h,.fp but if I try to do the same with the file that I need to install always I get an error in IVI.
0 Kudos
Message 1 of 3
(3,187 Views)
I'm not sure what you have, where did you download it? A MSI file is an installer file. If you have Microsoft's installer program installed you should be able to right-click on it and select "Install".

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 3
(3,187 Views)
Which IVI driver are you trying to install? IVI drivers have never shipped in a .zip file, so you are comparing to a VXIpnp driver, not with a previous version of the same IVI driver.

The issue you're trying to solve is that you wish to build a DLL, but you can't because the installer doesn't put all of the files in the same directory. Correct?

VXIpnp drivers often require you to place the files where you want. IVI drivers will automatically place a DLL in the VXIpnp/WinXX/bin directory, a header file in the VXIpnp/WinXX/include directory, type library files in the VXIpnp/WinXX/lib directories, and the remainder of driver files (C, FP, HLP, readme) in the VXIpnp/WinXX/ directory.

If you are trying to build a DLL for the driver as-is, this is generally not necessary because IVI drivers come with DLLs. It is installed in the VXIpnp\WinXX\bin directory. If you modified the source code of the driver and wish to build a new DLL, try some of the following:

  • In LabWindows/CVI, open the FP file for the driver (usually located in VXIpnp\WinXX\\.fp). Then click on the menu item Options >> Create DLL Project. Save the project name. At the next dialog box, choose "VXIplug&play directory structure". This will look in the various VXIpnp\WinXX\ directories for related driver files.

  • Alternatively, if you already have a project, then from the project window go to Options >> Include Paths... Then add a path and put in the appropriate path for your VXIpnp\WinXX\include directory. Typically, this would be "C:\VXIpnp\WinXX\include", but you may have installed it differently on your system.

  • Rather than muck with paths or project files, add the needed header file to your project. You do this by opening the header file from VXIpnp\WinXX\include in CVI, then going to File >> Add File to Project.


If you need further assistance, you should reply to this posting, or e-mail instrument.driver@ni.com.

Thanks,
--Bankim
Message 3 of 3
(3,187 Views)