An Application object exports methods that affect LabVIEW.

Note Method parameters denoted by [] are optional for that method.

Refer to the ActiveX Enumerations for more information about the enumerations used in various methods.

In the following topics, an asterisk (*) at the end of a data type name indicates that the method is a pointer.

Methods

MethodDescription
AllMethodsOfLVClass2

Returns an array of names and an array of paths for all methods of a class. The methods of the class are member VIs that can be called as subVIs. In other words, global VIs, control VIs, and polymorphic VIs are excluded from the output arrays.

BringToFront

On Windows and Mac OS X, brings the application windows to the front.

BrowseDataSocket

Launches the National Instruments DataSocket Browser dialog box to establish a connection to a DataSocket item.

CreateLVClassInterfaceLibrary

Creates a new LabVIEW interface.

CreateLibrary

Creates a new LabVIEW project library.

GetHierImgScaled

Gets the scaled image of the VI Hierarchy.

GetVIEditorVersion

Returns the version of LabVIEW that last saved the VI. This version might be different than the file format version of the VI. For example, if you used LabVIEW 9.0.1 to save a VI, the VI has a file format version of 9.0, but this method returns 9.0.1. To obtain the file format version of the VI, use the GetVIVersion method.

GetVIReference

Places a VI in memory and returns the IDispatch pointer for the VI.

GetVIVersion

Returns the version of LabVIEW in which the VI was last saved. LabVIEW does not open the VI when retrieving the version information. If you specify a path to a file that is not a VI, LabVIEW returns error 6559.

LVClassImplementingVIPath

Returns the path to the VI that implements the specified method within the specified class. If the specified class does not implement the method, this method returns an ancestor VI implementation.

LibraryGetFileLVVersion

Returns the version of LabVIEW in which the LabVIEW project library was created.

MassCompile

Loads and compiles VIs in a directory, including VIs in subdirectories, for the specified application instance.

NewProject

Creates a new, empty LabVIEW project. You also can use the LabVIEW Project Explorer window to create a new project.

OpenLibrary

Opens the LabVIEW project library.

OpenProject

Loads a LabVIEW project from disk. If the project is already in memory, this method returns a reference to the existing project. You can use this reference with the Project properties.

In LabVIEW, you also can select File»Open Project to navigate to and open a project.

ProjectGetFileLVVersion

Returns the LabVIEW file format version of the project. This version might be different from the version of LabVIEW in which the project was last saved.

Quit

Quits the application.

_GetVIQualifiedName

Returns the qualified name of a VI without loading the VI.