If an app is developed in LabView 7.1 that uses NI-Daq 7.5 and the 6251 DAQ card can the app be made to run without having to check if NI-Daq and the hardware are installed so that the app can just be used for its non-data collection functions?
Here is our problem. Our LV Developer is currently creating applications for our technicians to test products using the 6251 DAQ card. We have installed the
The developer tells me that the app they wrote requires NI-Daq or else they have to maintain two versions of the app. To do this, they need to strip out all the NI Daq stuff with every build which unfortunately can be monthly. I have virtually no experience with
I know it does not seem like a big deal just to install NI-Daq, but I do not like the idea of installing NI-Daq across the company when it is not necessary especially since we updated NI-Daq 3-4 times last year at it took many hours each time with the downloads, updates, and testing.
Tell the developer to load the data acquisition functions dynamically instead of statically calling them. At the beginning of the program, a test can be made to determine if NI-DAQ is present. If it is, then those subVIs that require it are loaded dynamically. Dynamically calling subVIs is accomplished with the Call By Reference Node or VI Server and an Invoke Node. There are shipping examples. When the VI is built, the dynamically called subVIs are included as a support file. Support for this type of architecture has been included with LabVIEW for quite a while.
If the developer has questions, he or she should post them to the forum.