LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabView 2010 Lockup on opening VI

I am running LabView 2010 SP1 with about 15 X-Controls on the front panel. When I open the main GUI VI, I get about 750 - 800 VI's in during the Loading phase and then the LabView program locks with one of hte processor cores fully consumed. It seems that if I Clear the compiled cache or sometimes do a Mass compile I can get it open, but this needs to be done even after closing the VI and then re-opening.

 

Any ideas are appreciated as to what could be causing this or any way to get further debug information.

 

Thanks,

Anthony

0 Kudos
Message 1 of 2
(2,464 Views)

Hi Yeager,

 

Thanks for your question. Since you have so many subVIs, and although it will be tedious, you might want to choose to inline some of them which would make loading them and running them faster. Inlining is for subVIs that do not contain recursion or automatic error handling, and it automatically compiles the code and places it into the calling VI. You can inline by going into the subVI and press on File>>VI Properties. Then click on execution and place a checkmark in the Inline subVI into calling VI checkbox. You must also place a check mark on the Reentrant execution checkbox on that page.

 

Another option would be to load subVIs as subroutines, once again by going into the VI properties and selecting subroutine from the priority pull down menu. Here is a link with more information on this. https://www.ni.com/docs/en-US/bundle/labview/page/vi-execution-speed.html

 

You can also right click on the subVI in the main VI (if you can hopefully get it loaded at least once) and choose call set up, then choose reload for each call or load and retain on first call. This loads the subVI into memory when the first call to it is made rather than loading it into memory as soon as you open up the main VI. See this link for more information https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019NMCSA2&l=en-US.

 

Regards,
Basil
Applications Engineering
National Instruments
0 Kudos
Message 2 of 2
(2,422 Views)