HP 53150A Series Programming Manual page 56

Microwave frequency counter
Table of Contents

Advertisement

Chapter 3 Programming Your Counter for Remote Operation
Elements of SCPI Commands
Parameter Types
Table 3-1 contains explanations and examples of parameter types.
Parameter types may be numeric value, Boolean, literal, NRf, string, non-
decimal numeric, or arbitrary block.
Table 3-1. Command and Query Parameter Types
TYPE
EXPLANATIONS AND EXAMPLES
<numeric value>
Accepts all commonly used decimal representation of numbers including optional signs,
decimal points, and scientific notation:
123, 123e2, -123,
Special cases include MINimum and MAXimum as follows: MINimum selects minimum value
available, and MAXimum selects maximum value available.
Queries using MINimum or MAXimum return the associated numeric value.
<Boolean>
Represents a single binary condition that is either true or false:
1 or ON, 0 or OFF (Query response returns only 1 or 0.)
An <NRf> is rounded to an integer. A non-zero value is interpreted as 1.
<literal>
Selects from a finite number of choices. These parameters use mnemonics to represent each
valid setting. An example is the INPut:COUPling AC | DC command parameters (AC | DC).
<NRf>
Flexible numeric representation.
<string>
A string parameter is delimited by either single quotes or double quotes. Within the quotes, any
characters in the ASCII 7-bit code may be specified.
The following HP BASIC statement sends a command containing a <string> parameter:
OUTPUT 703;"FUNC 'FREQ'"
<non-decimal
Format for specifying hexadecimal (#H1F), octal (#Q1077), and binary (#B10101011) numbers
numeric>
using ASCII characters. May be used in :STATus subsystem commands.
<arbitrary
The syntax is a pound sign (#) followed by a non-zero digit representing the number of digits in
block>
the subsequent decimal integer. The decimal integer specifies the number of 8-bit data bytes
being sent. This is followed by the actual data. The terminator is a line feed asserted with EOI.
For example, for transmitting 8 bytes of data, the format could be:
The "2" indicates the number of digits that follow and the two digits "08" indicate the number of data
bytes to be transmitted; a zero-length block has the format: #0<new line>^EOI; <new line> is defined
as a single ASCII-encoded byte corresponding to 10 decimal.
3-16
1.23e2, .123, 1.23e
2, 1.23000E
Number of digits
that follow
Actual data
# 08
2
<8 bytes of data>
Number of bytes
to be transmitted
01.
Terminator
<new line>
^EOI
Programming Guide

Advertisement

Table of Contents
loading

This manual is also suitable for:

53152a series53151a series

Table of Contents