Skip to main content

Nodes

The node section is a map node-names and their configuration which are interfaced by the VILLASnode instance. The directory is indexed by the name of the node

Configuration

There are different type of nodes available. But all types share the following common settings:

vectorize
integer
Default: 1

This setting allows to send multiple samples in a single message to the destination nodes.

The value of this setting determines how many samples will be combined into one packet.

Array of Hook Object (object) or Hook Name (string) (hook_list)
builtin
boolean (Builtin hook functions)
Default: true

By default, each node and paths has a couple of default hooks attached to them. With this setting the attachment of built-in hooks can be disabled.

object (Input configuration (received by VILLASnode))
object (Output configuration (sent out by VILLASnode))
{
  • "vectorize": 1,
  • "hooks": [
    ],
  • "builtin": true,
  • "in": {
    },
  • "out": {
    }
}

Example

nodes = {
"sintef_node" = {
type = "socket",
vectorize = 10,
hooks = (
{
type = "decimate",
ratio = 10
}
),

builtin = true,
samplelen = 64,

signals = (
{ name = "Va", unit = "Volts", type = "float", init = 123.456 },
{ name = "Vb", unit = "Volts", type = "float", init = 123.456 },
{ name = "Vc", unit = "Volts", type = "float", init = 123.456 },
)

# type specific settings follow here.
}
}