diff --git a/etc/node/websocket-demo.conf b/etc/node/websocket-demo.conf index 520841a84df666603fa508ffb5cf658088fc7bb4..3f7dfdd0d06c2a3542755e33ed55566d8a218a4a 100644 --- a/etc/node/websocket-demo.conf +++ b/etc/node/websocket-demo.conf @@ -24,27 +24,51 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. *********************************************************************************/ +stats = 10; + nodes = { - sig_1 = { + sig = { type = "signal", - + signal = "mixed", - values = 4, - rate = 25 + values = 5, + rate = 20, + hooks = ( + { type = "stats" } + ) }, - ws_1 = { + stats = { + type = "stats", + node = "sig", + rate = 10, + }, + ws_sig = { type = "websocket", description = "Demo Channel", - vectorize = 50, - source = { - simulator = "OP5600", - location = "ACS lab" - }, series = ( - { label = "Random walk", unit = "V" }, + { label = "Random walk", unit = "V", yaxis = 2 }, { label = "Sine", unit = "A" }, - { label = "Rect", unit = "Var"}, + { label = "Square", unit = "Var"}, + { label = "Triangle", unit = "°C" }, { label = "Ramp", unit = "°C" } + ), + hooks = ( + { type = "stats" } + ) + }, + ws_stats = { + type = "websocket", + description = "Statistics", + series = ( + #{ label = "owd.total" } + { label = "owd.last" }, + { label = "owd.highest" }, + { label = "owd.lowest" }, + { label = "owd.mean" }, + { label = "owd.variance", yaxis = 2 } + ) + hooks = ( + { type = "stats" } ) } }; @@ -53,8 +77,11 @@ nodes = { paths = ( { - in = "sig_1", - out = "ws_1", - reverse = false + in = "sig", + out = "ws_sig" + }, + { + in = "stats.data[31-35]", # OWD + out = "ws_stats" } );