
I
Automating Measurements
Operator Interaction
You can connect a foot switch, button box, or custom keyboard which has a
few function keys that are custom-labeled, and use this in conjunction with
to allow consistent, error-free step-by-step measurement control. The
operator presses one key, then the next, in order.
The foot-switch simply connects two wires together, grounding the center pin
of the analyzer’s USER TTL IN/OUT rear panel connector. (See Figure 7-6.)
The status of the USER TTL IN/OUT can be read using the SCPI commands:
30 OUTPUT
40 ENTER
or the
command:
3 0
When the foot-switch is open, the variable “X” will be set to 1. When it is
closed, the variable “X” will be set to 0. Switch
is generally not a
problem, due to the relatively slow polling rate of the program.
Refer to the section titled “Analyzer Port Numbers” for tables describing the
various analyzer ports that you can access using SCPI or
commands.
Below are two example programs which shows how to display a message
and read the foot switch to control your measurements. The first program
uses the SCPI
query, while the second uses the
function.
Following is an example program which shows how to display a message and
read the foot switch to control your measurements. This program is named
TTL-IO on your Example Programs Disk.
For an example which uses the
command, refer to the
program USER-BIT on your
Example Programs Disk.
100
! Filename: TTL,IO
110 !
120
! This program reads the USER TTL IO
130
! port, and counts how many times a
140
! switch connected to the port is pressed.
150 !
7-35
深圳市盛腾仪器仪表有限公司
Tel:0755-83589391
Fax:0755-83539691
Website: www.Sengt.com
Summary of Contents for 8711C
Page 36: ...I I 2 Getting Started 深圳市盛腾仪器仪表有限公司 Tel 0755 83589391 Fax 0755 83539691 Website www Sengt com ...
Page 55: ...3 Making Measurements 深圳市盛腾仪器仪表有限公司 Tel 0755 83589391 Fax 0755 83539691 Website www Sengt c ...
Page 99: ...深圳市盛腾仪器仪表有限公司 Tel 0755 83589391 Fax 0755 83539691 Website www Sengt com ...
Page 276: ...深圳市盛腾仪器仪表有限公司 Tel 0755 83589391 Fax 0755 83539691 Website www Sengt com ...
Page 340: ...I 8 Front Rear Panel 深圳市盛腾仪器仪表有限公司 Tel 0755 83589391 Fax 0755 83539691 Website www Sengt com ...
Page 364: ...9 Softkey Reference 深圳市盛腾仪器仪表有限公司 Tel 0755 83589391 Fax 0755 83539691 Website www Sengt c ...
Page 499: ...Index I 深圳市盛腾仪器仪表有限公司 Tel 0755 83589391 Fax 0755 83539691 Website www Sengt com ...