mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
79 lines
1.2 KiB
Text
79 lines
1.2 KiB
Text
|
nodes = {
|
||
|
sig = {
|
||
|
|
||
|
type = "signal1"
|
||
|
|
||
|
signal = "sine"
|
||
|
}
|
||
|
|
||
|
|
||
|
dpsim = {
|
||
|
enabled = false,
|
||
|
type = "shmem",
|
||
|
in = {
|
||
|
name = "/dpsim-villas", # Name of shared memory segment for sending side
|
||
|
hooks = (
|
||
|
{ type = "stats" }
|
||
|
),
|
||
|
signals = {
|
||
|
# count = 2,
|
||
|
# type = "float"
|
||
|
count = 1,
|
||
|
type = "complex"
|
||
|
}
|
||
|
},
|
||
|
out = {
|
||
|
name = "/villas-dpsim" # Name of shared memory segment for receiving side
|
||
|
signals = {
|
||
|
count = 1,
|
||
|
type = "complex"
|
||
|
}
|
||
|
|
||
|
},
|
||
|
queuelen = 1024, # Length of the queues
|
||
|
polling = true, # We can busy-wait or use pthread condition variables for synchronizations
|
||
|
},
|
||
|
|
||
|
broker = {
|
||
|
type = "mqtt",
|
||
|
format = "json",
|
||
|
#host = "localhost",
|
||
|
host = "137.226.133.157"
|
||
|
port = 1883,
|
||
|
retain = false,
|
||
|
|
||
|
out = {
|
||
|
publish = "dpsim->dist"
|
||
|
}
|
||
|
|
||
|
in = {
|
||
|
subscribe = "dist->dpsim",
|
||
|
|
||
|
signals = {
|
||
|
count = 1,
|
||
|
type = "complex"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
paths = (
|
||
|
{
|
||
|
enabled = false
|
||
|
in = "sig",
|
||
|
out = "broker",
|
||
|
|
||
|
# mode: any/all
|
||
|
# Condition of which/how many source nodes have to receive
|
||
|
# at least one sample for the path to be triggered
|
||
|
mode = "any",
|
||
|
# reverse = true
|
||
|
}
|
||
|
# ,{
|
||
|
# in = "nano";
|
||
|
# out = "dpsim";
|
||
|
# mode = "any"
|
||
|
# }
|
||
|
|
||
|
)
|