5import isystem.connect
as ic
11def test_getAnalyzerSessionStatus():
12 connMgr = ic.ConnectionMgr()
13 connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
15 covCtrl = ic.CCoverageController2(connMgr,
'example.trd',
"u")
16 covCtrl.waitUntilLoaded(5000, isThrow=
True)
18 status = covCtrl.getAnalyzerSessionStatus()
19 print(f
"Get current analyzer state:")
20 print(f
"\tIs recorder sampling: {status.isRecorderSampling()}")
21 print(f
"\tIs analyzer loading data from emulator to PC: {status.isUploading()}")
22 print(f
"\tIs analyzer analyzing data: {status.isAnalyzing()}")
23 print(f
"\t... explore other methods.")
24 print(f
"Additionally, dump status with '.toString()' method:\n{status.toString()}")
28if __name__ ==
"__main__":
29 test_getAnalyzerSessionStatus()