MATES / Modular Automatic Test Equipment System API  2.5.0.0
mates_test_07.py
1 import time
2 import mates
3 with mates.Mates("proxy.mon", 1) as m:
4  if m.discover_node(m.mates_dio3_mk1_1):
5  # Wait for IN05 to become high.
6  for i in range(5):
7  if m.get_din(m.mates_dio3_mk1_1, 4) == 1:
8  print("IN05 became high")
9  break
10  time.sleep(0.1)