Skip to Main Content Skip to Search
Product Documentation

Invoke AUTOSAR Server Operation - Configure AUTOSAR client port to access Basic Software or application software components

Library

Embedded Coder/ AUTOSAR

Description

Use this block to configure an AUTOSAR client port for your Simulink model, which provides access to Basic Software or application software components:

  1. Copy or drag this block from the AUTOSAR library into your model.

  2. Double-click the block to open the Invoke AUTOSAR Server Operation dialog box.

  3. Specify the parameters and click OK. This action updates the number of inports and outports to match the operation prototype.

  4. Connect this block to other blocks in your model as required.

  5. Save and build the model to generate AUTOSAR-compliant code and XML files.

Simulink does not support pointer data types. If you want to pass a NULL pointer as an input argument to your operation:

  1. Specify the data type of the argument as uint8.

  2. Connect a constant signal with data type uint8 and value 0 to the corresponding input port of the block.

  3. Check that your client-server interface XML file specifies the argument as an array with data type uint8.

Parameters

Client port name

Must be a valid AUTOSAR short-name identifier.

Operation prototype

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

Interface path

The reference path for the client-server interface XML file that you provide.

Server type

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.

Show error status

If you select this, client port receives error status of client-server communication.

Sample time (-1 for inherited)

To inherit the sample time, set this parameter to -1.

See Also

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

  


Related Products & Applications

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