| Author |
Message |
Marius
Joined: Jun 10, 2013 Posts: 51
|
Posted: Nov 12, 2013 7:35 PM Post subject: Limiting a rate of text commands |
|
Hi Jarek,
I'm looking to do something in BioEra, and i'm not sure if the existing elements can do this. Maybe you can tell me or give me a hint.
I have a pipe where objects (commands to the hardware) go though. They come in very irregular time intervals. I need an element that collects all the inputs and sends them to the output in the same order, but with a minimum distance in time (e.g. 500ms) between each sample. Like a rate limiter, but it outputs every input sample exactly once in the order how it arrived.
Marius |
|
 |
jarek
Joined: Oct 22, 2007 Posts: 1073
|
Posted: Nov 12, 2013 7:56 PM Post subject: |
|
| In the version 3.073 I added a new Buffer for objects. It behaves just like other buffers. I think you could use its option: BUFFER_ALL_SEND_ONE |
|
 |
Marius
Joined: Jun 10, 2013 Posts: 51
|
Posted: Nov 12, 2013 8:11 PM Post subject: |
|
So I send \"1\" every 500ms to the buffer trigger, and the buffer sends the oldest value. I hope the buffer remains silent when it's empty, despite continued triggering? |
|
 |
jarek
Joined: Oct 22, 2007 Posts: 1073
|
Posted: Nov 12, 2013 8:42 PM Post subject: |
|
| See manual. |
|