![Agilent Technologies 8719ES Programmer'S Manual Download Page 445](http://html.mh-extra.com/html/agilent-technologies/8719es/8719es_programmers-manual_2867960445.webp)
7-82
Chapter 7
Programming Examples
Analyzer System Setup Examples
• The elements from each calibration array are read in.
• The next calibration array is requested until all the arrays have been read.
• The calibration type is sent to the analyzer.
• Each calibration array is sent.
• The calibration is activated.
• The analyzer is released from remote control and the program ends.
Running the Program
Before executing the program, perform a calibration.
The program is able to detect which type of calibration is active. With that information, it
predicts how many arrays to read out. When all the arrays have been sent to the computer,
the program prompts the user. The operator then turns the calibration off or performs a
completely different calibration on the analyzer and continues the program. The computer
reloads the old calibration. The operator should not preset the analyzer because the
instrument settings must be the same as those that were present when the calibration was
taken.
NOTE
The retransmitted calibration is associated with the current instrument
state: the instrument has no way of knowing the original state associated
with the calibration data. For this reason, it is recommended that the learn
string be used to store the instrument state whenever calibration data is
stored. The next example demonstrates how to reload the analyzer state with
both the learn string and the calibration arrays.
BASIC Program Listing
10
! This program shows how to manipulate calibration data from the analyzer.
20
! It demonstrates how to read calibration data from the analyzer, and
30
! how to replace it. The type of calibration active is determined and
40
! the program reads in the correct number of arrays. The number of points
50
! in the trace, and in the cal array, is determined and used to dimension
60
! storage arrays.
70
!
80
! EXAMP5B
90
!
100 ASSIGN @Nwa TO 716
! Assign an I/O path for the analyzer
110 ASSIGN @Nwa_bin TO 716;FORMAT OFF
! Assign binary path
120 !
130 CLEAR SCREEN
140 ! Initialize the analyzer
150 ABORT 7
! Generate an IFC (Interface Clear)
160 CLEAR @Nwa
! SDC (Selected Device Clear)
170 !
180 ! Data for determining CAL type and number of arrays
190 DATA "CALIRESP",1,"CALIRAI",2,"CALIS111",3
200 DATA "CALIS221",3,"CALIFUL2",12
210 DATA "NOOP",0
220 !
230 INTEGER Hdr,Lgth,I,J
! Integers for reading headers
Summary of Contents for 8719ES
Page 15: ...1 1 1 Alphabetical Command Reference ...
Page 293: ...2 1 2 Introduction to Instrument Control ...
Page 310: ...3 1 3 GPIB Programming ...
Page 334: ...4 1 4 Reading Analyzer Data ...
Page 343: ...5 1 5 Data Processing Chain ...
Page 350: ...6 1 6 Error Reporting ...
Page 364: ...7 1 7 Programming Examples ...
Page 502: ...A 1 A Preset Conditions ...
Page 517: ...B 1 B Command Listings ...