winIDEA SDK
Loading...
Searching...
No Matches
test_hil_read_write.py
# This script is licensed under BSD License, see file LICENSE.txt, or search for `License` in the SDK online help.
#
# (c) TASKING Germany GmbH, 2023
import isystem.connect as ic
winidea_id = ''
def test_readWrite():
connMgr = ic.ConnectionMgr()
connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
hilCtrl = ic.CHILController(connMgr)
D0_0_URL = 'ADIO.DIO1.Channel[D0_0]'
d0_0Value = hilCtrl.read(D0_0_URL)
print(f"Digital D0_0 state: {d0_0Value}")
hilCtrl.write(D0_0_URL + ': ' + 'HIGH')
if __name__ == "__main__":
test_readWrite()