Event for VI.
Generated when the user tries to interactively close the front panel on a VI by selecting the Close item in the File menu or by clicking the close glyph on the window border. The Panel Close? event is a filter event.
LabVIEW ignores the Discard? event data field if you generate this event on a subpanel control.
![]() | Note LabVIEW cannot generate a Panel Close event for a VI being viewed or controlled remotely. If you are viewing or controlling a VI remotely, LabVIEW can generate events only for controls, not for a VI or the entire application. |
An event case configured to handle a filter event informs you when a user interaction takes place before LabVIEW processes the interaction. You then can modify if or how LabVIEW processes the interaction. If you do not want LabVIEW to inform you before it processes a user interaction, use the Panel Close notify event.
For a filter event, if you do not wire an element in the Event Filter Node that appears on the right-hand side of the event case, the default value of the element is the value output by the corresponding element in the Event Data Node on the left-hand side of the event case.
| Name | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Source | Source of the event.
| ||||||||||
| Type | Type of event that occurred, such as Mouse Down, Value Change, Timeout, and so on. | ||||||||||
| Time | Value of the millisecond timer when the event occurred. | ||||||||||
| VIRef | Reference to the VI on which this event occurred. | ||||||||||
| Discard? | Allows you to prevent LabVIEW from processing the event, bypassing the behavior normally triggered by that event. The default is FALSE. |