Section 8: Triggering
2470 High Voltage SourceMeter Instrument Reference Manual
8-24
2470-901-01 Rev. A /
May
2019
SCPI command
TSP command
Description
:TRIGger:DIGital<n>:OUT:PULSewidth
This command describes the length of time that the
trigger line is asserted for output triggers.
(on page 14-203)
Not available in SCPI
This command releases an indefinite length or
latched trigger.
(on page 14-204)
:TRIGger:DIGital<n>:OUT:STIMulus
(on page 12-174)
This command selects the event that causes a trigger
to be asserted on the digital output line.
To use the trigger model as a stimulus to a digital I/O line, you can use the trigger model Notify block.
For information on the Notify block, see
(on page 8-32).
Digital I/O bit weighting
Bit weighting for the digital I/O lines is shown in the following table. Line 1 is the least significant bit.
Line #
Bit
Pin
Decimal
Hexadecimal
Binary
1
B1
1
1
0x01
000001
2
B2
2
2
0x02
000010
3
B3
3
4
0x04
000100
4
B4
4
8
0x08
001000
5
B5
6
16
0x10
010000
6
B6
8
32
0x20
100000
Digital I/O programming examples
These examples provide typical methods you can use to work with the digital I/O port.
Outputting a bit pattern
The programming examples below illustrate how to output the bit pattern 110101 at the digital I/O port.
Line 1 (bit 1) is the least significant bit.
Using SCPI commands to configure all six lines as digital outputs:
:DIGital:LINE1:MODE DIGital, OUT
:DIGital:LINE2:MODE DIGital, OUT
:DIGital:LINE3:MODE DIGital, OUT
:DIGital:LINE4:MODE DIGital, OUT
:DIGital:LINE5:MODE DIGital, OUT
:DIGital:LINE6:MODE DIGital, OUT