7import isystem.connect
as ic
13def test_executionControl():
14 connMgr = ic.ConnectionMgr()
15 connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
17 trdFilePath =
"example.trd"
18 covCtrl = ic.CCoverageController2(connMgr, trdFilePath,
"u")
19 covCtrl.waitUntilLoaded(5000, isThrow=
True)
22 print(
"Loading of a really large file can be interrupted with '.abort()' method.")
23 print(
"\tDoes not really have effect here, since we have created a new empty document.")
26 print(f
"Analyzer started: {covCtrl.isActive()}")
27 print(f
"Data acquisition in progress, analyzer is busy: {covCtrl.isBusy()}")
29 covCtrl.stopSampling()
30 print(f
"Data acquisition stopped.")
32 covCtrl.stopUploading()
33 print(f
"Uploading data to PC forcibly stopped.")
35 covCtrl.stopAnalyzing()
36 print(f
"Data analysis forcibly stopped.")
39 print(f
"Analyzer resumed: {covCtrl.isActive()}")
42 status = covCtrl.waitUntilLoaded(2000)
43 print(f
"All analyzer data is loaded: {status}")
46 print(f
"Analyzer can be reconfigured and restarted for post analysis.")
49 covCtrl.setDirty(
True)
50 print(f
"Analyzer document state set to 'dirty'.")
52 covCtrl.stopLoadingOrSaving()
56if __name__ ==
"__main__":
57 test_executionControl()