LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read a buffer but leave the content (DAQmx)

I have been playing with LabView for a few years now, but it is the first time I need to acquire while processing data. Therefore my question is probably an easy one but I could not find the way to do it in the help files. Here are the details.

 

I would like to have a fix buffer size (say 1 second at 100 KHz), and everytime I send a command to read the buffer, I am only interested in the latest 0,5 second of data. Now let's say I read the buffer 0,1 sec later, I am still interetes in the latest 0,5 sec, meaning that some of the data will overlap.

 

The application if for vibration analysis.

 

I know I could work my way arround by storing the data in arrays, but I was wondering if there was a simpler way just by selecting the proper options in the proper acquisition VI.  I already know how to use a buffer, but every time I read it, it is always new data. Anyone can point me toward the good direction ? 

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

Hi Beniot99,

      You're quite right - there is a way to read the most-recent values. Smiley Happy

 - use the "DAQmx Read Property Node" to set the attribute "Relative To" to "Most Recent Sample"

 

Cheers!

 

"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
0 Kudos
Message 2 of 2
(2,411 Views)