- MATLAB System block - https://www.mathworks.com/help/releases/R2023a/simulink/slref/matlabsystem.html
- Simulink Function block - https://www.mathworks.com/help/releases/R2023a/simulink/slref/simulinkfunction.html
- Model References - https://www.mathworks.com/help/releases/R2023a/simulink/model-reference.html
Why multiple instance of a component that has export function(client server interface) is not possible?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
My client server interface uses sender receiver port in its calculation. These server functions can be called from different cores. Therefore I wanted to make these functions which uses sender receiver port as mulitple instance compatible. But this is not supported in simulink.
How to solve this?
0 Kommentare
Antworten (1)
Rishi
am 25 Okt. 2023
Hi Jeevan,
I understand from your query that you want to use a function that is compatible with multiple instances in Simulink.
Simulink follows a single-threaded execution model. To work with multiple instances, MATLAB System block or Simulink Function block can be used along with Model Referencing. Model Referencing allows you to create reusable components and reference them multiple times. You can find more information about them in the documentation below:
Here is an example that shows how to use multiply instanced Simulink Functions:
If the components can be parallelized, MATLAB’s Parallel Computing Toolbox can also be used. You can learn more about it from the documentation below:
Hope this helps.
0 Kommentare
Siehe auch
Kategorien
Mehr zu AUTOSAR Blockset finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!