01-23-2007 09:43 PM
01-23-2007 10:10 PM
I'm sympathetic, Raghunathan - (running 8.2 @ 1.2GHz.)
... but when you say "All other apps like Word open in a jiffy" I think: Yeah! but Word doesn't come with thousands of built-in term papers!
01-24-2007 06:46 AM
Not that I disagree with you, but I would just like to point out that you can't compare a program running on a PIC developed by one person to a large development environment. The larger your project gets, the more you have to abstract and simplify your code. This often comes at the expense of performance. If LV 8.0 has to load a gzilliion toolkits when you open it, then it will take time to load.
As for a more practical answer, people have experienced that LV 8.0 takes a long time to load. The main culprits, if I remember correctly, can be either having a lot of toolkits installed or the license manager. There was an issue where the license manager would slow down the loading of LV 8.0 if your network cable was disconnected. I suggest you search here for things like "8.0 load time" or similar to see if you can find a solution (or you can try talking to NI support).
01-24-2007 11:36 AM
01-24-2007 12:03 PM
01-24-2007 12:20 PM
@Raghunathan wrote:
In simple terms, is a VI as an EXE more stable than when run in a design environment ?
Stability wise, they should be the same, but an exe typically has less baggage to load. For example all diagrams and most front panels are stripped out and debugging is normally disabled. An exe is also a bit more safe, especially if you do development work at the same time. For example, fo you write another LabVIEW program with a "quit LabVIEW" node and run it, it might affect the other program running in the development environment, but will not touch the executable.
About the slowdown:
Yes, building arrays without bounds would cause this, but you (maybe) eliminated that possibility. How about references. Do you e.g. open new references at each iteration an never close them? Are your output tunnels of the state machine set to use defaults if unwired? I've often seen references get lost that way so they can never be closed again.
If you look at the CPU and memory use over time, do you see a constant increase over time?
What does the program do? Any networking? Communication with instruments or other hardware?
01-24-2007 12:48 PM
@altenbach wrote:
What you are seeing is not normal, especially the "file not found" message.
Actually, while the message is not common nowadays, it is perfectly normal.
When you double click a file, Windows calls the associated program to open the file. If after a certain time it does not get a specific response it returns that message and it is common to have the VI open, work on it and other VIs for a long time and only find the message after several hours. My impression from the original post was this was understood, which is why I did not mention it.
On my rather old soon-to-be-replaced laptop, loading LV 7.0 with all kinds of toolkits also produces this.
01-24-2007 01:26 PM - edited 01-24-2007 01:26 PM
@tbd wrote:
@I'm sympathetic, Raghunathan - (running 8.2 @ 1.2GHz.)
... but when you say "All other apps like Word open in a jiffy" I think: Yeah! but Word doesn't come with thousands of built-in term papers!
Another fact is that Microsoft cheats here. They firstly put lots and lots of the support libraries for their applications into the standard Windows kernel so once you load Word a lot of its dependencies are already loaded into memory and Word can just load its additional stuff.
Second they cheat once more by caching some of the application parts in a special system cache. The basic principle of this cache benefits most frequently launched applications but I'm quite sure Microsoft uses preferential treatment for their own applications in not trashing their caching as soon as others.
If you really talk about code bloat Microsoft software is usually beating LabVIEW hands down.
Rolf Kalbermatter
Message Edited by rolfk on 01-24-2007 08:30 PM
01-24-2007 03:55 PM
01-24-2007 06:24 PM