winIDEA SDK
Loading...
Searching...
No Matches
test_evaluate_composite.py
# This script is licensed under BSD License, see file LICENSE.txt, or search for `License` in the SDK online help.
#
# (c) TASKING Germany GmbH, 2023
import isystem.connect as ic
winidea_id = ''
def test_evaluateComposite():
connMgr = ic.ConnectionMgr()
connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
dataCtrl2 = ic.CDataController2(connMgr)
print("Evaluating complex composite variable 'g_complexStruct'...")
data = dataCtrl2.evaluateComposite(ic.IConnectDebug.fRealTime,
"g_complexStruct",
True,
1)
children = ic.VectorDataComposite()
data.getChildren(children)
print(f"Children ({len(children)}):")
for childrenData in children:
childrenData: ic.CDataComposite
var = childrenData.getVariable()
var: ic.CVariable
print(f"\tVariable name: {var.getName()}")
print(f"\tQualified name: {var.getQualifiedName()}")
print(f"\tValue: {childrenData.getValue().getResult()}")
print(f"\tType: {var.getType()}")
print(f"\tArray dimension: {var.getArrayDimension()}")
print(f"\tScope: {var.getScope()}")
print(f"\tSize: {var.getSize()}")
print()
if __name__ == "__main__":
test_evaluateComposite()