EasyManua.ls Logo

Solartron 1260 - Page 151

Solartron 1260
295 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
6
CONTROL
PROGRAM
EXAMPLES
To
demonstrate the
use of the
GPIB
port for
remote
control of the
instrument, several
examples are
given of GPIB Controller
programs.
Each example is
written
as a
series
of
abbreviated
commands, including
some
BASIC programming
language
instructions.
The programs are representational only and are not
necessarily suitable
for directly
programming a Controller.
6.1
LANGUAGE
USED IN PROGRAM EXAMPLES
The
examples are intended to show the required sequence of events, as they
affect the
controls
of
the
instrument. Other GPIB commands, such
as
Enable Signals and
Addressing,
are omitted. The most commonly
used
instructions are listed below,
with
a
full explanation of their meaning.
Instruction Meaning
OUTPUT
"
Send
to the
instrument the string of characters within
inverted commas, plus
a
Command Terminator.
INPUT Receive
data
from the instrument.
INPUT
A
Receive
data
from the instrument
and
store it in
Location
A.
PRINT Print
the statement:
"FREQUENCY
=”,A Frequency
=
"the
value
stored in location A”.
DIM A$
(100)
The Controller
is
instructed to allocate sufficient
temporary
store space
to accommodate
a
maximum of
100 character
strings.
A string could consist
of a
Learnt Program Command, a stored reading
from the
File etc. The store area is given the name A$.
This
is a loop
instruction telling the Controller to store
each
line of the
instrument's
output
in area A$, from
Line 1 to
the final Line N.
The loop instruction terminates when I
=
N.
FOR I
=
1 to N
INPUT A$ (I)
NEXT I
JWS/1260/2
7.19

Table of Contents

Related product manuals