1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00
VILLASnode/tests/integration/node-smu.sh
Alexandra 56c3972a04 fix: change access of node-smu.sh
Signed-off-by: Alexandra <alexandra.bach@eonerc.rwth-aachen.de>
2025-01-16 16:02:45 +00:00

52 lines
1.1 KiB
Bash

#!/usr/bin/env bash
#
# Integration loopback test using villas node for smu node-type.
#
# Author: Alexandra Bach <alexandra.bach@eonerc.rwth-aachen.de>
# SPDX-FileCopyrightText: 2014-2023 Institute for Automation of Complex Power Systems, RWTH Aachen University
# SPDX-License-Identifier: Apache-2.0
echo "Test not yet supported"
exit 99
set -e
DIR=$(mktemp -d)
pushd ${DIR}
function finish {
popd
rm -rf ${DIR}
}
trap finish EXIT
mkdir ./logs
cat > config.json <<EOF
{
"nodes": {
"smu-node": {
"type": "smu",
"signals": [
{ name = "ch1" type = "float"},
{ name = "ch2" type = "float"},
{ name = "signal3" type = "float"},
{ name = "signal4" type = "float"},
{ name = "signal5" type = "float"},
{ name = "signal6" type = "float"},
{ name = "signal7" type = "float"}
]
"vectorize": 1000,
"sample_rate": "FS_10kSPS"
}
},
"paths": [
{
"in": "smu-node"
"out": "test"
}
]
}
EOF
villas node config.json