2022-12-14 17:39:50 +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
|
|
|
|
|
2022-03-28 18:12:11 +02:00
|
|
|
nodes = {
|
2024-02-29 21:36:38 +01:00
|
|
|
api_node = {
|
|
|
|
type = "api"
|
2022-03-28 18:12:11 +02:00
|
|
|
|
2024-02-29 21:36:38 +01:00
|
|
|
in = {
|
|
|
|
signals = (
|
|
|
|
{
|
2024-04-09 14:17:35 +02:00
|
|
|
# Same as 'id' in uAPI context
|
|
|
|
name = ""
|
|
|
|
|
|
|
|
# A human readable description of the channel
|
|
|
|
description = "Volts on Bus A"
|
|
|
|
|
|
|
|
# Same as 'datatype' in uAPI context
|
|
|
|
type = "float"
|
2024-02-29 21:36:38 +01:00
|
|
|
unit = "V"
|
2024-04-09 14:17:35 +02:00
|
|
|
payload = "events" # Or 'samples'
|
|
|
|
|
|
|
|
# An expected refresh/sample rate of the signal
|
|
|
|
rate = 100.0
|
|
|
|
|
2024-02-29 21:36:38 +01:00
|
|
|
range = {
|
|
|
|
min = 20.0
|
|
|
|
max = 100.0
|
|
|
|
}
|
2024-04-09 14:17:35 +02:00
|
|
|
|
2024-02-29 21:36:38 +01:00
|
|
|
readable = true
|
|
|
|
writable = false
|
|
|
|
}
|
|
|
|
)
|
|
|
|
}
|
2022-12-14 17:39:50 +01:00
|
|
|
|
2024-02-29 21:36:38 +01:00
|
|
|
out = {
|
|
|
|
signals = (
|
|
|
|
# Similar to above
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
2022-03-28 18:12:11 +02:00
|
|
|
}
|