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 channelmyTask.AIChannels.CreateVoltageChannel(physChan, "", aITerminalConfiguration, -range, range, AIVoltageUnits.Volts);
// Configure timing specs myTask.Timing.ConfigureSampleClock("", sampleRate, SampleClockActiveEdge.Rising,SampleQuantityMode.FiniteSamples, samplesPerChannel);
// Verify the taskmyTask.Control(TaskAction.Verify);
// Read the datareader = new AnalogSingleChannelReader(myTask.Stream);data = reader.ReadWaveform(samplesPerChannel);
Do you have some suggestions?
you may want to read : https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P7KdSAK&l=en-US