HP 8340B Operating Instructions Manual page 59

Synthesized sweepers
Hide thumbs Also See for 8340B:
Table of Contents

Advertisement

Enter
Enter is the complement to OUTPUT, and is used to transfer data from the addressed instrument to
the controller. The syntax is
ENTER is always used in conjunction with OUTPUT, such as:
100
OUTPUT 719 ; "... programming codes . . . "
110
ENTER719; "... complementary codes . . . "
ENTER statements are commonly formatted, which requires the secondary command USING and the
appropriate image items. The most-used image items involve end-of-line (EOL) suppression, binary
inputs, and literal inputs. For example,
100
ENTER 719 USING "#, B" A, B, C
suppresses the EOL sequence (#), and indicates that variables A, B, and C are to be filled with binary
(B) data. As another example,
100
ENTER 719 USING "#, 123A"; A$
suppresses EOL, and indicates that string variable A$ is to be filled with 123 bytes of literal data
(123A). (Note: Be careful when using byte-counting image specifiers, because if the requested
number of bytes does not match the actual number available data might be lost, or the program might
enter an endless wait state.)
The suppression of the EOL sequence is frequently necessary to prevent a premature termination of
the data input. When not specified, the typical EOL termination occurs when an ASCII LF (line feed) is
received. However, the LF bit pattern could coincidentally occur randomly in a long string of binary
data, where it might cause a false termination. Also, the bit patterns for the ASCII OR (carriage return),
comma, or semicolon might cause a false termination. Suppression of the EOL causes the computer
to accept all bit patterns as data, not commands, and relies on the HP-IB EOI (end or identify) line for
correct end-of-data termination.
The various programming codes that are associated with the ENTER statement are listed in Tables
3-1 and 3-2, and are explained in the Programming Codes subsection.
Related statements used by some computers:
CONVERT
IMAGE
IOBUFFER
ON TIMEOUT
SET TIMEOUT
TRANSFER
This completes the HP-IB Command Statements subsection. The following material explains the HP
8340B/41B programming codes, and shows how they are used with the OUTPUT and ENTER HP-IB
command statements.
3-58
Operating Information
HP 8340B/41B

Advertisement

Table of Contents
loading

This manual is also suitable for:

8341b

Table of Contents