Chapter 3

PROGRAMMING

Introduction

An IEEE 488.2 program interface is provided. Ease of use is ensured by careful selection of mnemonics. For example, if carrier frequency and RF level are to be set to 2.54 MHz and -27.3 dBm respectively, the VXI instruction message is:

CFRQ:VALUE 2.54 MHZ<EOM>

RFLV:VALUE -27.3 DBM<EOM>

For full information on the IEEE protocols and syntax the IEEE 488.2 standard should be consulted.

Device listening elements

The following is a list of the device listening elements (as defined in the IEEE 488.2 standard) which are used in the instrument:

<PROGRAM MESSAGE>

<PROGRAM MESSAGE TERMINATOR> <PROGRAM MESSAGE UNIT> <PROGRAM MESSAGE UNIT SEPARATOR> <COMMAND MESSAGE UNIT>

<QUERY MESSAGE UNIT>

<COMPOUND COMMAND PROGRAM HEADER> <COMPOUND QUERY PROGRAM HEADER> <PROGRAM HEADER SEPARATOR> <PROGRAM DATA>

<PROGRAM DATA SEPARATOR> <DECIMAL NUMERIC PROGRAM DATA> <CHARACTER PROGRAM DATA> <SUFFIX PROGRAM DATA>

<STRING PROGRAM DATA> <ARBITRARY BLOCK PROGRAM DATA>

Device talking elements

The following is a list of the device talking elements (as defined in the IEEE 488.2 standard) which are used in the instrument:

<RESPONSE MESSAGE>

<RESPONSE MESSAGE TERMINATOR> <RESPONSE MESSAGE UNIT> <RESPONSE MESSAGE UNIT SEPARATOR> <COMPOUND RESPONSE HEADER> <RESPONSE HEADER SEPARATOR> <RESPONSE DATA>

<RESPONSE DATA SEPARATOR>

<NR1 NUMERIC RESPONSE DATA>

<NR2 NUMERIC RESPONSE DATA> <ARBITRARY ASCII RESPONSE DATA> <CHARACTER RESPONSE DATA> <STRING RESPONSE DATA>

<DEFINITE LENGTH ARBITRARY BLOCK RESPONSE DATA>

3-1

Page 31
Image 31
VXI 3002 manual Introduction, Device listening elements, Device talking elements