Programmer’s Guide
6-19
Trace Data Transfers
Performing Your Own Data Processing
The program below demonstrates how to perform data post-processing. It
takes the measurement data and reverses it, such that the low frequency
data is displayed on the right end of the trace, and the high frequency
data is displayed on the left.
100
! Display the measurement data backwards
110
REAL Fmt(1:201)
120
ASSIGN @Hp8711 TO 716
130
!
140
OUTPUT @Hp8711;"FORM:DATA ASCII"
150
OUTPUT @Hp8711;"ABOR;INIT:CONT OFF;*WAI"
160
OUTPUT @Hp8711;"DISP:WIND:TRAC1 OFF;TRAC2 ON"
170
LOOP
180
! Take sweep
190
OUTPUT @Hp8711;"INIT1;*WAI"
200
! Read the trace from the formatted data array
210
OUTPUT @Hp8711;"TRACE:DATA? CH1FDATA"
220
ENTER @Hp8711;Fmt(*)
230
! Download the trace, backwards,
235
! to the formatted memory array
240
OUTPUT @Hp8711;"TRACE:DATA CH1FMEM";
! Note the ";"
250
FOR Pt=1 TO 201
260
OUTPUT @Hp8711;",";Fmt(202-Pt);
! Note the ";"
270
NEXT Pt
280
OUTPUT @Hp8711;""
! Send linefeed
290
END LOOP
This example program uses ASCII trace data transfers. Higher speed
can be achieved using binary data transfers. If using IBASIC, high-speed
subroutines can be used for even greater performance. Refer to the
IBASIC Handbook for details.
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 ...