LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Execution Slowdown

I have a Labview 8.5 program controlling a test station which is running tests on a UUT in an environmental chamber. The testing can run for hours. After approx 4 hours of running, my program starts executing slowly and the cpu is close to 100%. It does this in both the source code and the installed version of my program. Here's the strange part: If I completely exit my program and Labview, then reload it, it still runs slowly. The only way to get it to run at normal speed is to restart windows xp. I'm assuming my labview code is doing something to windows? Any suggestions as to what I should look for? Thanks!
0 Kudos
Message 1 of 6
(2,849 Views)

Sounds like an out of memory error to me. Check for arrays or similar growing continously. Some coding structures create copies of data which can allocate more and more memory even if it's not obvious.

 

I'm sure Altenbach has better information on the subject. 🙂

 

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 2 of 6
(2,842 Views)
You should have a look at how you have you have implemented loops and how you have architected your code (implementation of design patterns). Also, have you used references? If so, are you opening and closing the references properly? And, have a look around to see how you have used your high memory data structures.
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 3 of 6
(2,841 Views)
I agree with your suggestions, however, wouldn't restarting LV eliminate any memory creep issues?
0 Kudos
Message 4 of 6
(2,836 Views)
No it wouldn't. Have a look at Performance in the Windows Task Manager, that will help you a lot with diagnosing this issue.
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 5 of 6
(2,829 Views)

Some other things to look for:

* References that are not closed (any kind)

* Uninitalized shift registers carrying arrays

 

You can use the windows task manager to see if memory grows.

 

Felix 

0 Kudos
Message 6 of 6
(2,825 Views)