The files "rtGetinf.c" and "rtGetInf.h" were generated for declaring and initializing global nonfinite values like "inf". These are auto-generated shared utility files.
Starting in R2024a, instead of generating separate utility files like "rtGetInf.c", "rtGetNaN.c", the code generator now uses a single optimized utility file called "rt_nonfinite.c", which handles all nonfinite values. This change reduces the number of generated files and simplifies integration, but it behaves differently based on the model file format and the selected language standard.
".mdl" models are supported for backward compatibility, but some code generation features and optimizations are applied differently compared to ".slx" models. This includes how utility files like "rtGetInf.c" are handled.
If you need the old files like "rtGetInf.c/.h", you can:
- Change the "Target Language Standard" by setting it to "C89/90 (ANSI)" instead of the default "C99 (ISO)"
- Migrate the model to ".slx" format using "save_system('yourModel', 'yourModel.slx')" and generate code from the ".slx" model which will ensure the new "rt_nonfinite.c" is generated correctly.
Refer to the following documentation for more information: