05-13-2010 01:14 PM
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
05-14-2010 12:47 PM - last edited on 06-29-2024 04:26 PM by Content Cleaner
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
05-17-2010 01:34 PM
Thank you Brad,
That was very helpful indeed.
Anand