<?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: open vi reference by string in executable in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/open-vi-reference-by-string-in-executable/m-p/896732#M404696</link>
    <description>&lt;P&gt;Thoric,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;changing the VI's name to the (absolute/relative) path is definetly something you should try.&lt;/P&gt;&lt;P&gt;You are correct, in my test i used a path-constant where i simply inserted the name of the VI (without it's relative path).&lt;/P&gt;&lt;P&gt;After changing the path-constant into a string one (wihtout changing the content), i receive the following error:&lt;/P&gt;&lt;P&gt;LabVIEW:&amp;nbsp; The VI is not in memory.&lt;BR /&gt;&lt;BR /&gt;To load a VI into memory with the Open VI Reference function, a path must be wired for the VI Path input.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So in either case, you have to work with a path. In your developement system it only works if you opened your subVI before, hence you have it already in memory.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hope this helps,&lt;/P&gt;&lt;P&gt;Norbert&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Apr 2009 13:05:14 GMT</pubDate>
    <dc:creator>Norbert_B</dc:creator>
    <dc:date>2009-04-27T13:05:14Z</dc:date>
    <item>
      <title>open vi reference by string in executable</title>
      <link>https://ni.lithium.com/t5/LabVIEW/open-vi-reference-by-string-in-executable/m-p/896691#M404673</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Scenario: A top-most vi (main.vi) calls two subvis (subvi1.vi and subvi2.vi) separately such that they run in parallel. subvi1.vi has a front panel that appears when called, subvi2.vi does not. &lt;/P&gt;&lt;P&gt;subvi2.vi uses Open vi Reference to get a reference to subvi1.vi. It then uses this reference in a loop and continually polls the property FrontPanel.IsFrontmost to determine if the front panel of subvi1.vi is frontmost. When it is frontmost, it performs certain actions. When it isn't frontmost - it doesn't. &lt;/P&gt;&lt;P&gt;This all works great in the development environment, but as soon as I build this 'scenario' into an application I get the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;IMG src="http://forums.ni.com/ni/attachments/ni/170/404673/1/crash.jpg" border="0" /&gt;&lt;/P&gt;&lt;P&gt;subvi2.vi is generating the reference to subvi1.vi using the string "subvi1.vi" as an input to the path terminal of the Open vi Reference function. Why does this cause problems in a built executable?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S. Clearly this scenario is actually a part of my much bigger project, hence I don't have any simple vi's to attach&amp;nbsp;&lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://ni.lithium.com/i/smilies/16x16_smiley-sad.gif" alt="Smiley Sad" title="Smiley Sad" /&gt; &lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by Thoric on &lt;/SPAN&gt;&lt;SPAN class="local-date"&gt; 04-27-2009&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt; 01:06 PM&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 27 Apr 2009 12:06:48 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/open-vi-reference-by-string-in-executable/m-p/896691#M404673</guid>
      <dc:creator>Thoric</dc:creator>
      <dc:date>2009-04-27T12:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: open vi reference by string in executable</title>
      <link>https://ni.lithium.com/t5/LabVIEW/open-vi-reference-by-string-in-executable/m-p/896711#M404683</link>
      <description>&lt;P&gt;The "string" method of naming a VI only works if the VI is already in memory. I would throw in two indicators to help narron this down. For VI1 (that shows it FP), shows its complete path on the FP when in the exe to figure out if name mangiling is happening. In VI2 add a pop-up that hsows you error coluster after you attempt to open the ref to VI1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Two other things that could be happening (not sure yet) are if the new VI is opening in the same context as VI1 and VI Server setting to allow opening the ref to vi1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just trying to help,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by Ben on &lt;/SPAN&gt;&lt;SPAN class="local-date"&gt; 04-27-2009&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt; 07:39 AM&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 27 Apr 2009 12:39:41 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/open-vi-reference-by-string-in-executable/m-p/896711#M404683</guid>
      <dc:creator>Ben</dc:creator>
      <dc:date>2009-04-27T12:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: open vi reference by string in executable</title>
      <link>https://ni.lithium.com/t5/LabVIEW/open-vi-reference-by-string-in-executable/m-p/896714#M404685</link>
      <description>&lt;P&gt;Thoric,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it's disturbing that LV is crashing on your system due to this error.&amp;nbsp; What version of LV do you use?&lt;/P&gt;&lt;P&gt;LV 8.6.1 at least (i don't know which version was the first one) creates the following error:&lt;/P&gt;&lt;P&gt;LabVIEW:&amp;nbsp; Open VI Reference no longer matches VIs in memory by filename. A filename is no longer sufficient because the full name of a VI now includes any owning libraries.&lt;/P&gt;&lt;P&gt;This error occurs even in the developement system.&lt;/P&gt;&lt;P&gt;I asume that the crash itself is created by handling of invalid references.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hope this helps,&lt;/P&gt;&lt;P&gt;Norbert&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2009 12:40:25 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/open-vi-reference-by-string-in-executable/m-p/896714#M404685</guid>
      <dc:creator>Norbert_B</dc:creator>
      <dc:date>2009-04-27T12:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: open vi reference by string in executable</title>
      <link>https://ni.lithium.com/t5/LabVIEW/open-vi-reference-by-string-in-executable/m-p/896717#M404686</link>
      <description>&lt;P&gt;Hi Ben,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for suggestions - however I'm having a little trouble implementing them:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;I would throw in two indicators to help narron this down. For VI1 (that shows it FP), shows its complete path on the FP when in the exe to figure out if name mangiling is happening. In VI2 add a pop-up that hsows you error coluster after you attempt to open the ref to VI1.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt; Unfortunately, the crash occurs before the front panel of subvi1.vi appears, and before subvi2.vi runs, therefore I cannot see the result of a path indicator on subvi1.vi nor an error cluster/dialogue in subvi2.vi. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;Two other things that could be happening (not sure yet) are if the new VI is opening in the &lt;STRONG&gt;same context&lt;/STRONG&gt; as VI1 and &lt;STRONG&gt;VI Server setting to allow opening the ref to vi1&lt;/STRONG&gt;.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt; Not sure what you mean here Ben, can you elucidate a little for me please? &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2009 12:45:59 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/open-vi-reference-by-string-in-executable/m-p/896717#M404686</guid>
      <dc:creator>Thoric</dc:creator>
      <dc:date>2009-04-27T12:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: open vi reference by string in executable</title>
      <link>https://ni.lithium.com/t5/LabVIEW/open-vi-reference-by-string-in-executable/m-p/896721#M404688</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;Norbert B wrote: &lt;BR /&gt;&lt;P&gt;Thoric,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it's disturbing that LV is crashing on your system due to this error.&amp;nbsp; What version of LV do you use?&lt;/P&gt;&lt;P&gt;LV 8.6.1 at least (i don't know which version was the first one) creates the following error:&lt;/P&gt;&lt;P&gt;LabVIEW:&amp;nbsp; Open VI Reference no longer matches VIs in memory by filename. A filename is no longer sufficient because the full name of a VI now includes any owning libraries.&lt;/P&gt;&lt;P&gt;This error occurs even in the developement system.&lt;/P&gt;&lt;P&gt;I asume that the crash itself is created by handling of invalid references.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hope this helps,&lt;/P&gt;&lt;P&gt;Norbert&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt; Norbert,&lt;/P&gt;&lt;P&gt;I am using LV 8.6 (not 8.6.1). I am using &lt;EM&gt;strings &lt;/EM&gt;to identify vis, not paths. I &lt;EM&gt;believe&lt;/EM&gt; the error you are encountering only relates to using &lt;EM&gt;paths &lt;/EM&gt;for referencing vis.&lt;/P&gt;&lt;P&gt;If your assumption is correct and my crash is due the handling of invalid references, then I need to generate a path to the vi, rather then using it's name. But generating a full (non-relative) path might be tricky? If within subvi2.vi I use the 'current vi's path' function and strip it to determine the executable path, then add subvi1.vi, should that get me the path to subvi1? &lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2009 12:50:32 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/open-vi-reference-by-string-in-executable/m-p/896721#M404688</guid>
      <dc:creator>Thoric</dc:creator>
      <dc:date>2009-04-27T12:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: open vi reference by string in executable</title>
      <link>https://ni.lithium.com/t5/LabVIEW/open-vi-reference-by-string-in-executable/m-p/896724#M404691</link>
      <description>&lt;P&gt;Hi Thoric,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THe issue may be realted to not being able to run and show VI1 now that I read that added info. In that case put up some indicators around launching VI to show the error cluster from trying to launch and open it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;RE: my goobly-gook...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Multiple LV exe can run side by side because they run in different contexts (OS memory space is unique to that app). If you look at the inputs of the Open VI ref you will see that you can dictate which context it will open the VI in. VI server also comes into play as well in an exe so this is where the error code (if any) from trying to open and load VI1 can help us out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2009 12:56:53 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/open-vi-reference-by-string-in-executable/m-p/896724#M404691</guid>
      <dc:creator>Ben</dc:creator>
      <dc:date>2009-04-27T12:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: open vi reference by string in executable</title>
      <link>https://ni.lithium.com/t5/LabVIEW/open-vi-reference-by-string-in-executable/m-p/896729#M404694</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;Thoric wrote: &lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;Norbert B wrote: &lt;BR /&gt;&lt;P&gt;Thoric,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it's disturbing that LV is crashing on your system due to this error.&amp;nbsp; What version of LV do you use?&lt;/P&gt;&lt;P&gt;LV 8.6.1 at least (i don't know which version was the first one) creates the following error:&lt;/P&gt;&lt;P&gt;LabVIEW:&amp;nbsp; Open VI Reference no longer matches VIs in memory by filename. A filename is no longer sufficient because the full name of a VI now includes any owning libraries.&lt;/P&gt;&lt;P&gt;This error occurs even in the developement system.&lt;/P&gt;&lt;P&gt;I asume that the crash itself is created by handling of invalid references.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hope this helps,&lt;/P&gt;&lt;P&gt;Norbert&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Norbert,&lt;/P&gt;&lt;P&gt;I am using LV 8.6 (not 8.6.1). I am using &lt;EM&gt;strings &lt;/EM&gt;to identify vis, not paths. I &lt;EM&gt;believe&lt;/EM&gt; the error you are encountering only relates to using &lt;EM&gt;paths &lt;/EM&gt;for referencing vis.&lt;/P&gt;&lt;P&gt;If your assumption is correct and my crash is due the handling of invalid references, then I need to generate a path to the vi, rather then using it's name. But generating a full (non-relative) path might be tricky? If within subvi2.vi I&lt;STRONG&gt; use the 'current vi's path' function and strip it to determine the executable path&lt;/STRONG&gt;, then add subvi1.vi, should that get me the path to subvi1? &lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;THis really depends on how you did your build. If VI1 ends up as dynamic file vs part of the app, the paths will be different. Easy enough to check. Look at where your exe is and figure out if VI1 is there in the support/dynamics. If not it is probably inside the exe to the path would then be "My.exe.VI1.vi".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I am speculating thats the issue so try to get more info.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2009 13:01:04 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/open-vi-reference-by-string-in-executable/m-p/896729#M404694</guid>
      <dc:creator>Ben</dc:creator>
      <dc:date>2009-04-27T13:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: open vi reference by string in executable</title>
      <link>https://ni.lithium.com/t5/LabVIEW/open-vi-reference-by-string-in-executable/m-p/896732#M404696</link>
      <description>&lt;P&gt;Thoric,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;changing the VI's name to the (absolute/relative) path is definetly something you should try.&lt;/P&gt;&lt;P&gt;You are correct, in my test i used a path-constant where i simply inserted the name of the VI (without it's relative path).&lt;/P&gt;&lt;P&gt;After changing the path-constant into a string one (wihtout changing the content), i receive the following error:&lt;/P&gt;&lt;P&gt;LabVIEW:&amp;nbsp; The VI is not in memory.&lt;BR /&gt;&lt;BR /&gt;To load a VI into memory with the Open VI Reference function, a path must be wired for the VI Path input.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So in either case, you have to work with a path. In your developement system it only works if you opened your subVI before, hence you have it already in memory.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hope this helps,&lt;/P&gt;&lt;P&gt;Norbert&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2009 13:05:14 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/open-vi-reference-by-string-in-executable/m-p/896732#M404696</guid>
      <dc:creator>Norbert_B</dc:creator>
      <dc:date>2009-04-27T13:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: open vi reference by string in executable</title>
      <link>https://ni.lithium.com/t5/LabVIEW/open-vi-reference-by-string-in-executable/m-p/896744#M404700</link>
      <description>&lt;P&gt;I played around a little bit more, and tried using filepaths and got exactly the same error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I removed all the code relating to VI server - and still got the crash. That got my suspicions up, so I back-tracked a few versions and have tracked the error down to subvi2.vi attempting to show it's front panel !?&lt;/P&gt;&lt;P&gt;Normally, subvi2.vi does not need to show it's front panel, so "show front panel when loaded" is not checked in its vi properties. During this testing phase, I've been trying to show the front panel for debugging purposes and &lt;EM&gt;that's&lt;/EM&gt; what has been causing the Windows error !&amp;nbsp;&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://ni.lithium.com/i/smilies/16x16_smiley-surprised.gif" alt="Smiley Surprised" title="Smiley Surprised" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But why simply showing a front panel should cause such a major crash is peculiar - am I missing something here? &lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2009 13:11:41 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/open-vi-reference-by-string-in-executable/m-p/896744#M404700</guid>
      <dc:creator>Thoric</dc:creator>
      <dc:date>2009-04-27T13:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: open vi reference by string in executable</title>
      <link>https://ni.lithium.com/t5/LabVIEW/open-vi-reference-by-string-in-executable/m-p/896746#M404701</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;Thoric wrote: &lt;BR /&gt;&lt;P&gt;I played around a little bit more, and tried using filepaths and got exactly the same error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I removed all the code relating to VI server - and still got the crash. That got my suspicions up, so I back-tracked a few versions and have tracked the error down to subvi2.vi attempting to show it's front panel !?&lt;/P&gt;&lt;P&gt;Normally, subvi2.vi does not need to show it's front panel, &lt;STRONG&gt;so "show front panel when loaded" is not checked in its vi properties.&lt;/STRONG&gt; During this testing phase, I've been trying to show the front panel for debugging purposes and &lt;EM&gt;that's&lt;/EM&gt; what has been causing the Windows error !&amp;nbsp;&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://ni.lithium.com/i/smilies/16x16_smiley-surprised.gif" alt="Smiley Surprised" title="Smiley Surprised" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But why simply showing a front panel should cause such a major crash is peculiar - am I missing something here? &lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Checking that option force the builder to include the FP. I would not be suprised if the crash is due to not haveing a FP to show.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I sure hope I'm helping more than I am hurting!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2009 13:14:36 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/open-vi-reference-by-string-in-executable/m-p/896746#M404701</guid>
      <dc:creator>Ben</dc:creator>
      <dc:date>2009-04-27T13:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: open vi reference by string in executable</title>
      <link>https://ni.lithium.com/t5/LabVIEW/open-vi-reference-by-string-in-executable/m-p/896750#M404704</link>
      <description>&lt;P&gt;Thoric,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you set the option"Show frontpanel when called" in the VI settings ofsubvi2?&lt;/P&gt;&lt;P&gt;If so, i would expect some controls/indicators which corrupt the frontpanel of subvi2. Could you post subvi2?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hope this helps,&lt;/P&gt;&lt;P&gt;Norbert&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2009 13:17:57 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/open-vi-reference-by-string-in-executable/m-p/896750#M404704</guid>
      <dc:creator>Norbert_B</dc:creator>
      <dc:date>2009-04-27T13:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: open vi reference by string in executable</title>
      <link>https://ni.lithium.com/t5/LabVIEW/open-vi-reference-by-string-in-executable/m-p/896756#M404708</link>
      <description>&lt;P&gt;Hi Ben,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for the confusion, what I meant to say was:&lt;/P&gt;&lt;P&gt;Normally, "show front panel when loaded" is not checked, but for the purposes of this testing phase I have had "show front panel when loaded" &lt;EM&gt;checked&lt;/EM&gt; to show the front panel. This seems to be what is causing the problem for me. When checked I get the crash, when unchecked (and clearly there's no front panel in this case) the code runs ok&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://ni.lithium.com/i/smilies/16x16_smiley-happy.gif" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still, I wonder why I get the crash when it is checked? &lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2009 13:23:59 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/open-vi-reference-by-string-in-executable/m-p/896756#M404708</guid>
      <dc:creator>Thoric</dc:creator>
      <dc:date>2009-04-27T13:23:59Z</dc:date>
    </item>
    <item>
      <title>Re: open vi reference by string in executable</title>
      <link>https://ni.lithium.com/t5/LabVIEW/open-vi-reference-by-string-in-executable/m-p/896766#M404712</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;STRONG&gt;you set the option"Show frontpanel when called" in the VI settings ofsubvi2?&lt;/STRONG&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt; Yes, I do, and that's when I start seeing this crash.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;If so, i would expect some &lt;STRONG&gt;controls/indicators which corrupt&lt;/STRONG&gt; the frontpanel of subvi2. Could you post subvi2?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt; Corrupt controls/indicators? &lt;img id="smileymad" class="emoticon emoticon-smileymad" src="https://ni.lithium.com/i/smilies/16x16_smiley-mad.gif" alt="Smiley Mad" title="Smiley Mad" /&gt; I hate it when this happens! All too often these days too it seems... &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://ni.lithium.com/i/smilies/16x16_smiley-sad.gif" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've posted the subvi (it's actually called Log on keypress service.vi). As I mentioned in my first post, I've been describing but a small portion of my much larger project. This subvi is meant to send user-events to subvi1.vi when certain key-presses are detected, via a type-defined event cluster reference control called &lt;STRONG&gt;Inter-code event cluster ref.&lt;/STRONG&gt; Apart from this control, there are only &lt;STRONG&gt;two boolean indicators&lt;/STRONG&gt; and the standard &lt;STRONG&gt;error in and out clusters&lt;/STRONG&gt;. Please take a look and let me know if there's anything here that could be 'corrupted'.&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2009 13:29:32 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/open-vi-reference-by-string-in-executable/m-p/896766#M404712</guid>
      <dc:creator>Thoric</dc:creator>
      <dc:date>2009-04-27T13:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: open vi reference by string in executable</title>
      <link>https://ni.lithium.com/t5/LabVIEW/open-vi-reference-by-string-in-executable/m-p/896768#M404713</link>
      <description>&lt;P&gt;Thoric,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what Ben said is absolutly valid and a possible reason:&lt;/P&gt;&lt;P&gt;When LV compiles code for an executable, it removes as much components as possible. The frontpanel is such a component: it is only required if the frontpanel is shown later on. If you accidently remove the frontpanel during the build-process, but try to display it when running the exe, the exe has to crash. The crash does not need a crash similar to the one you are observing, nevertheless, it is possible......&lt;/P&gt;&lt;P&gt;Therefor please doublecheck your build-settings if you remove the frontpanel of "subvi2.VI" during the build-proces...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hope this helps,&lt;/P&gt;&lt;P&gt;Norbert&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2009 13:30:49 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/open-vi-reference-by-string-in-executable/m-p/896768#M404713</guid>
      <dc:creator>Norbert_B</dc:creator>
      <dc:date>2009-04-27T13:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: open vi reference by string in executable</title>
      <link>https://ni.lithium.com/t5/LabVIEW/open-vi-reference-by-string-in-executable/m-p/896776#M404716</link>
      <description>&lt;P&gt;Yes, I am aware of how the compiler removes unecessary components, including the front panels of subvis that no longer require them. I do not explicitely disclude the front panel in the application builder, nor do I attempt to programmatically show it during run-time. I've simply been checking and unchecking the "show front panel when loaded" option depending on whether I want to see or not-see the front panel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem in my case seems to be when this option is &lt;EM&gt;checked&lt;/EM&gt;. Here, LabVIEW must be including the frontpanel in the build, and when this subvi is called from the main vi, it then crashes. When the option is &lt;EM&gt;unchecked&lt;/EM&gt;, the application does not attempt to show the subvi's front panel and the application runs through great. Bizarre. &lt;img id="smileyindifferent" class="emoticon emoticon-smileyindifferent" src="https://ni.lithium.com/i/smilies/16x16_smiley-indifferent.gif" alt="Smiley Indifferent" title="Smiley Indifferent" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by Thoric on &lt;/SPAN&gt;&lt;SPAN class="local-date"&gt; 04-27-2009&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt; 02:39 PM&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 27 Apr 2009 13:39:54 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/open-vi-reference-by-string-in-executable/m-p/896776#M404716</guid>
      <dc:creator>Thoric</dc:creator>
      <dc:date>2009-04-27T13:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: open vi reference by string in executable</title>
      <link>https://ni.lithium.com/t5/LabVIEW/open-vi-reference-by-string-in-executable/m-p/896777#M404717</link>
      <description>&lt;P&gt;Thoric,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the frontpanel of the VI seems ok, if the typedefinition does not mess it up. so if not the frontpanel removal-thing creates the crash, please play around with the setting "Disconnect typedefinitions" in the build script.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hope this helps,&lt;/P&gt;&lt;P&gt;Norbert&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2009 13:38:00 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/open-vi-reference-by-string-in-executable/m-p/896777#M404717</guid>
      <dc:creator>Norbert_B</dc:creator>
      <dc:date>2009-04-27T13:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: open vi reference by string in executable</title>
      <link>https://ni.lithium.com/t5/LabVIEW/open-vi-reference-by-string-in-executable/m-p/896784#M404722</link>
      <description>&lt;P&gt;Thanks for the suggestions Norbert,&lt;/P&gt;&lt;P&gt;I tried disconnecting type definitions in the build, but it still crashes.&lt;/P&gt;&lt;P&gt;Out of interest, I kept this option checked in the application builder, but left "show front panel when loaded" unchecked in subvi2.vi. The program still works. It definitely seems to be a front-panel related complication.&lt;/P&gt;&lt;P&gt;Any more suggestions anyone? &lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2009 13:43:58 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/open-vi-reference-by-string-in-executable/m-p/896784#M404722</guid>
      <dc:creator>Thoric</dc:creator>
      <dc:date>2009-04-27T13:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: open vi reference by string in executable</title>
      <link>https://ni.lithium.com/t5/LabVIEW/open-vi-reference-by-string-in-executable/m-p/896789#M404724</link>
      <description>&lt;P&gt;I learned a trick from an NI technical engineer once regarding corrupt vis - drag and drop the block diagram into a blank vi, relink the controls and indicators to the terminal icon and save as a new vi. Replace all calls to the original with the new vi. But it didn't work. Does this failure perhaps indicate there are no corrupt controls/indicators? I don't know, I guess we can't be sure. Just thought I'd mention it anyway.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still trying to work around this one..... &lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by Thoric on &lt;/SPAN&gt;&lt;SPAN class="local-date"&gt; 04-27-2009&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt; 02:52 PM&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 27 Apr 2009 13:52:46 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/open-vi-reference-by-string-in-executable/m-p/896789#M404724</guid>
      <dc:creator>Thoric</dc:creator>
      <dc:date>2009-04-27T13:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: open vi reference by string in executable</title>
      <link>https://ni.lithium.com/t5/LabVIEW/open-vi-reference-by-string-in-executable/m-p/896792#M404725</link>
      <description>&lt;P&gt;Can you show us the code where you are luanching VI2?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you setting the ref before calling?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2009 13:53:30 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/open-vi-reference-by-string-in-executable/m-p/896792#M404725</guid>
      <dc:creator>Ben</dc:creator>
      <dc:date>2009-04-27T13:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: open vi reference by string in executable</title>
      <link>https://ni.lithium.com/t5/LabVIEW/open-vi-reference-by-string-in-executable/m-p/896800#M404728</link>
      <description>&lt;P&gt;Err, something very different is coming to my mind:&lt;/P&gt;&lt;P&gt;You are using the user32.dll, a system dll.&lt;/P&gt;&lt;P&gt;LV should detect this dll as dependency and copy it into the data-folder. This will lead to the crash you are observing. Please delete the user32.dll from the data-folder in your build-folder.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hope this helps,&lt;/P&gt;&lt;P&gt;Norbert&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2009 13:58:21 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/open-vi-reference-by-string-in-executable/m-p/896800#M404728</guid>
      <dc:creator>Norbert_B</dc:creator>
      <dc:date>2009-04-27T13:58:21Z</dc:date>
    </item>
  </channel>
</rss>

