3
Features and Functions
SCPI Example 1, Enable interrupt at bit 301 and
-> *RST;*CLS
-> SENS:DIG:INT:ENAB ON, (@301) // Enable interrupt for bit 0
-> ...
-> *STB?
<- +0
-> STAT:INT:ENAB 1
-> *STB?
<- +1
-> STAT:INT:EVEN?
<- +1
-> STAT:INT:EVEN?
<- +0
Refer to U2600A Series Programmer's Reference under the topic
NOTE
"[SENSE:]DIGital:INTerrupt[:ENABle]" for more example on interrupt
function.
52
// Clears the register to start from
known state
// Interrupt occurs in bit 301
// Query Status Byte Register
// Interrupt occurred but STB doesn't
see it yet
// Enable the bit so STB can see it
// Query STB again
// Now STB sees that an interrupt has
occurred
// Find out which interrupt source
// "1" means the interrupt source is
from bit 301
// Once read the event is cleared
// 0 now. If there is another interrupt, it
will be set to 1 again
Keysight U2600A Series User's Guide