winIDEA SDK
test_goto_function.py
1# This script is licensed under BSD License, see file LICENSE.txt.
2# (c) TASKING Germany GmbH, 2023
3#
4# This Python example resumes (go to) program execution to the function's entry point.
5# It calls the gotoFunction() method with the name of the function as an argument.
6
7import isystem.connect as ic
8
9
10winidea_id = ''
11
12
13def test_gotoFunction():
14 connMgr = ic.ConnectionMgr()
15 connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
16
17 execCtrl = ic.CExecutionController(connMgr)
18
19 execCtrl.gotoFunction("get_random")
20
21
22if __name__ == "__main__":
23 test_gotoFunction()