Trigger:block:digital:io - Keithley DMM7510 Reference Manual

7 1/2 digit graphical sampling multimeter
Hide thumbs Also See for DMM7510:
Table of Contents

Advertisement

Section 6: SCPI command reference

:TRIGger:BLOCk:DIGital:IO

This command defines a trigger model block that sets the lines on the digital I/O port high or low.
Type
Command only
Usage
:TRIGger:BLOCk:DIGital:IO <blockNumber>, <bitPattern>
:TRIGger:BLOCk:DIGital:IO <blockNumber>, <bitPattern>, <bitMask>
<blockNumber>
<bitPattern>
<bitMask>
Details
To set the lines on the digital I/O port high or low, you can send a bit pattern that is specified as an
integer value. The least significant bit maps to digital I/O line 1 and the most significant bit maps to
digital I/O line 6.
The bit mask defines the bits in the pattern that are driven high or low. A binary 1 in the bit mask
indicates that the corresponding I/O line should be driven according to the bit pattern. To drive all
lines, specify all ones (63) or omit this parameter. If the bit for a line in the bit pattern is set to 1, the
line is driven high. If the bit is set to 0 in the bit pattern, the line is driven low.
For this block to work as expected, make sure you configure the trigger type and line state of the
digital line for use with the trigger model (use the digital line mode command).
Example
:DIGital:LINE3:MODE DIG,OUT
:DIGital:LINE4:MODE DIG,OUT
:DIGital:LINE5:MODE DIG,OUT
:DIGital:LINE6:MODE DIG,OUT
:TRIG:BLOC:DIG:IO 4, 20, 60
Also see
:DIGital:LINE<n>:MODE
Digital I/O bit weighting
Digital I/O port configuration
6-196
Model DMM7510 7½ Digit Graphical Sampling Multimeter Reference Manual
Affected by
Recall settings
Instrument reset
Power cycle
The sequence of the block in the trigger model
Sets the value that specifies the output line bit pattern (0 to 63)
Specifies the bit mask; if omitted, all lines are driven (0 to 63)
(on page 6-38)
(on page 3-57)
(on page 3-49)
Where saved
Save settings
The first four lines of code configures digital I./O
lines 3 through 6 as digital outputs.
Trigger block 4 is then configured with a bit
pattern of 20 (digital I/O lines 3 and 5 high). The
optional bit mask is specified as 60 (lines 3
through 6), so both lines 3 and 5 are driven high.
DMM7510-901-01 Rev. B / May 2015
Default value
Not applicable

Advertisement

Table of Contents
loading

Table of Contents