5import isystem.connect
as ic
11def test_createConfigItem():
12 connMgr = ic.ConnectionMgr()
13 connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
15 addCtrl = ic.CAddressController(connMgr)
17 daqCfgs = ic.DAQConfigVector()
19 print(
"Adding DAQ area by address.size...")
20 symInfo = addCtrl.getSymbolInfo(ic.IConnectDebug.fRealTime,
"main_loop_counter")
21 cfg1 = ic.CDAQConfigItem(symInfo.getSizeMAUs(),
24 ic.CDAQController.daqSampleMax,
27 daqCfgs.push_back(cfg1)
29 print(
"Adding DAQ area by variable name...")
30 cfg2 = ic.CDAQConfigItem(
"main_loop_counter",
31 ic.CDAQController.daqSampleMax,
34 daqCfgs.push_back(cfg2)
36 print(
"Adding DAQ area by program counter (PC) value...")
37 cfg3 = ic.CDAQConfigItem(
"0x12345678",
38 ic.CDAQController.daqSampleMax,
41 daqCfgs.push_back(cfg3)
44if __name__ ==
"__main__":
45 test_createConfigItem()