Télécharger Imprimer la page

Keysight Technologies 3458A Guide D'utilisation page 263

Multimètre

Publicité

30 PRINT A!PRINTS RESPONSE
40 END
ERRSTR?
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.
Syntax
ERRSTR?
Remarks
– The maximum string length returned by ERRSTR? is 255 characters.
– The ERRSTR? command reads and clears only the least significant set bit in a
– When bit 0 in the error register is set, it means that one or more bits in the
– Related commands: AUXERR?, EMASK, ERR?, QFORMAT
Example
10 OPTION BASE 1 !COMPUTER ARRAY NUMBERING STARTS AT 1
20 DIM A$[200] !DIMENSION STRING VARIABLE
30 OUTPUT 722;"ERRSTR?"!READS ERROR MESSAGE
40 ENTER 722; A,A$ !ENTERS NUMERIC INTO A, STRING INTO A$
50 PRINT A,A$ !PRINTS RESPONSES
Keysight 3458A User's Guide
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.
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.
Command Reference
6
263

Publicité

loading