|
|
|
@ -26,7 +26,7 @@ sigint_handler(int signalId)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static void
|
|
|
|
|
updateCMVArrayElement(MmsValue* cval, int index, float magnitude, float angle, Quality quality, Timestamp timestamp)
|
|
|
|
|
updateCMVArrayElement(MmsValue *cval, int index, float magnitude, float angle, Quality quality, Timestamp timestamp)
|
|
|
|
|
{
|
|
|
|
|
MmsValue* cmv = MmsValue_getElement(cval, index);
|
|
|
|
|
|
|
|
|
@ -48,7 +48,9 @@ updateCMVArrayElement(MmsValue* cval, int index, float magnitude, float angle, Q
|
|
|
|
|
MmsValue_setUtcTimeByBuffer(t, timestamp.val);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int main(int argc, char** argv) {
|
|
|
|
|
int
|
|
|
|
|
main(int argc, char **argv)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
int tcpPort = 102;
|
|
|
|
|
|
|
|
|
@ -65,7 +67,6 @@ int main(int argc, char** argv) {
|
|
|
|
|
/* Get access to the corresponding MMS value data structure - the MX(FC) part of the data object */
|
|
|
|
|
MmsValue* mhai1_ha_phsAHar_mx = IedServer_getFunctionalConstrainedData(iedServer, mhai1_ha_phsAHar, IEC61850_FC_MX);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* assuming the array has 16 elements */
|
|
|
|
|
float mag = 200.f;
|
|
|
|
|
float angle = 0.01f;
|
|
|
|
@ -123,4 +124,6 @@ int main(int argc, char** argv) {
|
|
|
|
|
|
|
|
|
|
/* Cleanup - free all resources */
|
|
|
|
|
IedServer_destroy(iedServer);
|
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
} /* main() */
|
|
|
|
|