| Contents | Index |
Embedded Coder/ AUTOSAR

Use this block to configure an AUTOSAR client port for your Simulink model, which provides access to Basic Software or application software components:
Copy or drag this block from the AUTOSAR library into your model.
Double-click the block to open the Invoke AUTOSAR Server Operation dialog box.
Specify the parameters and click OK. This action updates the number of inports and outports to match the operation prototype.
Connect this block to other blocks in your model as required.
Save and build the model to generate AUTOSAR-compliant code and XML files.
Note If you run a SIL simulation with a model that contains an Invoke AUTOSAR Server block, the software sets the return arguments from the block to ground values. |
Simulink does not support pointer data types. If you want to pass a NULL pointer as an input argument to your operation:
Specify the data type of the argument as uint8.
Connect a constant signal with data type uint8 and value 0 to the corresponding input port of the block.
Check that your client-server interface XML file specifies the argument as an array with data type uint8.
Must be a valid AUTOSAR short-name identifier.
Controls the type and number of inports and outports of the block, and must be of the form:
operation(prt1 datatype1 arg1, prt2 datatype2 arg2, ... prtN datatypeN argN, ...)
operation — Name of the operation
prtN. Either IN or OUT, which indicates whether data passes into or out of the function.
datatypeN — A string indicating data type, which can be an AUTOSAR basic data type or record, Simulink data type, or array.
argN — Name of the argument
The reference path for the client-server interface XML file that you provide.
You select the value from:
Application software — For communication with an application software component.
Basic software — For communication with AUTOSAR Basic Software.
For this block, Application software is the default.
If you select this, client port receives error status of client-server communication.
To inherit the sample time, set this parameter to -1.
Mode Switch for Invoke AUTOSAR Server Operation
Configure Client-Server Communication, rtwdemo_autosar_clientserver_script, and rtwdemo_autosar_PIM_script in the Embedded Coder documentation

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |