unHMI  1.1.2
unHMI_mainUnicosPanel.pnl File Reference

The main panel that manages the unHMI. More...

Detailed Description

The main panel that manages the unHMI.

The panel manages the initialization, visualization, configuration and finalization of the HMI. In particular, the panel is in charge of:

  • Initializing the HMI with the correct default panel or panels, in case that they have been defined in the
    manager properties, screen layout or in the application configuration.
  • Calling the functions to load the corresponding command modules.
  • Setting the proper visibility for the main view embedded modules.
  • Opening a new panel on the modules of the screen
  • Removing current displayed modules from the screen.
  • Creating and setting the appropiate configuration of new modules.
  • Getting the name of the modules and obtaining the visibility status of a module.
  • Opening the device tree overview embedded in a module.
  • Adding additional dock modules configurations.
  • Initializing and setting the visibility of the splitter mode when requested.
  • Managing the procedures that take place when closing the HMI application.

Dollar parameters:

Parameters to define configurations of modules

  • $number : the number corresponding to the module where the process is taking place.
  • mainWindowEmbeddedModuleFileName : the file name of the module embedded in the main window, i.e. unHMI_mainWindowEmbeddedModule.pnl.
  • $zoomedModule : the specific zoom module, i.e. the module that can be zoomed in/out and is embedded within the main screen view.
  • $zoomedFileName : the file name of the panel specified on a particular zoom module.
  • $title : the title given to the module (for example, "Module 1").

Global variables

The panel adds the following global variables to the manager scope (with addGlobal):

  • bool g_unHMI_RunsInNewHMI : the variable is initialize when running the new version of the HMI to differenciate between the prior version of the HMI and avoid any compatibility or dependency issues.