Back to all issues

Issue 5077

Bug: Trigonometric Function block performing asin or acos with input saturation produces simulation error for non-scalar input


SubmittedProductStatus
2022-09-01Reactis for SimulinkResolved in 2022.0.1 (released Dec 05, 2022; release notes)
Resolved in 2021.2.3 (released Dec 05, 2022; release notes)

If a Trigonometric Function block performing asin or acos has a non-scalar input and the input is saturated to the range -1.0 .. 1.0 then simulation produces an error on the first step. An example error is shown below. Note that saturation occurs if:

- the RSI file error checking parameter "When input to asin/acos block is out of range" is set to "Saturate and track coverage";

- the RSI file error checking parameter "When input to asin/acos block is out of range" is set to "Saturate";

- the RSI file error checking parameter "When input to asin/acos block is out of range" is set to "Inherit from block settings" and the block does not have the option "Remove protection against out-of-range input" selected.

error : Data type mismatch for operator '<'
Source : Trigonometric Function1
Path : test_asin_acos_vector_input_1|Trigonometric Function1

Description:
------------
Can not apply operator '<' to values 737895.2892405007 (double) and [-1.0, -1.0] ([double , double])