Table of Contents
13 Modules
The Application Template supports loading DQMH modules dynamically - i.e. without creating any static dependencies - from a configuration file to avoid static dependencies. Those modules can then be displayed in the application template's main window. The Layout page holds more information on how create a project-specific user interface.
Note that modules need to implement the HSE Flavour of DQMH® to support these features.
Our Coding Conventions for the App Template hold more information on how and where to start modules.
Loading modules
Add the module to the list of dynamically started modules in the config.ini file. Paths are relative to the project or application directory (the _Source folder that contains the .lvproj file).
Example snippet which loads two framework modules (Status Bar and Navigation) and the project-specific modules StateMachine and DBModule:
[modules] ; paths are noted from the application base path ; (ie the path the startup.vi sits in) list = "Framework\Status Bar;Framework\Navigation;Modules\StateMachine;Modules\DBModule" start = "Modules\StateMachine"
Note: ''Framework'' is a special (virtual) path that is automatically resolved to the correct place in vi.lib where the HSE UI Framework modules are installed
Modules are started in the order they are listed in config.ini and stopped in the reverse order when shutting down the application.
Displaying modules at runtime
Concept
Refer to the Layout page for more details.
Implementation
In order to programmatically display a running, HSE-ified DQMH Module in the main display area (the SP_Content subpanel of ''PROJECT_Layout.vi'' which is displayed within UI Manager), send the Request UI Display request to that module.
For more details see the HSE Flavour of DQMH® documentation.
