MATES / Modular Automatic Test Equipment System API  2.5.0.0
mates_test_05.py
1 import time
2 import mates
3 
4 with mates.Mates("proxy.mon", 1) as m:
5  # Wait for the device to be connected.
6  for i in range(10):
7  try:
8  if m.discover_single_node(mates.Mates_dio3_mk1_1) == True:
9  print("Found")
10  break
11  except:
12  # Clear the errors and continue.
13  m.clear_errors()
14  time.sleep(0.1)