Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

USB-6009 Missing/Stuck Samples

Hi
 
I'm writing a simple sampling program using NIDAQmx in VS C# to sample an analog voltage on a USB-6009. It seems to work OK, except for the fact that occasionally when I call ReadSingleSample() it returns the exact same value as the previous call. It happens often enough that I don't think its a fluke. Originally I was asking for a sample every 0.1 second, but even at 0.5 seconds between ReadSingleSample calls the output seems to get "stuck" like this regularly.
 
Thinking this was a problem with my software, I loaded up MAX and ran the test panel. On the analog input tab, on demand mode, the graph of the samples shows flat spots where the output appears to be stuck on the same value for more than one sample.
 
What is causing this? Can I avoid it somehow? The biggest surprise to me is that it happens at such a low sampling rate.
 
Thanks in advance!
0 Kudos
Message 1 of 2
(2,847 Views)

Disregard.

I figured out the problem... I'm stupid!   🙂

 

0 Kudos
Message 2 of 2
(2,839 Views)