Cannot find SoCData and rteEvent datatypes characteristics

4 visualizzazioni (ultimi 30 giorni)
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?

Risposta accettata

Vinay
Vinay il 15 Mag 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 Commenti
Vinay
Vinay il 15 Mag 2025
Modificato: Vinay il 15 Mag 2025
Below are the properties for both data types:
Sergei
Sergei il 15 Mag 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)

Accedi per commentare.

Più risposte (1)

Jerome Chevalier
Jerome Chevalier il 28 Mag 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.

Prodotti


Release

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by