SetOfVariables¶
- class sharpy.io.inout_variables.SetOfVariables[source]¶
Iterable class containing the input and output variables
- variables¶
List of
Variable
- Type
list(Variable)
- encode()[source]¶
Encode output variables in binary format with little-endian byte ordering.
The signal consists of a 5-byte header
RREF0
followed by 8 bytes per variable. Of those 8 bytes allocated to each variable, the first 4 are the integer value of the variable index and the last 4 are the single precision float value.- Returns
Encoded message of length
5 + num_var * 8
.- Return type
bytes