This is the GPIB language interface for Microsoft C (version 5.1 and higher) and Microsoft Visual C/C++ (version 1.x), DOS programming environments for creating 16-bit applications. Download the Msc.zip file (in the example.zip file, below). This file contains the declaration file DECL.H, the language interface file MCIB.LIB, and some sample programs.
How to Use the 16-bit Microsoft C/C++ Language Interface:
I. Overview
The 16-bit GPIB language interface for Microsoft C/C++ contains the following files:
DECL.H: C/C++ include file
MCIB.LIB: C/C++ language interface module
If you have the GPIB Software for DOS installed, the Microsoft C/C++ language interface and the sample applications are located in the directory called
II. Items to Include in Your GPIB Application
You must include the following line at the beginning of your application:
include "decl.h"
Next you need to include the MCIB.LIB file in your application's project file along with your application.
[ Note: The required key strokes and menu bar selections needed in order to add a file to a project can vary with different versions of that particular compiler. For information about how to add files, please refer to the manuals and online help that came with your version of the compiler. ]
III. Compiling, Linking, and Running from the DOS Command Line
From the DOS command line, type in the following in order to compile and link an application, called yourprog, with the C/C++ language interface, MCIB.LIB:
cl yourprog.c mcib.lib
To run the newly created executable, type in the name of your application on the DOS command line, like so:
yourprog
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.