
Before Programming
4-9
IM 760151-17E
4
Using the extended event register
Changes in the condition register are reflected in the
extended event register (page 6-4).
Example
:STATus:FILTer1 FALL;:STATus:EESE 1;
EESR?;*SRE 8<PMT>
(Read the response to
:STATus:EESR?
)
LOOP
(Wait for a service request)
:NUMeric[:NORMal]:VALue?<PMT>
(Read the response to
:NUMeric[:NORMal]:
VALue?
)
:STATus:EESR?<PMT>
(Read the response to
:STATus:EESR?
)
(Return to
LOOP
)
The “
STATus:FILTer1 FALL
” command sets the
transition filter such that Bit 0 (FILTer1) of the
Extended Event Register sets to
1
when Bit 0 of the
Condition Register changes from
1
to
0
.
“
STATus:EESE 1
” is a command used only to reflect
the status of bit 0 of the extended event register in the
status byte.
“
STATus:EESR?
” is used to clear the extended event
register.
The “
*SRE 8
” command is used to generate a service
request caused solely by the extended event register.
“
:NUMeric[:NORMal]:VALue?
” will not be executed
until a service request is generated.
Using the COMMunicate:WAIT command
The “
COMMunicate:WAIT
” command halts
communications until a specific event is generated.
Example
:STATus:FILTer1 FALL;:STATus:
EESR?<PMT>
(Read the response to
:STATus:EESR?
)
LOOP
COMMunicate:WAIT 1<PMT>
:NUMeric[:NORMal]:VALue?<PMT>
(Read the response to
:NUMeric[:NORMal]:
VALue?
)
:STATus:EESR?<PMT>
(Read the response to
:STATus:EESR?
)
(Return to
LOOP
)
For a description of “
STATus:FILTer1 FALL
” and
“
STATus:EESR?
”, refer to “Using the extended event
register” on this page.
“
COMMunicate:WAIT 1
” means that communications
is halted until bit 0 of the extended event register is set
to “
1
”.
The “
:NUMeric[:NORMal]:VALue?
” command will
not be executed until bit 0 of the extended event
register is set to “
1
”.
4.5 Synchronization with the Controller