Tunable parameter
Table of Contents
The tunable parameter block creates a variable that can be altered in real-time using imperix Cockpit. It supports the int32, uint32, and float data types.
Simultaneously, the tunable parameter can also be modified through the CAN bus or via Ethernet UDP/IP
In simulation, the block can be configured to perform steps at predefined timestamps.
Simulink block
Signal specification
The block propagates the variable value to its output signal.
Standard parameters
Variable name
: sets the variable name. This name must start with a character and must not contain any spaces or special characters except for the “_“ character.Initial value
(vectorizable): sets the initial value of the variable.Data type
: sets the variable type (int32, an uint32, or single)
Simulation parameters
Simulation output
must be set to steps to enable the generation of steps in simulation.Step times
(vectorizable) specifies the time points when the steps occurs (in seconds).Data points
(vectorizable) specifies the steps to perform at each defined time point.
PLECS block
Signal specification
The block propagates the variable value to its output signal.
When the initial value
parameter is a vector, N variables are created where N is the vector size. For example, if the tunable block is named value
, 3 variables named value_0
, value_1
and value_2
are created.
Standard parameters
Name of the tunable parameter
: sets the variable name. This name must start with a character and must not contain any spaces or special characters except for the “_“ character.Initial value
(vectorizable): sets the initial value of the variable.Signal type
: sets the variable type (int32, an uint32, or float32)
Simulation parameters
Simulation output
must be set to steps to enable the generation of steps in simulation.- Step times (vectorizable) specifies the time points when the steps occur (in seconds).
Data points
(vectorizable) specifies the steps to perform at each defined time point.
C++ functions
All global variables of type int
, unsigned int
, or float
can be scoped and altered using the BB Control utility software.
Data can be received using the Ethernet input mailbox or the CAN input mailbox.