From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

code for acquiring data not working like i'd expect

Hello everyone. I posted my code that collects voltages from an NI 9215 DAQ card. I'm wondering why it acts so interestingly. For instance, at frequencys that are multiples of ten the waveform graph is frozen in place, and at lower frequencys (2-3 Hz) the data is changing faster rather than slower. Take a look! I'd like any input you have.

0 Kudos
Message 1 of 2
(2,299 Views)

You are acquiring 10,000 samples at a rate of 100,000 samples per second.    So you are acquiring data 10 times per second.  If you acquiring signals that are a multiple of 10 Hz, then you are gathering integral number of cycles and it will look stationary on your waveform graph.

 

If you are looking at frequencies that are not a multiple of 10, or less than 10 Hz, then you are getting fractional or incomplete cycles in any given capture, and it will look like your sine wave is walking across the graph.

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