|Download Help (Windows Only)|
To read and write with the NI-DAQmx .NET library, use reader, writer, and stream objects.
To perform I/O in the NI-DAQmx library:
'Given a Task instance "myTask", 'Create the reader and attach it to the stream Dim reader as AnalogSingleChannelReader reader = New AnalogSingleChannelReader(myTask.Stream) 'Perform the read Dim data as Double() data = reader.ReadMultiSample(100)
// Given a Task instance "myTask", // Create the reader and attach it to the stream AnalogSingleChannelReader reader = new AnalogSingleChannelReader(myTask.Stream); // Perform the read double data = reader.ReadMultiSample(100);