Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I use the DAQmx library dynamically without having the software on the...

I have an application that uses the NI-6731 multifunction card.  This DAC functionality is only part of the application and I would like to statically link the NI-DAQMX software so that I don't need to install it on every machine that this application runs.  So the underlying question is how do I link to the NI-DAQMX software without having the library residing on the machine that my application is on.
 
Thanks for any help provided
0 Kudos
Message 1 of 8
(4,273 Views)
Hi JeffC@...,
which software development tool do you use? LabView? DAQmx is a driver for HW, so if you want to communicate to the 6731 board you have to install the driver.
Or do you mean the case, that your application shall run on an pc without these hardware?

Mike
0 Kudos
Message 2 of 8
(4,272 Views)
Mike
Yes I DO want to be able to run this on a machine without the hardware.  The application performs several tasks and the DAC is just one of them.  When I go to run the app.  I keep getting these "Can't find blah.dll" messages.  My solution has been to load the driver on every machine that can potentially run the application.  This is not desirable.
 
Thanks Again!
Jeff 
0 Kudos
Message 3 of 8
(4,270 Views)
Hi JeffC@...,
if you use LabView you can load the driver vi´s dynamically. So you can depending on the machine where you start your application decide if you load the driver or not. With this solution you can load your application on every machine without receiving the error.

Mike
0 Kudos
Message 4 of 8
(4,268 Views)

Mike

I think that is a very viable solution BUT unfortunatley for me we did not buy Lab View.  My customer tried to go with the bare bones solution to "save money".  Now I am trying to get it to work.  The application works but I have to load the software on machines that have no hardware.

Jeff

0 Kudos
Message 5 of 8
(4,264 Views)
Hi Jeff,

What application development environment are you using? If you are using Microsoft Visual C++ you may want to use its linker's support for delay-loaded DLLs or you can call GetProcAddress() directly.

Brad
---
Brad Keryan
NI R&D
0 Kudos
Message 6 of 8
(4,254 Views)

Hi~ Brad,

 

Excuse me, but how do I find the correct *.dlls while using dynamic calling(I mean using GetProcAddress()).

 

i.e. if I wanna use DAQmxCreatAITask and DAQmxCreatAOTask, whitch DLLs should I load?

0 Kudos
Message 7 of 8
(3,818 Views)

Hi Nesc,

 

NI-DAQmx C API functions like DAQmxCreateTask() and DAQmxCreateAIVoltageChan() are provided by nicaiu.dll.

 

Brad

---
Brad Keryan
NI R&D
0 Kudos
Message 8 of 8
(3,810 Views)