Programming Examples - HP E8402A User And Service Manual

Vxi c-size mainframe
Table of Contents

Advertisement

Linking
Commands

Programming Examples

Chapter 3
Linking IEEE 488.2 Common Commands with SCPI Commands. Use a
semicolon (;) between the commands. For example:
SYSTem:VERSion?
*RST;
Linking Multiple SCPI Commands. Use both a semicolon (;)and a colon (:)
between the commands. For example:
SYST:COMM:SER:BAUD 19200;:SYST:COMM:SER:BITS 8
This section contains SCPI program examples that demonstrate how to read history
data from the enhanced monitor, perform the self test, set and verify limit warnings.
The program examples are written in ANSI C language with HP VISA extensions.
To run one of these programs you must have the HP SICL Library, the HP VISA
library, an HP-IB interface module installed in an external PC, an HP E1406
Command Module, and the enhanced monitor in either the HP E8402A or E8404A
VXI mainframe.
The following program examples are developed with the ANSI C language using the
HP VISA extensions. The program was written and tested in Microsoft Visual C++
but can be compiled under any standard ANSI C compiler.
A more complete Enhanced Monitor setup example is provided on the HP Universal
Instrument Drivers CD ROM in the directories:
\examples\hpe8402
\examples\hpe8404
SYSTem:VERSion?
or
Programming the Enhanced Monitor
;*RST
®
47

Advertisement

Table of Contents
loading

This manual is also suitable for:

E8404a

Table of Contents