Is it possible to run a model with a Simulink caller block without the associated Simulink function ?

1 view (last 30 days)
I am using the AUTOSAR toolbox but my question applies to any Client/Server design pattern in Simulink.
In my application I generate some AUTOSAR-compliant C code, I am calling a client using the Simulink Caller block. My model updates and generates well but doesn't run because the server function is not implemented:
A definition for the function '...' called by Function Caller block '...', could not be found.
this is normal since the function is an AUTOSAR Basic Software service. I don't want to create it because I won't be able to map it (it's an external call). There is the same issue in this example provided with Matlab R2016a:
help\toolbox\ecoder\examples\autosar\mControllerWithInterface_client
A solution I have found is to create a second model with some empty wrapper for each Simulink function, and then call both models together using referenced models.
But I would prefer to have a standalone model... Is it possible?
  1 Comment
BARIS KAYAYURT
BARIS KAYAYURT on 26 Oct 2020
Hi,
I have the same issue. Can you detail how you implemented --> "A solution I have found is to create a second model with some empty wrapper for each Simulink function, and then call both models together using referenced models." ?

Sign in to comment.

Accepted Answer

Armel MEVELLEC
Armel MEVELLEC on 19 May 2016
Well the solution is to use the "invoke Server operation" from the AUTOSAR toolbox... I still don't understand why AUTOSAR standard examples don't use it.

More Answers (0)

Categories

Find more on AUTOSAR Blockset in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!