Front Panel: Difference between revisions
m Fix placement of tips and tricks |
→Tips and tricks: Add movement tricks |
||
| Line 55: | Line 55: | ||
* Right-click the application instance name on the status bar to quickly switch between application instances. | * Right-click the application instance name on the status bar to quickly switch between application instances. | ||
[[Image:switching application instances.png|center|thumb|300px|Switching application instances]] | [[Image:switching application instances.png|center|thumb|300px|Switching application instances]] | ||
* Press '''Shift''' before moving an object, to restrict the direction to horizontally or vertically, respectively. | |||
* Use the '''arrow''' keys to move selected objects. | |||
** Press '''Shift''' to increase the movement speed. | |||
{| align="center" | |||
| [[Image:Before moving a selection.png|center|thumb|200px|Before moving a selection]] | |||
| [[Image:After moving a selection - shift unused.png|center|thumb|200px|After moving a selection - shift unused]] | |||
| [[Image:After moving a selection while holding down shift.png|center|thumb|200px|After moving a selection while holding down shift]] | |||
|- | |||
|} | |||
== Advanced== | == Advanced== | ||
Revision as of 12:13, 15 May 2020
The Front Panel of a VI contains the User Interface of the VI. The front panel can be simple with only a few inputs, (controls) and outputs (indicators) for a SubVI or complex with many controls, indicators, and decoration for an application interface. The Controls Palette or Quick Drop is used to select the type of control, indicator, or decoration to add to the front panel. By default the size and position of the front panel will dictate its running size and position
Creating a Front Panel
Adding Controls/Indicators
Via Controls Palette
|
|
Via Quick Drop
|
|
Changing Front Panel Color
During Edit Time
During edit time the Front Panel color can be set using the Tools Palette, Set Color tool.
Changing Dynamically
While the VI is running, the color can be changed dynamically by using the Pane class/Pane Color property. This will mean that the Pane's reference will be required. Use the Panel class/Panes[] property to obtain an array of references to all of the panes owned by a Front Panel. If only one pane exists, there will be only one element in the array.
Best Practices
Organization
- For simple VIs, it is best practice to place inputs (controls) on the left side of the front panel and outputs (indicators) on the right side of the front panel in a manner that matches their position on the Connector Pane.
- For complex UIs see the page on User Interfaces.
Tips and tricks
- Press Ctrl and drag to make more space on the front panel (press Esc to abort).
- Press Alt+Ctrl and drag to remove space on the front panel (press Esc to abort).
- Press Ctrl and drag while using the Positioning tool to duplicate objects.
- Drag a block diagram constant to the front panel to create a control.
- Drag a front panel control into a control refnum to quickly create a typed reference.

- Right-click the application instance name on the status bar to quickly switch between application instances.

- Press Shift before moving an object, to restrict the direction to horizontally or vertically, respectively.
- Use the arrow keys to move selected objects.
- Press Shift to increase the movement speed.
Advanced
Properties
Front panel properties and be accessed via a panel refnum and a Property Node using the VI Server. See Panel Properties.
Methods
Front panel methods and be accessed via a panel refnum and an Invoke Node using the VI Server. See Panel Methods.
History
| Version | Change(s) |
|---|---|
| In LabVIEW 2011 the default background color of the Front Panel was changed to a lighter shade of gray "to complement the appearance of the controls and indicators on both the Modern and Silver palettes."[1] |
See Also
References
- ↑ "LabVIEW 2011 Features and Changes" by NI (http://zone.ni.com/reference/en-XX/help/371361H-01/lvupgrade/labview_features/)


