Hello all,
I am trying to write a multi-channel task using "WriteSingleSample" but when I try to write to it, I have to pass an entire array. The definition says that each channel of the array passed corresponds to each channel. Do I have to write to all of the channels each time I want to write to one channel of the task?
AnalogMultiChannelWriter sensorWriter;
sensorWriter.WriteSingleSample(true, valveVoltageOutArray);
" // data:
// A 1D array of NationalInstruments.AnalogWaveform`1 objects to write to the task.
// Each element in the array corresponds to a channel in the task. The order of
// the channels in the array corresponds to the order in which you add the channels
// to the task. The order of the lines in the analog waveform corresponds to the
// order in which you add the lines to the channel."