09-29-2010 08:23 AM
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
Solved! Go to Solution.
09-29-2010 08:34 AM
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.
09-29-2010 09:17 AM
Good idea ! Simple and smart !
Even if I would have prefered to avoid the dynamic calls...
Thanks for that pincpanter.
Laurent