We have verified that the Real-Time Workshop documentation does not identify the location of the "rtInf" variable.
Depending on the version of Real-Time Workshop you are using, you can find the “rtInf” variable in the following files.
- If you are using Real-Time Workshop 5.0 (R13) or Real-Time Workshop 5.1 (R13SP1), see rt_nonfinite.h and rt_nonfinite.c in $MATLAB/rtw/c/src
(where $MATLAB is the root directory of your MATLAB installation).
- If you are using Real-Time Workshop 6.0 (R14) or later, see rt_nonfinite.h, rt_nonfinite.c in the project directory (model_grt_rtw).