Hello,
I have written simple code in MS which was earlier written in CVI
mRunningAiTask.Timing.SampleTimingType = SampleTimingType.SampleClock; mRunningAiTask.Timing.ConfigureSampleClock(string.Empty, mSamplesPerSecond, SampleClockActiveEdge.Rising, SampleQuantityMode.FiniteSamples); mAiReader = new AnalogMultiChannelReader(mRunningAiTask.Stream); aReadBuffer = mAiReader.ReadMultiSample(mSamplesPerChannel);
mSamplesPerChannel > 1000, I only get 1000 samples in aReadBuffer. I have also tried with AsynCallback, the result is the same (with and without configuring SampleTimingType). HAve also changed timeout from default 10sec to -1.
However when the SampleQuantityMode is set to continous mode, I get the correct number of samples in ReadBuffer.
In CVI, I used FiniteSamples and it always returned correct number of samples. Although, I can live with it but still interested in knowing whet I am doing wrong.
Thanks and
Regards
Ricky