Cannot find SoCData and rteEvent datatypes characteristics

조회 수: 4 (최근 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