Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use simple NI-DAQmx C API in .NET, C#

Hi everyone!

 

I thought to share the solution for the subject with people like me, who are already familiar with the DAQmx driver and want to use it in .NET, C#. Its quite simple, you only need to import the DAQmx functions you want to use from the "nicaiu.dll", and take care for the parameter types. Thats all. So what I have is this (it only contains the main functions and constant variables I have ever used, but any other function can be imported in the same way).

Message 1 of 3
(12,934 Views)

Hi TarPista,

 

Thanks for sharing your experience. You can see an usefull knowledgebase Programming NI-DAQ in Visual C# .NET on how is possible to use DAQmx with .NET.

 

National Instruments provides a native .NET API for NI-DAQmx. This is available as a part of the NI-DAQmx driver, just install it manually (Do I need Measurement Studio to use NI-DAQmx in .NET).

 

 

Cheers,

Stefo

Certified-LabVIEW-Developer_rgb.jpg

0 Kudos
Message 2 of 3
(12,903 Views)

Thanks Stefo, I didn't know that! I will check it!

 

Cheers,

TarPista

0 Kudos
Message 3 of 3
(12,894 Views)