mz-automation / libiec61850

Official repository for libIEC61850, the open-source library for the IEC 61850 protocols
http://libiec61850.com/libiec61850
GNU General Public License v3.0
878 stars 468 forks source link

how to get SE DataAttribute from name? #181

Closed wangji666666 closed 5 years ago

wangji666666 commented 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"???

wangji666666 commented 5 years ago

ModelNode ModelNode_getChildWithFc(ModelNode self, const char* name, FunctionalConstraint fc)

wo got it !