04-08-2006 03:10 AM
04-10-2006 05:07 AM
04-10-2006 05:47 AM
04-10-2006 07:24 AM
04-10-2006 08:07 AM
Hi Pansy,
As Albert said, you have to account for the sub-vi's.
The other thing to explain the size increase, is that if you created an executable for standalone installation on another PC, it (may) contains the LV Run-time engine, and support files to run the vi.
As for the speed decrease, did you add all files to the project when creating the executable? In other words, did you add all sub-vi into the exe or does it search for the files at run-time?
JLV
04-13-2006 07:07 AM
Thank you very much for helping me.![]()
Maybe I did not express my question clearly.My program is only 608kB,but why it should use more than 30MB memory(not space on hard disk )to load the program?If my program is saved on removable storage device,it will takes terribly long time to be loaded.If it is on hard disk,the time is tolerable.Why?I did not add run-time engine into the .exe file,I only build .exe application,not installer.
What's more,I don't know how to see the real size of a vi.Albert,can you give a little more detailed instruction?Thank you![]()
I want to use a subvi to show a login page.So if the initiation time is too long,it can not look like the login page for a windows application.
04-13-2006 07:31 AM
04-13-2006 07:39 AM
I have had some issues with slow load of executables. Some distributed applications were slow which could frustrate clients. I faked a speedier load bu using a splash screen: an simple vi which displays a picture then calls the main vi dynamically. This looks to the user like a faster load but really took the same time. Dynamic loading of application code as needed will speed up your application load times but can complicate the program structure.
Paul
04-13-2006 08:04 AM
Good one Paul..
Yes, it's a trick I used to do... back in the DOS daze.. 😮
And as pincpanther stated, memory allocation is different than physical size on harddrive.
Also, you have to allocate memory for the run-time engine..
🙂
04-13-2006 08:17 AM
Hi Pansy
You can look at the properties of a vi. Simply rightclick the icon and seelct properties or File/properties will do the job.
than you can select a number of proprties (normally you see general) but clcicking on the down arrow shows the selection possible.
The second one is "memeory" and you get a detailed look at the memory requirements.
Leaves me one question... You seem to work for NI (blue squares but not for long yet) is that true?