winIDEA SDK
Loading...
Searching...
No Matches
test_launch_core1.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
WORKSPACE_PATH = r'..\..\..\targetProjects\SampleTC399XE.xjrf'
def test_launchCore1():
cfg = ic.CConnectionConfig()
connMgr = ic.ConnectionMgr()
cfg.workspace(WORKSPACE_PATH)
connMgr.connect(cfg)
sessCtrl = ic.CSessionCtrl(connMgr)
sessCtrl.begin_prepare()
print(f"Is core with index 1 launched: {connMgr.isCoreLaunched(1)}")
print("Launching core with index 1...")
connMgr2 = connMgr.launchCore1(1)
wksFilePath = ic.CIDEController(connMgr2).getPath(ic.CIDEController.WORKSPACE_FILE_NAME)
print(f"\tDone, connected to instance: {wksFilePath}")
print("\tDisconnecting.")
connMgr2.disconnect_close(bSaveAll=False)
if __name__ == "__main__":
test_launchCore1()