01-14-2020 04:07 AM
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!
01-15-2020 10:13 AM
you may want to read : https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P7KdSAK&l=en-US