winIDEA SDK
test_doc_an_trig.py
1# This script is licensed under BSD License, see file LICENSE.txt.
2#
3# (c) TASKING Germany GmbH, 2023
4
5import isystem.connect as ic
6
7
8winidea_id = ''
9
10
11def test_doc_an_trig():
12 connMgr = ic.ConnectionMgr()
13 connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
14
15 cfgCtrl = ic.CConfigurationController(connMgr)
16
17 traceCtrl = ic.CTraceController(connMgr, "example.trd", "w")
18 optCtrl = ic.CConfigurationController(connMgr).doc("example.trd")
19
20 trigOptCtrl = cfgCtrl.doc_an_triggers(optCtrl)
21 url = trigOptCtrl.URL()
22 print(f"URL of the 'document' controller for file 'example.trd', trigger: {url}")
23
24 traceCtrl.close()
25
26
27if __name__ == "__main__":
28 test_doc_an_trig()