01-14-2020 03:35 AM
Hello everyone,
I currently reviewing my project and make mostly cosmetic/ efficiency changes to it. Since my projects has many files and LV has problems changing StrictTypedefs without crashing (already discussed in another thread), I basically have to save almost every time I make a change.
Every time I save the projects a lot of files are saved (even if I only edited one) which takes about 1-30s. This makes fluent development impossible.
Why does LV sometimes need to save almost all files and sometimes only a few? Is this a project definition which can be toggled off?
Solved! Go to Solution.
01-14-2020 03:54 AM
01-14-2020 04:22 AM
Does this explain the long saving times?
Is there anything I can speed up this process or just accept it?
01-14-2020 04:31 AM
One thing might be this: Minor changes can affect many VIs when TypeDefs are all around and "separate compiled code" is not active. Then you will need to save any file that has any relation to the typedef. Try to have as many files with this setting active as possible. Read more here.
01-14-2020 04:59 AM
The problem still persists. I understand why the compilation needs more time to link all the sources but saving especially small VIs should not interfere with programming. Classic IDEs differentiate between editing and compiling.
Is this because LV is mostly graphical programming where all the elements (and their callers) need to be updated in the code and the graphical representation of it?
01-14-2020 05:11 AM - edited 01-14-2020 05:11 AM
Hi sh,
@s.h._tech wrote:
Classic IDEs differentiate between editing and compiling.
LabVIEW does compile when you edit - or when you save…
01-14-2020 05:26 AM
Does this mean that when I see the popup window with 'Saving xx of 78' it also compiles?
Sometimes before I start the application I get a window with 'Compiling xx of 56'?
I still dont understand the long saving times.
The VIs are usually <50kB. Even with 200 files the limits of the hard disc can not be the problem.
01-14-2020 05:41 AM
01-14-2020 06:09 AM
Even before "separate compiled code" existed, I never experienced what you are explaining, even for very large applications. Yes, updating typedefs could affect many VIs, but not to the extent that it took long to save. So in my view, this is not a common issue but is somehow related to how your project/code is made.
And it has nothing to do with LabVIEW being a graphical programming.
So do check that you have all VIs set to "separate compiled code" and see if that helps first (it was unclear if you did).
01-14-2020 06:14 AM
I activated
Tools>>Options>>Enviroment: General -> seperate compiled code from new files
Is this the right one? My LV is in German and sometimes I have trouble finding the right translation