MATLAB: In what library is the “rtInf” variable located under Real-Time Workshop

librarylocatelocationreal timertinfrtwsimulink codersourcevariableworkshopwrapper

I am devising a custom-wrapper for which I am manually registering the code generated by Real-Time Workshop. This will allow another application to control the execution of my model. Toward that end, in what library is the “rtInf” variable found under Real-Time Workshop?

Best Answer

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).