03-21-2011 12:49 AM
Help,
Problem 1: I have memory leak on my program In the process of debugging I noticed that my memory dramatically deecreases when I minimize my application which makes sense but when I mazimize again the memory is way lower than before???? Does anyone know why this would happen.
Startup= 150,000 K
Minimize = 30,000K
Maximize after minimized = 44,000K.
Problem 2: Every now and then the screen freezes and my graph skips a few points. Is there a way to make sure my program gets highest priority over anything else on the system. (Win XP). There is nothing else this computer is being used for. Noone is browsing net etc....
Specs: Pentium E5400 dual core 2.7 GHz, 3.2 GB of RAM, win XP pro 2002 SP3
Thanks in advance for your help.
Hugh
03-21-2011 01:20 AM - edited 03-21-2011 01:20 AM
@HughQuinn wrote:
Startup= 150,000 K
Minimize = 30,000K
Maximize after minimized = 44,000K.
See this post.
@HughQuinn wrote:
Problem 2: Every now and then the screen freezes and my graph skips a few points. Is there a way to make sure my program gets highest priority over anything else on the system. (Win XP). There is nothing else this computer is being used for. Noone is browsing net etc....
What does your program do? Can you show us some typical code?
Typical causes are:
03-21-2011 04:00 PM
Greetings HughQuinn,
In the case of performance questions, it may be very beneficial to know what version of LabVIEW you are running as performance can vary in unexpected ways between versions.
Regards,
Michael G
03-22-2011 08:09 AM
All,
thank you very much for your replies. i am using Labview 2010 with latest updates. I have seen this through a couple versions though. My applications is really quite large 30 Mb of source code. I am running several timed loops and I do have priorities set on them for a reason. But I do have a dedicated loop for updating my front panel do not use the timeout feature of the event structiure. The application is controlling a production tool of a factory floor and needless to say i can not afford any software crashes. The loops read in lots of hardware signals and output hardware signals. There is a loop that controls heaters using the PID loops. If you would send me your email I can ftp you the code if you would like a look. I will try and play around with the priorities.
Regards,
Hugh
03-22-2011 08:31 AM
@HughQuinn wrote:
But I do have a dedicated loop for updating my front panel do not use the timeout feature of the event structiure.
Does this loop have a reasonable wait inside?
How are you updating the controls from within that loop? For example if you do all this with value property nodes you might have a huge performance impact due to their synchronous nature.
03-22-2011 01:13 PM
I actually do update some variables in the while loop with event structure now. I found a few controls that were not in a while loop This while loop has a wait of 100 ms and a timeout of 200 ms. I have a loop dedicated to updated all the rest of controls with a 500 ms wait. I update controls here by actually updating the controls themselves via global variables with a wait of 500 ms. I also have a graph that is updated on my front panel.
03-22-2011 02:02 PM
How much data is typically in the graph?
03-22-2011 02:18 PM
I think i found my answer. Thank you all for your help
http://digital.ni.com/public.nsf/allkb/9EA3D4258E037B8A8625763300434D