Table of Contents
14 Layout
Basic Principle
The overall layout of the HSE Application Template consists of a single window (the UI Manager's front panel) that contains all other UIs. The framework allows to switch between different module UIs programmatically during execution (see below).
UI Manager
The UI Manager window is the frame or container for displaying other HSE-ified DQMH modules.
To keep the UI Manager module generic, the actual application UI - the overall arrangement of the user interface using one or more subpanels - is designed and configured in a project-specific Layout VI (see below) which the UI Manager then displays.
A schematic of the cascading of front panels and sub panels:
UI Manager ┌─────────────────────────────────────┐ │ Layout VI │ │ ┌─────────────────────────────────┐ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ └─────────────────────────────────┘ │ └─────────────────────────────────────┘
For additional details about configuration and functionality of the UI Manager see UI Manager - Layout.
—-
Layout VI
The PROJECT_Layout-VI.vi is project-specific (i.e. can be tailored to each project's needs) and stored in /Project/Project.lvlib:PROJECT_Layout-VI.vi. It is statically linked into the UI Manager and consists of one or more subpanels that define the actual layout of the application.
The Main Content area (a subpanel labelled SP_Content) is mandatory and can be populated with DQMH modules dynamically and programmatically.
Optionally, additional subpanels can be configured to show DQMH modules per the configuration in the UI Manager's configuration file. These additional subpanels cannot switch modules at runtime.
Default
The default setup as seen in the shipping version of the Application Template features three subpanels:
-
Main Content (displays the configured startup module)
-
Navigation (displays the Navigation module)
-
Status Bar (displays the Status Bar module)
Layout VI ┌─────────────────────────────────────┐ │ ┌──────────┐ ┌────────────────────┐ │ │ │Navigation│ │ Main Content │ │ │ │(fixed) │ │ <- switched by │ │ │ │ │ │ Navigation/UI │ │ │ │ │ │ Manager │ │ │ │ │ │ │ │ │ └──────────┘ │ │ │ │ └────────────────────┘ │ │ ┌─────────────────────────────────┐ │ │ │ Status Bar (fixed) │ │ │ └─────────────────────────────────┘ │ └─────────────────────────────────────┘
Adding Subpanels
You can display multiple DQMH modules in parallel - eg to add a sidebar etc. - by following these steps:
-
add a new subpanel to the
PROJECT_Layout.viand assign a unique name-
eg
SP_Sidebar
add an entry in the UI Manager's configuration file that maps a DQMH module that is loaded by the application to a subpanel:-
eg
SP_Sidebar=Modules\Sidebar.lvlib:Main.vi
Removing Subpanels
If your application has no use for any of the shipping subpanels (eg if you want to remove the Navigation), then follow the these steps to remove it:
Optional: If the DQMH module that was removed from the layout (eg Navigation.lvlib) should not even be started:
—-
Splash Screen
For customisation of the project-specific Splash Screen, you will want to replace:
Front Panel
The logo being shown (an image no wider than 500px) and the text of the button opening a URL (see below).
Note: The front panel is covered by the Close button (
Btn_close) which needs to be moved to access the image and the button.Block Diagram
The URL to the website.
code/dqmh/hse-application-template/layout.txt · Last modified: by joerg.hampel
-




