<?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: Saving Port Assignments in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Saving-Port-Assignments/m-p/251594#M136102</link>
    <description>&lt;DIV&gt;What I was getting at is that saving a vi does not include values changes to&amp;nbsp;controls which is&amp;nbsp;a property of the vi instance.&amp;nbsp; The default value however is a property of a control and is saved with the vi's code.&amp;nbsp; Forgetting this can be very frustrating, but is done for an important reason, variables are variable and should not become constants.&amp;nbsp; If a constant is needed don't use a variable, use a constant.&amp;nbsp; Variables should always be initialized to a default value, these principles are constant independent of the language used.&amp;nbsp; In labview we forget this because the default value of all data types is specified and only changed implicitly by the programmer.&lt;/DIV&gt;
&lt;DIV&gt;Paul&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Mon, 08 Aug 2005 12:50:38 GMT</pubDate>
    <dc:creator>falkpl</dc:creator>
    <dc:date>2005-08-08T12:50:38Z</dc:date>
    <item>
      <title>Saving Port Assignments</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Saving-Port-Assignments/m-p/251564#M136086</link>
      <description>&lt;DIV&gt;I have a vi in which I am using a sub vi in which I have assigned three differnt digital outputs to three specific ports. When I save the vi, the port assignments&amp;nbsp;I have chosen are&amp;nbsp;lost. When I save the sub vi, the same thing happens. Can I somehow combine the sub vi and the vi into one saveable unit that will save my port assignments? I am using LabVIEW 7.1.&lt;/DIV&gt;</description>
      <pubDate>Mon, 08 Aug 2005 11:47:16 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Saving-Port-Assignments/m-p/251564#M136086</guid>
      <dc:creator>CINATAS</dc:creator>
      <dc:date>2005-08-08T11:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Port Assignments</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Saving-Port-Assignments/m-p/251572#M136090</link>
      <description>&lt;P&gt;In general, you shouldn't have a case where you have to set the same value for a VI and its subVI. The subVI should have an input which the VI can use to pass the value to it. You can set a value as default by right clicking it and going to the Data Operations menu.&lt;/P&gt;
&lt;P&gt;If you want this to be changeable, what you should&amp;nbsp;do is save the values to a file and load them when the program starts. &lt;A href="http://openg.org/" target="_blank" rel="noopener"&gt;&lt;FONT color="#3366cc"&gt;OpenG&lt;/FONT&gt;&lt;/A&gt;'s File I/O package includes some VIs which will help you with that.&lt;/P&gt;
&lt;DIV&gt;To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. &lt;A href="http://cnx.rice.edu/content/col10241/latest/" target="_blank" rel="noopener"&gt;Here&lt;/A&gt; and &lt;A href="https://learn.ni.com/learn/article/labview-tutorial" target="_blank" rel="noopener"&gt;here&lt;/A&gt; are a couple you can start with. You can also contact your local NI office and join one of their courses.&lt;BR /&gt;In addition, I suggest you read the LabVIEW style guide&amp;nbsp;and the LabVIEW user manual (Help&amp;gt;&amp;gt;Search the LabVIEW Bookshelf).&lt;/DIV&gt;</description>
      <pubDate>Wed, 03 Dec 2025 20:18:40 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Saving-Port-Assignments/m-p/251572#M136090</guid>
      <dc:creator>tst</dc:creator>
      <dc:date>2025-12-03T20:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Port Assignments</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Saving-Port-Assignments/m-p/251593#M136101</link>
      <description>&lt;DIV&gt;Are the port assignments saved in a control or indicator?&amp;nbsp; If so click on the control and "make current values default".&amp;nbsp; Otherwise serialize them to a file and load the file programatically at the start of the code.&amp;nbsp; The first is quick and dirty, while a solution such as the second suggestion is much more work/time intensive but will allow for a flexible configuration solution in the long run.&amp;nbsp; If the digital port values are not ever going to change, use a constant on the diagram.&amp;nbsp; Without seeing code, I am speculating about your problem (I have had the same problem in the past when closing a vi, the values are reset to the default which sucks when you made many specific value sets in the controls).&amp;nbsp; Hope this is what you are looking for.&lt;/DIV&gt;
&lt;DIV&gt;Paul&lt;/DIV&gt;</description>
      <pubDate>Mon, 08 Aug 2005 12:45:16 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Saving-Port-Assignments/m-p/251593#M136101</guid>
      <dc:creator>falkpl</dc:creator>
      <dc:date>2005-08-08T12:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: Saving Port Assignments</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Saving-Port-Assignments/m-p/251594#M136102</link>
      <description>&lt;DIV&gt;What I was getting at is that saving a vi does not include values changes to&amp;nbsp;controls which is&amp;nbsp;a property of the vi instance.&amp;nbsp; The default value however is a property of a control and is saved with the vi's code.&amp;nbsp; Forgetting this can be very frustrating, but is done for an important reason, variables are variable and should not become constants.&amp;nbsp; If a constant is needed don't use a variable, use a constant.&amp;nbsp; Variables should always be initialized to a default value, these principles are constant independent of the language used.&amp;nbsp; In labview we forget this because the default value of all data types is specified and only changed implicitly by the programmer.&lt;/DIV&gt;
&lt;DIV&gt;Paul&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 08 Aug 2005 12:50:38 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Saving-Port-Assignments/m-p/251594#M136102</guid>
      <dc:creator>falkpl</dc:creator>
      <dc:date>2005-08-08T12:50:38Z</dc:date>
    </item>
  </channel>
</rss>

