{"id":293,"date":"2018-02-07T09:50:14","date_gmt":"2018-02-07T09:50:14","guid":{"rendered":"http:\/\/fpganow.com\/?p=293"},"modified":"2018-02-07T10:01:22","modified_gmt":"2018-02-07T10:01:22","slug":"screen-shot-generator-for-labview","status":"publish","type":"post","link":"https:\/\/fpganow.com\/index.php\/2018\/02\/07\/screen-shot-generator-for-labview\/","title":{"rendered":"Screen Shot Generator for LabVIEW"},"content":{"rendered":"<p>I finished writing an application that exercises the first Port of the 10 Gigabit Ethernet Interface that is provided with the National Instruments PXIe-6592R board and as I started taking manual screenshots via the LabVIEW &#8220;File-&gt;Print&#8221; option I began to ponder, can this be done more easily? Or dare I say it &#8220;programmatically&#8221;?<\/p>\n<p>The LabVIEW Report Generation Palette has a VI named &#8220;Easy Print VI Panel and Documentation&#8221;.\u00a0 In addition to the plethora of options, this VI also is hard to use and proved to be unstable for my purposes.\u00a0 If you want to try it in your application, see the documentation here:<\/p>\n<p><a href=\"http:\/\/zone.ni.com\/reference\/en-XX\/help\/371361H-01\/lvreport\/easy_print_panel_doc\/\">http:\/\/zone.ni.com\/reference\/en-XX\/help\/371361H-01\/lvreport\/easy_print_panel_doc\/<\/a><\/p>\n<p>I ended up finding a way to manually save a png file with the Front Panel and the Block Diagram of a VI.\u00a0 I then wrote a program that will recursively generate both a front panel and block diagram screenshot for each vi it encounters.\u00a0 This makes is easy for me to quickly create and update any vi images so that you can view the source code directly from github, without having to wait until you get home and open the code in LabVIEW.<\/p>\n<p>See the github project here:<\/p>\n<p><a href=\"https:\/\/github.com\/JohnStratoudakis\/ScreenShotGen\">https:\/\/github.com\/JohnStratoudakis\/ScreenShotGen<\/a><\/p>\n<p>Here is a screenshot of the top level vi of the application:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-299\" src=\"http:\/\/fpganow.com\/wp-content\/uploads\/2018\/02\/GetAllFiles-Back.png\" alt=\"\" width=\"577\" height=\"338\" srcset=\"https:\/\/fpganow.com\/wp-content\/uploads\/2018\/02\/GetAllFiles-Back.png 577w, https:\/\/fpganow.com\/wp-content\/uploads\/2018\/02\/GetAllFiles-Back-300x176.png 300w\" sizes=\"auto, (max-width: 577px) 100vw, 577px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I finished writing an application that exercises the first Port of the 10 Gigabit Ethernet Interface that is provided with the National Instruments PXIe-6592R board and as I started taking manual screenshots via the LabVIEW &#8220;File-&gt;Print&#8221; option I began to ponder, can this be done more easily? Or dare I say it &#8220;programmatically&#8221;? The LabVIEW &#8230; <a title=\"Screen Shot Generator for LabVIEW\" class=\"read-more\" href=\"https:\/\/fpganow.com\/index.php\/2018\/02\/07\/screen-shot-generator-for-labview\/\" aria-label=\"Read more about Screen Shot Generator for LabVIEW\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","footnotes":""},"categories":[6],"tags":[],"class_list":["post-293","post","type-post","status-publish","format-standard","hentry","category-labview","masonry-post","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50"],"_links":{"self":[{"href":"https:\/\/fpganow.com\/index.php\/wp-json\/wp\/v2\/posts\/293","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fpganow.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fpganow.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fpganow.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fpganow.com\/index.php\/wp-json\/wp\/v2\/comments?post=293"}],"version-history":[{"count":4,"href":"https:\/\/fpganow.com\/index.php\/wp-json\/wp\/v2\/posts\/293\/revisions"}],"predecessor-version":[{"id":300,"href":"https:\/\/fpganow.com\/index.php\/wp-json\/wp\/v2\/posts\/293\/revisions\/300"}],"wp:attachment":[{"href":"https:\/\/fpganow.com\/index.php\/wp-json\/wp\/v2\/media?parent=293"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fpganow.com\/index.php\/wp-json\/wp\/v2\/categories?post=293"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fpganow.com\/index.php\/wp-json\/wp\/v2\/tags?post=293"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}