Examples - HP 1652B Programming Reference Manual

Logic
Hide thumbs Also See for HP 1652B:
Table of Contents

Advertisement

Examples

Example 1
Example 2
Example 3
HP 16!528/1653B
Programming Reference
The following examples are written using HP BASIC 4.0 on a HP !%OO
Series 2W300 Controller. The quoted string is placed on the bus,
followed by a carriage return and linefeed (CRLF).
The three Xs (XXX) shown in this manual after an ENTER or OUTPUT
statement represents the device address required by your controller.
OUTPUT XXXf:SYSTEM:HEADER
In example 1, the colon between SYSTEM and HEADER is necessary
since SYSTEM:HEADER
between the HEADER command and the LONGFORM command is the
required < program message unit separator > . The LONGFORM
command does not need SYSTEM preceding it, since the
SYSTEM:HEADER command sets the parser to the SYSTEM node in
the tree.
OUTPUT XXX;":MMEMOFlY:INITlALlZE;STORE
or
OUTPUT XXX;":MMEMORY:INITlALlZE"
OUTPUT XXX;":MMEMORY:STORE
In the frrst line of example 2, the "subsystem selector" is implied for the
STORE command in the compound command. The STORE command
must be in the same program message as the INITIALIZE command,
since the -z program message terminator > will place the parser back at
the root of the command tree.
A second way to send these commands is by placing "MMEMORY:"
before the STORE command as shown in the fourth line of example 2.
OUTPUT ~":MMEM:CATALOG?;:SYSTEM:PRlNT
In example 3, the leading colon before SYSTEM tells the parser to go
back to the root of the command tree. The parser can then see the
SYSTEM:PRINT command.
Programming and Documentation Conventions
is a compound command. The semicolon
4-5

Advertisement

Table of Contents
loading

This manual is also suitable for:

Hp 1653b

Table of Contents