{"id":2518,"date":"2019-03-25T17:39:57","date_gmt":"2019-03-25T20:39:57","guid":{"rendered":"http:\/\/xexeu.elipse.com.br\/pt\/using-libraries-in-elipse-e3-lesson-5\/"},"modified":"2020-01-20T17:21:37","modified_gmt":"2020-01-20T20:21:37","slug":"using-libraries-in-elipse-e3-lesson-5","status":"publish","type":"post","link":"https:\/\/kb.elipse.com.br\/en\/using-libraries-in-elipse-e3-lesson-5\/","title":{"rendered":"Using Libraries in Elipse E3: Lesson 5."},"content":{"rendered":"<h3 align=\"justify\">XControl and XObject<\/h3>\n<p align=\"justify\">An XControl is a graphical object which usually displays information about variables on a server. An XObject is a server object which usually is linked to a screen object to display its values in a graphical format. When using an XControl and an XObject simultaneously, you expand the application flexibility.<\/p>\n<h3 align=\"justify\">XControl <-> XObject<\/h3>\n<p align=\"justify\">As an example, let&#8217;s develop an XControl to the XObject EngineTag. The EngineTag is an XObject which was developed on the previous lesson to monitor the engine maintenance status, failure and speed. In case the engine is on failure, an alarm must be triggered.<\/p>\n<h4 align=\"justify\">Engine<\/h4>\n<p align=\"justify\">Let&#8217;s develop an XControl which displays values from EngineTag in a graphical form.<\/p>\n<p align=\"center\"><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4156\/fig_4156_001.png\" alt=\"\" width=\"221\" height=\"99\" align=\"Baseline\" border=\"0\" \/><\/p>\n<p align=\"center\"><span style=\"font-size: xx-small;\"><b>Figure 1<\/b><\/span><\/p>\n<div align=\"justify\">\n<ol>\n<li>Insert a new XControl named <code>Engine<\/code>.<\/li>\n<li>Insert an engine image (there are some images on the <b>Motors<\/b> group of the Gallery). The engine must blink in red and yellow to symbolize a failure.<\/li>\n<li>To change the failure status, let&#8217;s use a ToggleButton.<\/li>\n<li>Insert a Rectangle on the engine drawing to indicate if it is turned on or off.<\/li>\n<li>Insert a Display to show the RPM value and a Text to show the engine name.<\/li>\n<li>In the <b>Properties<\/b> tab of the XControl, create a property named <b>Source<\/b> of type <b>EngineTag<\/b>.<\/li>\n<\/ol>\n<\/div>\n<p align=\"center\"><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4156\/fig_4156_002.png\" alt=\"\" width=\"564\" height=\"68\" align=\"Baseline\" border=\"0\" \/><\/p>\n<p align=\"center\"><span style=\"font-size: xx-small;\"><b>Figure 2<\/b><\/span><\/p>\n<div align=\"justify\">\n<ol start=\"7\">\n<li>In the <b>Design<\/b> tab, create a Bidirectional Link from the <code>Fail<\/code> button to the <b>Source.Fail<\/b> property.<\/li>\n<\/ol>\n<\/div>\n<p align=\"center\"><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4156\/fig_4156_003.png\" alt=\"\" width=\"537\" height=\"447\" align=\"Baseline\" border=\"0\" \/><\/p>\n<p align=\"center\"><span style=\"font-size: xx-small;\"><b>Figure 3<\/b><\/span><\/p>\n<div align=\"justify\">\n<ol start=\"8\">\n<li>Select the engine image and create a Digital Link to change its color. It blinks in yellow and red when on failure, and gray when working properly.<\/li>\n<\/ol>\n<\/div>\n<p align=\"center\"><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4156\/fig_4156_004_A.png\" alt=\"\" width=\"500\" height=\"164\" align=\"Baseline\" border=\"0\" \/><\/p>\n<p align=\"center\"><span style=\"font-size: xx-small;\"><b>Figure 4<\/b><\/span><\/p>\n<div align=\"justify\">\n<ol start=\"9\">\n<li>Create a Simple Link in the Display, to show the <b>RPM<\/b> property of the EngineTag.<\/li>\n<\/ol>\n<\/div>\n<p align=\"center\"><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4156\/fig_4156_005.png\" alt=\"\" width=\"503\" height=\"113\" align=\"Baseline\" border=\"0\" \/><\/p>\n<p align=\"center\"><span style=\"font-size: xx-small;\"><b>Figure 5<\/b><\/span><\/p>\n<div align=\"justify\">\n<ol start=\"10\">\n<li>Create a Simple Link in the Text with the <b>Name<\/b> property of the EngineTag.<\/li>\n<\/ol>\n<\/div>\n<p align=\"center\"><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4156\/fig_4156_006.png\" alt=\"\" width=\"562\" height=\"100\" align=\"Baseline\" border=\"0\" \/><\/p>\n<p align=\"center\"><span style=\"font-size: xx-small;\"><b>Figure 6<\/b><\/span><\/p>\n<div align=\"justify\">\n<ol start=\"11\">\n<li>Save and register the Library.<\/li>\n<\/ol>\n<\/div>\n<p align=\"justify\">To use the XControl, follow these steps:<\/p>\n<div align=\"justify\">\n<ol>\n<li>In the <code>InitialScreen<\/code>, insert an Engine object for each existing <code>EngineTag<\/code> on the Data folder.<\/li>\n<li>Link every Engine object inserted on the Screen, in the <b>Source<\/b> property, with one <code>EngineTag<\/code> of the Data folder.<\/li>\n<\/ol>\n<\/div>\n<p align=\"center\"><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4156\/fig_4156_007.png\" alt=\"\" width=\"543\" height=\"209\" align=\"Baseline\" border=\"0\" \/><\/p>\n<p align=\"center\"><span style=\"font-size: xx-small;\"><b>Figure 7<\/b><\/span><\/p>\n<div align=\"justify\">\n<ol start=\"3\">\n<li>Execute the application and test its functionalities.<\/li>\n<\/ol>\n<\/div>\n<h3 align=\"justify\">Exercises<\/h3>\n<div align=\"justify\">\n<ol>\n<li>Create an XControl for the XObject <code>MaintenanceTime<\/code>.<\/li>\n<li>Create an XControl for the XObject <code>ValveTag<\/code>.<\/li>\n<li>Create an XObject for the XControl <code>Speedometer<\/code> with the following requisites:<\/li>\n<\/ol>\n<ul>\n<li>Properties: <b>Value<\/b>, <b>Minimum<\/b> e <b>Maximum<\/b>.<\/li>\n<li>Alarm: when its value is different from 70% of the maximum, with a dead band of five units.<\/li>\n<li>Perform the modifications in the XControl <code>Speedometer<\/code>.<\/li>\n<\/ul>\n<ol start=\"4\">\n<li>Create an XObject for the XControl <code>Bottle<\/code> with the following configurations:<\/li>\n<\/ol>\n<ul>\n<li>Property: <b>Level<\/b>.<\/li>\n<li>Alarms: property <b>Level<\/b> less than 30 and greater than 70.<\/li>\n<li>The level value must be generated internally in the XObject (Tag Demo).<\/li>\n<li>Perform the modifications in the XControl <code>Bottle<\/code>.<\/li>\n<\/ul>\n<ol start=\"5\">\n<li>Create an XObject for the XControl <code>Controller<\/code> with the following configurations:<\/li>\n<\/ol>\n<ul>\n<li>Properties: <b>Variable<\/b>, <b>Setpoint<\/b> and <b>Alarm<\/b>.<\/li>\n<li>Alarms: when the <b>Variable<\/b> property is greater than <b>SetPoint<\/b>.<\/li>\n<\/ul>\n<ol start=\"6\">\n<li>Perform the modifications in the XControl <code>Controller<\/code>.<\/li>\n<\/ol>\n<h3>Attachments:<\/h3>\n<p><a href=\"\/wp-content\/uploads\/2019\/03\/LibrariesCap5.zip\">LibrariesCap5.zip<\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Autor<br \/>\nPaula En\u00e9as<\/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":[769],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Using Libraries in Elipse E3: Lesson 5. - 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\/using-libraries-in-elipse-e3-lesson-5\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Using Libraries in Elipse E3: Lesson 5.\" \/>\n<meta property=\"og:description\" content=\"Autor Paula En\u00e9as\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kb.elipse.com.br\/en\/using-libraries-in-elipse-e3-lesson-5\/\" \/>\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:39:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-01-20T20:21:37+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4156\/fig_4156_001.png\" \/>\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=\"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\/using-libraries-in-elipse-e3-lesson-5\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/using-libraries-in-elipse-e3-lesson-5\/\"},\"author\":{\"name\":\"Elipse Software\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87\"},\"headline\":\"Using Libraries in Elipse E3: Lesson 5.\",\"datePublished\":\"2019-03-25T20:39:57+00:00\",\"dateModified\":\"2020-01-20T20:21:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/using-libraries-in-elipse-e3-lesson-5\/\"},\"wordCount\":463,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\"},\"articleSection\":[\"XControl \/ XObject \/ Lib\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/kb.elipse.com.br\/en\/using-libraries-in-elipse-e3-lesson-5\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/using-libraries-in-elipse-e3-lesson-5\/\",\"url\":\"https:\/\/kb.elipse.com.br\/en\/using-libraries-in-elipse-e3-lesson-5\/\",\"name\":\"[:pt]Using Libraries in Elipse E3: Lesson 5.[:] - Elipse Knowledgebase\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#website\"},\"datePublished\":\"2019-03-25T20:39:57+00:00\",\"dateModified\":\"2020-01-20T20:21:37+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/using-libraries-in-elipse-e3-lesson-5\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kb.elipse.com.br\/en\/using-libraries-in-elipse-e3-lesson-5\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/using-libraries-in-elipse-e3-lesson-5\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\/\/kb.elipse.com.br\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Using Libraries in Elipse E3: Lesson 5.\"}]},{\"@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":"Using Libraries in Elipse E3: Lesson 5. - 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\/using-libraries-in-elipse-e3-lesson-5\/","og_locale":"en_US","og_type":"article","og_title":"[:pt]Using Libraries in Elipse E3: Lesson 5.[:] - Elipse Knowledgebase","og_description":"[:pt]Autor Paula En\u00e9as[:]","og_url":"https:\/\/kb.elipse.com.br\/en\/using-libraries-in-elipse-e3-lesson-5\/","og_site_name":"Elipse Knowledgebase","article_publisher":"http:\/\/www.facebook.com\/elipsesoftware","article_published_time":"2019-03-25T20:39:57+00:00","article_modified_time":"2020-01-20T20:21:37+00:00","og_image":[{"url":"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4156\/fig_4156_001.png"}],"author":"Elipse Software","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Elipse Software","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kb.elipse.com.br\/en\/using-libraries-in-elipse-e3-lesson-5\/#article","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/en\/using-libraries-in-elipse-e3-lesson-5\/"},"author":{"name":"Elipse Software","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/def69ea453ea60b250497b89225a9f87"},"headline":"Using Libraries in Elipse E3: Lesson 5.","datePublished":"2019-03-25T20:39:57+00:00","dateModified":"2020-01-20T20:21:37+00:00","mainEntityOfPage":{"@id":"https:\/\/kb.elipse.com.br\/en\/using-libraries-in-elipse-e3-lesson-5\/"},"wordCount":463,"commentCount":0,"publisher":{"@id":"https:\/\/kb.elipse.com.br\/#organization"},"articleSection":["XControl \/ XObject \/ Lib"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kb.elipse.com.br\/en\/using-libraries-in-elipse-e3-lesson-5\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kb.elipse.com.br\/en\/using-libraries-in-elipse-e3-lesson-5\/","url":"https:\/\/kb.elipse.com.br\/en\/using-libraries-in-elipse-e3-lesson-5\/","name":"[:pt]Using Libraries in Elipse E3: Lesson 5.[:] - Elipse Knowledgebase","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/#website"},"datePublished":"2019-03-25T20:39:57+00:00","dateModified":"2020-01-20T20:21:37+00:00","breadcrumb":{"@id":"https:\/\/kb.elipse.com.br\/en\/using-libraries-in-elipse-e3-lesson-5\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kb.elipse.com.br\/en\/using-libraries-in-elipse-e3-lesson-5\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/kb.elipse.com.br\/en\/using-libraries-in-elipse-e3-lesson-5\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/kb.elipse.com.br\/en\/"},{"@type":"ListItem","position":2,"name":"Using Libraries in Elipse E3: Lesson 5."}]},{"@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\/2518"}],"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=2518"}],"version-history":[{"count":1,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/2518\/revisions"}],"predecessor-version":[{"id":5236,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/2518\/revisions\/5236"}],"wp:attachment":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/media?parent=2518"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/categories?post=2518"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/tags?post=2518"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}