{"id":156,"date":"2020-03-08T14:58:47","date_gmt":"2020-03-08T14:58:47","guid":{"rendered":"https:\/\/edupez.com\/?p=156"},"modified":"2020-03-08T14:58:47","modified_gmt":"2020-03-08T14:58:47","slug":"labview-tip-4-function-global-variable-2","status":"publish","type":"post","link":"https:\/\/edupez.com\/labview\/2020\/03\/08\/labview-tip-4-function-global-variable-2\/","title":{"rendered":"LABVIEW \u2013 Tip #4 \u2013 Function Global Variable"},"content":{"rendered":"\n<p> To ensure the syncronism when using variables, we can create a highly customized function and use it in any section of the program. For that we can use the\u00a0<em>while\u00a0<\/em>\u00a0cycle to make one single interaction (\u201c<em>True\u201d\u00a0<\/em>in exit condition) storing one or more\u00a0<em>shift register<\/em>\u00a0to store the information. For the entry conditions of the \u201ccase\u201d we can use \u201cenum\u201d, \u201cstring\u201d, \u201cnumeric\u201d, \u201cbollean\u201d, depending on the requirement. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"521\" height=\"842\" src=\"https:\/\/edupez.com\/wp-content\/uploads\/2020\/03\/Sem-T\u00edtulo.jpg\" alt=\"\" class=\"wp-image-157\" srcset=\"https:\/\/edupez.com\/wp-content\/uploads\/2020\/03\/Sem-T\u00edtulo.jpg 521w, https:\/\/edupez.com\/wp-content\/uploads\/2020\/03\/Sem-T\u00edtulo-186x300.jpg 186w\" sizes=\"(max-width: 521px) 85vw, 521px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>To ensure the syncronism when using variables, we can create a highly customized function and use it in any section of the program. For that we can use the\u00a0while\u00a0\u00a0cycle to make one single interaction (\u201cTrue\u201d\u00a0in exit condition) storing one or more\u00a0shift register\u00a0to store the information. For the entry conditions of the \u201ccase\u201d we can use &hellip; <a href=\"https:\/\/edupez.com\/labview\/2020\/03\/08\/labview-tip-4-function-global-variable-2\/\" class=\"more-link\">Continuar a ler<span class=\"screen-reader-text\"> &#8220;LABVIEW \u2013 Tip #4 \u2013 Function Global Variable&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[9],"tags":[],"_links":{"self":[{"href":"https:\/\/edupez.com\/labview\/wp-json\/wp\/v2\/posts\/156"}],"collection":[{"href":"https:\/\/edupez.com\/labview\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/edupez.com\/labview\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/edupez.com\/labview\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/edupez.com\/labview\/wp-json\/wp\/v2\/comments?post=156"}],"version-history":[{"count":1,"href":"https:\/\/edupez.com\/labview\/wp-json\/wp\/v2\/posts\/156\/revisions"}],"predecessor-version":[{"id":158,"href":"https:\/\/edupez.com\/labview\/wp-json\/wp\/v2\/posts\/156\/revisions\/158"}],"wp:attachment":[{"href":"https:\/\/edupez.com\/labview\/wp-json\/wp\/v2\/media?parent=156"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/edupez.com\/labview\/wp-json\/wp\/v2\/categories?post=156"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/edupez.com\/labview\/wp-json\/wp\/v2\/tags?post=156"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}