<?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: Frozen screen during execution in LabVIEW</title>
    <link>https://ni.lithium.com/t5/LabVIEW/Frozen-screen-during-execution/m-p/536573#M253233</link>
    <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;right click on your task bar (bottom of the screen) and cleck "Task Manager".&lt;/P&gt;
&lt;P&gt;It is a utility that ships with Windows XP and allows you to monitor how much CPU is used memory etc.&lt;/P&gt;
&lt;P&gt;It also (on another tab) lists all of your process and the amount of CPU being used by each task.&lt;/P&gt;
&lt;P&gt;Ben&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jun 2007 19:34:05 GMT</pubDate>
    <dc:creator>Ben</dc:creator>
    <dc:date>2007-06-14T19:34:05Z</dc:date>
    <item>
      <title>Frozen screen during execution</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Frozen-screen-during-execution/m-p/535130#M252692</link>
      <description>&lt;DIV&gt;Hi there, &lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;I developed a VI to acquire pressure data from 48 sensors. During execution, the front panel freezes and the acquisition just stops. No error message appears and i just can interact with other objects, like graphs and buttons. Remember that the&amp;nbsp;VI keep running,&amp;nbsp;but the acqusition stucks.&amp;nbsp;I'm using LabView 6.1. I'd apreciate if you could help me.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks,&lt;/DIV&gt;</description>
      <pubDate>Tue, 12 Jun 2007 18:12:52 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Frozen-screen-during-execution/m-p/535130#M252692</guid>
      <dc:creator>ebragafreitas</dc:creator>
      <dc:date>2007-06-12T18:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Frozen screen during execution</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Frozen-screen-during-execution/m-p/535151#M252700</link>
      <description>&lt;DIV&gt;We need to see the code!&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Some things to look out for:&lt;/DIV&gt;
&lt;UL&gt;
&lt;LI&gt;An event structure that locks the front panel (the default!), but never completes.&lt;/LI&gt;
&lt;LI&gt;Don't set the VI priority to e.g. &amp;nbsp;timecritical, or user interactions are postponed.&lt;/LI&gt;
&lt;LI&gt;how is error handling?&lt;/LI&gt;
&lt;LI&gt;How does it communicate with the sensors?&lt;/LI&gt;
&lt;LI&gt;Are there any third party dll calls?&lt;/LI&gt;
&lt;LI&gt;...&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2007 18:58:34 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Frozen-screen-during-execution/m-p/535151#M252700</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2007-06-12T18:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Frozen screen during execution</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Frozen-screen-during-execution/m-p/535212#M252726</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Here are the codes, take a look at them, please.&lt;/DIV&gt;
&lt;DIV&gt;The labels are in portuguese, but it´s easy to understand cause the words are similar to the english ones.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;The error handling shows only some warnings, like ''..vi recomended input is unwired". These warnings don´t affect the execution.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;The sensors comunicate with the soft through 2 boards ni daq PCI E-6031&amp;nbsp;and PC1 E-6024, respectively.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;What do you mean about third party dll calls?&lt;/DIV&gt;</description>
      <pubDate>Tue, 12 Jun 2007 20:39:34 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Frozen-screen-during-execution/m-p/535212#M252726</guid>
      <dc:creator>ebragafreitas</dc:creator>
      <dc:date>2007-06-12T20:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: Frozen screen during execution</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Frozen-screen-during-execution/m-p/535370#M252792</link>
      <description>&lt;DIV&gt;Your files were not attached.&lt;/DIV&gt;
&lt;DIV&gt;(If you previewed your post, you need to reattach before submitting.)&lt;/DIV&gt;</description>
      <pubDate>Wed, 13 Jun 2007 03:32:46 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Frozen-screen-during-execution/m-p/535370#M252792</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2007-06-13T03:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Frozen screen during execution</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Frozen-screen-during-execution/m-p/535687#M252917</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;The codes.</description>
      <pubDate>Wed, 13 Jun 2007 14:14:48 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Frozen-screen-during-execution/m-p/535687#M252917</guid>
      <dc:creator>ebragafreitas</dc:creator>
      <dc:date>2007-06-13T14:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: Frozen screen during execution</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Frozen-screen-during-execution/m-p/535745#M252934</link>
      <description>&lt;DIV&gt;Sorry, troubleshooting from pictures is probably not possible in this case. Can you attach a real VI instead?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;The code itself is much more complicated than needed, because there is a lot of&amp;nbsp;repetitive code. Still, it would not explain a lockup.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 13 Jun 2007 15:10:09 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Frozen-screen-during-execution/m-p/535745#M252934</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2007-06-13T15:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Frozen screen during execution</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Frozen-screen-during-execution/m-p/536499#M253191</link>
      <description />
      <pubDate>Thu, 14 Jun 2007 17:45:12 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Frozen-screen-during-execution/m-p/536499#M253191</guid>
      <dc:creator>ebragafreitas</dc:creator>
      <dc:date>2007-06-14T17:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Frozen screen during execution</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Frozen-screen-during-execution/m-p/536512#M253199</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Now that we have seen the code, two questions.&lt;/P&gt;
&lt;P&gt;1) DId this application ever run correctly?&lt;/P&gt;
&lt;P&gt;2) Have you tested your hardware using MAX?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2007 18:03:50 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Frozen-screen-during-execution/m-p/536512#M253199</guid>
      <dc:creator>Ben</dc:creator>
      <dc:date>2007-06-14T18:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Frozen screen during execution</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Frozen-screen-during-execution/m-p/536518#M253203</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Yes, how i said, the program runs correctly, but the acquisition stop some times (screen gets freeze).&lt;/P&gt;
&lt;P&gt;And i've already tested the boards using measurement and automation explorer. They're OK.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2007 18:10:04 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Frozen-screen-during-execution/m-p/536518#M253203</guid>
      <dc:creator>ebragafreitas</dc:creator>
      <dc:date>2007-06-14T18:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Frozen screen during execution</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Frozen-screen-during-execution/m-p/536520#M253204</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;Then use the Task Manager to see if another task is getting in the way of your application.&lt;/P&gt;
&lt;P&gt;It would also be helpful if you put indicators on the outputs of all of your "AI" to see if an erro is returned.&lt;/P&gt;
&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2007 18:13:58 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Frozen-screen-during-execution/m-p/536520#M253204</guid>
      <dc:creator>Ben</dc:creator>
      <dc:date>2007-06-14T18:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Frozen screen during execution</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Frozen-screen-during-execution/m-p/536527#M253207</link>
      <description>&lt;DIV&gt;I agree with Ben.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;This code is a nightmare!&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Duplicate code everywhere in deep stacks of stacked sequences, overlapping tunnels and wires.&lt;/DIV&gt;
&lt;DIV&gt;Then you are building infinite arrays via local variables without ever resetting them. Every time you run the VI in the same session, your arrays will start at the size from the last run.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Use arrays instead of discrete code paths, replace the stacked sequences with autoindexing&amp;nbsp;FOR loops containing exactly one instance of the code, and things will become more manageable.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Also, your "Prompt.vi" needs a small delay inside the loop. It does not need to spin millions of times/second. How fast can you possibly enter the texts? Give it 100ms!&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Maybe once the code is cleaned up, debugging will be possible. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 14 Jun 2007 18:20:13 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Frozen-screen-during-execution/m-p/536527#M253207</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2007-06-14T18:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: Frozen screen during execution</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Frozen-screen-during-execution/m-p/536561#M253223</link>
      <description>&lt;DIV&gt;Ok, i'll try to do it. Ben, what's Task Manager?&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Thanks&lt;/DIV&gt;</description>
      <pubDate>Thu, 14 Jun 2007 19:10:17 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Frozen-screen-during-execution/m-p/536561#M253223</guid>
      <dc:creator>ebragafreitas</dc:creator>
      <dc:date>2007-06-14T19:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: Frozen screen during execution</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Frozen-screen-during-execution/m-p/536573#M253233</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;P&gt;right click on your task bar (bottom of the screen) and cleck "Task Manager".&lt;/P&gt;
&lt;P&gt;It is a utility that ships with Windows XP and allows you to monitor how much CPU is used memory etc.&lt;/P&gt;
&lt;P&gt;It also (on another tab) lists all of your process and the amount of CPU being used by each task.&lt;/P&gt;
&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2007 19:34:05 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Frozen-screen-during-execution/m-p/536573#M253233</guid>
      <dc:creator>Ben</dc:creator>
      <dc:date>2007-06-14T19:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Frozen screen during execution</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Frozen-screen-during-execution/m-p/537268#M253520</link>
      <description>&lt;DIV&gt;Ben, i´ve cheked the task manager and I´ve noticed that about 70% percent of CPU was being used during execution and when i was&amp;nbsp;handling graph palette features, like zoom, this rate turned to 100%! At this point, usually, the aquisiton stops. &lt;/DIV&gt;</description>
      <pubDate>Fri, 15 Jun 2007 22:11:36 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Frozen-screen-during-execution/m-p/537268#M253520</guid>
      <dc:creator>ebragafreitas</dc:creator>
      <dc:date>2007-06-15T22:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Frozen screen during execution</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Frozen-screen-during-execution/m-p/537276#M253526</link>
      <description>&lt;DIV&gt;More important would be to monitor memory.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;As I said above, you are growing infinite arrays in shift registers, so the code constantly need to perform expensive memory allocations. Are you sure you're not runing out of memory?&lt;/DIV&gt;</description>
      <pubDate>Fri, 15 Jun 2007 22:31:50 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Frozen-screen-during-execution/m-p/537276#M253526</guid>
      <dc:creator>altenbach</dc:creator>
      <dc:date>2007-06-15T22:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Frozen screen during execution</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Frozen-screen-during-execution/m-p/537296#M253533</link>
      <description>&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
&lt;HR /&gt;&lt;a href="https://ni.lithium.com/t5/user/viewprofilepage/user-id/7614"&gt;@altenbach&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;DIV&gt;I agree with Ben.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;This code is a nightmare!&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Duplicate code everywhere in deep stacks of stacked sequences, overlapping tunnels and wires.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Maybe once the code is cleaned up, debugging will be possible. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;
&lt;HR /&gt;
&lt;/BLOCKQUOTE&gt;This code is a structural nightmare, but it is almost pretty in how all the duplication is organized.&amp;nbsp; It must have taken a huge amount of work to organize all those wires so they overlap.&amp;nbsp; And tunnels on top of tunnels.&amp;nbsp; The author must have carpal tunnel syndrome from all that mouse clicking and wire moving!&amp;nbsp; And to duplicate a case structure 48 times and make minimal changes to each case?&amp;nbsp; It is a rather neat job of programming considering it must have been at least 20 times the work as if the loops were organized properly.&amp;nbsp; &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://ni.lithium.com/i/smilies/16x16_smiley-wink.gif" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 16 Jun 2007 00:54:42 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Frozen-screen-during-execution/m-p/537296#M253533</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2007-06-16T00:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Frozen screen during execution</title>
      <link>https://ni.lithium.com/t5/LabVIEW/Frozen-screen-during-execution/m-p/540779#M254816</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;The task manager shows that the memory alocation is increasing reasonably fast. What should I do? I need to store all this data in so many arrays cause they're been plotted on a&amp;nbsp;XY graph. &amp;nbsp;</description>
      <pubDate>Fri, 22 Jun 2007 19:54:31 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/LabVIEW/Frozen-screen-during-execution/m-p/540779#M254816</guid>
      <dc:creator>ebragafreitas</dc:creator>
      <dc:date>2007-06-22T19:54:31Z</dc:date>
    </item>
  </channel>
</rss>

