winIDEA SDK
Loading...
Searching...
No Matches
test_set_slow_run.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
#
# This Python example demonstrates how to connect to the winIDEA instance
# and use the setSlowRun() method to enable and disable the "SlowRun" mode.
# At the end, it prints a message if the mode was changed.
import isystem.connect as ic
winidea_id = ''
def test_setSlowRun():
connMgr = ic.ConnectionMgr()
connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
execCtrl = ic.CExecutionController(connMgr)
if execCtrl.setSlowRun(True):
print("`SlowRun` mode enabled.")
if execCtrl.setSlowRun(False):
print("`SlowRun` mode disabled.")
if __name__ == "__main__":
test_setSlowRun()