<?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: Opening and Closing SubVIs in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Opening-and-Closing-SubVIs/m-p/322252#M166315</link>
    <description>Thank you so much for your help.  Turns out, my button had improper&lt;BR /&gt;
properties; it was set for "switch when pressed" instead of "latched&lt;BR /&gt;
when pressed".  I had the subVI node properties set up properly (per&lt;BR /&gt;
your recommendations), so when I changed the button properties, all is&lt;BR /&gt;
well now.  I'm sure I may have more questions as this project&lt;BR /&gt;
progresses.  Thanks again.&lt;BR /&gt;
&lt;BR /&gt;</description>
    <pubDate>Wed, 08 Feb 2006 19:10:39 GMT</pubDate>
    <dc:creator>USI Student</dc:creator>
    <dc:date>2006-02-08T19:10:39Z</dc:date>
    <item>
      <title>Opening and Closing SubVIs</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Opening-and-Closing-SubVIs/m-p/321030#M165738</link>
      <description>I am an electrical engineering student who has been assigned a project&lt;BR /&gt;
with LabView.  All that I have learned with LabView has been&lt;BR /&gt;
self-taught (slowly and painfully I should add).  I would like to open&lt;BR /&gt;
a subVI front-panel that I have created, and then close the subVI so&lt;BR /&gt;
that I may return to my original front panel, or move onto a next&lt;BR /&gt;
subVI.  (The operation would be similar to any Windows base program&lt;BR /&gt;
were panels are opened and closed)&lt;BR /&gt;
&lt;BR /&gt;
I have tried various settings on the "SubVI node setup..." but have not&lt;BR /&gt;
had this work successfully.  If anyone could offer any help, that would&lt;BR /&gt;
be GREATLY appreciated.&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Feb 2006 21:11:03 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Opening-and-Closing-SubVIs/m-p/321030#M165738</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-02-06T21:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: Opening and Closing SubVIs</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Opening-and-Closing-SubVIs/m-p/321037#M165742</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;On the subvi, right-click the connector pane -&amp;gt; VI Properties -&amp;gt; Window appearance -&amp;gt; Customize -&amp;gt; &lt;U&gt;Show front panel when called&lt;/U&gt;&amp;nbsp;+ &lt;U&gt;Close afterwards&lt;/U&gt;...&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 Feb 2006 21:15:27 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Opening-and-Closing-SubVIs/m-p/321037#M165742</guid>
      <dc:creator>WNM</dc:creator>
      <dc:date>2006-02-06T21:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Opening and Closing SubVIs</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Opening-and-Closing-SubVIs/m-p/321040#M165744</link>
      <description>&lt;P&gt;This should be no problem. Just select open FP when called and close afterwards. (Then make sure the panel is closed before you run the main VI that calls it).&lt;/P&gt;
&lt;P&gt;How are you calling the subVI? Attach a small example and we'll fix it for you. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 Feb 2006 21:18:51 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Opening-and-Closing-SubVIs/m-p/321040#M165744</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2006-02-06T21:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Opening and Closing SubVIs</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Opening-and-Closing-SubVIs/m-p/321193#M165808</link>
      <description>In the sub vi open the properties window.In that select the window&lt;BR /&gt;
appearence category.There select the dialog option.This would work&lt;BR /&gt;
well.&lt;BR /&gt;
          For more cosmetic appearence select the custom option button&lt;BR /&gt;
and select the customise button.There check or uncheck the options you&lt;BR /&gt;
want.Moreover.But dont forget to check&lt;BR /&gt;
&lt;BR /&gt;
1.show front panel when called&lt;BR /&gt;
&lt;BR /&gt;
2.close afterward if closed.&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Tue, 07 Feb 2006 07:40:34 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Opening-and-Closing-SubVIs/m-p/321193#M165808</guid>
      <dc:creator>Frabto</dc:creator>
      <dc:date>2006-02-07T07:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Opening and Closing SubVIs</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Opening-and-Closing-SubVIs/m-p/322252#M166315</link>
      <description>Thank you so much for your help.  Turns out, my button had improper&lt;BR /&gt;
properties; it was set for "switch when pressed" instead of "latched&lt;BR /&gt;
when pressed".  I had the subVI node properties set up properly (per&lt;BR /&gt;
your recommendations), so when I changed the button properties, all is&lt;BR /&gt;
well now.  I'm sure I may have more questions as this project&lt;BR /&gt;
progresses.  Thanks again.&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Wed, 08 Feb 2006 19:10:39 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Opening-and-Closing-SubVIs/m-p/322252#M166315</guid>
      <dc:creator>USI Student</dc:creator>
      <dc:date>2006-02-08T19:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: Opening and Closing SubVIs</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Opening-and-Closing-SubVIs/m-p/329525#M169562</link>
      <description>Pardon me for jumping in on this thread - &lt;BR /&gt;
&lt;BR /&gt;
I found this discussion useful in performing the same task of showing a
sub-VI front panel when it was called, but I have run into
problems.&amp;nbsp; &lt;BR /&gt;
&lt;BR /&gt;
Within a while loop, the sub-VI is called when a boolean control is
switched to true.&amp;nbsp; The sub-VI merely takes two clusters and
displays them on a chart.&amp;nbsp;&amp;nbsp; I arranged the properties of the
sub-VI to show front panel when called and close front panel when
finished.&amp;nbsp; I am assuming that it is finished when I go back to the
main window and switch the boolean control back to false.&amp;nbsp;
However, the window doesn't close when I switch this to false.&amp;nbsp;
Occasionally, the sub-VI also flickers, which I assume is a result of
the while loop around the case structure.&amp;nbsp; &lt;BR /&gt;
&lt;BR /&gt;
This sounds confusing, let me know if you want more than just a picture
of the VI, or if a picture of the sub-VI in question would be useful.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Brad&lt;BR /&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 23 Feb 2006 21:49:06 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Opening-and-Closing-SubVIs/m-p/329525#M169562</guid>
      <dc:creator>CFAMS Brad</dc:creator>
      <dc:date>2006-02-23T21:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Opening and Closing SubVIs</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Opening-and-Closing-SubVIs/m-p/329533#M169569</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;Here is the sub-VI I am trying to call - it is still a work in progress-

&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 23 Feb 2006 22:04:21 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Opening-and-Closing-SubVIs/m-p/329533#M169569</guid>
      <dc:creator>CFAMS Brad</dc:creator>
      <dc:date>2006-02-23T22:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: Opening and Closing SubVIs</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Opening-and-Closing-SubVIs/m-p/329558#M169583</link>
      <description>You're seeing flickering because the subVI is constantly being opened and closed. The subVI has no while loop it to keep it running and give anyone a chance to look at it. The mechanical action of your Boolean is probably set incorrectly as well. If you want a simple "view" button, set the mechanical action to Latch When Released. Then in the subVI, put a while loop inside the no error case. Terminate the while loop with a front panel Boolean. Now, if you do it this way, your main VI will be paused while the subVI is displayed. If that's&amp;nbsp;what you want, you're done. If it's not, expalin exactly what you do want.</description>
      <pubDate>Thu, 23 Feb 2006 22:51:05 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Opening-and-Closing-SubVIs/m-p/329558#M169583</guid>
      <dc:creator>Dennis_Knutson</dc:creator>
      <dc:date>2006-02-23T22:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Opening and Closing SubVIs</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Opening-and-Closing-SubVIs/m-p/329894#M169750</link>
      <description>Thanks for the tip on the buttons, Dennis.&amp;nbsp; I now have the VI
boolean button latching when released, and the sub-VI in the while loop
controlled by a button that switches until released.&amp;nbsp; The windows
behave correctly like that, but I must say that the description of
"Latch when released" and "Switch when released" are awfully similar
and I probably wouldn't have figured that out without a sagely tip.&lt;BR /&gt;
&lt;BR /&gt;
Now for the bad news.&amp;nbsp; I had tried a while loop in the sub-VI
before, and the result was that the graphs only show one datum at a
time (I think).&amp;nbsp; The x axis (time) moves very fast, is a very
large integer, and the graphs are a straight line.&amp;nbsp; The y-axes
yield integers even though they are set to plot clusters of double
precision numbers represented in scientific notation.&amp;nbsp; If I get
rid of the while loop, the graphs behave properly, but the windows do
not.&amp;nbsp; Because of this fact, I don't think that it is the graph
properties that are causing this odd behaviour.&lt;BR /&gt;
&lt;BR /&gt;
Brad&lt;BR /&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 24 Feb 2006 14:07:49 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Opening-and-Closing-SubVIs/m-p/329894#M169750</guid>
      <dc:creator>CFAMS Brad</dc:creator>
      <dc:date>2006-02-24T14:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Opening and Closing SubVIs</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Opening-and-Closing-SubVIs/m-p/329905#M169753</link>
      <description>After further contemplation, I realize that the reason the graph is a
"flatline" is because the main VI is inactive when the sub-VI is being
viewed.&amp;nbsp; This will not work because the data come from the main VI
when the sub-VI is being viewed!&amp;nbsp; In addition, I would like the
main VI to be active, or at least usable while the graphs are being
viewed so that a user can open and close valves while watching the
pressure traces on the graph.&amp;nbsp; The reason is because some users
are better suited to graphical analysis and others like the numeric
displays.&amp;nbsp; I am trying to keep both happy.&lt;BR /&gt;
&lt;BR /&gt;
Thanks for any input,&lt;BR /&gt;
Brad&lt;BR /&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 24 Feb 2006 14:24:45 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Opening-and-Closing-SubVIs/m-p/329905#M169753</guid>
      <dc:creator>CFAMS Brad</dc:creator>
      <dc:date>2006-02-24T14:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Opening and Closing SubVIs</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Opening-and-Closing-SubVIs/m-p/329918#M169763</link>
      <description>You can put the subVI in a separate while loop and pass a reference of the arrays in the main to the subVI. Here's a very simple example. There are other shipping examples of control references and information on how to create them in the on-line help.
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 24 Feb 2006 14:48:19 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Opening-and-Closing-SubVIs/m-p/329918#M169763</guid>
      <dc:creator>Dennis_Knutson</dc:creator>
      <dc:date>2006-02-24T14:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: Opening and Closing SubVIs</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Opening-and-Closing-SubVIs/m-p/329954#M169772</link>
      <description>Thank you, I will look there for some additional help.&lt;BR /&gt;
&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 24 Feb 2006 15:31:36 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Opening-and-Closing-SubVIs/m-p/329954#M169772</guid>
      <dc:creator>CFAMS Brad</dc:creator>
      <dc:date>2006-02-24T15:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Opening and Closing SubVIs</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Opening-and-Closing-SubVIs/m-p/1883009#M636095</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello all, I am using LabVIEW in a project or multiple projects and have no one in the company to ask advice on the use of the code and if I am using it correctly. I have built many executable and have learned that the methods I use work but the question is still is it correct. I have used the attached VI in the past and it works well but I was wondering is there a better way to do this. I know that you can call VIs by using the Show FP when called but for most of my application I may be a VI running &lt;/SPAN&gt;&lt;SPAN&gt;a VI in&lt;/SPAN&gt;&lt;SPAN&gt;parallel such as a PID loop or a process and I may want to see the Front panel and close the front panel and I use the property nodes to achieve this. My Question is simple is there an easy way of doing this or will I continue using the attached code??&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Thanks In Advance&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Rob&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2012 13:31:34 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Opening-and-Closing-SubVIs/m-p/1883009#M636095</guid>
      <dc:creator>The_LabVIEW_Monster</dc:creator>
      <dc:date>2012-02-20T13:31:34Z</dc:date>
    </item>
  </channel>
</rss>

