Panel
The Panel class is a subclass of Module. While Module provides the functions necessary for its internal operation, an object of the Module class cannot be displayed on the System User Interface . This is why the Panel class was created. The main difference between the two classes is that the Panel class contains functions that allow objects of the Panel class to be displayed on the User Interface. These are wrappers for messages sent to the System User Interface.
Panel Messages
Clear SubPanel MSG
Removes the interface specified as a parameter from the User Interface
Clear SubPanels MSG
Removes the interfaces specified as parameters from the User Interface
Clear Module From SubPanel MSG
Removes the module specified as a parameter from the specified UI interface(s)
Clear Module From SubPanel MSG SELF
Removes itself from the UI panel(s) on the User Interface
Request Subpanel Update MSG SELF
Displays itself on the UI panel specified as a parameter
Request Subpanel Update MSG GENERAL
Requests a module name and a UI panel as parameters, then displays the specified module on the specified panel
Front Panel View
In the Panel class, we can store references to variables located on the user interface using Initialize Front Panel View.vi. It is recommended to call this in Actor Core.vi before the main loop so that we can access the references.
Retrieving Controls
Set/Get Control Value (by Label) READ WRITE
Set or retrieve the value of a variable using its name. Returns a Variant
Get Control Ref (by Label) READ
Retrieve the reference to a variable using its name
Get Controls By Class READ
Retrieve references to all variables belonging to a single class (e.g., numeric, string) at once
UI State Management
Set Controls Visible UI
Sets the visibility of the variables specified by name to the state also specified as a parameter
Set Controls Visible (Filtered) UI
Sets the visibility of all other variables except those specified as parameters
Enable Controls.vi UI
Enables or disables variables on the user interface
When developing a new feature, you typically override the Panel class — unless you are creating a user interface for a widget, in which case create a subclass of the Instrument class instead.