Reading Instrument Errors - HP 8360 B Series User Manual

Swept signal generator, including options 001, 002, 004, 006, and 008
Table of Contents

Advertisement

Reading Instrument
1-76 Getting Started Programming
When debugging a program, you may want to know if an instrument
error has occurred. Some instruments can display error messages on
Errors
their front panels. If your instrument cannot do this, you can put the
following code segment in your program to read and display error
messages.
10 !
20 ! The rest of your
30
40 !
50 DIM Err_msg$[751
60 INTEGER Err-num
70 !
80 ! Part of your program
90
! that generates errors
100 !
110 !
200 REPEAT
210
220
230
240
250
260
270 UNTIL Err-num = 0
280 ! Repeat until no errors
290 !
300 !
310 !
! variable declarations
OUTPUT OBox;":SYST:ERR?"
! Query instrument error
ENTER OBox;Err-num,Err-msg$
! Read error #, message
PRINT Err-num,Err-msg$
! Print error message
The
rest of your program

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

83630b83620b83640b83650b83622b83623b ... Show all

Table of Contents