08-12-2003 02:43 PM
08-13-2003
11:29 AM
- last edited on
06-17-2025
12:42 PM
by
Content Cleaner
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.