Energy Based Metric Calculation
The ebm hook calculates the energy of a signal based on voltage and current product.
Implementation
The source code of the hook is available here: https://github.com/VILLASframework/node/blob/master/lib/hooks/ebm.cpp
Configuration
| phases required | Array of integers[ items = 2 items ] Signal indices for voltage & current values for each phase. |
| enabled | boolean Default: true An optional field which can be used to disable a hook. |
| priority | integer Default: 99 The priority of this hook which determines the order in which hooks are executed. Hooks with a lwoer priority are executed before ones with a higher priority. If no priority is configured, hooks are executed in the order they are configured in the configuration file. |
{- "phases": [
- [
- 0,
- 1
], - [
- 2,
- 3
], - [
- 4,
- 5
]
], - "enabled": true,
- "priority": 99
}Example
node/etc/examples/hooks/ebm.conf
@include "hook-nodes.conf"
paths = (
{
in = "signal_node"
out = "file_node"
hooks = (
{
type = "ebm"
phases = (
[ 0, 1 ],
[ 2, 3 ],
[ 4, 5 ]
)
}
)
}
)