{"id":169,"date":"2020-03-08T15:06:29","date_gmt":"2020-03-08T15:06:29","guid":{"rendered":"https:\/\/edupez.com\/?p=169"},"modified":"2020-03-08T15:06:29","modified_gmt":"2020-03-08T15:06:29","slug":"labview-tip-7-for-cycle","status":"publish","type":"post","link":"https:\/\/edupez.com\/labview\/2020\/03\/08\/labview-tip-7-for-cycle\/","title":{"rendered":"LABVIEW \u2013 Tip #7 \u2013 FOR Cycle"},"content":{"rendered":"\n<p> The number of cycles can be initialized with the \u201cN\u201d or by the\u00a0<em>array<\/em>\u00a0entry of the FOR\u00a0<em>cycle.\u00a0<\/em>When it is initialized with \u201c0\u201d on the \u201cN\u201d, the code that is inside the FOR\u00a0<em>cycle\u00a0<\/em>will not executed and the exit tunnels will have their values as\u00a0<em>default<\/em>. In case that it is a simple tunnel the\u00a0<em>default<\/em>\u00a0value is the same as the variable type default value, however if it is a\u00a0<em>shift register<\/em>\u00a0the value is the same as the one that is on the entry. So, when initializing with\u00a0<em>arrays,\u00a0<\/em>the quantity of cycles will be defined by the smaller<em>\u00a0array size.<\/em>\u00a0All the other tunnel entries values don\u2019t change the number of cycles in the FOR cycle. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"595\" height=\"293\" src=\"https:\/\/edupez.com\/wp-content\/uploads\/2020\/03\/1-6.jpg\" alt=\"\" class=\"wp-image-170\" srcset=\"https:\/\/edupez.com\/wp-content\/uploads\/2020\/03\/1-6.jpg 595w, https:\/\/edupez.com\/wp-content\/uploads\/2020\/03\/1-6-300x148.jpg 300w\" sizes=\"(max-width: 595px) 85vw, 595px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"777\" height=\"370\" src=\"https:\/\/edupez.com\/wp-content\/uploads\/2020\/03\/2-3.jpg\" alt=\"\" class=\"wp-image-171\" srcset=\"https:\/\/edupez.com\/wp-content\/uploads\/2020\/03\/2-3.jpg 777w, https:\/\/edupez.com\/wp-content\/uploads\/2020\/03\/2-3-300x143.jpg 300w, https:\/\/edupez.com\/wp-content\/uploads\/2020\/03\/2-3-768x366.jpg 768w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>The number of cycles can be initialized with the \u201cN\u201d or by the\u00a0array\u00a0entry of the FOR\u00a0cycle.\u00a0When it is initialized with \u201c0\u201d on the \u201cN\u201d, the code that is inside the FOR\u00a0cycle\u00a0will not executed and the exit tunnels will have their values as\u00a0default. In case that it is a simple tunnel the\u00a0default\u00a0value is the same as &hellip; <a href=\"https:\/\/edupez.com\/labview\/2020\/03\/08\/labview-tip-7-for-cycle\/\" class=\"more-link\">Continuar a ler<span class=\"screen-reader-text\"> &#8220;LABVIEW \u2013 Tip #7 \u2013 FOR Cycle&#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\/169"}],"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=169"}],"version-history":[{"count":1,"href":"https:\/\/edupez.com\/labview\/wp-json\/wp\/v2\/posts\/169\/revisions"}],"predecessor-version":[{"id":172,"href":"https:\/\/edupez.com\/labview\/wp-json\/wp\/v2\/posts\/169\/revisions\/172"}],"wp:attachment":[{"href":"https:\/\/edupez.com\/labview\/wp-json\/wp\/v2\/media?parent=169"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/edupez.com\/labview\/wp-json\/wp\/v2\/categories?post=169"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/edupez.com\/labview\/wp-json\/wp\/v2\/tags?post=169"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}