Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Writing to a multi-Channel task

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."

0 Kudos
Message 1 of 1
(1,452 Views)