EasyManua.ls Logo

Giga-tronics 58542 - Program Examples; Introduction; Sensor Calibration Examples; Sensor Calibration Example 1

Default Icon
252 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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 !

Table of Contents

Related product manuals