Debian Codegraph @

examples/modbusrtu/test_modbusrtu_example.py

raw symbols SCIP
1 def test_modbusrtu_example(instrument):
2 """
3 The interface for the modbus RTU driver is a thin adapter, having same
4 interface as provided by the minimalmodbus package. Therefore, for more
5 infromation on how to use the labgrid modbus RTU driver, please refer to
6 the minimalmodbus documentation.
7 """
8
9 uptime_register_addr = 0x107
10 instrument.write_register(uptime_register_addr, 0, functioncode=6)
11 value = instrument.read_register(uptime_register_addr)
12
13 assert value <= 1