Agilent Technologies 8935 Series Manual do Utilizador Página 146

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 329
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 145
146 Chapter 6
O:\Manuals\E6380A_Progguid\Book\Advoper.fm
Advanced Operations
Status Reporting
Accessing the Error Message Queue
A message appears in the Error Message Queue any time bit 2, 3, 4, or
5 of the Standard Event Status register is asserted. Each message
consists of a signed error number, followed by a comma separator,
followed by an error description string in double quotes. The maximum
length of the error description string is 255 characters. If more than 20
messages are in the queue and another error occurs, the last message is
replaced with the message, -350,"Queue overflow". If no messages
are in the queue the message, +0,"No error" is returned. Reading a
message removes it from the queue. The Error Message Queue is
accessed using the SYSTem command. Returned information is read
into a numeric variable followed by a string variable.
Reading the Error Message Queue
Example 6-41 Syntax
SYSTem:ERRor?
Example 6-42 Example
OUTPUT 714;"SYST:ERR?"
ENTER 714;Error_num,Error_msg$
Example 6-43 Example IBASIC program
10 INTEGER Error_num
20 DIM Error_msg$ [255]
30 OUTPUT 714;"SYST:ERR?"
40 ENTER 714;Error_num,Error_msg$
50 PRINT Error_num;Error_msg$
60 END
Example 6-44 Example response
-113 "Undefined header"
Vista de página 145
1 2 ... 141 142 143 144 145 146 147 148 149 150 151 ... 328 329

Comentários a estes Manuais

Sem comentários