2024-02-28 11:00:35 +00:00
|
|
|
#!/bin/bash
|
|
|
|
#
|
2024-04-22 14:16:24 +00:00
|
|
|
# Test for the hdf5 node-type.
|
2024-02-28 11:00:35 +00:00
|
|
|
#
|
2024-04-22 14:16:24 +00:00
|
|
|
# Author: Alexandra Bach <alexandra.bach@eonerc.rwth-aachen.de>
|
|
|
|
# SPDX-FileCopyrightText: 2014-2024 Institute for Automation of Complex Power Systems, RWTH Aachen University
|
2024-02-28 11:00:35 +00:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
DIR=$(mktemp -d)
|
|
|
|
pushd ${DIR}
|
|
|
|
|
|
|
|
function finish {
|
|
|
|
popd
|
|
|
|
rm -rf ${DIR}
|
|
|
|
}
|
|
|
|
trap finish EXIT
|
|
|
|
|
|
|
|
cat > config.json <<EOF
|
|
|
|
{
|
|
|
|
"nodes": {
|
2024-04-22 14:16:24 +00:00
|
|
|
"hdf5_node": {
|
|
|
|
"type": "hdf5",
|
|
|
|
"file": "test.h5",
|
|
|
|
"dataset": "test,
|
|
|
|
"unit": "none
|
2024-02-28 11:00:35 +00:00
|
|
|
}
|
|
|
|
},
|
2024-04-22 14:16:24 +00:00
|
|
|
"siggen": {
|
|
|
|
"type": "signal",
|
|
|
|
"signal": "sine",
|
|
|
|
"values": 1,
|
|
|
|
"limit": 3,
|
|
|
|
"rate": 10
|
|
|
|
}
|
2024-02-28 11:00:35 +00:00
|
|
|
"paths": [
|
|
|
|
{
|
2024-04-22 14:16:24 +00:00
|
|
|
"in": "siggen",
|
|
|
|
"out": "hdf5_node",
|
2024-02-28 11:00:35 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
EOF
|
|
|
|
|
|
|
|
villas node config.json
|