07-19-2013 04:28 AM
I am facing this in LabVIEW 2011 Version SP1.
Bug: When a project is open and a new VI is created it comes under the project automatically (This is expected). But when the VI is changed to main instance still it is under the project and even if we close it the same VI is shown in the project. This is not changing after saving, closing and re-opening the project. Still the VI will be shown in the project and when tried to open nothing happens.
When a New VI is openend it automatically comes under the project
VI changed to Main instance.
After closing the VI without saving and Project is closed and opened again but the VI still shown in the Project explorer and nothing happens when tried to open
07-19-2013 06:35 AM
This is expected behavior.
The configuration you are doing by switching the Application Instance is only valid for runtime. So it decides in which context LV is going to execute the VI.
The LV Project file is an XML based file refering items for development. So swapping the application instance for runtime does not necessarily mean that the VI should not be part of the project anymore; maybe, this setting is only used temporarily for debugging purposes.
Your request is that LV would remove the VI from the XML base project file once a user swaps the application instance for a specific VI. For the VI, this is no change as it doesn't know about the project file at all (despite the application instance it will be executed in). The project on the other hand cannot differ if your change in the setting means:
- temporary debug tool
- should be removed from the project.