/
MATES
/ Modular Automatic Test Equipment System API
2.5.0.0
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
mates_test_10.py
1
import
random
2
import
mates
3
with mates.Mates(
"proxy.mon"
, 1)
as
m:
4
if
m.discover_node(m.mates_dac5_mk1_2):
5
# Set to random.
6
value = random.randint(0, 100)
7
m.set_dac_raw(m.mates_dac5_mk1_2, 39, value)
8
print(
"Raw DAC value: {0}"
.format(m.get_dac_raw(m.mates_dac5_mk1_2, 39)))