Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Task Reader Slow with cDAQ-9184 and NI9205

Hi,

 

I have a timing problem in my reader task with cDAQ9184 and NI9205 in .net c# environment.

I'm trying to read 250 sample with a samplerate of 10000 Hz. With these parameters, the measurement time I would expect is about 30 ms. Instead of this value, the measure lasts more than 200 ms.

 

This is my source code:

 

myTask = new Task();
// Create a channel
myTask.AIChannels.CreateVoltageChannel(physChan, "", aITerminalConfiguration, -range, range, AIVoltageUnits.Volts);


// Configure timing specs
myTask.Timing.ConfigureSampleClock("", sampleRate, SampleClockActiveEdge.Rising,
SampleQuantityMode.FiniteSamples, samplesPerChannel);


// Verify the task
myTask.Control(TaskAction.Verify);


// Read the data
reader = new AnalogSingleChannelReader(myTask.Stream);
data = reader.ReadWaveform(samplesPerChannel);

 

Do you have some suggestions?

Thank you!

0 Kudos
Message 1 of 2
(1,770 Views)
0 Kudos
Message 2 of 2
(1,691 Views)