06-12-2011 03:48 PM
Hello,
One of our programs has a plugin structure. We open more than 50 VIs over VI Server. This is fast in runtime system, but slowly in the development system. The problem is the function "Open VI Reference". If you try to open an Ref to a very small vi, it takes nearly 2s per VI. In runtime system this is done in 2-4ms.
So the program takes ages to start in development system.
Is there a way to speed this up?
Thanks
Sletrab
06-12-2011 04:25 PM
Where does the application reference point to? If you have a plugin structure I guess the application reference is the current application (LV in development version, the exe in the runtime).
If this is the case, did you try NOT wiring the application reference? This might be faster.
06-14-2011 01:51 AM - edited 06-14-2011 01:51 AM
Hello dan_u,
Thanks for the reply. You are right it is the same application. But it makes no difference if the application reference is connected or not.
Sletrab
06-15-2011 02:46 AM
It's difficult to say what causes this, but it definitely doesn't sound normal.
You say the plugin VIs are rather small, can you attach one to see if I can reproduce the behavior?
Are your plugin VIs stored locally or on a network drive? In the compiled application, are the plugin VIs built into the application or outside?
06-15-2011 04:20 AM - edited 06-15-2011 04:21 AM
Is it always slow or fast the first time? Could it be that you're not closing the ref afterwards?
And/or debugging setting in the vi's,, which ofcourse is turned off in a .exe
/Y