User manual
Series 3700 System Switch/Multimeter Reference Manual Section 13: Instrument Control Library (ICL)
3700S-901-01 Rev. C / July 2008 13-93
digio.writeport()
Remarks
The binary representation of data indicates the output pattern to be written to the I/O
port. For example, a data value of 170 has a binary equivalent of 00000010101010.
Lines 2, 4, 6 and 8 are set high (1), and the other 10 lines are set low (0).
Write protected lines will not be changed (see digio.writeprotect() (on page 13-93)).
The reset function does not affect the present states of the digital I/O lines.
Also see
digio.readbit() (on page 13-87)
digio.readport() (on page 13-87)
digio.writebit() (on page 13-92)
Example
Sets digital I/O lines 1 through 8 high (binary 00000011111111):
digio.writeport(255)
digio.writeprotect
Attribute
Write protect mask that disables bits from being changed with the digio.writebit() (on
page 13-92) and digio.writeport() (on page 13-92) functions.
Usage
To read writeprotect mask:
mask = digio.writeprotect
To write writeprotect mask:
digio.writeprotect = mask
mask: Set to the value that specifies the bit pattern for write protect.
Remarks
Bits that are set to one cause the corresponding line to be write protected.
The binary equivalent of mask indicates the mask to be set for the I/O port. For
example, a mask value of 7 has a binary equivalent 00000000000111. This mask
write protects lines 1, 2 and 3.
Example
Write protects lines 1, 2, 3 and 4:
digio.writeprotect = 15
display functions and attributes
The functions and attributes in this group are used for various display
operations.
display.clear()
Function
Clears all lines of the display.
Usage
display.clear()