Main

11.3 System Generator for DSP - Why do I receive a "xlSimulationRequired" or "Reference to a cleared variable sysgen_return_status" error when I try to generate the design?

AR# 21750

Search For Another Answer

Topic SW-SysGen
Last Updated 09/10/2009
Status Active
Description

Keywords: SysGen, MATLAB, Simulink, Generate, HITL, hw-cosim, hardware in the loop

Why do I receive a "xlSimulationRequired" error or "Reference to a cleared variable sysgen_return_status" error when I try to generate the design?

Solution

This typically occurs if you use the following MATLAB command in the initialization or simulation start functions:

>> clear all

You can work around this error message by removing the "clear all" command; alternatively, you can use "clear" instead of "clear all".
 
 
/csi/footer.htm