{"id":44,"date":"2017-06-12T19:21:56","date_gmt":"2017-06-12T19:21:56","guid":{"rendered":"http:\/\/namauro.knight.domains\/gblinstrubas\/?p=44"},"modified":"2017-06-12T19:21:56","modified_gmt":"2017-06-12T19:21:56","slug":"creating-a-program-to-switch-data-types","status":"publish","type":"post","link":"https:\/\/namauro.knight.domains\/gblinstrubas\/2017\/06\/12\/creating-a-program-to-switch-data-types\/","title":{"rendered":"Creating a Program to Switch Data Types"},"content":{"rendered":"<p>The first step in creating a program to switch between two different data types\u00a0is to create two case structures. Inside these structures there are sub diagrams. The purpose of the case structure is to determine which diagram will<br \/>\nexecute when the program is ran. Then I added a switch to tell which program to execute. The two programs I added were to insert an image and to insert an excel file which gives me a graph. The displays for the VI&#8217;s need to be outside of the case structure. For my case it is the xy graph icon and the picture icon. It is also important to note that I want the structure to only run when the switch is in the true position. To accomplish this I can only create a VI when the case structure says true, and since I do not have a VI when the case structure says false I need to use the default if not wired between the display icon and the case structure. Also note these VI&#8217;s were built before this program was built. A picture of the program can be seen below.<img loading=\"lazy\" class=\"alignnone size-medium wp-image-45\" src=\"http:\/\/namauro.knight.domains\/gblinstrubas\/wp-content\/uploads\/sites\/20\/2017\/06\/program-to-switch-data-types-300x210.png\" alt=\"\" width=\"300\" height=\"210\" srcset=\"https:\/\/namauro.knight.domains\/gblinstrubas\/wp-content\/uploads\/sites\/20\/2017\/06\/program-to-switch-data-types-300x210.png 300w, https:\/\/namauro.knight.domains\/gblinstrubas\/wp-content\/uploads\/sites\/20\/2017\/06\/program-to-switch-data-types-768x537.png 768w, https:\/\/namauro.knight.domains\/gblinstrubas\/wp-content\/uploads\/sites\/20\/2017\/06\/program-to-switch-data-types.png 897w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>The top program is to insert an image on the front panel. On the left the switch can be seen. While the VI is inside of the case diagram. The bottom program is to insert an excel file and display a graph on the front panel.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The first step in creating a program to switch between two different data types\u00a0is to create two case structures. Inside these structures there are sub diagrams. The purpose of the case structure is to determine which diagram will execute when the program is ran. Then I added a switch to tell which program to execute.<\/p>\n<div class=\"read-more\"><a href=\"https:\/\/namauro.knight.domains\/gblinstrubas\/2017\/06\/12\/creating-a-program-to-switch-data-types\/\">Read More<\/a><\/div>\n","protected":false},"author":54,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/namauro.knight.domains\/gblinstrubas\/wp-json\/wp\/v2\/posts\/44"}],"collection":[{"href":"https:\/\/namauro.knight.domains\/gblinstrubas\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/namauro.knight.domains\/gblinstrubas\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/namauro.knight.domains\/gblinstrubas\/wp-json\/wp\/v2\/users\/54"}],"replies":[{"embeddable":true,"href":"https:\/\/namauro.knight.domains\/gblinstrubas\/wp-json\/wp\/v2\/comments?post=44"}],"version-history":[{"count":1,"href":"https:\/\/namauro.knight.domains\/gblinstrubas\/wp-json\/wp\/v2\/posts\/44\/revisions"}],"predecessor-version":[{"id":46,"href":"https:\/\/namauro.knight.domains\/gblinstrubas\/wp-json\/wp\/v2\/posts\/44\/revisions\/46"}],"wp:attachment":[{"href":"https:\/\/namauro.knight.domains\/gblinstrubas\/wp-json\/wp\/v2\/media?parent=44"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/namauro.knight.domains\/gblinstrubas\/wp-json\/wp\/v2\/categories?post=44"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/namauro.knight.domains\/gblinstrubas\/wp-json\/wp\/v2\/tags?post=44"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}