mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
feat: add lab20.conf for socket TCP
Signed-off-by: Jitpanu Maneeratpongsuk <jitpanu.maneeratpongsuk@rwth-aachen.de>
This commit is contained in:
parent
c76c623b57
commit
54e4c821bc
1 changed files with 33 additions and 0 deletions
33
etc/labs/lab20.conf
Normal file
33
etc/labs/lab20.conf
Normal file
|
@ -0,0 +1,33 @@
|
|||
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, # value per sample
|
||||
rate = 1, # rate of sample
|
||||
}
|
||||
}
|
||||
paths = (
|
||||
{
|
||||
in = "siggen"
|
||||
out = "tcp_node",
|
||||
hooks = ( { type = "print" } )
|
||||
},
|
||||
{
|
||||
in = "tcp_node", # Receive loopback answer.
|
||||
hooks = ( { type = "print" } )
|
||||
}
|
||||
)
|
Loading…
Add table
Reference in a new issue