VILLASframework
Modular co-simulation framework
Print sample data

The print hook prints processed samples to the standard output or into a file. While doing so, it supports all the formats described here: Format-types . It can also optionally prefix each line of output with a user definable prefix in order to distinguish the output of multiple print hooks.

Implementation

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

Configuration

format (string: format type)

output (string)

prefix (string)

Example

@include "hook-nodes.conf"
paths = (
{
in = "signal_node"
out = "file_node"
hooks = (
{
type = "print",
output = "print_output_file.log"
format = "villas.human"
prefix = "[file_node] "
}
)
}
)