Hi Michael,
Hopefully, I have found the problem! You are receiving the -200278 error because your timing mode is set to Finite, even though you are doing a Continuous acquisition. This
may be causing the slow acquisition rate as well.
Try this change, replace Finite with Continuous.
Tasks(TaskCount).Timing.ConfigureSampleClock("", frm.numSampleRate.Value, SampleClockActiveEdge.Rising, _
SampleQuantityMode.FiniteSamples, frm.numSamples.Value)
Replace with
Tasks(TaskCount).Timing.ConfigureSampleClock("", frm.numSampleRate.Value, SampleClockActiveEdge.Rising, _
SampleQuantityMode.
ContinuousSamples, frm.numSamples.Value)
Please let me know if this solves the problem!
Thanks,
Erik