Note

CLanguage Programs

placing a semicolon ( ; ) following the quotation mark ( " ) which closes the command string:

OUTPUT 70905;"OUTP:EXT1:STAT ON;";

OUTPUT 70905;":TRIG:SOUR EXT1;";

OUTPUT 70905;":OUTP:EXT1:STAT OFF"

Since the last command is the end of the command string, the EOL terminator is not suppressed.

In the C language programs contained in this manual, there is no end-of-line terminator to suppress as the commands are executed as elements of an array.

The C language versions of the example programs (disk P/N E1429-10301) were written for the HP 82335 HP-IB Interface Card using the HP-IB Command Library for C. Unless otherwise noted, the library functions used in the programs are compatible with the ANSI C standard.

The following section identifies the system on which the programs were written, shows how to compile and link the programs, and describes the structure of an example program.

System Configuration The C programs were developed on the following system:

Controller:

HP Vectra 386/25 personal computer

 

(386 processor operated at 25 MHz)

HP-IB Interface Card:

HP 82335 HP-IB Interface with

 

Command Library

Mainframe:

HP 75000 Series C

Slot0/Resource Manager:

HP E1406 Command Module

HP E1429A/B Logical Address:

40

Instrument Language:

SCPI

30 Getting Started

Chapter 1

Page 30
Image 30
HP E1429A manual Language Programs