LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Presence toolkit for loading unbroken VIs

Solved!
Go to solution

Hi all,

Is there a way to test the presence of a toolkit (like the database connection toolkit) when LabVIEW is loading the projet or starting the exe, and to activate or unactivate the code using this toolkit ?

Basically, I'm developing a project which can send data to a database at the end of a test. This project is used on many PC, some with the toolkit installed, some without !

For the ones without the toolkit installed, I would like to avoid any broken VI's, and simply not write to the database.

Is there a solution for that ?

Thanks in advance for any suggestion !!!!

Cheers,

Laurent

0 Kudos
Message 1 of 3
(2,295 Views)
Solution
Accepted by topic author lraynal

Hi Laurent,

hide the optional functionality in one (or very few) vi and run it (them) dynamically. Before executing the optional vi(s), test for the presence of the toolkit by opening dynamically one of the toolkit vi's; if you do get an error, the toolkit is not there.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
Message 2 of 3
(2,283 Views)

Good idea ! Simple and smart !

Even if I would have prefered to avoid the dynamic calls...

Thanks for that pincpanter.

Laurent

 

0 Kudos
Message 3 of 3
(2,269 Views)