Errstr; Extout - Agilent Technologies 3458A User Manual

Hide thumbs Also See for 3458A:
Table of Contents

Advertisement

ERRSTR?

ERRSTR?

Syntax
Remarks
Example

EXTOUT

Syntax
178
Chapter 6 Command Reference
30 PRINT A
40 END
Error String Query. The ERRSTR? command reads the least significant set bit
in either the error register or the auxiliary error register and then clears the bit.
The ERRSTR? command returns two responses separated by a comma. The first
response is an error number (100 series = error register; 200 series = auxiliary
error register) and the second response is a message (string) explaining the error.
ERRSTR?
The maximum string length returned by ERRSTR? is 255 characters.
The ERRSTR? command reads and clears only the least significant set bit in a
register. If more than one bit is set in a register, you must execute ERRSTR?
repetitively to read and clear each set bit. After all set bits have been read and
cleared (or if there were no set bits in either register), the ERRSTR? command
returns 0,"NO ERROR". When the auxiliary and error registers are cleared, the
error bit in the status register (bit 5) will also be cleared.
When bit 0 in the error register is set, it means that one or more bits in the
auxiliary error register are set. In this case, the ERRSTR? command reads and
clears each set bit in the auxiliary error register first. When all auxiliary errors
have been read, bit 0 in the error register is cleared and the ERRSTR? command
can then be used to read any remaining errors in the error register.
Related Commands: AUXERR?, EMASK, ERR?, QFORMAT
10 OPTION BASE 1
20 DIM A$[200]
30 OUTPUT 722;"ERRSTR?"
40 ENTER 722; A,A$
50 PRINT A,A$
60 IF A>0 THEN GOTO 30
70 END
External Output. Specifies the event that will generate a signal on the rear
panel Ext Out connector (EXTOUT signal). This command also specifies the
polarity of the EXTOUT signal.
EXTOUT [event][,polarity]
!PRINTS RESPONSE
!COMPUTER ARRAY NUMBERING STARTS AT 1
!DIMENSION STRING VARIABLE
!READS ERROR MESSAGE
!ENTERS NUMERIC INTO A, STRING INTO A$
!PRINTS RESPONSES
!LOOPS FOR EACH ERROR

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents