Chapter 3 Programming Your Counter for Remote Operation
Elements of SCPI Commands
3-16
Programming Guide
3
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>
<Boolean>
<literal>
<NRf>
<string>
Accepts all commonly used decimal representation of numbers including optional signs,
decimal points, and scientific notation:
123, 123e2, -123,
−
1.23e2, .123, 1.23e
−
2, 1.23000E
−
01.
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.
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.
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).
Flexible numeric representation.
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.
<non-decimal
numeric>
<arbitrary
block>
The following HP BASIC statement sends a command containing a <string> parameter:
OUTPUT 703;"FUNC ‘FREQ’"
Format for specifying hexadecimal (#H1F), octal (#Q1077), and binary (#B10101011) numbers
using ASCII characters. May be used in :STATus subsystem commands.
The syntax is a pound sign (#) followed by a non-zero digit representing the number of digits in
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.
<new line>
<8 bytes of data>
2
# 08
^EOI
Terminator
Actual data
Number of digits
that follow
Number of bytes
to be transmitted
Summary of Contents for 53150A Series
Page 1: ... Programming Guide HP 53150A 151A 152A Microwave Frequency Counter ...
Page 2: ......
Page 10: ...Contents x Programming Guide ...
Page 11: ...1 Before You Start ...
Page 20: ...Chapter 1 Before You Start Related Documentation 1 10 Programming Guide 1 ...
Page 21: ...2 Command Summary A Quick Reference ...
Page 41: ...3 Programming Your Counter for Remote Operation ...
Page 101: ...4 Command Reference A Dictionary ...
Page 162: ...Chapter 4 Command Reference Common Commands 4 62 Programming Guide 4 ...
Page 163: ...5 Errors ...
Page 174: ...Chapter 5 Errors Error Types 5 12 Programming Guide 5 ...
Page 184: ......
Page 186: ... Manual Part Number 53150 90002 Printed in U S A NOVEMBER 1997 ...