1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

shmem: update example config

This commit is contained in:
Steffen Vogel 2019-01-30 01:55:58 +01:00
parent 1ddbc5068d
commit 81e211105b

View file

@ -3,40 +3,52 @@
# via shared memory, and written back to an output file.
stats = 1;
debug = 10;
logging = {
level = "info"
}
nodes = {
file = {
type = "file",
in = {
uri = "/var/log/villas/input.log",
rate = 2.0,
mode = "r",
},
out = {
uri = "/var/log/villas/output.log",
mode = "w"
},
vectorize = 1
sig = {
type = "signal"
},
shmem = {
type = "shmem",
out_name = "/villas1-out",
in_name = "/villas1-in",
signals = 4,
queuelen = 32,
polling = false,
vectorize = 1
out = {
name = "/villas1",
}
in = {
name = "/villas1",
signals = {
count = 1,
type = "float"
}
}
},
lo = {
type = "loopback",
format = "json"
uri = "-"
out = {
hooks = ( { type = "print", format = "json" })
}
}
};
}
#
# sig -> shmem -> lo
#
paths = (
{
in = "file",
out = "shmem",
reverse = true,
hooks = (
{ priority = 10, type = "print" }
)
in = "sig",
out = "shmem"
},
{
in = "shmem",
out = "lo",
}
);
)