User Tools

Site Tools


code:dqmh:hse-application-template:upgrade

98 Upgrade Instructions

Always refer to the latest release of the HSE Application Template Wizard on vipm.io to see all updates live in action.

Version v3.3.0

With version v1.5.0 of the HSE UI Framework, the status bar on the bottom of the UI Manager window is carved out into a separate Status Bar DQMH module and displayed in a separate subpanel in the Layout VI. This allows to have applications without status bar.

Changes:

  • Upgrade to v1.5 of the HSE UI Framework (changes to UI Manager, Status Bar, startup.vi)
  • New subpanel at the bottom in PROJECT_Layout-VI.vi
  • Module is started in config.ini
  • Module is displayed in subpanel in UI manager.ini

—-

Major Version 3.x

We recommend not upgrading existing projects but starting from a fresh copy of the latest HSE Application Template via the Wizard available on vipm.io. If upgrading cannot be avoided, here are some helpful steps:

Version 3 of our HSE Application Template migrates from local dependencies to using version 4.x of our HSE Core Libraries. The /hse-libraries folder that used to live in <project>_Source/Libraries/hse-libraries/ has been split into four new VI packages that get installed into vi.lib:

With the major version step of the HSE-Libraries from 3.x to 4.x we used the chance to introduce some breaking changes in this library as well. The intention was to adapt the HSE-Libraries to our grown better practices, get rid of deprecated code. One part of these changes was renaming some VI, e.g. removing unnecessary prefixes in VI names. Because of these changes, LabVIEW can't automaticaly find all moved VIs and dependency conflicts can arise.

There is no fully automated way of migrating existing projects to the new structure. Your best be t is to follow this rough upgrade path:

  1. Make sure the current working version of your project is in source code control.
  2. From the LabVIEW project explorer, remove the virtual folders \Libraries\hse-libraries and \Framework. The dependent libs and VIs should still be in the “Dependencies” tree of the project explorer.
  3. Close the project and LabVIEW and remove the folders \Libraries\hse-libraries and \Framework from the file system (e.g. from Windwos File Explorer).
  4. Install the above-mentioned four new VI packages.
  5. Overwrite the startup.vi in your project with the current version of this VI from our HSE-Application-Template repository (https://code.hampel-soft.com/open-source/dqmh/hse-application-template).
  6. Reopen your project. LabVIEW now realizes the missing VIs and starts to search for them in the default locations, among other locations in <vi.lib>.
  7. LabVIEW doesn't relink all VIs just by opening a project. We must open at least the top-level VIs to force LabVIEW to load, search and relink all sub-VIs. A good practice for DQMH based projects is to go through all modules and open the Main.vi and the API Test VI of every module.
  8. Most of the moved VIs get automatically relinked by LabVIEW, but LabVIEW can't relink VIs with changed names. For these you have to open the file dialog and manually select the corresponding VI under <LabVIEW Version>\vi.lib\HSE\HSE Libraries\Source'' (e.g. if LabVIEW can't find the VI ''hse-dqmh.lvlib:DQMH Tester Cleanup hse-appl.vi then select the VI hse-dqmh.lvlib:Tester Prepare hse-appl.vi from the <vi.lib>-folder).
  9. After going through all DQMH modules and perhaps other libraries there is a good chance that there are still broken dependencies in the “Dependencies” tree. Then go to each broken dependency and find the caller(s) by using the “Find » Callers” function in the context menue and open all calling VIs.
  10. Sometimes it can happen that LabVIEW just don't resolve all dependencies correctly, no matter what we do. Then it can help to close the project, clear the compiled object cache (“menue » Tools » Advanced » Clear Compiled Object Cache…”) and reopen the project. Also have a look at 96 Debugging.

—-

Version v2.5.2

  • minimum LabVIEW version required: LV2020

—-

Versions >= v1.13.3

  • minimum LabVIEW version required: LV2016
  • All Modules must be sucessfully validated with DQMH 5.0
  • HSE Layout Manager 1.2.1.4 is needed
  • DB_connector needs a db_interface definition
 db-interface="DB-MySQL"
  • module paths definitions changed - add folder in UI Mananger.ini
  SP_Navigation=Framework\Navigation.lvlib:Main.vi
  • module paths definitions changed - add folder in Sidebar-Def_Template.json
   "action": "Modules\\Dummy",
  • new option “retain value” in Sidebar-Def_Template.json
	{
		"name": "btn_Actor",
		"caption": "Actor Module",
		"tooltip": "Show the Actor module",
		"enabled_state": "Enabled",
		"action": "Modules\\ActorModule",
		"display_scenario": "Managed",
		"sub": [
			{
				"name": "lb_actorstate",
				"tooltip": "Actor State",
				"enabled_state": "Disabled",
				"content": [
					"Display Value 1/3",
					"Display Value 2/3",
					"Display Value 3/3"
				],
				"retain value":true
			}				
		]
	},
code/dqmh/hse-application-template/upgrade.txt · Last modified: by joerg.hampel