Agilent Technologies 54600 Series Programmer's Manual page 58

Table of Contents

Advertisement

Examples
The OUTPUT statements in the examples are written using Agilent BASIC
5.0. The quoted string is placed on the bus, followed by a carriage return and
linefeed (CRLF).
Example 1
OUTPUT 707;":CHANNEL1:RANGE 0.5 ;OFFSET 0"
The colon between CHANNEL1 and RANGE is necessary because
CHANNEL1:RANGE is a compound command. The semicolon between the
RANGE command and the OFFSET command is the required program
message unit separator. The OFFSET command does not need CHANNEL1
preceding it, since the CHANNEL1:RANGE command sets the parser to the
CHANNEL1 node in the tree.
Example 2
OUTPUT 707;":TIMEBASE:REFERENCE CENTER ; DELAY 0.00001"
or
OUTPUT 707;":TIMEBASE:REFERENCE CENTER"
OUTPUT 707;":TIMEBASE:DELAY 0.00001"
In the first line of example 2, the "subsystem selector" is implied for the
DELAY command in the compound command. The DELAY command must be
in the same program message as the REFERENCE command, since the
program message terminator places the parser back at the root of the
command tree.
A second way to send these commands is by placing TIMEBASE: before the
DELAY command as shown in the second part of example 2.
Example 3:
OUTPUT 707;":TIMEBASE:REFERENCE CENTER ; :CHANNEL1:OFFSET '0'"
The leading colon before CHANNEL1 tells the parser to go back to the root of
the command tree. The parser can then see the CHANNEL1:OFFSET
command.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Programming and Documentation Conventions
The Command Tree
5–9

Advertisement

Table of Contents
loading

This manual is also suitable for:

546005460154602546105461654615 ... Show all

Table of Contents