<?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: Proper Method for closing a VI? in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Proper-Method-for-closing-a-VI/m-p/507636#M241971</link>
    <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I've forget to attach a picture that help you indentify the function.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 16 Apr 2007 17:17:45 GMT</pubDate>
    <dc:creator>Jorge_Amaral</dc:creator>
    <dc:date>2007-04-16T17:17:45Z</dc:date>
    <item>
      <title>Proper Method for closing a VI?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Proper-Method-for-closing-a-VI/m-p/507630#M241967</link>
      <description>Hi there,&lt;BR /&gt;I am a very inexperienced labview user, so this question may be a walk in the park for you pros. What is the proper method for closing a VI? I want a particular VI to close upon a certain occurence. When I use a property node to close the front panel, then an invoke node to abort the VI with a static reference. I sometimes get a message dialog in the upper left corner of the screen that says "Resetting VI: [Vi's name].vi" at which point labview freezes, and must be closed externally from the Windows task manager. I know that using the "abort" can leave certain references open, so I close these references upon completion of every cycle... What is the proper method of closing a VI?&lt;BR /&gt;Thanks a bunch,&lt;BR /&gt;Ryan&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 16 Apr 2007 17:10:53 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Proper-Method-for-closing-a-VI/m-p/507630#M241967</guid>
      <dc:creator>Valcon</dc:creator>
      <dc:date>2007-04-16T17:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Proper Method for closing a VI?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Proper-Method-for-closing-a-VI/m-p/507632#M241969</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Why don't you use the "quit labview"?&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 16 Apr 2007 17:15:53 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Proper-Method-for-closing-a-VI/m-p/507632#M241969</guid>
      <dc:creator>Jorge_Amaral</dc:creator>
      <dc:date>2007-04-16T17:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Proper Method for closing a VI?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Proper-Method-for-closing-a-VI/m-p/507636#M241971</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I've forget to attach a picture that help you indentify the function.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 16 Apr 2007 17:17:45 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Proper-Method-for-closing-a-VI/m-p/507636#M241971</guid>
      <dc:creator>Jorge_Amaral</dc:creator>
      <dc:date>2007-04-16T17:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Proper Method for closing a VI?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Proper-Method-for-closing-a-VI/m-p/507641#M241974</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;If he is calling the VI from another VI then the quit LV will shutdown everything including the main VI.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please post what you have already tried.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2007 17:24:57 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Proper-Method-for-closing-a-VI/m-p/507641#M241974</guid>
      <dc:creator>Joe_H</dc:creator>
      <dc:date>2007-04-16T17:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Proper Method for closing a VI?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Proper-Method-for-closing-a-VI/m-p/508232#M242199</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P class="MsoNormal"&gt;Hi Ryan,&lt;BR /&gt;
&lt;BR /&gt;
The correct method for closing your VI is dependent on how you have chosen to
open it.&amp;nbsp; Like Jhoskins, I think the LabVIEW community will better be able
to assist you if you post what you've already tried.&lt;BR /&gt;
&lt;BR /&gt;
If you have tried to dynamically load your VI using a Call by Reference Node,
you will need to use an Open VI Reference and a Close Reference.&amp;nbsp; Please
take a look at the Dynamic Load Example from the NI Example Finder.&amp;nbsp; You
can find this by searching for VI Server in the Example Finder.&amp;nbsp; &lt;BR /&gt;
&lt;BR /&gt;
I have attached a figure that shows this Open, Run, Close paradigm in the
Dynamic Load Example.&lt;/P&gt;&lt;P class="MsoNormal"&gt;&lt;IMG src="http://forums.ni.com/attachments/ni/170/242199/1/Open_Run_Close.JPG" /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Message Edited by cphuong on &lt;SPAN class="date_text"&gt;04-17-2007&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;10:43 AM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2007 15:42:38 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Proper-Method-for-closing-a-VI/m-p/508232#M242199</guid>
      <dc:creator>Ching_F.</dc:creator>
      <dc:date>2007-04-17T15:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: Proper Method for closing a VI?</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Proper-Method-for-closing-a-VI/m-p/509112#M242553</link>
      <description>Thanks for your helpful advice.&lt;BR /&gt;I couldn't use the "Exit LabView" VI because I only wanted a particular VI in the application to shutdown on a particular occurence, but I have used that VI before as applications "END" feature, and it works pretty well. In the end, I ended up doing something that I think is pretty sloppy but works... I made a static reference to the particular VI who's closing event would be the trigger, and I bascially wired it so that if the front panel of this partcular VI was closed, then the dependant VI should close it's front panel and abort as well. I know it's sloppy, but it works well and consistenly; this makes me happy. Ha ha! really though, I always get good advice on this forum and I do appreciate it.&lt;BR /&gt;Ryan&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 18 Apr 2007 19:38:50 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Proper-Method-for-closing-a-VI/m-p/509112#M242553</guid>
      <dc:creator>Valcon</dc:creator>
      <dc:date>2007-04-18T19:38:50Z</dc:date>
    </item>
  </channel>
</rss>

