Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Panel Close Event

LabVIEW 2013 Help

Edition Date: June 2013

Part Number: 371361K-01

»View Product Info

Requires: Base Development System

Class: VI Events

Type: Notify

Generated when the user tries to interactively close the front panel of a VI by selecting the Close item in the File menu or by clicking the close glyph on the window border.

If a user closes the front panel of a VI that is not being called as a subVI and does not have any open references, LabVIEW aborts the VI. To ensure a Panel Close event case executes completely, be sure the application opens a reference to the VI before a user can close the front panel.

Caution  Do not use the Panel Close notify event for important shutdown code unless you have taken steps to ensure that the VI does not abort when the panel closes. Alternatively, you can use the Panel Close? filter event, which occurs before the panel actually closes.

An event case configured to handle a notify event cannot affect if or how LabVIEW processes a user interaction. If you want to modify how LabVIEW processes a user interaction, use the Panel Close? filter event.

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.

Event Data Fields

NameDescription
SourceSource of the event. LabVIEW UI refers to any built-in user interface event.

0LabVIEW UI
TypeType of event that occurred, such as Mouse Down, Value Change, Timeout, and so on.
TimeValue of the millisecond timer when the event occurred.
VIRefReference to the VI on which this event occurred.

 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit