A VirtualInstrument object exports properties that affect a given VI. A VirtualInstrument object is instantiated by invoking the GetVIReference method on the Application object.

In the following topics, an asterisk (*) at the end of a data type name indicates that the property is a pointer. Property parameters denoted by [] are optional for that property.

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

Properties

PropertyDescription
AllowDebugging

If TRUE, you can use debugging tools on the VI. Set this property to FALSE to reduce memory requirements and to improve performance slightly for the VI.

BDModificationBitSet

Indicates whether changes were made to the block diagram since the VI was saved or opened, depending on which was last. If the value is zero, no changes were made. If the value is nonzero, changes were made. This property is read only.

BDSize

Size of the LabVIEW block diagram in bytes. This property is read only.

Callers

Returns a list of all the loaded VIs that call the referenced VI. This property is read only.

CloneName

Name of the clone VI. Returns an error if the VI is not a clone.

CloseFPAfterCall

Indicates whether to close the LabVIEW front panel after the VI runs.

CodeSize

Amount of memory used for VI code in bytes. This property is read only.

DataSize

Amount of memory allocated for data in bytes. You cannot read this property if the VI is running. This property is read only.

Description

Description of the VI that appears in the LabVIEW Context Help window when you move the cursor over the VI icon and in VI documentation you generate.

EditMode

If TRUE, the VI opens in edit mode. If FALSE, the VI opens in run mode, and the title bar, menu bar, and toolbar do not appear.

ExecInlining

Specifies whether to inline the subVI into its calling VIs.

ExecIsInlineable

Returns TRUE if you can inline this subVI into its calling VIs.

ExecPriority

Indicates the priority of the VI when it runs in parallel with other tasks.

ExecState

Indicates the execution state of the VI.

ExpandWhenDroppedAsSubVI

Expands to show terminals when dropped as a subVI.

FPAllowRTPopup

Indicates whether to display shortcut menus for LabVIEW front panel objects while the VI runs. If you do not display default run-time shortcut menus, you can continue to include customized shortcut menus.

FPBehavior

Sets the behavior of the LabVIEW front panel window. Valid values include 0 (

Invalid
), 1 (
Default
), 2 (
Floating
), 3 (
Floating/Auto-Hide
), and 4 (
Modal
).

FPHiliteReturnButton

Indicates whether to highlight Boolean controls that have a shortcut key of <Enter>.

FPKeepWinProps

Indicates whether the LabVIEW front panel window adjusts its size in proportion with a change in monitor resolution. The window changes size so it covers the same percentage of the screen that it covered at its original resolution.

FPMinimizable

Indicates whether the user can minimize the LabVIEW front panel window while the VI runs.

FPModificationBitSet

Indicates whether changes were made to the LabVIEW front panel since the VI was saved. If the value is zero, no changes where made. If the value is nonzero, changes were made.

FPMonitor

The monitor on which the LabVIEW front panel window appears, if you have multiple monitors. The value 0 is the primary monitor.

FPResizable

Indicates whether the user can resize the LabVIEW front panel window while the VI runs.

FPRunTransparently

Sets the VI to run transparently.

FPShowMenuBar

Indicates whether to display the menu bar on the LabVIEW front panel while the VI runs.

FPSize

Size of the LabVIEW front panel in bytes. This property is read only.

FPState

Current state of the LabVIEW front panel window. Valid values include 0 (

Invalid
), 1 (
Standard
), 2 (
Closed
), 3 (
Hidden
), 4 (
Minimized
), and 5 (
Maximized
).

A state of

Standard
or
Maximized
indicates that the front panel window is visible to the user.

If you attempt to set this property for a front panel window that is not open, the property returns an error.

FPTitleBarVisible

Indicates whether to display a title bar on the LabVIEW front panel while the VI runs.

FPTransparency

Sets the window transparency level of the VI. The level of transparency is a percentage where 0 is opaque and 100 is invisible. This property returns an error if you specify a value outside the range of 0 to 100. If you set FPRunTransparently to False, changing this property has no effect.

FPWinBounds

The four elements in the cluster are the top, left, bottom, and right values of the LabVIEW front panel window, which includes the interior region, scroll bars, title bar, menu bar, and toolbar. They are in global screen coordinates, that is, the numbers refer to coordinates within a computer monitor's screen (rather than an open window).

You can set this property only for VIs with open front panels. If you do not want the VI for which you want to set this property to appear to users, use the

Hidden
value of the FPStateEnum data type for the FPState property to hide the front panel of the VI.

FPWinClosable

Indicates whether the close button in the LabVIEW title bar is disabled and the Close item in the LabVIEW File menu is disabled.

FPWinCustomTitle

Indicates whether the VI has a custom title string. Write FALSE to remove the custom title string.

FPWinIsFrontMost

Writing TRUE to this value brings the front panel to the front. This property applies only in the application instance of the calling VI. Writing FALSE to this value has no effect. If you read this property, it indicates whether the front panel window is the front window (ignoring floating windows).

FPWinPanelBounds

The four elements in the cluster are the top, left, bottom, and right values of the interior portion of the LabVIEW front panel, not including the scroll bars, title bar, menu bar, and toolbar. The cluster elements are in global screen coordinates, that is, the numbers refer to coordinates within a computer monitor's screen (rather than an open window).

You can set this property only for VIs with open front panels. If you do not want the VI for which you want to set this property to appear to users, use the

Hidden
value of the FPStateEnum data type for the FPState property to hide the front panel of the VI.

FPWinTitle

String that appears in the LabVIEW title bar. This string does not have to match the VI filename.

HelpDocumentPath

Path to an HTML file (.htm or .html) or compiled help file (.chm or .hlp) to which the VI is linked. If the path is to a compiled help file, use the HelpDocumentTag property to determine the specific topic in that help file.

HelpDocumentTag

Index keyword or HTML filename for a topic in the compiled help file to which the VI is linked. To link to a bookmark within an HTML file, add # followed by the name of the bookmark to the end of the filename. Use this property only when HelpDocumentPath is a path to a compiled help file (.chm or .hlp).

For .chm files, this property can be an HTML filename or index keyword. For .hlp files, this property can be an index keyword.

HelpDocumentUrl

URL for the web-based help topic to link to a VI from the Detailed help link in the Context Help window.

HelpUseOnline

Indicates whether to link to a web-based help file from the Detailed help link in the Context Help window for a VI.

HistAddCommentsAtSave

Indicates whether to add a comment to the VI revision history every time the VI is saved.

HistPromptAtClose

Indicates whether to prompt for a VI revision history comment when the VI closes.

HistPromptForCommentsAtSave

Indicates whether to prompt for a VI revision history comment when the VI is saved.

HistRecordAppComments

Indicates whether to add comments to the VI revision history when certain events occur, such as conversion to a new version of LabVIEW, subVI changes, and changes to the name or path of the VI.

HistUseDefaults

Indicates whether to use the global default history or to use the values entered in other history properties.

HistoryText

Returns all the text that was added to the VI revision history. This property is read only.

IsCloneVI

Returns TRUE if the VI is a clone VI.

IsProbe

Returns TRUE if the VI is running as a probe and the probe VI is open.

IsReentrant

Indicates whether a VI can be reentrant.

Library

Returns the name of the LabVIEW project library, XControl, or LabVIEW class that owns the VI. If no library, XControl, or class owns the VI, the property returns NULL.

LogAtFinish

Indicates whether to write LabVIEW front panel values to a datalog file after the VI runs.

LogFilePath

Path of the datalog file in which LabVIEW front panel data and a time stamp are written.

Name

Name of the VI file. You can write this property only if the VI has not been saved to disk. If a LabVIEW project library owns the VI, this property returns the qualified name of the VI, which includes the project library filename.

OwningApp

Returns a reference to the Application that owns this VI. Close this reference when you are finished using it.

Path

Path to the VI file. This property is read only.

PreferredExecSystem

Indicates the execution system in which the VI runs.

PrintHeaderDatePrint

If TRUE, LabVIEW includes the date printed in the headers for the VI. Use the PrintingHeaders property to set whether LabVIEW prints the headers for the VI.

PrintHeaderModifyDate

If TRUE, LabVIEW includes the last modified date in the headers for the VI. Use the PrintingHeaders property to set whether LabVIEW prints the headers for the VI.

PrintHeaderPageNumber

If TRUE, LabVIEW includes the page number in the headers for the VI. Use the PrintingHeaders property to set whether LabVIEW prints the headers for the VI.

PrintHeaderVIIcon

If TRUE, LabVIEW includes the VI icon in the headers for the VI. Use the PrintingHeaders property to set whether LabVIEW prints the headers for the VI.

PrintHeaderVIName

If TRUE, LabVIEW includes the VI name in the headers for the VI. Use the PrintingHeaders property to set whether LabVIEW prints the headers for the VI.

PrintLogFileAtFinish

Indicates whether to print the LabVIEW front panel after the VI runs.

PrintMargins

Gets or sets the page margins to use when printing the VI in inches or centimeters.

PrintingBDScaling

If TRUE, LabVIEW scales the block diagram to fit on the printed page.

PrintingFPScaling

If TRUE, LabVIEW scales the front panel to fit on the printed page.

PrintingHeaderVIPath

If TRUE, LabVIEW includes the VI path in the headers for the VI. Use the PrintingHeaders property to set whether LabVIEW prints the headers for the VI.

PrintingHeaders

If TRUE, LabVIEW prints headers for the VI. Use the PrintHeader properties in this class to customize the contents of the headers.

PrintingOrientation

Gets or sets the page orientation to use when printing the VI.

ReentrancyType

Indicates the type of reentrancy LabVIEW uses for a reentrant VI. This property is similar to options on the Execution Properties page of the VI Properties dialog box.

RevisionNumber

Current revision number of the VI.

RunOnOpen

Indicates whether to run the VI when it opens.

RunTimeMenuPath

When read, this property returns the run-time menu path of the VI. When written, this property updates the run-time menu path of the VI. If the VI is running when you write this property, it updates the menu with data from the new path.

ShowFPOnCall

Indicates whether to show the LabVIEW front panel when the VI is called.

ShowFPOnLoad

Indicates whether to show the LabVIEW front panel when the VI is loaded.

SuspendOnCall

Indicates whether the VI should be suspended when it is called as a subVI. Use this property carefully with reentrant VIs.

TBShowAbortButton

Indicates whether to display the Abort Execution button on the LabVIEW toolbar while the VI runs.

TBShowFreeRunButton

Indicates whether to display the Run Continuously button on the LabVIEW toolbar while the VI runs.

TBShowRunButton

Indicates whether to display the Run button on the LabVIEW toolbar while the VI runs.

TBVisible

Indicates whether to display the LabVIEW toolbar while the VI runs.

VIType

Indicates the type of the VI.