From 81e211105b8fb6aa258272451c9fa0f525c9bf23 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Wed, 30 Jan 2019 01:55:58 +0100 Subject: [PATCH] shmem: update example config --- etc/shmem.conf | 66 +++++++++++++++++++++++++++++--------------------- 1 file changed, 39 insertions(+), 27 deletions(-) diff --git a/etc/shmem.conf b/etc/shmem.conf index f50751c7e..9d5bda8eb 100644 --- a/etc/shmem.conf +++ b/etc/shmem.conf @@ -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", } -); + +)