LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why do LabVIEW 2009 binaries startup so slowly?

I've built a couple of small display front panel applications using the latest LabVIEW [9.0 AKA 2009]. Startup on the development PC is painfully slow as in over a minute to diplay on the screen. The machine is a Pentium 4 class machine with 1GB of memory. This is 32-bit mode on Windows XP. We are not moving to a newer OS until this is supported corporate wide and that may be a while. 8.6.1 is much faster in all respects than this. If the machine were thrashing the drive light would be on for a much longer time and this does not seem to be the case. Anyone know what is going on? I'm going to try more memory but I have slim hope this will help much.

Message Edited by EWTech on 08-31-2009 03:07 PM
0 Kudos
Message 1 of 7
(3,737 Views)

Not sure if this is the culprit (I shut mine off as soon as I saw it) 

 

Check

 

Tools >>> Options > New and Changed

 

and try shutting OFF (put a check mark in)

 

Disable ni.com updates in Getting Started window

 

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 7
(3,727 Views)

Thanks for the tip but that is not the issue. The built binary seems to take more than a minute to start. LabVIEW startup seems snappy by comparison.

 

More details:

 

The application displays a group of indicators that are fed by a Windows DLL built with VS 2005 under C# that is in turn fed as a long string through a network variable. The DLL is just a string search method that returns a double.

0 Kudos
Message 3 of 7
(3,720 Views)
I don't know the details, but there have been some significant changes that NI made to LabVIEW 2009 behind the scenes which may be causing the decreased performance you see. I suggest you contact your local NI office directly and send them a copy of the EXE which they can then send up to R&D to analyze what exactly causes the lower performance.

___________________
Try to take over the world!
0 Kudos
Message 4 of 7
(3,711 Views)
I want to test on the newer PC but the issue seems to be an effect of how the NI Variable Engine responds to some registry settings.  There is a page on the digital.ni.com/public tree titled “Why does tagsrv.exe Memory Usage Grow Until it Crashes?” I have implemented option 1 on the test system and it cut the startup time roughly in half. I have set the setting value to 8,000,000. The variable engine architecture seems to have changed drastically and this seems to be what is stalling the application from loading as quickly as it should. Once the panel loads on the screen there is another half-minute delay waiting for shared variables to percolate through and start to display live data rather than default (usually zeroed) data.  The description says that if this is causing the error and the variable engine is swamped there should be error -180121600 or error -180121601 describing a message queue overflow. I get no error messages at all from variable read widget at all and the error output is wired as expected. 

During the build I made sure that debugging is off and memory usage seems to be reasonable for a newer LabVIEW version – it never decreases but usually increases somewhat modestly once the application has debugging off and the correct settings in the VI properties panel for application efficiency.

 

The machine in question is running Windows XP 32 bit, has a Pentium 4 CPU and 4 GB of RAM (the main board is maxed out). Trying the executable on a PC with a Core 2 dual core CPU and 2 GB of RAM shows similar results though I have not tested the registry change on that machine.

0 Kudos
Message 5 of 7
(3,490 Views)

I was messing around with the Variable Engine options and found that setting the sleep time to something less than the default of 60 seconds speeds things up quite a bit. I have to have the value greater than 30 seconds or the values displayed are set to zero briefly as if the variable engine is suddenly purged and takes a moment to reload from the variable source over the network. Does this make any sense?

 

Bob

0 Kudos
Message 6 of 7
(3,449 Views)
You should keep this in your original thread.
0 Kudos
Message 7 of 7
(3,443 Views)