Telemetry¶
In the S-function there are 3 inputs specially dedicated to select custom temeletry (pin 22 for Bit variables, pin 23 for Unsigned variables and pin 24 for Real variables). The size of each of these inputs is not fixed, although it has to be continuous throughout the simulation.
Users must enter the corresponding Ids of the variables that is aiming to monitor. The ID of each variable can be easily found in the List of variables section of the 1x Software Manual.
In the following example, a block function has been configured for each type of variables:
The example function for real variables is given below. In it, the desired real variables are configured to be displayed.
Finally, the last 3 outputs of the S-function are vectors containing the Bit, Unsigned and Real variables information respectively. The user can postprocess them as desired (Scope block, To Workspace block, etc.).