Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Working with Application Instances

LabVIEW 8.2 Help
August 2006

NI Part Number:
371361B-01

»View Product Info

LabVIEW creates an application instance for each target in a LabVIEW project. When you open a VI from the Project Explorer window, the VI opens in the application instance for the target. LabVIEW also creates a main application instance, which contains open VIs that are not part of a project and VIs that you did not open from a project.

Use the application instance name that appears in the application instance shortcut menu on the bottom left corner of the front panel and block diagram windows to identify which application instance a VI belongs to.

If you remove a VI from the Project Explorer window when the VI is open, the open VI remains in the same application instance. You can select an application instance for a VI by using the application instance shortcut menu in the bottom left corner of the front panel and block diagram windows.

If you add an open VI to a project by selecting the VI icon in the upper right corner of a front panel or block diagram window and dragging the icon to a target in the Project Explorer window, the open VI is not part of the application instance for the target until you select an application instance.

Editing VIs in Multiple Application Instances

You can open the same VI on disk in multiple application instances at the same time. For example, you can open the same VI in two different projects or from two different targets within a project.

If you edit a VI that is open in only one application instance and then open the VI in another application instance, the VI you just opened contains the latest changes from the edited instance of the VI. However, if you edit a VI that is already open in more than one application instance, LabVIEW does not automatically apply the changes to the VI in the other application instances. You cannot edit, run, or save the VI in the other application instances until the VI is the same in all application instances.

Use one of the following methods to make the VI the same in all application instances:

  • Click the Synchronize with Other Application Instances button on the VI toolbar to apply changes to the VI in all application instances.
  • Save the VI that contains the changes. When you save the VI, LabVIEW automatically applies the changes to the VI in all other application instances.
  • Undo edits to the VI in the application instance that contains the changes.
    Note  You cannot undo edits to the VI after you save or synchronize the VI.

You cannot edit a VI while it is running or reserved for execution in another application instance. If a VI is part of a project library, LabVIEW also temporarily locks the project library in all application instances when the VI runs. You cannot edit the project library while the VI is running. After the VI stops, LabVIEW unlocks the project library.


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit