Agilent Technologies 8935 Series Manuel d'utilisateur Page 140

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 329
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 139
140 Chapter 6
O:\Manuals\E6380A_Progguid\Book\Advoper.fm
Advanced Operations
Status Reporting
Reading the Event Register
Example 6-29 Syntax
*ESR?
Example 6-30 Example
OUTPUT 714;"*ESR?"
ENTER 714;Register_value
The *ESR? query allows the programmer to determine the current
contents (bit pattern) of the Standard Event Status Register. The Test
Set responds to the *ESR? query by placing the binary-weighted
decimal value of the Standard Event Status Register bit pattern into
the Output Queue. The decimal value of the bit pattern will be a
positive integer in the range of 0 to 255. The response data is obtained
by reading the Output Queue into a numeric variable, integer or real.
Reading the Standard Event Status Register clears it (sets all bits to
zero).
Example 6-31 Example BASIC program
10 INTEGER Std_evn_stat_rg
20 OUTPUT 714;"*ESR?"
30 ENTER 714;Std_evn_stat_rg
40 PRINT Std_evn_stat_rg
50 END
Example 6-32 Example response
32
Clearing the Event Register
The EVENT register is cleared whenever it is queried or whenever the
*CLS Common Command is sent to the Test Set.
Reading the Enable Register
Example 6-33 Syntax
*ESE?
Vue de la page 139
1 2 ... 135 136 137 138 139 140 141 142 143 144 145 ... 328 329

Commentaires sur ces manuels

Pas de commentaire