Main Content

Signal Invalidation

Control AUTOSAR root outport data element invalidation

  • Library:
  • AUTOSAR Blockset / Classic Platform / Signal Routing

  • Signal Invalidation block

Description

Relay the first input, a data value, to the output, based on the value of the second input, an invalidation control flag.

If the input data value is valid (invalidation control flag is false), the software relays the input data value to the output.

If the input data value is invalid (invalidation control flag is true), the resulting action is determined by the value of the block parameter Signal invalidation policy:

  • Keep - Replace the input data value with the last valid signal value.

  • Replace - Replace the input data value with the value of the block parameter Initial value.

  • DontInvalidate - Do not replace the input data value.

This block must be connected directly to a root outport block. It cannot be used within a reusable subsystem.

Ports

Input

expand all

Input data value to be relayed if valid.

Example: 4

Data Types: single | double | base integer | Boolean | fixed point | enumerated | bus

The invalidation control flag determines whether the input data value is valid and can be relayed (false), or is invalid and must be handled based on an invalidation policy (true).

Example: false

Data Types: Boolean

Output

expand all

Output data value produced by the combination of the input data value and the invalidation control flag.

Data Types: single | double | base integer | Boolean | fixed point | enumerated | bus

Parameters

expand all

Specify an AUTOSAR data element invalidation policy, which determines how an invalid data element is handled.

Specify a data element initial value. If the input data value is flagged as invalid, and if the Signal invalidation policy is Replace, the software replaces the input data value with the specified initial value.

Extended Capabilities

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

Introduced in R2015b