09-04-2008 10:38 AM
Hello everybody. I wrote an application for measurement. It is distributes as an installer with included LV Runtime and Visa Runtime. It also needs NIDAQmx but because its size I do not include it to the installer but inform the user to install it if it isn't yet. Because I put a lot of effort to have nice and smart error handling I also tried what happens if I run my application without having NIDAQmx installed. And what happens is not really nice as you can see from the pictures. And it's not even all the errors.
What I would like to achieve is to have just one error being displayed that nidaq is missing - similar to when runtime is missing. Is it possible to set this in the config file? Otherwise I don't know how I could handle this from within my application because those errors appears before it starts.
Thanks a lot
09-04-2008 12:12 PM
I like to run my applications from a splash screen launcher vi, where the main code is called dynamically. Here you might be able to verify if daqMX is installed prior to the DAQmx vis being loaded (as in the static launch condition). I have not tried this for your particular case though. As for determining if all dlls and support software is present, you could look at registry keys of search for specific dlls at known locations. I am not sure what trace Max and DAQmx leave behind when installed.
09-05-2008 01:20 PM - edited 09-05-2008 01:21 PM
Good question. I like falkpl's suggestion of having a sort of wrapper VI that would first check for DAQmx. You could also just perform this check then go into a case structure with the rest of your code (maybe your main VI as a subVI to this wrapper).
As for the check, I think checking the registry is the most robust and reliable method.
09-06-2008 08:10 AM
09-06-2008 10:28 AM
09-07-2008 03:04 AM - edited 09-07-2008 03:13 AM
Hello everybody. Here is my result. To be honest one of the best features I learned! Comparable to mastering Event Structure years ago and understanding Queue State Machine concept.
Run Splash_SplashScreen.vi. If you have some comments let me know. Thx
09-07-2008 03:16 AM