Publication 21555, Rev. E, September 2002
A-1
A
Program Examples
A.1
Introduction
This appendix contains examples of the various operating programs in the 58542 VXIbus Universal
Power Meter.
The examples shown in this chapter are written in HTBasic™ format. Different languages will use
different commands, but the string sent or received will always be the same. In HTBasic, the OUTPUT
command sends a string to the GPIB bus. The number or variable after the word OUTPUT is the GPIB
address of the instrument.
A.2
Sensor Calibration Examples
Sensors must be calibrated to the meter before performing measurements. Only one sensor at a time can
be calibrated to a given 58542 VXI Power Meter input. That is, each time a sensor is calibrated to the
meter using the power sweep calibration, previous calibrations for that meter input are voided
automatically. Thus, assuring that the measurement system is always performing under a valid sensor
calibration.
A.2.1
Sensor Calibration Example 1
The following example performs power sweep calibration of the power sensor connected to input
number 2 and sends back a pass/fail flag upon completion using CAL2?
410
ASSIGN @Pwr_mtr to 70101
420
CLEAR @Pwr_mtr
430
WAIT 1
440
PRINT Connect the sensor to the power sensor cable.
450
INPUT Then connect the sensor to the calibrator and hit ENTER.,Dmy
460
PRINT Calibrating Sensor 2...
470
OUTPUT@Pwr_mtr,CAL2?
480
ENTER@Pwr_mtr,Pass_cal
490
IF Pass_cal=0 THEN PRINT Calibration Passed
500
IF Pass_cal=1 THEN
510
PRINT Calibration FAILED, Sensor 2 on calibrator?
560
ELSE
570
IF Pass_cal<>0 THEN PRINT Strange Response to CAL2?.Clear output Queue?
580
END IF
590
!
Содержание 58542
Страница 3: ...DECLARATION OF CONFORMITY ...
Страница 4: ......
Страница 18: ...58542 VXIbus Universal Power Meter xiv Publication 21555 Rev E September 2002 ...
Страница 20: ...58542 VXIbus Universal Power Meter xvi Publication 21555 Rev E September 2002 ...
Страница 30: ...58452 VXIbus Universal Power Meter 1 10 Publication 21555 Rev E September 2002 ...
Страница 92: ...58542 VXIbus Universal Power Meter 2 62 Publication 21555 Rev E September 2002 ...
Страница 104: ...58452 VXIbus Universal Power Meter 3 12 Publication 21555 Rev E September 2002 ...
Страница 126: ...58452 VXIbus Universal Power Meter 5 8 Publication 21555 Rev E September 2002 ...
Страница 171: ......
Страница 172: ......
Страница 173: ......
Страница 174: ...21360 Rev A has not been u ...
Страница 175: ......
Страница 176: ......
Страница 177: ......
Страница 178: ......
Страница 179: ......
Страница 180: ......
Страница 181: ......
Страница 182: ......
Страница 248: ...58542 VXIbus Universal Power Meter C 2 Publication 21555 Rev E September 2002 ...