What is the correct way to invoke AUTOSAR Client operation using AUTOSAR Blockset?

5 views (last 30 days)
I am trying to generate C code from a Simulink model configured using AUTOSAR in Simulink, but I get the following error when I attempt to use the "Invoke AUTOSAR Server Operation" block in my SWC:
ERROR: Error: Simulink Coder Error in block: block type "S-Function": Invoke AUTOSAR Server Operation block resides in a model mapped to a multi-instance AUTOSAR Software Component. This is not supported for the AUTOSAR Target. You must place this block in a model mapped to a single-instance AUTOSAR Software Component.
Also, I have seen that this block is no longer available in the latest MATLAB releases. Is it not possible to use the "Invoke AUTOSAR Server Operation" block to model my SWC in Simulink?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 1 Jun 2021
Edited: MathWorks Support Team on 1 Jun 2021
The “Invoke AUTOSAR Server operation” block is no longer the recommended approach to model Client-Server communication. Because the block has been discontinued, it cannot be guaranteed that it will work correctly in the newer releases.
Instead, we recommend the use of
, and to utilize the AUTOSAR dictionary and the code mappings to configure the C-S communication, as we explain in the
. This approach provides a more predictable and efficient behaviour, in line with the current product direction. 

More Answers (0)

Categories

Find more on AUTOSAR Blockset in Help Center and File Exchange

Products


Release

R2016b

Community Treasure Hunt

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

Start Hunting!