6TODO_MK: Move loop, which iterates viewContent to test_get_content.py. Try
7to make it more Pythonic-like. Then delete this file.
9This script demonstrates the use of the CPluginController.
10Not all plugins are viable for such use.
13import isystem.connect
as ic
20 print(
'isystem.connect version: ' + ic.getModuleVersion())
22 connMgr = ic.ConnectionMgr()
23 connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
26 pluginCtrl = ic.CPluginController(connMgr,
"[TC399XE.CPU0] TriCore")
28 mpuViewName =
"Counters"
31 if not pluginCtrl.is_open(mpuViewName):
32 pluginCtrl.open(mpuViewName)
34 pluginCtrl.refresh(mpuViewName)
36 viewContent = pluginCtrl.get_content(mpuViewName,
"", ic.IntVector())
37 viewContentIter = viewContent.iterator()
39 for _
in range(viewContent.size()):
40 print(next(viewContentIter))
42 pluginCtrl.close(mpuViewName)
44 print(
"Example finished.")
47if __name__ ==
'__main__':