Agilent Technologies 665xA Examples, controlled GPIB interfaces, Listening Formats, Class, Suffix

Models: 668xA 669xA 667xA 664xA 665xA

1 70
Download 70 pages 51.66 Kb
Page 15
Image 15
Listening Formats

 

Listening Formats

<NRf>

Extended format that includes <NR1>, <NR2> and <NR3>. Examples: 273 273.

 

2.73E2

<NRf+>

Expanded decimal format that includes <NRf>, MIN and MAX. Examples: 273

 

273. 2.73E2 MAX. MIN and MAX are the minimum and maximum limit values

 

that are implicit in the range specification for the parameter.

 

 

Table 2-2. Suffixes and Multipliers

Class

Suffix

Unit

Unit with Multiplier

Current

A

Ampere

MA (milliampere)

Amplitude

V

Volt

MV (millivolt)

Time

S

second

MS (millisecond)

 

 

Common Multipliers

 

lE3

K

kilo

 

1E-3

M

milli

 

1E-6

U

micro

Boolean Data

Either form {10} or {ONOFF} may be sent with commands. Queries always return 1 or 0.

OUTPut OFF

CURRent:PROTection 1

Character Data

For query statements, character strings may be returned in either of the forms shown in Table 2-3, depending on the length of the returned string.

 

Table 2-3. Character Data Formats

<CRD>

Character Response Data. Permits the return of character strings.

<AARD>

Arbitrary ASCII Response Data. Permits the return of undelimited 7-bit ASCII. This data type has

 

an implied message terminator.

Note:

The IEEE 488.2 format for a string parameter requires that the string be enclosed within either single

 

(' ') or double (" ") quotes. Be certain that your program statements comply with this requirement.

 

 

Examples

The examples given here are generic, without regard to the programming language or type of GPIB interface. Because SCPI commands are sent as ASCII output strings within the programming language statements, the SCPI syntax is independent of both programming language and interface.

Note

The examples are followed by sample program code written for three popular types of BASIC-

 

controlled GPIB interfaces.

 

 

Remote Programming 15

Page 15
Image 15
Agilent Technologies 665xA Examples, controlled GPIB interfaces, Listening Formats, 2. Suffixes and Multipliers, Class