User`s manual

Visual C/C++
Language
Programs Using
Agilent SICL
These example programs are written in the Visual C/C++ language for the
Agilent 82340/82341 GPIB Interface Cards using the Agilent Standard
Instrument Control Library (SICL).
The following identifies the system on which the programs are written,
shows how to compile the programs, and gives a typical example program.
System Configuration The Visual C/C++ programs were developed on the following system:
Controller: HP Vectra PC
GPIB Interface Card: Agilent 82341 GPIB Interface with
Agilent SICL
Required Libraries: See “What’s Needed to Compile the
Programs” below
Mainframe: Agilent 75000 Series C
Slot 0/Resource Manager: Agilent E1406A Command Module
Agilent E1445A Logical
Address:
80
Instrument Language: SCPI
What’s Needed to
Compile the Programs
You need the following libraries and header files. These are supplied with
Agilent SICL.
msapp16.lib - for Microsoft® Visual C and C++
bcapp16.lib - Borland C and C++
sicl16.lib
sicl.h
Note The programs must be compiled in the Large Memory Model
How to Run a Program To run a program, first compile and link the program to make an executable
file using the Large memory model. You can compile from the command
line or the Windows interface. The two methods are:
From the Command Line
Make sure the program to be compiled and the appropriate libraries are in a
project file. Do this in the C/C++ environment. Then do the following:
40 Getting Started Chapter 1