Agilent Technologies

Verification and Example Programs for the E1300/E1301

VERIFICATION AND EXAMPLE PROGRAMS FOR THE HP E1300/E1301 MAINFRAME

This disk contains the verification and example programs for the 
HP E1300/E1301 Mainframe, HP E1326, and a typical Switchbox.

======================
I. EXECUTABLE PROGRAMS
======================
The following lists all program that can be executed as is, without 
compiling, linking, etc. It includes program names and description, and
location on the VERIFICATIOn and EXAMPLE PROGRAMS DISK (i.e., this disk).

----------------
A. Program Names
----------------
The following lists the executable programs, the program language, the 
directory on the disk in which the programs are located, and the hardware 
requirements.

Program Names Program Language Directory Hardware
------------- ---------------- --------- --------
VERF_CC.EXE C/C++ C HP 82335 HP-IB Card, PC computer
VERF_QBC.EXE Quick BASIC QB HP 82335 HP-IB Card, PC computer
VERF_QBT.EXE Quick BASIC QB Serial I/O (RS-232) Port, 
PC computer
VERF_VBS.EXE Visual BASIC VB HP 82335/82340/82341 HP-IB Card,
PC computer with Windows(TM)
VERF_VCS.EXE Visual C/C++ VC HP 82335/82340/82341 HP-IB Card,
PC computer with Windows(TM)
VERF_RMB HP BASIC/IBASIC RMB Series 200/300 Computer (HP-IB 
port), IBASIC of HP VXI 
Mainframes/Command Modules

SCAN_CC.EXE C/C++ C HP 82335 HP-IB Card, PC computer
SCAN_QBC.EXE Quick BASIC QB HP 82335 HP-IB Card, PC computer
SCAN_VBS.EXE Visual BASIC VB HP 82335/82340/82341 HP-IB Card,
PC computer with Windows(TM)
SCAN_VCS.EXE Visual C/C++ VC HP 82335/82340/82341 HP-IB Card
PC computer with Windows(TM)
SCAN_RMB HP BASIC/IBASIC RMB Series 200/300 Computer (HP-IB 
port), IBASIC of VXI 
Mainframes/Command Modules

SW_CC.EXE C/C++ C HP 82335 HP-IB Card, PC computer
SW_QBC.EXE Quick BASIC QB HP 82335 HP-IB Card, PC computer
SW_VBS.EXE Visual BASIC VB HP 82335/82340/82341 HP-IB Card,
PC computer with Windows(TM)
SW_VCS.EXE Visual C/C++ VC HP 82335/82340/82341 HP-IB Card,
PC computer with Windows(TM)
SW_RMB HP BASIC/IBASIC RMB Series 200/300 Computer (HP-IB 
port), IBASIC of VXI 
Mainframes/Command Modules

RN13_CC.EXE C/C++ C HP 82335 HP-IB Card, PC computer
RN13_QBC.EXE Quick BASIC QB HP 82335 HP-IB Card, PC computer
RN13_VBS.EXE Visual BASIC VB HP 82335/82340/82341 HP-IB Card,
PC computer with Windows(TM)
RN13_VCS.EXE Visual C/C++ VC HP 82335/82340/82341 HP-IB Card,
PC computer with Windows(TM)
RN13_RMB HP BASIC/IBASIC RMB Series 200/300 Computer (HP-IB 
port), IBASIC of VXI 
Mainframes/Command Modules


-----------------------
B. Program Descriptions
-----------------------
The following gives a short description of the programs. Note that only the 
first 2 or 4 letters of the program titles are shown (the last 2 or 3 letters 
indicate the program language).

VERF_XXX
This program:

1) Determines the mainframe/command module HP-IB address and checks
if there is communication.

2) Uses the "VXI:CONFigure:DeviceLIST?" command to check for any
errors and warnings generated by the mainframe/plug-in modules.

3) Uses the SYSTem:ERRor? query to determine if any system errors
exist.

4) Reads and, if needed, sets the system time.

5) Reads and, if needed, sets the system date.

6) Determines and prints out the identifications of all instruments
installed in the mainframe.

SCAN_XXX
This program:

1) Uses the B-Size Scanning Voltmeter configuration to make DC
voltage measurements.

2) The configuration uses an HP E1326B Multimeter for the
measurements and a single HP E1345A Relay Multiplexer Module.

3) The command used is "MEASure:VOLTage:DC? (@100:115)" which
measures the voltage on all channels of the first multiplexer
module.

4) To measure all channels of a second multiplexer module, change
the channel list to "(@200:215)".

5) To measure all channels of both multiplexer modules, change the
channel list to "(@100:215)".

SW_XXX
This program:

1) Uses the B-Size Switchbox configuration to make DC voltage
measurements using two HP E1345A Relay Multiplexer Module to scan
the channels.

2) The command used to setup the Switchbox for scanning is
[ROUTe:]SCAN (@100:115).

3) An externally connected HP E1326B Multimeter is used to make the
measurements; use the appropriate manual if using a different
multimeter or voltmeter.

RN13_XXX
Use this program to run the HP 1326 Multimeter and to check for
for correct multimeter and mainframe/command module operation. If a
timeout is noted, this program terminates instrument activity and 
then checks for errors in both the multimeter and mainframe/command 
module. If any erros are noted, the program then checks the status of 
the instrument that caused the errors.


===============
II. SOURCE CODE
===============

The following lists the names of the program source codes, directories on the
disk, program languages, compilers needed, libraries and header files needed, 
and hardware requirements.

-----------------------------------------------
A. VERF_CC.C, SCAN_CC.C, SW_CC.C, and RN13_CC.C
-----------------------------------------------
Language: C/C++ 
Directory: C
Library: CLHPIB.LIB - Microsoft(R) C/C++ or QuickC only 
TCHHPIB.LIB - Borland C/C++ only
Header File: CFUNC.H - only needed if using the Small Memory model
Hardware: HP 82335 HP-IB Card and PC Computer

Note: The CLHPIB.LIB, TCHHPIB.LIB, and CFUNC.H files are included with the 
HP HP-IB Command Library

---------------------------------------------------
B. VERF_VCS.C, SCAN_VCS.C, SW_VCS.C, and RN13_VCS.C
---------------------------------------------------
Language: Visual C/C++ 
Directory: VC
Library: SICL16.LIB 
MSAPP16.LIB - Microsoft(R) Visual C/C++ only
BCAPP16.LIB - Borland C/C++ only
Header File: SICL.H 
Hardware: HP 82335/82340/82341 HP-IB Card and PC Computer

Note: The SICL16.LIB, MSAPP16.LIB, BCAPP16.LIB, and SICL.H files are included 
with the HP Standard Instrument Control Library (SICL)

-----------------------------------------------------------
C. VERF_QBC.BAS, SCAN_QBC.BAS, SW_QBC.BAS, and RN13_QBC.BAS
-----------------------------------------------------------
Language: Microsoft(R) Quick BASIC 
Directory: QB
Library: QBHPIB.QLB - if compiling using the Quick BASIC Environment
QBHPIB.LIB - if compiling from the command line
Inlude File: QBSETUP.BAS
Hardware: HP 82335 HP-IB Card and PC Computer

Note: The QBHPIB.QLB, QBHPIB.LIB, and QBSETUP.BAS files are included with the 
HP HP-IB Command Library

---------------------------------------------------
D. VERF_VBS.C, SCAN_VBS.C, SW_VBS.C, and RN13_VBS.C
---------------------------------------------------
Language: Visual BASIC 
Directory: VB
SICL File: SICL.BAS
Hardware: HP 82335/82340/82341 HP-IB Card and PC Computer

Note: The SICL.BAS file is included with the HP Standard Instrument Control 
Library (SICL)

-------------------------------------------
E. VERF_RMB, SCAN_RMB, SW_RMB, and RN13_RMB
-------------------------------------------
These programs are written in HP BASIC/IBASIC. They are in the RMB directory.
These programs can run on an HP Series 200/300 with an HP-IB port. To run 
the programs in IBASIC, change the HP-IB Select Code from 7 to 8. 

---------------
F. VERF_QBT.BAS
---------------
This is a Microsoft(R) Quick BASIC program using the RS-232 (Serial I/O) port. 
The program is in the QB directory.


© Agilent 2000-2006