EasyManua.ls Logo

Solartron 1250 - Example of Controller Program for Copying the File to the GPIB Without Handshake; Example of Controller Program for Copying the File to the GPIB with Handshake; GPIB Plotting

Default Icon
195 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...
1250 Frequency Response Analyzer The RS423 and GPIB Ports. Remote Control
AMK/1250/4 13-31
13.15.3 EXAMPLE OF CONTROLLER PROGRAM FOR COPYING THE FILE
TO THE GPIB, WITHOUT HANDSHAKE
Instruction Meaning
DIM A$ (99) Allocate temporary store space
OUTPUT "?FP0" Query number of lines in File
INPUT N N = number of lines in Learnt Program 1
OUTPUT ”OP2,1" Output all readings to GPIB
OUTPUT “FO” List File
FOR I = 1 to N
INPUT A$ (I) Store all readings from File until I = N
NEXT I
13.15.4 EXAMPLE OF CONTROLLER PROGRAM FOR COPYING THE FILE
TO THE GPIB, WITH HANDSHAKE
Instruction Meaning
DIM A$ (99) Allocate temporary store space
OUTPUT "?FP0" Query number of lines in File
INPUT N N = number of lines in Learnt Program 1
OUTPUT ”OP2,1" Output all readings to GPIB
OUTPUT “FD0” Output first reading from File
INPUT A$ (I) Store the first reading, in the sequence:
Measurement frequency, Data 1 (e.g. r), Data 2 (e.g. θ),
and Error Code
FOR I = 2 to N Keep sending FD2 (Step Down File) to the 1250 and store each
OUTPUT “FD2” reading until I = N.
INPUT A$ (I) Note the "handshake" effect of putting FD2 inside the loop,
NEXT I compared with the previous example where FO is outside the
loop.
13.16 GPIB PLOTTING
The 1250 can drive a GPIB plotter via the standard GPIB without additional modules
being required. When operating in this mode, ensure that the GPIB section of the DATA
OUTPUT key is switched off, so that only plotter commands are passed to the GPIB.
The default state of the GPIB DATA OUTPUT control is "off”.
The GPIB plotter section of the 1250 is compatible only with plotters using Hewlett
Packard Graphics Language (HPGL), or Enertec Schlumberger Graphics Language
(ESGL). The 1250 plotter commands must be formatted with commas as Separators
and crlf as Terminator, as explained in Section 12.6.
If the GPIB plotter can be put into Listen Only mode, it can be driven directly from the
1250 without requiring a Controller. However, if the plotter has no Listen Only mode, a
Controller is necessary to instruct the plotter to "listen" to the 1250. When directly
driving a plotter possessing Listen Only facility, the 1250 must have the switch on its
rear panel set to TALK ONLY.
Serial Poll can be used to indicate completion of plotting, as described in Section
13.13.1. In this case, the STATUS BYTE should be configured so that bit 8 is set at End
of Plot.

Table of Contents

Related product manuals