National Instruments BridgeVIEW Manual De Usuario

Descargar
Página de 455
Chapter 15
Application Control
© National Instruments Corporation
15-3
the TRUE value is passed into a Case structure and each case contains the 
appropriate subVI, as shown in the previous illustration.
The disadvantage of the above approach is that all subVIs are in memory at 
all times, regardless of which ones are needed. If each subVI is large, your 
main menu VI might require a large amount of memory.
To avoid using so much memory, you can use the VI Server to load and 
execute VIs dynamically. To do this, you must know the name of the VI you 
want to access and its location on the computer or network. The illustration 
below demonstrates the same scenario described above, this time using the 
VI Server.
In both of the previous examples, the top-level VI stops executing until the 
subVI completes, which means the top-level VI stops responding to the 
user interface. To keep both the top-level VI and other VIs responding to 
the user interface at all times, you can load and run VIs dynamically as 
shown in Activity 15-1.