{"id":37,"date":"2017-06-12T20:36:11","date_gmt":"2017-06-12T20:36:11","guid":{"rendered":"http:\/\/namauro.knight.domains\/samarnauzs\/?p=37"},"modified":"2017-06-12T20:37:04","modified_gmt":"2017-06-12T20:37:04","slug":"switching-between-data-types-and-calling-sub-vis","status":"publish","type":"post","link":"https:\/\/namauro.knight.domains\/samarnauzs\/2017\/06\/12\/switching-between-data-types-and-calling-sub-vis\/","title":{"rendered":"Switching Between Data Types and Calling Sub VI&#8217;s"},"content":{"rendered":"<p><strong>Switching data types VI<\/strong><\/p>\n<p>There is a structure called &#8220;case structure&#8221; that will execute if the condition is true or false.<br \/>\nBy using the case structure, it is possible for the user to switch between data types.<\/p>\n<p><img loading=\"lazy\" class=\"alignnone wp-image-40 size-full\" src=\"http:\/\/namauro.knight.domains\/samarnauzs\/wp-content\/uploads\/sites\/22\/2017\/06\/SwitchingDataTypes.png\" alt=\"\" width=\"745\" height=\"540\" srcset=\"https:\/\/namauro.knight.domains\/samarnauzs\/wp-content\/uploads\/sites\/22\/2017\/06\/SwitchingDataTypes.png 745w, https:\/\/namauro.knight.domains\/samarnauzs\/wp-content\/uploads\/sites\/22\/2017\/06\/SwitchingDataTypes-300x217.png 300w\" sizes=\"(max-width: 745px) 100vw, 745px\" \/><\/p>\n<p>In the example above, the user can tell the program to complete an action for either an image, a excel spreadsheet, or both.<\/p>\n<p>LabVIEW also allows the programmer to call sub-VI&#8217;s. In the example below, the program will call the <strong>Switching Data Types VI<\/strong>, as shown above. This sub-VI requires two inputs\u00a0and will produce two outputs, replicating the VI shown above.<\/p>\n<p><img loading=\"lazy\" class=\"alignnone wp-image-38 size-full\" src=\"http:\/\/namauro.knight.domains\/samarnauzs\/wp-content\/uploads\/sites\/22\/2017\/06\/CallingVI_Block.png\" alt=\"\" width=\"207\" height=\"170\" \/><\/p>\n<p>The picture below shows how one can &#8220;map out&#8221; the sub-VI in the front panel. Notice the similarities with the picture below and the picture above.<\/p>\n<p><img loading=\"lazy\" class=\"alignnone wp-image-39 size-full\" src=\"http:\/\/namauro.knight.domains\/samarnauzs\/wp-content\/uploads\/sites\/22\/2017\/06\/CallingVI_viMap.png\" alt=\"\" width=\"74\" height=\"63\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Switching data types VI There is a structure called &#8220;case structure&#8221; that will execute if the condition is true or false. By using the case structure, it is possible for the user to switch between data types. In the example above, the user can tell the program to complete an action for either an image,<\/p>\n<div class=\"read-more\"><a href=\"https:\/\/namauro.knight.domains\/samarnauzs\/2017\/06\/12\/switching-between-data-types-and-calling-sub-vis\/\">Read More<\/a><\/div>\n","protected":false},"author":60,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4,5],"tags":[],"_links":{"self":[{"href":"https:\/\/namauro.knight.domains\/samarnauzs\/wp-json\/wp\/v2\/posts\/37"}],"collection":[{"href":"https:\/\/namauro.knight.domains\/samarnauzs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/namauro.knight.domains\/samarnauzs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/namauro.knight.domains\/samarnauzs\/wp-json\/wp\/v2\/users\/60"}],"replies":[{"embeddable":true,"href":"https:\/\/namauro.knight.domains\/samarnauzs\/wp-json\/wp\/v2\/comments?post=37"}],"version-history":[{"count":1,"href":"https:\/\/namauro.knight.domains\/samarnauzs\/wp-json\/wp\/v2\/posts\/37\/revisions"}],"predecessor-version":[{"id":41,"href":"https:\/\/namauro.knight.domains\/samarnauzs\/wp-json\/wp\/v2\/posts\/37\/revisions\/41"}],"wp:attachment":[{"href":"https:\/\/namauro.knight.domains\/samarnauzs\/wp-json\/wp\/v2\/media?parent=37"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/namauro.knight.domains\/samarnauzs\/wp-json\/wp\/v2\/categories?post=37"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/namauro.knight.domains\/samarnauzs\/wp-json\/wp\/v2\/tags?post=37"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}