EasyManua.ls Logo

Giga-tronics 58542 - Error Control Examples

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...
58542 VXIbus Universal Power Meter
A-8 Publication 21555, Rev. E, September 2002
Zeroing is recommended whenever performing critical final power measurements in the bottom 15 to 20
dB of a power sensors dynamic range. Zeroing removes zero drift error from the measurement. At higher
power levels, zero drift is typically insignificant when compared to the other sources of error such as
source/sensor mismatch uncertainty.
A.3.3 Error Control Examples
Selected basic SCPI syntax and execution errors apply to these commands.
The following command will operate properly.
460 OUTPUT @Pwr_mtr;CAL1? ! Calibrate channel 1
The following command is not a legal command. The 58542 only has two channels.
460 OUTPUT @Pwr_mtr;CAL3? ! Calibrate channel 3
If the user asks for error information, the error reporting is as follows:
510 OUTPUT @Pwr_mtr;SYST:ERR?
520 ENTER @Pwr_mtr;Err_msg$ ! Reading an error message clears it.
530 PRINT Err_msg$
Program Output:
-7,Invalid Error Number
The following command is not a legal command. The command is mis-typed.
460 OUTPUT @Pwr_mtr;CALS? ! Calibrate channel 3
If the user asks for error information, the error reporting is as follows.
510 OUTPUT @Pwr_mtr;SYST:ERR?
520 ENTER @Pwr_mtr;Err_msg$ ! Reading an error message clears it.
530 PRINT Err_msg$
Program Output:
-113,Undefined Header;CALS
Device-specific errors include the following.
-300,Device-specific error;No Sensor
The following examples demonstrate the conditions for various errors.
380 ASSIGN @Pwr_mtr to 70101
390 CLEAR @Pwr_mtr
400 WAIT 1
401 INPUT Disconnect Sensor From Cable for Error Demonstration. Then hit ENTER.,Dmy
410 PRINT Calibrating Sensor 1
420 OUTPUT @Pwr_mtr;CAL1?
430 ENTER @Pwr_mtr;Pass_cal
440 IF Pass_cal=0 THEN PRINT Calibration Passed
450 IF Pass_cal=1 THEN
460 Ques$=Calibration FAILED, sensor on calibrator?
470 OUTPUT @Pwr_mtr;SYST:ERR?
480 ENTER @Pwr_mtr;Err_msg$ ! Reading an error message clears it.
490 PRINT Err_msg$
500 PRINT Ques$
520 ELSE
521 IF Pass_cal<>0 THEN PRINT Strange Response to CAL1?. Clear output Queue?
530 END IF
531 !
532 !
533 STOP
Program Output:
Calibrating Sensor 1

Table of Contents

Related product manuals