General description

The tunable parameter block creates a variable that can be altered in real-time using the BB Control utility software. 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.
The tunable parameters can also be altered through the CAN bus similar to a CAN input mailbox or via UDP/IP, similar to an Ethernet input mailbox.

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 occurs (in seconds).
  • Data points (vectorizable) specifies the steps to perform at each defined time point.
The tunable parameters can also be altered through the CAN bus similar to a CAN input mailbox or via UDP/IP, similar to an Ethernet input mailbox.

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.

  • No labels