Cannot find SoCData and rteEvent datatypes characteristics

4 views (last 30 days)
Dear all,
I was trying to figure out the following about SoCData datatype:
1) What are its dimensions?
2) Is this real or complex signal?
Could you, please, help me to find information about this? Same qustion concerning rteEvent datatype. These datatypes are output datatypes or AXI4-Stream to Software block. I also had a feeling that these might be messages, not signals. Is this correct or not?

Accepted Answer

Vinay
Vinay on 15 May 2025
The "SoCData" datatype is an "AliasType" that creates an alias for the built-in "double" type. You can run "SoCData" in the MATLAB command window to view its properties.
The "rteEvent" datatype is a "bus" type with "DataScope" set to "auto". To see its properties, run "rteEvent" in the command window.
For more information, please refer to the documentation below.
  1. "AliasType": https://www.mathworks.com/help/releases/R2024b/simulink/slref/simulink.aliastype.html?searchPort=52130
  2. "bus": https://www.mathworks.com/help/releases/R2024b/simulink/slref/simulink.bus.html?searchPort=52130
I hope this helps.
  3 Comments
Vinay
Vinay on 15 May 2025
Edited: Vinay on 15 May 2025
Below are the properties for both data types:
Sergei
Sergei on 15 May 2025
Thank you
I just realized that I should have ran "SoCData" in command window with the model open (as aliases only exist when you create them, e.g. in model, it is not some general data type accessible everywhere in matlab)

Sign in to comment.

More Answers (1)

Jerome Chevalier
Jerome Chevalier on 28 May 2025
To add to @Vinay answer:
In SoC Blockset, SoCData is used as data type for message lines between FPGA and Processor blocks. SoCData is an alias to a double and it does not directly carry the value exchanged, but instead an id to an internal storage space (which is opaque and not visible to the user).
SoC Blockset blocks outputing SoCData must be connected to a SoC Blockset blocks accepting SoCData as input: For example, AXI4-Stream to Software block must be connected to Stream Read block.

Products


Release

R2024b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!