LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Continuous sampling issue

Solved!
Go to solution

I am having an issue when indicating my rate for samples while using Labview with an accelerometer (in acquistion mode: continuous). For example: I indicate a rate of 1000hz which should output 1000 samples in one second. However, when I export to excel, the number of samples per second is 2000. It seems like the data is being collected twice as fast. Also, my read rate is set to be the same as my rate. Any advice would be much appreciated. Thank you!

 

0 Kudos
Message 1 of 10
(3,064 Views)

Post your code...

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019 - Unfortunately now moving back to C#, .NET, Python due to forced change to subscription model by NI. 8^{
0 Kudos
Message 2 of 10
(3,062 Views)

desktop.png

0 Kudos
Message 3 of 10
(3,049 Views)

To further clarify - th excel output always has a delta x of .0005, regardless of what I change my rate to for the time settings. How do I make Labview output the frequency I specify?

 

0 Kudos
Message 4 of 10
(3,039 Views)
You are doing something wrong and that is why you were asked to attach your program. Since you did not, run one of the examples that come with LabVIEW and compare.
0 Kudos
Message 5 of 10
(3,036 Views)

Attached is the VI.

0 Kudos
Message 6 of 10
(3,006 Views)
Solution
Accepted by topic author nasko1

Now I can see that you are using cDAQ. If it is the 9234, the minimum sampling rate as you can see in the specs is 1.652 kS/s.

0 Kudos
Message 7 of 10
(2,991 Views)

What modules are you using?  I think Dennis might be on to something.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 8 of 10
(2,986 Views)

You guys are exactly right. I am using the 9233 which has a minimum sampling rate of 2 kS/s.Thank you for the advice.

 

Follow up question: A sample every .0005 seconds is a bit much, can I limit recording of the data?- I am thining I could use an elapsed time VI.

 

0 Kudos
Message 9 of 10
(2,978 Views)

If you have the Full Development System, there's the Resample Waveform VI.  It is found in the Signal Processing->Waveform Conditioning pallet.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 10 of 10
(2,964 Views)