LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get 1kHz sampling rate?

Hi guys,
 
using the following VI, I'm unable to write 1k samples/second in my measurement file, it ends up with little more than one sample/second. Changing the time delay in the while-loop to a lower value helps nothing, I get less data points then. To be more exactly, I get more points but most of them contain zero values and are unusable.
I specifically talk about the 3th and 4th flat frame, the first one is allright because it has different requirements.
 
Thanks in advance
0 Kudos
Message 1 of 5
(3,394 Views)
Hi ReBoot,

have you tried with setting the "number of samples" count for those "DAQmx Read" operations? Usually you shouldn't need the "Wait" function as the DAQmxRead will have to wait for the number of samples...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 5
(3,379 Views)
So I'd have to get the user input for the run time and multiply that by 1000 to get the number of samples? Will try that tommorow (I have LV only at work and I'm at home now).
0 Kudos
Message 3 of 5
(3,377 Views)
Using the Read VI itself to time the measurement (numberofsamples=samplerate*desiredtime) is good, thanks! Where do I rate?
0 Kudos
Message 4 of 5
(3,341 Views)
Hi ReBoot,

you may rate once you have a minimum of 50 posts to the forum...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 5
(3,337 Views)