![Agilent Technologies 8712ES Скачать руководство пользователя страница 73](http://html.mh-extra.com/html/agilent-technologies/8712es/8712es_programmers-manual_2867956073.webp)
Programmer’s Guide
6-3
Trace Data Transfers
Querying the Measurement Trace Using BASIC
Querying the Measurement Trace Using
BASIC
After making a measurement, you can read the resultant measurement
trace out of the analyzer using the SCPI query:
"TRACE:DATA?
CH1FDATA"
The BASIC program segment below shows how to read the trace from
the analyzer into an array in your program.
10
REAL Trace(1:201)
20
ASSIGN @Hp8711 TO 716
30
! Take sweep here
40
OUTPUT @Hp8711;"FORM:DATA ASCII,5"
50
OUTPUT @Hp8711;"TRACE:DATA? CH1FDATA"
60
ENTER @Hp8711;Trace(*)
70
DISP Trace(1),Trace(2),Trace(3),". . . ."
In this program, the
TRACE:DATA?
query returns all of the
measurement points as a single block. The analyzer computes the value
for each point using the measurement format selected by the [FORMAT]
menu (
CALC:FORM SCPI
command), and returns a block of data called
the formatted data array. The values of each point correspond to the
values displayed on the screen, or those shown in the marker readouts.
The frequency stimulus value (X-axis) of each point is not returned by
the
TRACE:DATA?
query; only the measurement response (Y-axis) values
are returned.
When transferring the block of trace data, you may select either binary
or ASCII data encoding. This is explained in
. Notice that the terms "encoding format" and
"measurement format" are not the same. The encoding format
determines how the numbers are represented as bytes, while the
measurement format corresponds to the meaning of the value of the
numbers.
The easiest way to transfer a measurement data trace is to use ASCII
data encoding.
Содержание 8712ES
Страница 11: ...1 1 1 Introduction to GPIB Programming ...
Страница 27: ...2 1 2 Synchronizing the Analyzer and a Controller ...
Страница 36: ...3 1 3 Passing Control ...
Страница 39: ...4 1 4 Data Types and Encoding ...
Страница 46: ...5 1 5 Using Status Registers ...
Страница 71: ...6 1 6 Trace Data Transfers ...
Страница 98: ...6 28 Programmer sGuide Trace Data Transfers Internal Measurement Arrays ...
Страница 99: ...7 1 7 Using Graphics ...
Страница 105: ...8 1 8 Front Panel Keycodes ...
Страница 111: ...9 1 9 Introduction to SCPI ...
Страница 129: ...10 1 10 Menu Map with SCPI Commands ...
Страница 268: ...12 1 12 SCPI Conformance Information ...
Страница 290: ...13 1 13 SCPI Error Messages ...