•
•
•
•
•
•
•
•
•
Configure AUTOSAR Client-Server Communication
In Simulink , you can model AUTOSAR client-server communication for simulation and code
generation. For information about the Simulink blocks you use and the high-level workflow, see Client-
Server Interface.
To model AUTOSAR servers and clients, you can do either or both of the following:
Import AUTOSAR servers and clients from arxml code into a model.
Configure AUTOSAR servers and clients from Simulink blocks.
This topic provides examples of AUTOSAR server and client configuration that start from Simulink
blocks.
Configure AUTOSAR Server
Configure AUTOSAR Client
Configure AUTOSAR Client-Server Error Handling
Concurrency Constraints for AUTOSAR Server Runnables
Configure and Map AUTOSAR Server and Client Programmatically
Configure AUTOSAR Server
This example shows how to configure a Simulink Function block as an AUTOSAR server. The example
uses these files in the folder matlabroot/help/toolbox/ecoder/examples/autosar (open):
mControllerWithInterface_server.slx
ExampleApplicationErrorType.m
If you copy the files to a working folder, collocate the MATLAB file with the model file.
Open a model in which you want to create and configure an AUTOSAR server, or open the example
model mControllerWithInterface_server.slx.
1.
Add a Simulink Function block to the model. In the Simulink Library Browser, the Simulink Function
block is in User-Defined Functions.
The example model provides two Simulink Function blocks, doOverride and readData.
2.
®
®
第1页 共22页
评论2
最新资源