Closed wangji666666 closed 5 years ago
I can get DataAttribute from name , ex:IedModel_getModelNodeByObjectReference(model, "simpleIOGenericIO/GGIO1.AnIn1.t");
but i donot know how to get SE DataAttribute from name. ex:iedModel_SE_PROT_PTOC1_OpDlTmms_setVal
DataAttribute iedModel_PROT_PTOC1_OpDlTmms_setVal = { DataAttributeModelType, "setVal", (ModelNode) &iedModel_PROT_PTOC1_OpDlTmms, (ModelNode) &iedModel_SE_PROT_PTOC1_OpDlTmms_setVal, NULL, 0, IEC61850_FC_SG, IEC61850_INT32, 0 + TRG_OPT_DATA_CHANGED, NULL, 0};
DataAttribute iedModel_SE_PROT_PTOC1_OpDlTmms_setVal = { DataAttributeModelType, "setVal", (ModelNode*) &iedModel_PROT_PTOC1_OpDlTmms, NULL, NULL, 0, IEC61850_FC_SE, IEC61850_INT32, 0 + TRG_OPT_DATA_CHANGED, NULL, 0};
iedModel_PROT_PTOC1_OpDlTmms_setVal,iedModel_SE_PROT_PTOC1_OpDlTmms_setVal has same name "setVal"???
ModelNode ModelNode_getChildWithFc(ModelNode self, const char* name, FunctionalConstraint fc)
wo got it !
I can get DataAttribute from name , ex:IedModel_getModelNodeByObjectReference(model, "simpleIOGenericIO/GGIO1.AnIn1.t");
but i donot know how to get SE DataAttribute from name. ex:iedModel_SE_PROT_PTOC1_OpDlTmms_setVal
DataAttribute iedModel_PROT_PTOC1_OpDlTmms_setVal = { DataAttributeModelType, "setVal", (ModelNode) &iedModel_PROT_PTOC1_OpDlTmms, (ModelNode) &iedModel_SE_PROT_PTOC1_OpDlTmms_setVal, NULL, 0, IEC61850_FC_SG, IEC61850_INT32, 0 + TRG_OPT_DATA_CHANGED, NULL, 0};
DataAttribute iedModel_SE_PROT_PTOC1_OpDlTmms_setVal = { DataAttributeModelType, "setVal", (ModelNode*) &iedModel_PROT_PTOC1_OpDlTmms, NULL, NULL, 0, IEC61850_FC_SE, IEC61850_INT32, 0 + TRG_OPT_DATA_CHANGED, NULL, 0};
iedModel_PROT_PTOC1_OpDlTmms_setVal,iedModel_SE_PROT_PTOC1_OpDlTmms_setVal has same name "setVal"???