Terminators; Command Format - IBM 7220 Instruction Manual

Dsp lock-in amplifier
Table of Contents

Advertisement

Chapter 6, COMPUTER OPERATION

6.3.09 Terminators

6.3.10 Command Format

6-6
parameter byte. The default (power-up) state of this bit is for it to be asserted.
The program RSCOM2.BAS in section C.2 illustrates the use of the echo handshake.
In order for communications to be successfully established between the lock-in
amplifier and the computer, it is essential that each transmission, i.e. command or
command response, is terminated in a way which is recognizable by the computer and
the lock-in amplifier as signifying the end of that transmission.
In the model 7220 there are three input termination options for GPIB
communications, selected from the front panel under the GPIB SETUP 1 menu or by
means of the GP command. The lock-in amplifier may be set to expect the <CR> byte
(ASCII 13) or the <CR,LF> sequence (ASCII 13 followed by ASCII 10) to be
appended by the controller as a terminator to the end of each command, or
alternatively instead of a terminator it may expect the EOI signal line (pin 5 on the
GPIB connector) to be asserted during the transmission of the last character of the
command. The third option is normally to be preferred with modern interface cards
which can easily be set to a wide variety of configurations.
The selected GPIB termination option applies also to the output termination of any
responses sent back by the lock-in amplifier to the controller, i.e. the lock-in amplifier
will send <CR> or <CR,LF> or no byte as appropriate. In all cases the lock-in
amplifier asserts the EOI signal line during the transmission of the last byte of a
response.
In RS232 communications, the lock-in amplifier automatically accepts either <CR>
or <CR,LF> as an input command terminator, and sends out <CR,LF> as an output
response terminator except when the noprompt bit (bit 4 in the RS232 parameter
byte) is set in which case the terminator is <CR>. The default (power-up) state of this
bit is zero.
The simple commands listed in section 6.4 have one of five forms:
CMDNAME terminator
CMDNAME n terminator
CMDNAME [n] terminator
CMDNAME [n
[n
1
CMDNAME n
[n
1
where CMDNAME is an alphanumeric string that defines the command, and n, n
are parameters separated by spaces. When n is not enclosed in square brackets it must
be supplied. [n] means that n is optional. [n
present may optionally be followed by n
equivalent. Terminator bytes are defined in section 6.3.09.
Where the command syntax includes optional parameters and the command is
]] terminator
2
] terminator
2
[n
]] means that n
1
2
. Upper-case and lower-case characters are
2
, n
1
2
is optional and if
1

Advertisement

Table of Contents
loading

Table of Contents