LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I need to generate a DLL file for making an instrument driver for HP 8165A signal generator

Hi,

I went through the insructions for creating a DLL file and found that I need a visual C++ compiler for this purpose. But I don't have that either. So I would appreciate if you could provide me with a .dll file for making an instrument driver in labview from the .c and .h files available from the NI website. I will be running the labview on mac OS 9.2. If it is not possible to create it for a mac, could you do it for windows XP? Thanks for your time. I greatly appreciate your help.

Prasanna
0 Kudos
Message 1 of 2
(2,634 Views)

Hi Prasana,

Here is the dll compile in CVI. You should be able to use the file import the driver.

The best thing would be for you to be able to compile the driver in case you want to modify something. You will also need to install the CVI run-time engine:
CVI Run-time Engine

With a little work you could compile the driver with MSVC++. You just need to replace some functions. At a glance, this are some of the functions that need to be changed.

The first thing would be to use the NI-488.2 driver interface for MSVC++. You would only need to replace the header file with the ni488.h file. It would be a good idea to replace the OpenDev a
nd CloseDev functions with the ibdev and ibonl functions. Make sure you include the object file in your project settings.

The other function, which might require more work is the Fmt function. This is a CVI specific function to perform string formatting. You could replace with one of the standard library C functions, such as sprintf, to do the formating. Or you could redefine the Fmt using these standard functions.

Hope this helps.

DiegoF
National Instruments.

0 Kudos
Message 2 of 2
(2,634 Views)