<?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 global variable, memory in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/global-variable-memory/m-p/2798186#M821069</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am using global variables in order to share values captured by one VI (as kind of data source) with other VIs, but after several days of continuous running I recieve Error 2:Memory is full.\&lt;BR /&gt;Please advise how can i empty global variables or use other way of sharing data between VIs continuously without interruptions.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 31 Mar 2014 07:49:52 GMT</pubDate>
    <dc:creator>Innka</dc:creator>
    <dc:date>2014-03-31T07:49:52Z</dc:date>
    <item>
      <title>global variable, memory</title>
      <link>https://ni.lithium.com/t5/LabVIEW/global-variable-memory/m-p/2798186#M821069</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am using global variables in order to share values captured by one VI (as kind of data source) with other VIs, but after several days of continuous running I recieve Error 2:Memory is full.\&lt;BR /&gt;Please advise how can i empty global variables or use other way of sharing data between VIs continuously without interruptions.&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 31 Mar 2014 07:49:52 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/global-variable-memory/m-p/2798186#M821069</guid>
      <dc:creator>Innka</dc:creator>
      <dc:date>2014-03-31T07:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: global variable, memory</title>
      <link>https://ni.lithium.com/t5/LabVIEW/global-variable-memory/m-p/2798198#M821071</link>
      <description>&lt;P&gt;You need to show us some code.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you sure the memory problems is due to the global variables?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;What does the global variables contain? (e.g. an array that grows over time without bounds).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To "empty" a global variable, you would simply write the smallest possible size of the datatype. For example if contains an array, write an empty array to it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Mar 2014 07:58:21 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/global-variable-memory/m-p/2798198#M821071</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2014-03-31T07:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: global variable, memory</title>
      <link>https://ni.lithium.com/t5/LabVIEW/global-variable-memory/m-p/2798202#M821073</link>
      <description>&lt;P&gt;Hi Innka,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you don't get "Memory full" errors just by using global variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You get them because you&lt;/P&gt;
&lt;P&gt;- build up arrays constantly&lt;/P&gt;
&lt;P&gt;- open references without closing them&lt;/P&gt;
&lt;P&gt;- similar wierd stuff…&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So the point is: What kind of data do you store in those variables?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To share data you could use FGVs (FunctionalGlobalVariables aka ActionEngines aka LV2-style globals) or notifier or queues. It all depends on your requirements…&lt;/P&gt;</description>
      <pubDate>Mon, 31 Mar 2014 08:00:13 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/global-variable-memory/m-p/2798202#M821073</guid>
      <dc:creator>GerdW</dc:creator>
      <dc:date>2014-03-31T08:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: global variable, memory</title>
      <link>https://ni.lithium.com/t5/LabVIEW/global-variable-memory/m-p/2798240#M821080</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Maybe it will be better if I answer your questions first.&lt;/P&gt;
&lt;P&gt;I am reading and sharing&amp;nbsp;values from indicators which are communicating using .NET protocol, and the values are received as two signed&amp;nbsp;6 digit numbers (DBL) and &amp;nbsp;I am sampling the data every second. The idea was replacing the value each second and not creating the array of&amp;nbsp;values.&lt;/P&gt;
&lt;P&gt;Thanks a lot!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Mar 2014 08:33:30 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/global-variable-memory/m-p/2798240#M821080</guid>
      <dc:creator>Innka</dc:creator>
      <dc:date>2014-03-31T08:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: global variable, memory</title>
      <link>https://ni.lithium.com/t5/LabVIEW/global-variable-memory/m-p/2798418#M821115</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/294408"&gt;@Innka&lt;/a&gt; wrote:&lt;BR /&gt;&lt;BR /&gt;
&lt;P&gt;I am reading and sharing&amp;nbsp;values from indicators which are communicating using .NET protocol, and the values are received as two signed&amp;nbsp;6 digit numbers (DBL) and &amp;nbsp;I am sampling the data every second. The idea was replacing the value each second and not creating the array of&amp;nbsp;values. &lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So you don't have an array?&amp;nbsp; The the global variable is not your problem.&amp;nbsp; The .NET interface could be something to look at.&amp;nbsp; Are you opening a .NET interface inside of a loop without closing it?&lt;/P&gt;</description>
      <pubDate>Mon, 31 Mar 2014 11:16:41 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/global-variable-memory/m-p/2798418#M821115</guid>
      <dc:creator>crossrulz</dc:creator>
      <dc:date>2014-03-31T11:16:41Z</dc:date>
    </item>
  </channel>
</rss>

