From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
04-08-2013 02:06 AM
Hello every one
I have written a code in labviw and
I am running an application in a pc with 4gb ram, i5 processor .
Problem is the application is running slowly in this pc .
When i am running the application i when to task manager to see the pc status please see the attached pic
When i go to another pc with 2gb ram it is too slow
So my question is
1 how to increase the application speed ?
2 If i integrate the VGA card does the application speed increases ?
04-08-2013 02:47 AM
You don't provide enough information to troubleshoot the problem. CPU use can be high if you have polling UI loops without small waits. Memory use can be high if you have huge data structures and many data copies in memory (e.g. overuse of local variables or generally inefficient code).
Please define "slow". Do the computations take more time that you think they should or does the user interface feel sluggish? How do you measure the slowness?
What does the program do? Please show us some code!!
Typically, it does not help to simply throw more CPU power at the problem if the root cause is in inefficient and wasteful code. A faster CPU will simply waste even more clock cycles per unit time. 😄
04-08-2013 04:12 AM
I dont thinks that labview installer file is slowing down.Please attach your code. It needs some refinement.
04-08-2013 05:21 AM
04-08-2013 07:18 AM
@Yamaeda wrote:
Greedy loops.
/Y
Most likely... greedy loops. On top of bad architecture.
And since we're guessing: how about Local & Stacked Sequence Structure abuse 😄
04-09-2013 09:05 AM
Ray.R wrote:Most likely... greedy loops. On top of bad architecture.
And since we're guessing: how about Local & Stacked Sequence Structure abuse 😄
We cannot rule out Localitis and Sequentitis, but the symptoms have yet to reveal themselves. However the high cpu usage and inability to get a responsive system clearly suggest a greedy loop, which we lack a good name for.
I suggest Capitalismus, Bankeris or Electronic Artosis (nudge, nudge, know what i mean?)
/Y
04-09-2013 03:55 PM
I should have been more clear. 😄
Definitely greedy loop.
Other things to look for is the architecture and the possible abuse of variables and structures. 😉
04-09-2013 06:24 PM
Grreedy loops are definitely only part of the story, they don't consume 1.2GB of memory. 😄
04-09-2013 10:36 PM
I think the problem is with your PC, or at least Windows task manager. How can you have a task taking 1,24,368 KB? There seems to be a digit missing in the middle.
04-09-2013 11:04 PM - edited 04-09-2013 11:07 PM
So, what exactly is that "SIT Awareness sys.exe" and what does it have to do with LabVIEW? There must be a reason you highlighted it for this thread.
If this is your LabVIEW application, please tell us if you have similar problems when running in the development system.