Application Control

MGI VI Reference

This is the polymorphic version for the caller, current, and top level references. The VI also has a level version which allows you to specific the level reference desired.

MGI Change Detector

Report if input has changed since previous call. This VI is polymorphic, and the first call to this VI will return True or False based on the instance selected.

MGI Gray if

This polymorphic VI is designed to feed into the "Disabled" property of controls. Depending on the condition, it will output either "Enabled" or "Disabled and Grayed Out."

MGI Origin at Top Left

Places the referenced VI's front panel's origin at the top left of the pane.

MGI Save & Restore Settings

Saves or Restores the settings associated with a VI, including panel bounds, listbox column widths, and graph/chart plots. The settings are saved in an ini file at the specified path. For table style controls, only the columns with headers are saved.

MGI Exit if Runtime

This VI is designed to be used at the very end of an application that will be run as an executable. It closes the front panel of the executable before exiting LabVIEW, eliminating the annoying flicker as the front panel moves into the non-running state. In source code this VI has no effect.

MGI Get Executable Version

If this VI is built into an executable, it returns the file version (different than the product version) of the executable. When run in the development environment it simply returns "Development". Executables created with versions of LabVIEW earlier than 8.0 do not include the necessary information in the executable for this VI to return the version.

MGI For Loop Progress Bar

This VI is a progress bar for For Loops. If the "Wait Time" has elapsed, and the loop is less than half-way through its total # of iterations, this VI will open and show a progress bar for the For Loop. If "Show Time?" is True, this VI will display an approximation for the time remaining. A moving average is used to smooth the approximation to compensate for non-linearities in code execution. Freeware from Moore Good Ideas, www.mooregoodideas.com. Do not remove this line.

MGI Is Runtime

The VI returns a boolean indicating whether it is being run in an executable or in the development environment.

MGI Get Value

This is a polymorphic VI. It gets the value of the control specified by reference. It acts as a small "Value" property node.

MGI Button Dialog

Enhanced version of the built in three button dialog for original help, click link below). Added an output boolean useful for drop-in replacement of one- or two-button dialogs, which as in the original you'll get by wiring empty strings for button text. Added an option to make this a non-modal dialog but hide the calling VI, which is useful when you want to block one window but not all windows. This VI is reentrant to support that situation.

MGI Defer Panel Updates

Defers or Restores Panel Updates for the specified VI. This VI tracks the number of times a defer/restore is made for each VI so that multiple defers must be matched with multiple restores. A Defer or Restore will be attempted even if an error exists on input.

MGI Dirty Dot

Sets, clears, or reads a dirty dot on the Front Panel Title of the referenced VI.

MGI Get VI Control Ref[]

Returns refnums of all controls on a front panel. If Include Tab Page Controls is true, then all controls on tab pages are included recursively. The type of each returned refnum is also output in Control Type[i]. Control Label[i] contains the label of each control.

MGI Center Callee in Caller

This VI is designed to center a callee VI's window in a caller VI's window.

MGI Fade In & Out

This VI iteratively sets the transparency of the referenced VI from fully transparent to fully opaque and vice versa, providing a visual "Fade In" or "Fade Out". The default "Speed" is set at an arbitrary '3'. A higher number will cause a faster fade.

MGI Coerce Panel Bounds to Viewable Area

Coerce the specified panel bounds to fit on screen. If at least a 50 pixel square of the top left or top right rectangle appear on one of the monitors, then the original panel bounds is output. Otherwise, the panel bounds are changed to appear on the primary monitor.

MGI Set Front Panel Color

Sets the Front Panel Color of the referenced VI.

MGI Set Front Panel Title

Sets the Front Panel Title of the referenced VI.

MGI Set Scrollbar

This Polymorphic VI shows or hides the scrollbar(s) for the specified control reference. See the Instance VI help for more information.

MGI Save Front Panel Data

Saves the control and indicator data to the specified file in a MGI Read/Write Anything file under the specified section. Control and Indicator names must be unique.

MGI Restore Front Panel Data

Restores the control and indicator data from the specified MGI Read/Write Anything file. Control and Indicator names must be unique.

MGI VI Property Node

This VI contains a Property Node that is linked to the Front Panel:Open property of the VI Class. This VI serves as a merge to drop a property node that has already been linked as a VI Class type.

MGI Disable Enum Merge VI

This is a merge VI for the disable enum control.

MGI Disable Enum (Small)

This Polymorphic VI contains an instance for each disabled state of a control (Enabled, Disabled, Disabled & Grayed). It takes up less space than an enumeration constant on the block diagram.