3: Functions and features  Model 2461 Interactive SourceMeter® Instrument 
 
3-94  2461-901-01 A/November 2015 
 
Remote digital I/O commands 
Commands for both SCPI and TSP are summarized in the following table. You can use the digital I/O 
port to do the following actions: 
•  Perform basic steady-state digital I/O operations, such as reading and writing to individual I/O 
lines or reading and writing to the entire port 
•  Trigger the Model 2461 when external trigger pulses are applied to the digital I/O port 
•  Provide trigger pulses to external devices 
 
SCPI command 
TSP command 
 
Description 
:DIGital:LINE<n>:MODE (on page 6-35) 
This command sets the mode of the digital I/O line to 
be a digital line, trigger line, or synchronous line and 
sets the line to be input, output, or open-drain. 
digio.line[N].mode (on page 8-50) 
 
A line reset is not available in SCPI; however, the line is 
reset when a global reset (
) is sent 
This command resets digital I/O line values to their 
factory defaults. 
digio.line[N].reset() (on page 8-52) 
:DIGital:LINE<n>:STATe (on page 6-36) 
This command sets a digital I/O line high or low when 
the line is set for digital control and returns the state 
on the digital I/O lines. 
digio.line[N].state (on page 8-53) 
:DIGital:READ? (on page 6-37) 
This command reads the digital I/O port. All six lines 
must be configured as digital control lines. If not, this 
command generates an error. 
digio.readport() (on page 8-53) 
:DIGital:WRITe <n> (on page 6-38)  This command writes to all digital I/O lines. All six 
lines must be configured as digital control lines. If not, 
this command generates an error. 
digio.writeport() (on page 8-54) 
:TRIGger:DIGital<n>:IN:CLEar (on page 6-211)  This command clears the trigger event on a digital 
input line. 
trigger.digin[N].clear() (on page 8-241) 
 
:TRIGger:DIGital<n>:IN:EDGE (on page 6-211)  This command sets the edge used by the trigger 
event detector on the given trigger line. 
trigger.digin[N].edge (on page 8-242) 
 
:TRIGger:DIGital<n>:IN:OVERrun? (on page 6-212) 
This command returns the event detector overrun 
status. 
trigger.digin[N].overrun (on page 8-243) 
This command waits for a trigger. 
trigger.digin[N].wait() (on page 8-243) 
 
This command asserts a trigger pulse on one of the 
digital I/O lines. 
trigger.digout[N].assert() (on page 8-244) 
 
:TRIGger:DIGital<n>:OUT:LOGic (on page 6-213) 
This command sets the output logic of the trigger 
t  t  t   iti     ti  f  th