LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

data acqusition

hello..

Iam trying to acquire pressure data in voltage through daq card. I have a vi for acquiring and logging data. for example say My sample rate is 5k Hz and number of samples to read is 30k it takes 6 seconds to plot the graph and updates every 6 sec this is how it is working now what i want is to plot the graph simultaneously as the data is being acquired say for every 0.5 seconds i want to plot the data keeping the samples to read same , i tried using buffer i/o but it keeps giving error . and one more thing is i have put write to measurement file in case structure which is controlled by a button but i want to start saving data using a trigger source from daq device is it possible.

any help would go a long way....

Download All
0 Kudos
Message 1 of 2
(942 Views)

Hi 98,

 


@user98 wrote:

My sample rate is 5k Hz and number of samples to read is 30k it takes 6 seconds to plot the graph

what i want is to plot the graph simultaneously as the data is being acquired say for every 0.5 seconds


So to read 30k samples at a sample rate of 5kS/s takes 6 seconds.

Simple question (and very simple math): how many samples do you need to read when you want to update the graph each 0.5 seconds?

 

Generic advice: it is recommended to set the number of samples to read to about 1/10 of the samplerate to allow for responsive UI updates…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(923 Views)