VILLASframework
Modular co-simulation framework
Limit rate

The limit_rate hook discards samples in order to limit the sample rate to a certain rate. The decission whether a sample is discarded or not is based on its timestamp.

Implementation

The source code of the hook is available here: https://git.rwth-aachen.de/acs/public/villas/node/blob/master/lib/hooks/limit_rate.cpp

Configuration

rate (float)

Example

@include "hook-nodes.conf"
paths = (
{
in = "signal_node"
out = "file_node"
hooks = (
{
type = "limit_rate"
rate = 5.5
}
)
}
)