<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: exe works only when debugging enabled in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/exe-works-only-when-debugging-enabled/m-p/2119384#M688317</link>
    <description>&lt;P&gt;SubVI needs its front panel according to that message. &amp;nbsp;By default, LabVIEW removes front panels for most subVIs because it doesn't expect them to ever be shown. &amp;nbsp;If your subVI isn't setup to be shown when run or loaded, LabVIEW will remove the front panel. &amp;nbsp;LabVIEW can remove panels of dynamic VIs as well because it can't tell that it is being called. &amp;nbsp;So you need to explicitly tell the application builder to not remove the front panel of the Vi.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Go to the EXE build specification. &amp;nbsp;In the Source File Settings, find the VI in question. &amp;nbsp;Uncheck the box telling LabVIEW to use default settings and make sure it does not remove the front panel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The reason it works with debugging is that debugging is including all the front panels to allow you to jump into the subVIs.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Aug 2012 14:19:18 GMT</pubDate>
    <dc:creator>Matthew_Kelton</dc:creator>
    <dc:date>2012-08-10T14:19:18Z</dc:date>
    <item>
      <title>exe works only when debugging enabled</title>
      <link>https://ni.lithium.com/t5/LabVIEW/exe-works-only-when-debugging-enabled/m-p/2118420#M688142</link>
      <description>&lt;P&gt;I have a VI that works great in Labview, but when I used the app builder, and ran it as an exe on the same computer, it&amp;nbsp;generates errors.&amp;nbsp; I turned the debugging on in the build specifications, re-built it, and no more errors.&amp;nbsp;&amp;nbsp;The error is somewhere in a VI server call that opens an asynchronous VI that reads from a VISA serial device.&amp;nbsp; It sure makes it hard to&amp;nbsp;debug something when turning the debugger on solves the problem...&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Should I just be happy that it works, or should I try to fix whatever the problem is?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TIA,&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2012 18:25:50 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/exe-works-only-when-debugging-enabled/m-p/2118420#M688142</guid>
      <dc:creator>TLentzner</dc:creator>
      <dc:date>2012-08-09T18:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: exe works only when debugging enabled</title>
      <link>https://ni.lithium.com/t5/LabVIEW/exe-works-only-when-debugging-enabled/m-p/2118850#M688223</link>
      <description>&lt;P&gt;What errors does it generate?&amp;nbsp; Those kinds of details can help others figure out what might be the problem.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2012 02:17:52 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/exe-works-only-when-debugging-enabled/m-p/2118850#M688223</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2012-08-10T02:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: exe works only when debugging enabled</title>
      <link>https://ni.lithium.com/t5/LabVIEW/exe-works-only-when-debugging-enabled/m-p/2119274#M688291</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Ravens Fan wrote:&lt;BR /&gt;
&lt;P&gt;What errors does it generate?&amp;nbsp; &lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I'm not sure.&amp;nbsp; It goes through my error handler and displays a pretty generic message that the connection to my instrument isn't working.&amp;nbsp;&amp;nbsp;I'll have to go in and get a&amp;nbsp;more detailed error message.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any disadvantage to&amp;nbsp;building my application with the debugger on besides a slightly larger file size (mine goes from 600kb to 1200kb)?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2012 13:17:05 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/exe-works-only-when-debugging-enabled/m-p/2119274#M688291</guid>
      <dc:creator>TLentzner</dc:creator>
      <dc:date>2012-08-10T13:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: exe works only when debugging enabled</title>
      <link>https://ni.lithium.com/t5/LabVIEW/exe-works-only-when-debugging-enabled/m-p/2119348#M688306</link>
      <description>&lt;P&gt;Here's the error message:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Invoke Node in SubVI Init.vi -&amp;gt;Main.vi &amp;lt;APPEND&amp;gt;&lt;/P&gt;
&lt;P&gt;The front panel for ...SubVI.vi could not be loaded but is required for this property or method."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The invoke node is a "run VI" method&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2012 13:56:24 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/exe-works-only-when-debugging-enabled/m-p/2119348#M688306</guid>
      <dc:creator>TLentzner</dc:creator>
      <dc:date>2012-08-10T13:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: exe works only when debugging enabled</title>
      <link>https://ni.lithium.com/t5/LabVIEW/exe-works-only-when-debugging-enabled/m-p/2119376#M688314</link>
      <description>&lt;P&gt;Make sure that subVI is included in your build with settings so that the Front Panel is not removed.&amp;nbsp; It is under the Source File Settings in the Build Spec.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Post a copy of that subVI.&amp;nbsp; Apparently there is something in there such as a property node that requires the front panel.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2012 14:15:09 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/exe-works-only-when-debugging-enabled/m-p/2119376#M688314</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2012-08-10T14:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: exe works only when debugging enabled</title>
      <link>https://ni.lithium.com/t5/LabVIEW/exe-works-only-when-debugging-enabled/m-p/2119384#M688317</link>
      <description>&lt;P&gt;SubVI needs its front panel according to that message. &amp;nbsp;By default, LabVIEW removes front panels for most subVIs because it doesn't expect them to ever be shown. &amp;nbsp;If your subVI isn't setup to be shown when run or loaded, LabVIEW will remove the front panel. &amp;nbsp;LabVIEW can remove panels of dynamic VIs as well because it can't tell that it is being called. &amp;nbsp;So you need to explicitly tell the application builder to not remove the front panel of the Vi.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Go to the EXE build specification. &amp;nbsp;In the Source File Settings, find the VI in question. &amp;nbsp;Uncheck the box telling LabVIEW to use default settings and make sure it does not remove the front panel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The reason it works with debugging is that debugging is including all the front panels to allow you to jump into the subVIs.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2012 14:19:18 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/exe-works-only-when-debugging-enabled/m-p/2119384#M688317</guid>
      <dc:creator>Matthew_Kelton</dc:creator>
      <dc:date>2012-08-10T14:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: exe works only when debugging enabled</title>
      <link>https://ni.lithium.com/t5/LabVIEW/exe-works-only-when-debugging-enabled/m-p/2119392#M688320</link>
      <description>&lt;P&gt;I think I got it sorted.&amp;nbsp; I had to move that subVI out from the dependancies and into the project proper.&amp;nbsp; Then I put it in the "always included" box in the source files section of the build properties.&amp;nbsp; I don't know why I decided to do that or why it works, but it seems to...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any good documentation on using build specifications besides the LabVIEW help?&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2012 14:21:49 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/exe-works-only-when-debugging-enabled/m-p/2119392#M688320</guid>
      <dc:creator>TLentzner</dc:creator>
      <dc:date>2012-08-10T14:21:49Z</dc:date>
    </item>
  </channel>
</rss>

