mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
improved websocket demo config
This commit is contained in:
parent
a483a6e4e2
commit
f3404026c8
1 changed files with 25 additions and 20 deletions
|
@ -31,17 +31,22 @@ logging = {
|
|||
}
|
||||
|
||||
nodes = {
|
||||
sig_1 = {
|
||||
sig = {
|
||||
type = "signal",
|
||||
|
||||
signal = "mixed",
|
||||
values = 6,
|
||||
rate = 50,
|
||||
values = 5,
|
||||
rate = 0.0001 ,
|
||||
hooks = (
|
||||
{ type = "stats" }
|
||||
)
|
||||
},
|
||||
ws_1 = {
|
||||
stats = {
|
||||
type = "stats",
|
||||
node = "sig",
|
||||
rate = 0.0001,
|
||||
},
|
||||
ws_sig = {
|
||||
type = "websocket",
|
||||
description = "Demo Channel",
|
||||
series = (
|
||||
|
@ -54,21 +59,14 @@ nodes = {
|
|||
{ type = "stats" }
|
||||
)
|
||||
},
|
||||
stats_1 = {
|
||||
type = "stats",
|
||||
node = "sig_1",
|
||||
rate = 20,
|
||||
|
||||
ws_stats = {
|
||||
type = "websocket",
|
||||
description = "Statistics",
|
||||
series = (
|
||||
{ label = "Sent [#msgs]" },
|
||||
{ label = "Received [#msgs]" },
|
||||
{ label = "Invalid [#msgs]" },
|
||||
{ label = "Skipped [#msgs]" },
|
||||
{ label = "Dropped [#msgs]" },
|
||||
{ label = "Overruns [#msgs]" },
|
||||
{ label = "One-way delay [sec]" },
|
||||
{ label = "Send rate [samples/sec]" },
|
||||
{ label = "Receive rate [samples/sec]" }
|
||||
{ label = "" }
|
||||
)
|
||||
hooks = (
|
||||
{ type = "stats" }
|
||||
)
|
||||
}
|
||||
};
|
||||
|
@ -77,7 +75,14 @@ nodes = {
|
|||
|
||||
paths = (
|
||||
{
|
||||
in = "sig_1",
|
||||
out = "ws_1"
|
||||
in = "sig",
|
||||
out = "ws_sig"
|
||||
},
|
||||
{
|
||||
in = "stats.data[31-35]", # OWD
|
||||
out = "ws_stats",
|
||||
hooks = (
|
||||
{ type = "print" }
|
||||
)
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue