SOURce:DIGital:INTerrupt[:ENABle]
Syntax
SOURce:DIGital:INTerrupt[:ENABle] <mode>, (@<ch_list>)
SOURce:DIGital:INTerrupt[:ENABle]? (@<ch_list>)
Description
This command disables or enables the hardware INTR (interrupt) line as an input on the 34950A Digital I/O Module. The INTR line is an input when the specified channels are configured for buffered memory output operations (see SOURce:DIGital:MEMory:ENABle command). Since interrupts are used for transfers involving the first channel on a bank only, this command must be directed to the first channel (i.e., channel 101 or 201 only), and extends to all channels involved in the channel width (see CONFigure:DIGital:WIDTh command). You can send this command at any time, but the setting applies only if buffered memory output operations are enabled.
Used With:
34950A Digital I/O Module
Parameters
Name |
Type |
Range of Values |
Default Value |
<mode> |
Boolean |
{OFF|0|ON|1} |
OFF (disabled) |
<ch_list> |
Numeric |
The first channel on a bank in the form (@sccc). |
This is a required parameter |
Remarks
During buffered memory output operations, the INTR line is an input and the output state will be based on the level present on the INTR line (see SOURce:DIGital:INTerrupt:MODE command).
The INTR lines and handshake lines (H0, H1, and H2) on each bank share their input threshold and output level setting. See the [SENSe:]DIGital:HANDshake:THReshold command to set the input threshold voltage (the INTR line is an input when the specified channels are configured for buffered memory output operations). See the SOURce:DIGital:HANDshake:LEVel command to set the output voltage level (the INTR line is an output when the specified channels are configured for buffered memory input operations).
The instrument disables interrupts after a Factory Reset (*RST command) and sets the INTR line to a high-impedance state. An Instrument Preset (SYSTem:PRESet command) or Card Reset (SYSTem:CPON command) does not change the status of the interrupt lines.
Return Format
The query command returns "0" (OFF) or "1" (ON) for each channel specified. Multiple responses are separated by commas.
Examples
The following program segment enables inputs to the INTR line on channels 101 and 201 in slot 3. The output will start when a rising edge is detected on the INTR line.
CONF:DIG:WIDTH WORD,(@3101,3201)
!Width
= 16 bits
SOUR:DIG:MEM:ENAB ON,(@3101,3201) !Enable
buffered write
SOUR:DIG:INT:MODE START,(@3101,3201) !Output
starts on rising edge
SOUR:DIG:INT:ENAB ON,(@3101,3201) !Enable
interrupt input
The following query returns the interrupt settings on channels 101 and 201 in slot 3.
SOUR:DIG:INT:ENAB? (@3101,3201)
Typical Response: 1,1
See Also
CONFigure:DIGital:INTerrupt:POLarity
[SENSe:]DIGital:HANDshake:THReshold
SOURce:DIGital:HANDshake:LEVel
SOURce:DIGital:INTerrupt:MODE