2022-03-24 14:10:10 +01:00
|
|
|
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
|
2023-08-31 11:25:01 +02:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2019-02-11 16:30:25 +01:00
|
|
|
nodes = {
|
2024-02-29 21:36:38 +01:00
|
|
|
udp_node1 = {
|
|
|
|
type = "socket",
|
|
|
|
layer = "udp",
|
2019-02-11 16:30:25 +01:00
|
|
|
|
2024-02-29 21:36:38 +01:00
|
|
|
in = {
|
|
|
|
address = "*:12000"
|
2019-02-11 16:30:25 +01:00
|
|
|
|
2024-02-29 21:36:38 +01:00
|
|
|
signals = {
|
|
|
|
count = 8,
|
|
|
|
type = "float"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
out = {
|
|
|
|
address = "127.0.0.1:12001"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
web_node1 = {
|
|
|
|
type = "websocket",
|
2019-02-11 16:30:25 +01:00
|
|
|
|
2024-02-29 21:36:38 +01:00
|
|
|
vectorize = 2,
|
|
|
|
series = (
|
|
|
|
{ label = "Random walk", unit = "V" },
|
|
|
|
{ label = "Sine", unit = "A" },
|
|
|
|
{ label = "Rect", unit = "Var" },
|
|
|
|
{ label = "Ramp", unit = "°C" }
|
|
|
|
)
|
|
|
|
}
|
2019-02-11 16:30:25 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
paths = (
|
2024-02-29 21:36:38 +01:00
|
|
|
{
|
|
|
|
in = [ "udp_node1" ],
|
|
|
|
out = [ "web_node1" ],
|
2019-02-11 16:30:25 +01:00
|
|
|
|
2024-02-29 21:36:38 +01:00
|
|
|
hooks = (
|
|
|
|
# We do not want to overload the WebBrowsers
|
|
|
|
{ type = "decimate", ratio = 2 }
|
|
|
|
)
|
|
|
|
},
|
|
|
|
{
|
|
|
|
in = [ "web_node1" ],
|
|
|
|
out = [ "udp_node1" ]
|
2019-02-11 16:30:25 +01:00
|
|
|
|
2024-02-29 21:36:38 +01:00
|
|
|
# Web -> UDP does not require decimation
|
|
|
|
}
|
2019-02-11 16:30:25 +01:00
|
|
|
)
|