LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to use a loading bar on front panel, whan loading a sub-vi

when start loading a sub-vi, then the loading didn't move. it can move after finish loading the sub-vi.
but i want they move and load together.please help.
0 Kudos
Message 1 of 4
(2,834 Views)
When a VI loads, it also loads its entire hierarchy if it is not already in memory. There is no way to know exactly what LabVIEW is doing while the VI loads. One solution is to load the hierarchy from the bottom up, then all of a VIs dependencies will be in memory prior to loading it. However, there is no way to know the hierarchy until you attempt to load a VI in memory.
0 Kudos
Message 2 of 4
(2,834 Views)
I recommend using something akin to a splash screen. there are several hits on NI's site on the issue. The idea is that you will write a little VI that can load quickly which then contains the progress bar. (I am not sure exactly how you would measure this progress). This way you can show your customer something as VIs load.

The underling structure for this technique can be found by going to the advanced search under the support tab on the main ni page. Advanced Search and look for dynamic VI load . There will be a hit for a dynamic loader. This technique is an advanced use of VI server.
0 Kudos
Message 3 of 4
(2,834 Views)
The measure of progress could be the numbers of VIs in memory compared to the expected number when the Top Level VI hierarchy is completely loaded.


LabVIEW, C'est LabVIEW

0 Kudos
Message 4 of 4
(2,834 Views)