{"id":3091,"date":"2019-03-25T17:42:39","date_gmt":"2019-03-25T20:42:39","guid":{"rendered":"http:\/\/xexeu.elipse.com.br\/pt\/batch-history-in-e3\/"},"modified":"2020-01-23T10:24:18","modified_gmt":"2020-01-23T13:24:18","slug":"batch-history-in-e3","status":"publish","type":"post","link":"https:\/\/kb.elipse.com.br\/en\/batch-history-in-e3\/","title":{"rendered":"Batch history in E3."},"content":{"rendered":"<div align=\"justify\">\n<p><b>Question:<\/b><\/p>\n<p>Can I record\/visualize data from a specific batch in an E3 Historic, similarly to what happens with Elipse SCADA?<br \/>\n<b><br \/>\nSolution:<\/b><\/p>\n<p>Yes, you can. To do so, follow these procedures:<\/p>\n<p>1. Create two objects: a Database and a Historic.<\/p>\n<div align=\"center\"><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4772\/Figura%201.png\" alt=\"\" width=\"130\" height=\"51\" align=\"Baseline\" border=\"0\" \/><\/div>\n<p>2. In the Historic, insert the batch fields, and also a field for its name.<\/p>\n<div align=\"center\"><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4772\/Figura%202.png\" alt=\"\" width=\"500\" height=\"113\" align=\"Baseline\" border=\"0\" \/><\/div>\n<p>3. On the screen, insert two E3Browsers objects (similarly to what happens in Elipse SCADA): one to display batches and another one to display values. In addition, create three buttons: <b>Start Batch<\/b>, <b>Stop Batch<\/b>, and <b>Restart Last Batch<\/b>.<\/p>\n<div align=\"center\"><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4772\/Figura%203.png\" alt=\"\" width=\"500\" height=\"406\" align=\"Baseline\" border=\"0\" \/><\/div>\n<p>4. Configure the E3Browser&#8217;s <b>Batches <\/b>query to show only the names of the batches. Insert <b>Batch <\/b>field, and use <b>Group by<\/b> function.<\/p>\n<div align=\"center\"><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4772\/Figura%204.png\" alt=\"\" width=\"500\" height=\"307\" align=\"Baseline\" border=\"0\" \/><\/div>\n<p>Alternatively, you can insert the SQL code onto the query&#8217;s <b>SQL <\/b>tab:<\/p>\n<p><span style=\"font-family: Courier New;\">SELECT tab_batch.Batch<br \/>\nFROM tab_batch<br \/>\nGROUP BY tab_batch.Batch<\/span><\/p>\n<p>This function returns all values of the field, with no repetition.<\/p>\n<p>5. The other E3Browser displays the values of the batch. To do so, set up the query with a filter that returns all rows where the value of Batch column is equal to the one configured at <b>Batch_Name<\/b> variable.<\/p>\n<div align=\"center\"><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4772\/Figura%205.png\" alt=\"\" width=\"500\" height=\"259\" align=\"Baseline\" border=\"0\" \/><\/div>\n<p>SQL code:<\/p>\n<p><span style=\"font-family: Courier New;\">SELECT tab_batch.E3TimeStamp,tab_ batch.Field1,tab_ batch.Field2,tab_ batch.Field3<br \/>\nFROM tab_batch<br \/>\nWHERE ( tab_batch.Batch\u00a0 = &#8216;<%Batch_Name%>&#8216; )<br \/>\nORDER BY tab_batch.E3TimeStamp\u00a0 ASC<\/span><\/p>\n<p>6. Insert the following script into Batch E3Browser&#8217;s <i>DblClick <\/i>event:<\/p>\n<p><span style=\"font-family: Courier New;\">batch = GetColumnValue(0)<br \/>\nset query = Screen.Item(&#8220;E3Browser2&#8221;).Item(&#8220;Query1&#8221;)<br \/>\nquery.SetVariableValue &#8220;Batch_Name&#8221;, batch<\/span><\/p>\n<p>This script retrieves the name of the selected batch (<i>GetColumnValue<\/i>), which goes to the variable of the query of the other E3Browser.<\/p>\n<p>7. Insert the following scripts into buttons <b>Start Batch<\/b>, <b>Stop Batch<\/b>, and <b>Restart Last Batch<\/b>:<\/p>\n<p><u>Start Batch:<\/u><br \/>\n<span style=\"font-family: Courier New;\">set batch_name = Application.GetObject(&#8220;Data.Batch&#8221;)<br \/>\nbatch = InputBox (&#8220;Insert batch name&#8221;)<br \/>\nif batch <> &#8220;&#8221; then<br \/>\nbatch_name.Value = batch<br \/>\nApplication.GetObject(&#8220;Hist1&#8243;).ScanTime = 1000<br \/>\nMsgBox batch_name.Value &#038; &#8221; Started!&#8221;<br \/>\nelse<br \/>\nMsgBox &#8220;Batch name not informed.&#8221;<br \/>\nend if<\/span><\/p>\n<p><u>Stop Batch:<\/u><br \/>\n<span style=\"font-family: Courier New;\">batch_name = Application.GetObject(&#8220;Data.Batch&#8221;).Value<br \/>\nApplication.GetObject(&#8220;Hist1&#8243;).ScanTime = 0<br \/>\nMsgBox\u00a0 batch_name &#038; &#8221; Finished&#8221;<\/span><\/p>\n<p><u>Restart Last Batch:<\/u><br \/>\n<span style=\"font-family: Courier New;\">batch_name = Application.GetObject(&#8220;Data.Batch&#8221;).Value<br \/>\nApplication.GetObject(&#8220;Hist1&#8243;).ScanTime = 1000<br \/>\nMsgBox batch_name &#038; &#8221; Restarted!&#8221;<br \/>\nNOTE: Attached to this article is a sample application developed in E3 version 4.0 Build 214.<br \/>\n<\/span><\/p>\n<h3>Attachments:<\/h3>\n<p><a href=\"\/wp-content\/uploads\/2019\/03\/Sample.zip\">Sample<\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Question: Can I record\/visualize data from a specific batch in an E3 Historic, similarly to what happens with Elipse SCADA? Solution: Yes, you can. To do so, follow these procedures:&hellip;<\/p>\n","protected":false},"author":16,"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":[749],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Batch history in E3. - 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\/en\/batch-history-in-e3\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Batch history in E3.\" \/>\n<meta property=\"og:description\" content=\"Question: Can I record\/visualize data from a specific batch in an E3 Historic, similarly to what happens with Elipse SCADA? Solution: Yes, you can. To do so, follow these procedures:&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kb.elipse.com.br\/en\/batch-history-in-e3\/\" \/>\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:42:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-01-23T13:24:18+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4772\/Figura%201.png\" \/>\n<meta name=\"author\" content=\"C\u00e9zar Lumiatti Teixeira\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"C\u00e9zar Lumiatti Teixeira\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/batch-history-in-e3\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/batch-history-in-e3\/\"},\"author\":{\"name\":\"C\u00e9zar Lumiatti Teixeira\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/843cbcdf9865f72399446377cf0cfc2b\"},\"headline\":\"Batch history in E3.\",\"datePublished\":\"2019-03-25T20:42:39+00:00\",\"dateModified\":\"2020-01-23T13:24:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/batch-history-in-e3\/\"},\"wordCount\":386,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\"},\"articleSection\":[\"Historic\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/kb.elipse.com.br\/en\/batch-history-in-e3\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/batch-history-in-e3\/\",\"url\":\"https:\/\/kb.elipse.com.br\/en\/batch-history-in-e3\/\",\"name\":\"[:pt]Batch history in E3.[:] - Elipse Knowledgebase\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#website\"},\"datePublished\":\"2019-03-25T20:42:39+00:00\",\"dateModified\":\"2020-01-23T13:24:18+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/batch-history-in-e3\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kb.elipse.com.br\/en\/batch-history-in-e3\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/batch-history-in-e3\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\/\/kb.elipse.com.br\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Batch history in E3.\"}]},{\"@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\/843cbcdf9865f72399446377cf0cfc2b\",\"name\":\"C\u00e9zar Lumiatti Teixeira\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8ab17a30c6ba62b79eaefe2a0a0b8b1b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8ab17a30c6ba62b79eaefe2a0a0b8b1b?s=96&d=mm&r=g\",\"caption\":\"C\u00e9zar Lumiatti Teixeira\"},\"url\":\"https:\/\/kb.elipse.com.br\/en\/author\/teixeira\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Batch history in E3. - 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\/en\/batch-history-in-e3\/","og_locale":"en_US","og_type":"article","og_title":"[:pt]Batch history in E3.[:] - Elipse Knowledgebase","og_description":"Question: Can I record\/visualize data from a specific batch in an E3 Historic, similarly to what happens with Elipse SCADA? Solution: Yes, you can. To do so, follow these procedures:&hellip;","og_url":"https:\/\/kb.elipse.com.br\/en\/batch-history-in-e3\/","og_site_name":"Elipse Knowledgebase","article_publisher":"http:\/\/www.facebook.com\/elipsesoftware","article_published_time":"2019-03-25T20:42:39+00:00","article_modified_time":"2020-01-23T13:24:18+00:00","og_image":[{"url":"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4772\/Figura%201.png"}],"author":"C\u00e9zar Lumiatti Teixeira","twitter_card":"summary_large_image","twitter_misc":{"Written by":"C\u00e9zar Lumiatti Teixeira","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kb.elipse.com.br\/en\/batch-history-in-e3\/#article","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/en\/batch-history-in-e3\/"},"author":{"name":"C\u00e9zar Lumiatti Teixeira","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/843cbcdf9865f72399446377cf0cfc2b"},"headline":"Batch history in E3.","datePublished":"2019-03-25T20:42:39+00:00","dateModified":"2020-01-23T13:24:18+00:00","mainEntityOfPage":{"@id":"https:\/\/kb.elipse.com.br\/en\/batch-history-in-e3\/"},"wordCount":386,"commentCount":0,"publisher":{"@id":"https:\/\/kb.elipse.com.br\/#organization"},"articleSection":["Historic"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kb.elipse.com.br\/en\/batch-history-in-e3\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kb.elipse.com.br\/en\/batch-history-in-e3\/","url":"https:\/\/kb.elipse.com.br\/en\/batch-history-in-e3\/","name":"[:pt]Batch history in E3.[:] - Elipse Knowledgebase","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/#website"},"datePublished":"2019-03-25T20:42:39+00:00","dateModified":"2020-01-23T13:24:18+00:00","breadcrumb":{"@id":"https:\/\/kb.elipse.com.br\/en\/batch-history-in-e3\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kb.elipse.com.br\/en\/batch-history-in-e3\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/kb.elipse.com.br\/en\/batch-history-in-e3\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/kb.elipse.com.br\/en\/"},{"@type":"ListItem","position":2,"name":"Batch history in E3."}]},{"@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\/843cbcdf9865f72399446377cf0cfc2b","name":"C\u00e9zar Lumiatti Teixeira","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/8ab17a30c6ba62b79eaefe2a0a0b8b1b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8ab17a30c6ba62b79eaefe2a0a0b8b1b?s=96&d=mm&r=g","caption":"C\u00e9zar Lumiatti Teixeira"},"url":"https:\/\/kb.elipse.com.br\/en\/author\/teixeira\/"}]}},"_links":{"self":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/3091"}],"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\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/comments?post=3091"}],"version-history":[{"count":3,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/3091\/revisions"}],"predecessor-version":[{"id":9977,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/3091\/revisions\/9977"}],"wp:attachment":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/media?parent=3091"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/categories?post=3091"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/tags?post=3091"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}