Descargar Imprimir esta página

Keysight U2600A Serie Guia Del Usuario página 51

Publicidad

Idiomas disponibles

Idiomas disponibles

Figure 3-6
Firstly, it is recommended to clear the register prior to enabling the interrupt
function. Use the SCPI command "*CLS" to clear the register.
Secondly, choose the trigger source (for example bit 301) using the SCPI
command "SENS:DIG:INT:ENAB ON,(@301)".
Then, enable the Interrupt Operation Register so that it will alert the Status Byte
Register whenever an interrupt has occured.
Finally, check the status in Status Byte Register with the SCPI command "*STB?".
If bit 0 of STB returns "1", it means that an interrupt has occurred. If bit 0 of STB
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.
Keysight U2600A Series User's Guide
Clear the register
Select interrupt
trigger source
Enable Interrupt
Operation Register
Return 1 from
bit 0 of *STB?
Do Something
Flowchart for interrupt function operation
Features and Functions
*STB?
No
Yes
3
51

Publicidad

loading