Main Content

Invoke AUTOSAR Server Operation

Configure AUTOSAR client port to access Basic Software or application software components

For modeling AUTOSAR client-server communication, R2014b introduced a broader and more flexible approach based on Simulink Function and Function Caller blocks rather than Invoke AUTOSAR Server Operation blocks. For more information, see Client-Server Interface and Configure AUTOSAR Client-Server Communication. The blocks Invoke AUTOSAR Server Operation and Mode Switch for Invoke AUTOSAR Server Operation will be removed in a future release.

  • Invoke AUTOSAR Server Operation block

Libraries:
AUTOSAR Blockset

Description

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

  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.

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:

  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.

Ports

Input

expand all

Input signal for an input argument that is sent to the block.

The Operation prototype parameter determines the number and names of input ports that appear on the block. Connect signal lines to the input ports.

Output

expand all

Output signal for an output argument that the function returns.

The Operation prototype parameter determines the number and names of output ports that appear on the block. Connect signal lines to the output ports.

Parameters

expand all

Specify a valid AUTOSAR short-name identifier for the client port.

Specify an operation prototype in this format:

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 — Text indicating data type, which can be an AUTOSAR basic data type or record, Simulink data type, or array.

  • argN — Name of the argument

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

Select a server type:

  • Application software — For communication with an application software component.

  • Basic software — For communication with AUTOSAR Basic Software.

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

Block sample time. The default sets the block to inherit its sample time from the model.

Extended Capabilities

expand all

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced in R2009b