Agilent Technologies U2600A Series User Manual page 61

Usb isolated digital input/output modules
Table of Contents

Advertisement

-> *RST;*CLS
->
SENS:DIG:INT:ENAB ON, (@301)
-> ...
-> *STB?
<- +0
-> STAT:INT:ENAB 1
-> *STB?
<- +1
-> STAT:INT:EVEN?
<- +1
-> STAT:INT:EVEN?
<- +0
N O TE
U2600A User's Guide
returns "0", continue to check its status. The user may do
something when an interrupt has occured, for example
output a signal from the DIO device.
SCPI Example 1, Enable interrupt at bit 301 and
//Clears the register to start from known state
//Enable interrupt for bit 0
//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
Refer to U2600A Series USB Isoltated Digital Input/Output Programmer's
Reference under the topic
"[SENSE:]DIGital:INTerrupt[:ENABle]" for more example
on interrupt function.
Features and Functions
3
47

Advertisement

Table of Contents
loading

Table of Contents