Set relative – Measurement Computing Analyzer488 User Manual

Page 164

Advertising
background image

Section 4

Serial Controller

4.70

SET RELATIVE

The SET RELATIVE command is used to specify the reference pointer

(location 00000) of the record memory to be used in the Relative Addressing Format
(see RELATIVE ON). The record memory reference pointer must be a number from 0
to 32767 when using absolute addressing and from -32767 to +32767 when using
relative addressing.

The query option, SET RELATIVE?, returns the current reference pointer.

TYPE

Record command

SYNTAX

SET RELATIVE{[?]|[location]}
location

is a memory address of the record memory

RESPONSE

None

MODE

Any

BUS STATES

None

QUERY

The string SET RELATIVE

nnnnn

RESPONSE

nnnnn is a five digit decimal number, from -32767 to +32767.

EXAMPLES

PRINT#1,"ERASE"
PRINT#1,"RELATIVE OFF"
PRINT#1,"CONTROLLER ON"
PRINT#1,"RECORD ON"
PRINT#1,"CLEAR 20"
PRINT#1,"RECORD OFF"
PRINT #1,"VIEW 2"
INPUT#1,A$;PRINT A$

Returns: 00002 0534

PRINT#1,"SET RELATIVE 2"
PRINT#1,"RELATIVE ON"
PRINT#1,"VIEW 0"
INPUT#1,A$;PRINT A$

Returns: +00000 0534

PRINT#1,"SET RELATIVE 10"
PRINT#1,"VIEW -10"
INPUT#1,A$;PRINT A$

Returns: -00010 0534

Advertising