Cannot find SoCData and rteEvent datatypes characteristics

5 ビュー (過去 30 日間)
Sergei
Sergei 2025 年 5 月 12 日
コメント済み: Sergei 2025 年 6 月 2 日
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?

採用された回答

Vinay
Vinay 2025 年 5 月 15 日
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 件のコメント
Vinay
Vinay 2025 年 5 月 15 日
編集済み: Vinay 2025 年 5 月 15 日
Below are the properties for both data types:
Sergei
Sergei 2025 年 5 月 15 日
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)

サインインしてコメントする。

その他の回答 (1 件)

Jerome Chevalier
Jerome Chevalier 2025 年 5 月 28 日
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.
  1 件のコメント
Sergei
Sergei 2025 年 6 月 2 日
Thank you for clarification! This is a good information to add.

サインインしてコメントする。

製品


リリース

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by