11-01-2008 02:08 PM
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 ?
11-02-2008 11:14 PM
Hi Beniot99,
You're quite right - there is a way to read the most-recent values.
- use the "DAQmx Read Property Node" to set the attribute "Relative To" to "Most Recent Sample"
Cheers!