SOURce:DIGital:INTerrupt:MODE
Syntax
SOURce:DIGital:INTerrupt:MODE <mode>, (@<ch_list>)
SOURce:DIGital:INTerrupt:MODE? (@<ch_list>)
Description
This command selects the condition on the hardware INTR (interrupt) line that enables buffered memory output operations on the 34950A Digital I/O Module. When buffered memory output operations are enabled on the specified bank (see SOURce:DIGital:MEMory:ENABle command), you can select an edge or level on the INTR line to enable or disable output operations.
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 and interrupts are enabled (see SOURce:DIGital:INTerrupt[:ENABle] command).
Used With:
34950A Digital I/O Module
Parameters
Name |
Type |
Range of Values |
Default Value | ||||||||||||
<mode> |
Discrete |
{STARt|STOP|GATE} The behavior is affected by the INTR line polarity as
set by the CONFigure:DIGital:INTerrupt:POLarity
command. NORMal Polarity
INVerted (Active Low) Polarity
|
STARt | ||||||||||||
<ch_list> |
Numeric |
The first channel on a bank in the form (@sccc).
|
This is a required parameter |
Remarks
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 setting.
Return Format
The query command returns "STAR", "STOP", or "GATE" for each channel specified. Multiple responses are separated by commas.
Examples
The following program segment configures the module in slot 3 for one 16-bit word and enables the buffered memory output mode. By selecting the "STOP" mode, the output will be disabled on the rising edge transition of the INTR line (the polarity is set to "NORM").
CONF:DIG:WIDTH
WORD,(@3101) !Width
= 16 bits
SOUR:DIG:MEM:ENAB ON,(@3101) !Enable
buffered memory mode
SOUR:DIG:MEM:START (@3101) !Start
buffered write operation
CONF:DIG:INT:POL NORM,(@3101) !Polarity
on INTR line is active high
SOUR:DIG:INT:MODE STOP,(@3101) !Output
is disabled on rising edge
SOUR:DIG:INT:ENAB ON,(@3101) !Enable
interrupts (Bank 1)
The following query returns the interrupt mode settings on channel 101 in slot 3.
SOUR:DIG:INT:MODE? (@3101)
Typical Response: STOP
See Also
CONFigure:DIGital:INTerrupt:POLarity