MATES / Modular Automatic Test Equipment System API  2.5.0.0
mates_test_06.py
1 import random
2 import mates
3 with mates.Mates("proxy.mon", 1) as m:
4  if m.discover_node(m.mates_dio3_mk1_1):
5  m.set_dout(m.mates_dio3_mk1_1, 1, random.randint(0, 1))
6  print("Value set: {0}".format(m.get_dout(m.mates_dio3_mk1_1, 1)))