6This script demonstrates the use of the CPluginController.
7Not all plugins are viable for such use.
10import isystem.connect
as ic
17 print(
'isystem.connect version: ' + ic.getModuleVersion())
19 connMgr = ic.ConnectionMgr()
20 connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
23 pluginCtrl = ic.CPluginController(connMgr,
"[TC399XE.CPU0] TriCore")
25 mpuViewName =
"Counters"
28 if not pluginCtrl.is_open(mpuViewName):
29 pluginCtrl.open(mpuViewName)
31 pluginCtrl.refresh(mpuViewName)
33 viewContent = pluginCtrl.get_content(mpuViewName,
"", ic.IntVector())
34 viewContentIter = viewContent.iterator()
36 for _
in range(viewContent.size()):
37 print(next(viewContentIter))
39 pluginCtrl.close(mpuViewName)
41 print(
"Example finished.")
44if __name__ ==
'__main__':