Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

How can i call Ni-DAQmx base function in VC#?

I got NI-DAQ card and i found the C function reference. I did some work on VC++ before, for example to read the voltage from DAQ card. I have to download the c head and then call the function in my application. Right now i'm using VC#, I wonder how could i call the function in this paticular language, because it doesn't support c head.

Thanks!

Kevin
0 Kudos
Message 1 of 2
(3,021 Views)
Hi Kevin,

Using DAQmxBase is only supported in LabVIEW and C. There is no native DAQmxBase support for .NET. However, this can be overcome by simply declaring the .dll functions you need to use and using them.

I have gotten this to work on occasion (however it is not supported by NI). Take a look at the following link. It outlines how to do it and contains an example program.

-Sal

http://digital.ni.com/public.nsf/websearch/AF5F4827A953E7B286256F35005E4260?OpenDocument
0 Kudos
Message 2 of 2
(3,016 Views)