mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
36 lines
778 B
Text
36 lines
778 B
Text
# SPDX-FileCopyrightText: 2014-2025 Institute for Automation of Complex Power Systems, RWTH Aachen University
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
nodes = {
|
|
tcp_node = {
|
|
type = "socket"
|
|
|
|
layer = "tcp-client"
|
|
|
|
format = "villas.human"
|
|
|
|
in = {
|
|
address = "tcpbin.com:4242"
|
|
}
|
|
out = {
|
|
address = "tcpbin.com:4242"
|
|
}
|
|
}
|
|
siggen = {
|
|
type = "signal"
|
|
signal = [ "sine", "pulse", "square" ]
|
|
values = 3 # Values per sample
|
|
rate = 1 # Sample rate
|
|
}
|
|
}
|
|
paths = (
|
|
{
|
|
in = "siggen"
|
|
out = "tcp_node"
|
|
hooks = ( { type = "print" } )
|
|
},
|
|
{
|
|
in = "tcp_node" # Receive loopback answer.
|
|
hooks = ( { type = "print" } )
|
|
}
|
|
)
|