{"id":1674,"date":"2019-03-25T17:36:09","date_gmt":"2019-03-25T20:36:09","guid":{"rendered":"http:\/\/xexeu.elipse.com.br\/pt\/kb27170-usando-a-funcao-average-do-historico\/"},"modified":"2019-06-06T14:41:37","modified_gmt":"2019-06-06T17:41:37","slug":"kb27170-usando-a-funcao-average-do-historico","status":"publish","type":"post","link":"https:\/\/kb.elipse.com.br\/en\/kb27170-usando-a-funcao-average-do-historico\/","title":{"rendered":"KB-27170: Usando a fun\u00e7\u00e3o Average do hist\u00f3rico."},"content":{"rendered":"<div style=\"text-align:justify;\"><span style=\"font-weight:bold;\">Descri\u00e7\u00e3o:<\/span><\/p>\n<p>Como usar a fun\u00e7\u00e3o <span style=\"font-style:italic;\">Average()<\/span> do Hist\u00f3rico do Elipse SCADA?<\/p>\n<p><span style=\"font-weight:bold;\">Solu\u00e7\u00e3o:<\/span><\/p>\n<p>A fun\u00e7\u00e3o <span style=\"font-weight:bold;\">Average()<\/span> retorna a m\u00e9dia de um conjunto de dados do hist\u00f3rico. O comando completo \u00e9 este:<span style=\"font-style:italic;color:rgb(0, 0, 0);background-color:rgb(255, 255, 255);\"> <\/span><span style=\"color:rgb(0, 0, 0);background-color:rgb(255, 255, 255);font-family:Courier New;\">Average (src, type, startTime [, endTime])<\/span><\/p>\n<p>Onde:<\/p>\n<div style=\"text-align:left;\">&#8211; <span style=\"font-weight:bold;font-style:italic;\">src<\/span>: nome do tag que \u00e9 gravado no hist\u00f3rico.<br \/>&#8211; <span style=\"font-weight:bold;font-style:italic;\">type<\/span>: determina o intervalo de tempo a ser considerado para calcular a m\u00e9dia (<span style=\"font-weight:bold;\">0<\/span>: ano; <span style=\"font-weight:bold;\">1<\/span>: m\u00eas; <span style=\"font-weight:bold;\">2<\/span>: semana; <span style=\"font-weight:bold;\">3<\/span>: dia; <span style=\"font-weight:bold;\">4<\/span>: hora; <span style=\"font-weight:bold;\">5<\/span>: minuto).<\/div>\n<div style=\"text-align:left;\">&#8211; <span style=\"font-weight:bold;font-style:italic;\">startTime<\/span>: determina o tempo inicial da m\u00e9dia.<br \/>&#8211; <span style=\"font-weight:bold;\"><span style=\"font-style:italic;\">endTime <\/span>(opcional)<\/span>: determina o tempo final da m\u00e9dia. Se ele for utilizado, o par\u00e2metro <span style=\"font-style:italic;\">type <\/span>\u00e9 ignorado.<\/div>\n<p><span style=\"font-weight:bold;\">Exemplo de script:<\/span><\/p>\n<div style=\"text-align:left;\"><span style=\"color:rgb(0, 0, 0);background-color:rgb(255, 255, 255);font-family:Courier New;\">Hist1.Open()<\/span><br style=\"color:rgb(0, 0, 0);background-color:rgb(255, 255, 255);font-family:Courier New;\"><span style=\"color:rgb(0, 0, 0);background-color:rgb(255, 255, 255);font-family:Courier New;\">resul = Hist1.Average(&#8220;tagDemo001&#8221;, 5, DataIni, DataFim)<\/span><br style=\"color:rgb(0, 0, 0);background-color:rgb(255, 255, 255);font-family:Courier New;\"><span style=\"color:rgb(0, 0, 0);background-color:rgb(255, 255, 255);font-family:Courier New;\">Hist1.Close()<\/span><\/div>\n<p>Nesse caso, <span style=\"font-family:Courier New;color:rgb(0, 0, 0);\">resul<\/span>, <span style=\"font-family:Courier New;color:rgb(0, 0, 0);\">DataIni <\/span>e <span style=\"font-family:Courier New;color:rgb(0, 0, 0);\">DataFim <\/span>(opcional) s\u00e3o tags RAM, e <span style=\"font-family:Courier New;color:rgb(0, 0, 0);\">tagDemo001 <\/span>\u00e9 o nome do campo no Hist\u00f3rico que deve ter a m\u00e9dia calculada.<\/div><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Descri\u00e7\u00e3o: Como usar a fun\u00e7\u00e3o Average() do Hist\u00f3rico do Elipse SCADA? Solu\u00e7\u00e3o: A fun\u00e7\u00e3o Average() retorna a m\u00e9dia de um conjunto de dados do hist\u00f3rico. O comando completo \u00e9 este:&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0},"categories":[620,621],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>KB-27170: Usando a fun\u00e7\u00e3o Average do hist\u00f3rico. - Elipse Knowledgebase<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kb.elipse.com.br\/kb27170-usando-a-funcao-average-do-historico\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"KB-27170: Usando a fun\u00e7\u00e3o Average do hist\u00f3rico.\" \/>\n<meta property=\"og:description\" content=\"Descri\u00e7\u00e3o: Como usar a fun\u00e7\u00e3o Average() do Hist\u00f3rico do Elipse SCADA? Solu\u00e7\u00e3o: A fun\u00e7\u00e3o Average() retorna a m\u00e9dia de um conjunto de dados do hist\u00f3rico. O comando completo \u00e9 este:&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kb.elipse.com.br\/kb27170-usando-a-funcao-average-do-historico\/\" \/>\n<meta property=\"og:site_name\" content=\"Elipse Knowledgebase\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/www.facebook.com\/elipsesoftware\" \/>\n<meta property=\"article:published_time\" content=\"2019-03-25T20:36:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-06-06T17:41:37+00:00\" \/>\n<meta name=\"author\" content=\"Elipse Software\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Elipse Software\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/kb.elipse.com.br\/kb27170-usando-a-funcao-average-do-historico\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/kb27170-usando-a-funcao-average-do-historico\/\"},\"author\":{\"name\":\"Elipse Software\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87\"},\"headline\":\"KB-27170: Usando a fun\u00e7\u00e3o Average do hist\u00f3rico.\",\"datePublished\":\"2019-03-25T20:36:09+00:00\",\"dateModified\":\"2019-06-06T17:41:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kb.elipse.com.br\/kb27170-usando-a-funcao-average-do-historico\/\"},\"wordCount\":153,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\"},\"articleSection\":[\"Elipse Scada\",\"Scripts\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/kb.elipse.com.br\/kb27170-usando-a-funcao-average-do-historico\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kb.elipse.com.br\/kb27170-usando-a-funcao-average-do-historico\/\",\"url\":\"https:\/\/kb.elipse.com.br\/kb27170-usando-a-funcao-average-do-historico\/\",\"name\":\"[:pt]KB-27170: Usando a fun\u00e7\u00e3o Average do hist\u00f3rico.[:] - Elipse Knowledgebase\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#website\"},\"datePublished\":\"2019-03-25T20:36:09+00:00\",\"dateModified\":\"2019-06-06T17:41:37+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/kb.elipse.com.br\/kb27170-usando-a-funcao-average-do-historico\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kb.elipse.com.br\/kb27170-usando-a-funcao-average-do-historico\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kb.elipse.com.br\/kb27170-usando-a-funcao-average-do-historico\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\/\/kb.elipse.com.br\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"KB-27170: Usando a fun\u00e7\u00e3o Average do hist\u00f3rico.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/kb.elipse.com.br\/#website\",\"url\":\"https:\/\/kb.elipse.com.br\/\",\"name\":\"Elipse Knowledgebase\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/kb.elipse.com.br\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\",\"name\":\"Elipse Software\",\"url\":\"https:\/\/kb.elipse.com.br\/\",\"sameAs\":[\"http:\/\/www.facebook.com\/elipsesoftware\"],\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png\",\"contentUrl\":\"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png\",\"width\":161,\"height\":58,\"caption\":\"Elipse Software\"},\"image\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87\",\"name\":\"Elipse Software\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ff1f7ec38f4687b06f6851d97b3cd2d0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/ff1f7ec38f4687b06f6851d97b3cd2d0?s=96&d=mm&r=g\",\"caption\":\"Elipse Software\"},\"url\":\"https:\/\/kb.elipse.com.br\/en\/author\/webmasterelipse-com-br\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"KB-27170: Usando a fun\u00e7\u00e3o Average do hist\u00f3rico. - Elipse Knowledgebase","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/kb.elipse.com.br\/kb27170-usando-a-funcao-average-do-historico\/","og_locale":"en_US","og_type":"article","og_title":"[:pt]KB-27170: Usando a fun\u00e7\u00e3o Average do hist\u00f3rico.[:] - Elipse Knowledgebase","og_description":"Descri\u00e7\u00e3o: Como usar a fun\u00e7\u00e3o Average() do Hist\u00f3rico do Elipse SCADA? Solu\u00e7\u00e3o: A fun\u00e7\u00e3o Average() retorna a m\u00e9dia de um conjunto de dados do hist\u00f3rico. O comando completo \u00e9 este:&hellip;","og_url":"https:\/\/kb.elipse.com.br\/kb27170-usando-a-funcao-average-do-historico\/","og_site_name":"Elipse Knowledgebase","article_publisher":"http:\/\/www.facebook.com\/elipsesoftware","article_published_time":"2019-03-25T20:36:09+00:00","article_modified_time":"2019-06-06T17:41:37+00:00","author":"Elipse Software","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Elipse Software","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kb.elipse.com.br\/kb27170-usando-a-funcao-average-do-historico\/#article","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/kb27170-usando-a-funcao-average-do-historico\/"},"author":{"name":"Elipse Software","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87"},"headline":"KB-27170: Usando a fun\u00e7\u00e3o Average do hist\u00f3rico.","datePublished":"2019-03-25T20:36:09+00:00","dateModified":"2019-06-06T17:41:37+00:00","mainEntityOfPage":{"@id":"https:\/\/kb.elipse.com.br\/kb27170-usando-a-funcao-average-do-historico\/"},"wordCount":153,"commentCount":0,"publisher":{"@id":"https:\/\/kb.elipse.com.br\/#organization"},"articleSection":["Elipse Scada","Scripts"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kb.elipse.com.br\/kb27170-usando-a-funcao-average-do-historico\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kb.elipse.com.br\/kb27170-usando-a-funcao-average-do-historico\/","url":"https:\/\/kb.elipse.com.br\/kb27170-usando-a-funcao-average-do-historico\/","name":"[:pt]KB-27170: Usando a fun\u00e7\u00e3o Average do hist\u00f3rico.[:] - Elipse Knowledgebase","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/#website"},"datePublished":"2019-03-25T20:36:09+00:00","dateModified":"2019-06-06T17:41:37+00:00","breadcrumb":{"@id":"https:\/\/kb.elipse.com.br\/kb27170-usando-a-funcao-average-do-historico\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kb.elipse.com.br\/kb27170-usando-a-funcao-average-do-historico\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/kb.elipse.com.br\/kb27170-usando-a-funcao-average-do-historico\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/kb.elipse.com.br\/en\/"},{"@type":"ListItem","position":2,"name":"KB-27170: Usando a fun\u00e7\u00e3o Average do hist\u00f3rico."}]},{"@type":"WebSite","@id":"https:\/\/kb.elipse.com.br\/#website","url":"https:\/\/kb.elipse.com.br\/","name":"Elipse Knowledgebase","description":"","publisher":{"@id":"https:\/\/kb.elipse.com.br\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kb.elipse.com.br\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/kb.elipse.com.br\/#organization","name":"Elipse Software","url":"https:\/\/kb.elipse.com.br\/","sameAs":["http:\/\/www.facebook.com\/elipsesoftware"],"logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/","url":"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png","contentUrl":"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png","width":161,"height":58,"caption":"Elipse Software"},"image":{"@id":"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87","name":"Elipse Software","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/ff1f7ec38f4687b06f6851d97b3cd2d0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ff1f7ec38f4687b06f6851d97b3cd2d0?s=96&d=mm&r=g","caption":"Elipse Software"},"url":"https:\/\/kb.elipse.com.br\/en\/author\/webmasterelipse-com-br\/"}]}},"_links":{"self":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/1674"}],"collection":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/comments?post=1674"}],"version-history":[{"count":1,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/1674\/revisions"}],"predecessor-version":[{"id":6955,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/1674\/revisions\/6955"}],"wp:attachment":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/media?parent=1674"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/categories?post=1674"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/tags?post=1674"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}