User Tools

Site Tools


code:dqmh:hse-application-template:startupvi

20 Startup VI

The startup.vi (found in the root of the SOURCE folder) takes care of

  • showing a splash screen
  • initialising various HSE-specific framework and config objects
  • starting the HSE-Logger
  • starting the Event Manager and UI Manager framework modules
  • starting the modules as configured in the config.ini file (dynamically)
  • registering the Event Manager and UI Manager dynamically for the modules' broadcast events
  • setting and dynamically populating a run-time menu
  • showing the UI
  • stopping modules and shutting down the whole application


Dynamic Loading of Modules

The following screen shots document the process of registering dynamically for the project-specific modules' default broadcasts chronologically. This should help you walk through the code and understand the mechanism. See this NI Forums thread for a few more details.

Read Configuration

startup.vi

Load Modules Dynamically

startup.vi

startup.vi:DQMH Load Module.vi

<SomeModule>.lvlib:Load Module.vi (specific to HSE DQMH Flavour)

Register Broadcasts Dynamically

startup.vi

startup.vi:DQMH Set Modules.vi

UI Manager.lvlib:Main.vi

UI Manager.lvlib:Register Modules in UI Manager–helper.vi

<SomeModule>.lvlib:Obtain Default Broadcast References.vi (specific to HSE DQMH Flavour)

UI Manager.lvlib:Main.vi

code/dqmh/hse-application-template/startupvi.txt · Last modified: 2022/07/08 16:04 by joerg.hampel