LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it Possible to Peek at the DAQmx buffer, leaving the data intact?

Hello,

I have set up a continuous samples task with overwrite and a large buffer which is acting like a black blox flight recorder.  What I want to do is grab 200 samples from this buffer and analyse them to see if an event has occured.  If so, I will then read all 1000k samples from the buffer and dump them to a file.
Is there a way that I can read some samples that are in the buffer, but leave them there? I think I must be able to do it with the 'Relative to' and 'Offset' properties but I can't quite figure it out.

Any help would be much appreciated,

Thanks,

Martin
0 Kudos
Message 1 of 2
(2,485 Views)
I found a way to solve my own problem so I've posted a demo vi here in case it is of use.  It sets the DAQ to continuous samples and to allow overwrite, so it logs the last X seconds of data.  I regularly read the newest 50 data values and if an event is triggered I get the whole contents of the buffer.
Hope this helps,
Martin
0 Kudos
Message 2 of 2
(2,459 Views)