winIDEA SDK
test_set_slow_run.py
1# This script is licensed under BSD License, see file LICENSE.txt.
2# (c) TASKING Germany GmbH, 2023
3#
4# This Python example demonstrates how to connect to the winIDEA instance
5# and use the setSlowRun() method to enable and disable the "SlowRun" mode.
6# At the end, it prints a message if the mode was changed.
7
8import isystem.connect as ic
9
10
11winidea_id = ''
12
13
14def test_setSlowRun():
15 connMgr = ic.ConnectionMgr()
16 connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
17
18 execCtrl = ic.CExecutionController(connMgr)
19
20 if execCtrl.setSlowRun(True):
21 print("`SlowRun` mode enabled.")
22
23 if execCtrl.setSlowRun(False):
24 print("`SlowRun` mode disabled.")
25
26
27if __name__ == "__main__":
28 test_setSlowRun()