Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx classes and routines for C#

Hello,

 

With C# and the

 

using NationalInstruments.DAQmx

 

statement one is able to access the DAQmx API.  How can one know the format (and syntax) of all the contained classes and member methods?

 

As an example, if I need the C# equivalents of the following VB6 functions how does one go about it?

 

testResult = DAQmxCreateTask("", VddTask)    'Pin 55 of connector 0's breakout box
testResult = DAQmxCreateAOVoltageChan(VddTask, "PXI1Slot2/ao0", "", 0, 5, DAQmx_Val_VoltageUnits2_Volts, "")
testResult = DAQmxWriteAnalogF64(VddTask, 1, True, 10#, DAQmx_Val_GroupByScanNumber, Val(TBVDD.Text), sampsPerChanWritten, ByVal 0&)
testResult = DAQmxWaitUntilTaskDone(VddTask, 10#)
testResult = DAQmxStopTask(VddTask)
testResult = DAQmxClearTask(VddTask)

 

I know there is some example code, but it would be also more helpful to have the exhaustive list.

 

Thanks!

 

Anand

0 Kudos
Message 1 of 3
(3,063 Views)

Hi Anand,

 

Here are the Locations for the NI-DAQmx .NET Help Files, which contain the full API reference. Also, Learn 10 Functions in NI-DAQmx and Handle 80 Percent of Your Data Acquisition Applications covers the DAQmx basics in LabVIEW, .NET, and ANSI C, so it should be a good starting point for learning how the ANSI C (and VB6) functions correspond to .NET classes and properties.

 

Brad

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

Thank you Brad,

 

That was very helpful indeed.

 

Anand

0 Kudos
Message 3 of 3
(3,014 Views)