Project Tools

=Introduction= With the introduction of Application Instances and Projects in LabVIEW 8.0, communicating with the user application has changed for toolkit VIs. This OpenG toolkit (part of the Application Control Toolkit) is meant for this usecase and provides a mean to communicate with the project file of the user.

=Location= This toolkit will be a subpalette of the Application Control Toolkit.

=Use case= For several toolkits I have written several times the same functions to do this, I want to put this info into OpenG.

=Status= This wiki page is my first try to test the waters, if the feedback is OK. I will develop the code.

Personel
User:TonP

=Functions=

Menu User Application
These VIs are designed to give feedback about the User's application instance.

User Application
This VI returns the application instance from which the menu was selected. For this purpose the App.MenuLaunchApp property has to be used, since this property returns the application only once this VI has to be a Functional global, with a destroy option. This VI behaves like a singleton class.

User VI
This VI returns the VI name from which the menu was selected. For this purpose the App.MenuLaunchVI property has to be used, since this property returns the application only once this VI has to be a Functional global.

Project integration
These VIs function on interaction with LabVIEW project files.

Active project
Returns the active project of a given application instance

Selected files in a project
Returns a list of paths of files in a given project, optionally with extra outputs for LabVIEW files

Add file to project
Adds a given path to a given project