5import isystem.connect
as ic
12 connMgr = ic.ConnectionMgr()
13 connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
15 covCtrl = ic.CCoverageController2(connMgr,
'sdk_example.trd',
"u")
16 covCtrl.waitUntilLoaded(5000, isThrow=
True)
18 triggerIndex = covCtrl.createTrigger(
"test_scope")
19 covCtrl.setScope(triggerIndex, ic.CCoverageController2.EScopeEntireMemory)
20 scope = covCtrl.getScope(triggerIndex)
21 readableScope = covCtrl.scope2Str(scope)
22 print(f
"Scope of 'test_scope' trigger has been set to scope '{readableScope}'.")
24 scope = covCtrl.scope2Enum(readableScope)
25 print(f
"Scope readable string can be converted back to isystem.connect enum value: '{scope}'.")
29if __name__ ==
"__main__":