From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

DQMH Consortium Toolkits Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Read version number of the DQMH VI package programmatically?

Solved!
Go to solution

I think the subject says it all:

 

Is there a way to determine the version number of a VI package (here: the Delacor QMH) - as it would appear in VI Package Manager - programmatically from my LabVIEW application?

 

So we're using 3.1.0.18 at the moment, and I would like that to show up in different places (GUI, readme, ...).




DSH Pragmatic Software Development Workshops (Fab, Steve, Brian and me)
Release Automation Tools for LabVIEW (CI/CD integration with LabVIEW)
HSE Discord Server (Discuss our free and commercial tools and services)
DQMH® (The Future of Team-Based LabVIEW Development)


0 Kudos
Message 1 of 8
(3,836 Views)
Solution
Accepted by topic author joerg.hampel

Hi Joerg,

 

All of the DQMH VIs get the following text at the end of their VI Description:

"Based on Delacor QMH Project Template" followed by the DQMH version.

 

You could get the version information by using the VI Description property node and then some regular expression code.

 

I created the following quick and dirty code and put it in the DQMH Module.lvlib:Module Name--constant.vi just as an example:

DQMH version number.png

 

Save the image above on your code and you should be able to drag the snippet into any DQMH generated VI and have it report the version.

 

This would of course only give you the version used to create the package not the current version currently installed. 

 

Regards,

Fab

 

For an opportunity to learn from experienced developers / entrepeneurs (Steve, Joerg, and Brian amongst them):
Check out DSH Pragmatic Software Development Workshop!

DQMH Lead Architect * DQMH Trusted Advisor * Certified LabVIEW Architect * Certified LabVIEW Embedded Developer * Certified Professional Instructor * LabVIEW Champion * Code Janitor

Have you been nice to future you?
Message 2 of 8
(3,801 Views)

We already do that very same thing with some of our own library VIs. Perfect, that's all I need.

 

Thanks, Fab!




DSH Pragmatic Software Development Workshops (Fab, Steve, Brian and me)
Release Automation Tools for LabVIEW (CI/CD integration with LabVIEW)
HSE Discord Server (Discuss our free and commercial tools and services)
DQMH® (The Future of Team-Based LabVIEW Development)


0 Kudos
Message 3 of 8
(3,798 Views)

Old question, I know. But I have a variation, how can I programmatically determine what version of DQMH is installed? Do I have to query the VIPM API somehow or is there another way?

Sam Taggart
CLA, CPI, CTD, LabVIEW Champion
DQMH Trusted Advisor
Read about my thoughts on Software Development at sasworkshops.com/blog
GCentral
0 Kudos
Message 4 of 8
(2,099 Views)

VIPM keeps copies of installed packages in folders (named by LabVIEW version) somewhere under the Program Data folder.  If you have a look you will find it.  

 

I've used this in a pre-build vi that records all installed packages in the EXE's build log.  

0 Kudos
Message 5 of 8
(2,091 Views)

I figured out how to pull it out of the VIPM API - although that requires a license. 

 

Digging through the files might be more widely applicable.

Sam Taggart
CLA, CPI, CTD, LabVIEW Champion
DQMH Trusted Advisor
Read about my thoughts on Software Development at sasworkshops.com/blog
GCentral
0 Kudos
Message 6 of 8
(2,083 Views)

@Taggart wrote:

I figured out how to pull it out of the VIPM API - although that requires a license. 

 

Digging through the files might be more widely applicable.


And might be more performant as well.

Sam Taggart
CLA, CPI, CTD, LabVIEW Champion
DQMH Trusted Advisor
Read about my thoughts on Software Development at sasworkshops.com/blog
GCentral
0 Kudos
Message 7 of 8
(2,081 Views)

For DQMH, I posted a related feature request long ago:  https://forums.ni.com/t5/Delacor-Toolkits-Documents/DQMH-Feature-Requests/tac-p/3808494/highlight/tr... 




DSH Pragmatic Software Development Workshops (Fab, Steve, Brian and me)
Release Automation Tools for LabVIEW (CI/CD integration with LabVIEW)
HSE Discord Server (Discuss our free and commercial tools and services)
DQMH® (The Future of Team-Based LabVIEW Development)


0 Kudos
Message 8 of 8
(2,072 Views)