Automation Studio Target for Simulink - NAN and INFINITY not defined

Hi there,

I am using the Simulink B&R library blocks to create some codes for a project. As part of the files that are auto-generated, there is one file called “rt_nonfinite.c” (see image below) that -to my understanding- handles edge cases for when signals become NaN or Infinity.

However, when building the code in Automation Studio, I get an error message telling me that “NAN” and “INFINITY” are not defined. The simple work around I have been using is to define them myself in the auto-generated file, but it is rather annoying to have to do that every time I re-build code from Simulink.

Do you know if there is a better way to solve this issue?

Thank you,
Jérémie

Is there any expert for AS target for simulink?

Same like this topic, Simulink production function block error in br compilation (NAN and INFINITY) - #7 by alexander.hefner