/
MATES
/ Modular Automatic Test Equipment System API
2.5.0.0
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
mates_test_20.py
1
import
mates
2
with mates.Mates(
"proxy.mon"
, 1)
as
m:
3
if
m.discover_node(m.mates_dio3_mk1_1):
4
# Set the least significant nibble of the outputs to high state.
5
m.set_dout_all(m.mates_dio3_mk1_1, 0xF, mates.Mates.DIO_OUT_MODE_OR)
6
# See what the result is (assuming we have loopback installed).
7
print(
"Inputs: 0x{0:X}"
.format(m.get_din_all(m.mates_dio3_mk1_1)))