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.
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.
05-19-2011 06:00 PM
05-20-2011 04:38 PM
Ben_01880,
Which routines are you specifically wanting to stop? What operating system are you on? Are you wanting to check for what hardware you have connected to your system and if the specific hardware is not found then do not try to acquire from the hardware? Thanks for the additional information.
05-20-2011 05:16 PM
05-21-2011 09:27 AM
Are you trying to run or develop parts of a program which contains DAQmx Base VIs on the computers without the hardware? The Diagram Disable structure or the Conditional Disable structure may be of some value to you, but you will still have versions of the program which are different on the various computers. Please tell us what you will be doing on these other computers.
Lynn
05-22-2011 08:56 PM
I tried placing the code with the DAQmxBase calls in disable structures and
they still get loaded at program startup. If I were to move the calls into
a sub vi, would this prevent their loading until needed?
05-23-2011 08:13 AM
I had not thought about it carefully. They will be loaded because you could change the case from Disabled to Enabled. They do not get compiled when in the Disabled case.
So it appears that the only way to not load them is to not put them in. That means either two different VIs or putting all the DAQmx Base VIs in a subVI which is dynamically called (via VI Server). I have not checked but I think dynamically called VIs do not load until called and they are not part of the VI hierarchy. I do not use dynamically called VIs much so I am not sure on this point. DAQmx Base can be slow to load because of the number of subVIs involved, so if you go to dynamically calling them, allow enough time between the call and the time you need the first DAQ action for the loading to complete.
Lynn