VILLASframework
Modular co-simulation framework
|
VILLASnode supports sending samples formated as raw binary data.
Signal values are encoded according to their configured data-type in either integer or IEEE-754 floating point values.
The source code of the format-type is available here: https://git.rwth-aachen.de/acs/public/villas/node/-/blob/master/lib/formats/raw.cpp
The Raw binary values format-type supports all generic format options plus the following:
The word size of each value in bits.
The endianess of multi-byte words.
The setting not be provided for bits = 8
.
If enabled, the fake header mode VILLASnode uses the first three raw values in each en/decoded payload for the following purpose:
Sample field | Description | Data-type |
---|---|---|
sequence | Sequence number of the sample | integer |
ts.origin.sec | Timestamp (in seconds) of sampling instant at origin | integer |
ts.origin.nsec | Timestamp (nano-seconds fraction) of sampling instant at origin | integer |
raw
format-type does not support vectors. Only a single sample can be encoded per payload as there is no way to identify sample boundaries in the raw format.