VILLASframework
Modular co-simulation framework
|
The node section is a directory of nodes (clients) which are connected to the VILLASnode instance. The directory is indexed by the name of the node
There are different type of nodes available. But all types have the following settings in common:
type
specifies which interface should be used for this node.
For a complete list of supported node-types run villas node --help
.
In addition to the node settings described in this section, every node type has its own specific settings. Take a look at the Node-types page for details.
Some socket based node-types support network emulation.
For more details see Network Emulation . Please note that not all node-types support network emulation.
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.
A list of hook functions which will be executed for each sample which is processed by this path.
See Hook-types chapter of this documentation for details.
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.
Each node should define a list of signals which it receives.
There are three ways to specify the input signals of a node:
The list mode allows you to specify properties of each signal individually by providing a list of signal definitions:
Each signal is described by the following settings:
A name which describes the signal.
The unit of the signal. E.g. V
, A
, Rad
.
The data-type of the signal.
The initial value of the signal.
Signals can be disabled which causes them to be ignored.
The easiest way to specify the signals, is by using a format string. The format string consists of one ore more characters which define the type for the signal corresponding to the position of the character in the string.
Character | Type | Setting for full and list mode |
---|---|---|
f | Floating point | "float" |
b | Boolean | "boolean" |
i | Integer | "integer" |
c | Complex Floating point | "complex" |
Optionally, the characters can be prefixed by an integer for easier repitition.
The following signal definition defines 15 signals, of which the first 12 are floating point and the last 3 are integer values.
The simple way just specifies the number of signals and their type: