Probe variable
Table of Contents
The probe variable block creates a variable that can be watched and logged in real-time using using imperix Cockpit. It supports the int32, uint32, and float data types.
The probe block can also be configured to periodically transmit the variable value:
- as a CAN message similarly to a CAN output mailbox.
- on Ethernet via UDP/IP similarly to an Ethernet output mailbox.
Simulink block
Signal specification
The input is the data to probe.
Parameters
Variable name
sets the variable name. This variable must start with a character and must not contain any spaces or special characters except for the “_“ character.Data type
sets the variable type. (int32, uint32, or single)
PLECS block
Signal specification
The data input port accepts either a single data or a vector of data.
When connected to a vector, N variables are created where N is the vector size. For example, when a probe named V_grid
is connected to a vector containing 3 values, 3 variables named V_grid_0
, V_grid_1
, and V_grid_2
are created.
Parameters
Probe name
sets the variable name. This variable must start with a character and must not contain any spaces or special characters except for the “_“ character.Signal type
sets the variable type. (int32, uint32, or float32)
C++ functions
All global variables of type int
, unsigned int
, or float
can be scoped by the BB Control utility software.
Data can be sent using the CAN output mailbox or the Ethernet output mailbox.