VILLASframework
Modular co-simulation framework
Decimate sample rate

The decimate hook reduces the sampling rate by periodically discarding samples.

Implementation

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

Configuration

ratio (integer)

The decimation ratio. A value of 4 will skip every, but the 4th sample in a row.

Implementation

@include "hook-nodes.conf"
paths = (
{
in = "signal_node"
out = "file_node"
hooks = (
{
type = "decimate"
ratio = 10
}
)
}
)