DASYLab

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use cicular buffers

Solved!
Go to solution

Hello!

 

I am a new DasyLAB User. I am using DasyLAB 12. I wish to use the cirular buffer, but I cant understand what it does? I wish to write only the measured data of the last 60 seconds (for a testrun) into an output file and thought that the circular buffer would do that. But it has an input and an output. There is no save function in fact. What is the circular buffer for and how can I write the measured data of the last 60 seconds? I tried to connect a write file block direct to the output of the buffer, but that did not work.

 

Thanks a lot and best regards.

 

Hilby

0 Kudos
Message 1 of 2
(5,876 Views)
Solution
Accepted by topic author Hilby

DASYLab continuously writes data into the buffer. You need to use an action-module to release the data. To understand the functioning, use a switch to fire an "event" manually. See the attached worksheet for an example.

You can use a timebase-module to generate a "Pulse per minute" to release the data once per minute.

 

Another idea: Use the multi-file-option of the Write Data-module:

Index length = one digit, first number 0, last number 1

Use a timebase-module "Pulse per minute", and attach an action-module: target is the Write data-module, action is "next file".

DASYLab now writes one minute of data into the first file. Data of the second minute will be written into the second file. Data of the third minute overwrites the first file, data of the fourth minute overwrites the second file.

And so on.

See attachment "multifile.zip".

M.Sc. Holger Wons | measX GmbH&Co. KG, Mönchengladbach, Germany | DASYLab, DIAdem, LabView --- Support, Projects, Training | Platinum NI Alliance Partner | www.measx.com
Download All
Message 2 of 2
(5,867 Views)