MATES / Modular Automatic Test Equipment System API  2.5.0.0
mates_test_12.py
1 import mates
2 with mates.Mates("proxy.mon", 1) as m:
3  if m.discover_node(m.mates_dac5_mk1_2):
4  # Compare the value written and read.
5  value = 2.0 / 3.0
6  m.set_dac(m.mates_dac5_mk1_2, 10, value)
7  check = m.get_dac(m.mates_dac5_mk1_2, 10)
8  print("{0} vs {1}".format(value, check))