User`s guide

Table Of Contents
164 Chapter 11
Working with Automatic Test Systems
Improving Command Processing Speed
Sample program
Example 11-2shows a sample program where the command processing time are improved
by controlling the update timing of the LCD display.You can find the source file of this
program, named cont_upd.htb, on the sample program disk.
NOTE This sample program correctly runs when the maximum number of channels/traces is set 9
channels/9 traces.
This program sets necessary measurement conditions then turn off the update of the LCD
display. Next, it performs measurement, reads out the result, and update the screen
once.This program repeats this measurement procedure ten times.
The program is described in detail below:
Lines 50 to 60 Assigns a GPIB address to the I/O pass.
Lines 80 to 110 These lines set the sweep type to linear sweep, the sweep center value
to 950 MHz, the sweep span value to 100 MHz, and the number of
measurement points to 201, respectively.
Lines 120 to 160 These lines set the trigger source to bus trigger, turn on Continuous
Activation mode for channel 1, turn the mode off for channels 2
through 4.
Lines 180 to 190 These lines display the window for channel 1 only, and arrange two
graphs tiled horizontally.
Lines 210 to 270 These lines set the number of traces for channel 1 to 2, the
measurement parameter and its data format for trace 1 to S21 and Log
Mag, and those for trace 2 to S11 and Log Mag, respectively.
Line 290 This line turns Off the update of the LCD screen.
Line 300 This line sets the data transfer format to binary.
Lines 320 to 540 These lines repeat the following procedure ten times.
1. Lines 330 to 350 These lines trigger the instrument, and waits until
the measurement cycle finishes.
2. Lines 390 to 430: Reads out the formatted data array of trace 1 in
channel 1.
3. Lines 450 to 490: Reads out the formatted data array of trace 2
channel 1.
4. Line 530 This line updates the LCD screen once.