Diff of /project/sparkplug™_mqtt_host_b9741afd/function_blocks_8ad6e219/fb_remoteedge_9577d5db/fb_remoteedge_c0d3796d/getmetricbyname_3a9b041e/3a9b041e44b749d882569844412aaebc.object [000000] .. [e38993]  Maximize  Restore

Switch to side-by-side view

--- a
+++ b/project/sparkplug™_mqtt_host_b9741afd/function_blocks_8ad6e219/fb_remoteedge_9577d5db/fb_remoteedge_c0d3796d/getmetricbyname_3a9b041e/3a9b041e44b749d882569844412aaebc.object
@@ -0,0 +1 @@
+{"payload":{"meta":{"Graph":{"@Type":"81297157","@Value":{"Guid":"(Guid)3a9b041e-44b7-49d8-8256-9844412aaebc","ParentGuid":"(Guid)c0d3796d-4869-4b84-9cfc-2810ff81dc66","Name":"(string)GetMetricbyName","Properties":{"@Type":"2c41fa04:IDictionary","@Value":{}},"TypeGuid":"(Guid)f8a58466-d7f6-439f-bbb8-d4600e41d099","EmbeddedTypeGuids":{"@Type":"[Guid]","@Value":["(Guid)a9ed5b7e-75c5-4651-af16-d2c27e98cb94","(Guid)3b83b776-fb25-43b8-99f2-3c507c9143fc"]}}},"TypeInfos":{"2c41fa04":"{2c41fa04-1834-41c1-816e-303c7aa2c05b}","81297157":"{81297157-7ec9-45ce-845e-84cab2b88ade}","Guid":"System.Guid","string":"System.String"}},"object":{"Graph":{"@Type":"f8a58466","@Value":{"Implementation":{"@Type":"3b83b776","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextLines":{"@Type":"[a5de0b0b]","@Value":[{"@Type":"a5de0b0b","@Value":{"Id":"(long)186","Tag":null,"Text":"(string)IF DeviceId = \"\" THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)187","Tag":null,"Text":"(string)    //Edge Metric"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)188","Tag":null,"Text":"(string)    eError := SPStack.ERROR.MetricNotFound;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)189","Tag":null,"Text":"(string)    _metrics.ItterateRestart( HasNext => HasNext );"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)190","Tag":null,"Text":"(string)    WHILE HasNext AND NOT FoundMetric DO"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)191","Tag":null,"Text":"(string)        _metrics.ItterateNext( itfElement => itfElement,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)192","Tag":null,"Text":"(string)                               HasNext => HasNext );"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)193","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)194","Tag":null,"Text":"(string)        IF __QUERYINTERFACE( itfElement,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)195","Tag":null,"Text":"(string)                             _Metric ) THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)196","Tag":null,"Text":"(string)            IF _Metric.Name = MetricName THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)197","Tag":null,"Text":"(string)                FoundMetric := TRUE;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)198","Tag":null,"Text":"(string)                eError      := SPStack.ERROR.NO_ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)199","Tag":null,"Text":"(string)                Metric      := _Metric;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)200","Tag":null,"Text":"(string)            END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)201","Tag":null,"Text":"(string)        END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)202","Tag":null,"Text":"(string)    END_WHILE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)203","Tag":null,"Text":"(string)ELSE"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)204","Tag":null,"Text":"(string)    //Device Metric"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)205","Tag":null,"Text":"(string)    refDevice REF= THIS^.GetDevice( DeviceId := DeviceId,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)206","Tag":null,"Text":"(string)                                    eError => eError );"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)207","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)208","Tag":null,"Text":"(string)    IF eError = SPStack.ERROR.NO_ERROR THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)209","Tag":null,"Text":"(string)        refDevice.GetMetricbyName( MetricName := MetricName,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)210","Tag":null,"Text":"(string)                                   Metric => Metric,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)211","Tag":null,"Text":"(string)                                   GetTimestamp => GetTimestamp,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)212","Tag":null,"Text":"(string)                                   xError => xError,"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)213","Tag":null,"Text":"(string)                                   eError => eError );"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)214","Tag":null,"Text":"(string)    END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)215","Tag":null,"Text":"(string)END_IF"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)216","Tag":null,"Text":"(string)"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)82","Tag":null,"Text":"(string)xError := (eError <> SPStack.ERROR.NO_ERROR);"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)218","Tag":null,"Text":"(string)IF Metric = 0 THEN"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)219","Tag":null,"Text":"(string)\tMetric := SPStack.GVL_sparkplug.InvalidMetric;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)217","Tag":null,"Text":"(string)END_IF"}}]}}}}},"Interface":{"@Type":"a9ed5b7e","@Value":{"TextDocument":{"@Type":"f3878285","@Value":{"TextLines":{"@Type":"[a5de0b0b]","@Value":[{"@Type":"a5de0b0b","@Value":{"Id":"(long)169","Tag":null,"Text":"(string)METHOD GetMetricbyName"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)170","Tag":null,"Text":"(string)VAR_IN_OUT CONSTANT"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)171","Tag":null,"Text":"(string)    DeviceId   : WSTRING; //Leave Blank for Edge Metrics"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)172","Tag":null,"Text":"(string)    MetricName : WSTRING;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)173","Tag":null,"Text":"(string)END_VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)174","Tag":null,"Text":"(string)VAR_OUTPUT"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)175","Tag":null,"Text":"(string)    Metric       : SPStack.IMetric;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)176","Tag":null,"Text":"(string)    GetTimestamp : SPStack.T_DateTime; //NOT IMPLEMENTED"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)177","Tag":null,"Text":"(string)    xError       : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)178","Tag":null,"Text":"(string)    eError       : SPStack.ERROR;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)179","Tag":null,"Text":"(string)END_VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)180","Tag":null,"Text":"(string)VAR"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)181","Tag":null,"Text":"(string)    HasNext     : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)182","Tag":null,"Text":"(string)    FoundMetric : BOOL;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)183","Tag":null,"Text":"(string)    itfElement  : LinkedList.IElement;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)184","Tag":null,"Text":"(string)    refDevice   : REFERENCE TO FB_RemoteDevice;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)185","Tag":null,"Text":"(string)    _Metric     : SPStack.IMetric;"}},{"@Type":"a5de0b0b","@Value":{"Id":"(long)75","Tag":null,"Text":"(string)END_VAR"}}]}}}}}}},"TypeInfos":{"3b83b776":"{3b83b776-fb25-43b8-99f2-3c507c9143fc}","a5de0b0b":"{a5de0b0b-1cb5-4913-ac21-9d70293ec00d}","a9ed5b7e":"{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}","f3878285":"{f3878285-8e4f-490b-bb1b-9acbb7eb04db}","f8a58466":"{f8a58466-d7f6-439f-bbb8-d4600e41d099}","long":"System.Int64","string":"System.String"}}},"FormatVersion":"1.0"}
\ No newline at end of file