In all System Generator versions, up to and including v8.2, the following error occurs during code generation when a variable exists in the "stop time" of the simulation parameters:
"System Generator ERROR
Error during generation: Undefined function or variable."
This error occurs even when the variable or function is correctly declared in the work space.
The System Generator cannot determine the value of variables or functions for the "stop time" of the simulation parameters during code generation. This problem occurs only during code generation and not during simulation. For code generation, the explicit value must be entered into "stop time."