Programmer’s Guide
4-3
Data Types and Encoding
Data Types
Data Types
The analyzer uses a number of different data types during data
transfers. Data transfer occurs in response to a query. The data type
used is determined by the parameter being queried. Data types described
in this section are:
• Numeric Data
• Character Data
• String Data
• Expression Data
• Block Data
Numeric Data
The analyzer returns three types of numeric data in response to queries:
NR1 data
Integers (such as
+1
,
0
,
-1
,
123
,
-12345
). This is the
response type for boolean parameters as well as some
numeric parameters.
NR2 data
Floating point numbers with an explicit decimal point
(such as
12.3
,
+1.234
,
-0.12345
).
NR3 data
Floating point numbers in scientific notation (such as
+1.23E+5
,
+123.4E-3
,
-456.789E+6
).
Character Data
Character data consists of ASCII characters grouped together in
mnemonics that represent specific instrument settings (such as
MAXimum
,
MINimum
or
MLOGarithmic
). The analyzer always returns the
short form of the mnemonic in upper-case alpha characters.
Summary of Contents for 8712ES
Page 11: ...1 1 1 Introduction to GPIB Programming ...
Page 27: ...2 1 2 Synchronizing the Analyzer and a Controller ...
Page 36: ...3 1 3 Passing Control ...
Page 39: ...4 1 4 Data Types and Encoding ...
Page 46: ...5 1 5 Using Status Registers ...
Page 71: ...6 1 6 Trace Data Transfers ...
Page 98: ...6 28 Programmer sGuide Trace Data Transfers Internal Measurement Arrays ...
Page 99: ...7 1 7 Using Graphics ...
Page 105: ...8 1 8 Front Panel Keycodes ...
Page 111: ...9 1 9 Introduction to SCPI ...
Page 129: ...10 1 10 Menu Map with SCPI Commands ...
Page 268: ...12 1 12 SCPI Conformance Information ...
Page 290: ...13 1 13 SCPI Error Messages ...