Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

.NET wrapper of DAQmx functions

Hi all,

 

Integration of DAQmx into a .NET environment is easy. But, if you want to have a loose coupling with DAQmx, things are getting a bit more complicated. You need fixed references now of DAQmx libraries in your project. Concequently, DAQmx must be installed on the build machine as well. 

 

A flat .NET wrapper class to the DAQmx library "nicaiu.dll" seems to me a solution. The project just compiles independent of the existence of DAQmx on the first place, and second, I can determine at runtime with a "Factory" pattern whether to use NI or not on the target PC. That's fine if you want to gradually move from Advantech to National Instruments acquisition. PC's with Advantech acquisition do not require DAQmx installed then.

 

I found someone who developed a limited wrapper "clsNIDAQmx". But I understood that NI supports the native source code API as well but I could not find the wrapper for the DAQmx.

Any help, hint or source code is appreciated. 

 

Let me know!

Martin

 

 

 

 

0 Kudos
Message 1 of 2
(3,925 Views)

Hi Martin,

 

The DAQmx api that comes inherent with the driver is a .NET wrapper of the DLL already, if you are unable to have the DAQmx driver installed then you may need to make your own .NET wrapper but we do not have access to the .c files.  We have a white paper on programming NI-DAQ in Visual Basic .NET which points to some example code that comes along with the DAQmx driver which may be useful.

 

Programming NI-DAQ in Microsoft Visual Basic .NET

http://digital.ni.com/public.nsf/allkb/AFFC0BE95DE6B38186256D9B0051342B?OpenDocument

 

Some of this may have been covered in a previous forum here: http://forums.ni.com/t5/Measurement-Studio-for-NET/NET-API-Wrapper-for-cDAQ-9181/m-p/3156239

 

Is this helpful?

 

Cheers,

 

Luke

0 Kudos
Message 2 of 2
(3,889 Views)