Sundance PARS User Manual
Page 36

Revision 11-wip-7
Page 36 of 70
Sundance Digital Signal Processing, Inc.
4790 Caughlin Parkway 233, Reno, NV 89519-0907, U.S.A.
email:
Tel: +1 (775) 827-3103
www.sundancedsp.com
3.2.1.
Solver Configuration
When PARS generates code for the embedded model (for DSP targets), it uses ‘Fixed
Step, Discrete’ parameters. Therefore, it is recommended that the same settings be used
when simulating the model prior to code generation.
Figure 39 - Simulink model Solver parameters
It is also important to set the model’s stop time to ‘Inf’ before generating code. Some models will
generate different code for a non-infinite stop time; this is typically not what you want from an
autonomous embedded system.
It is also recommended to set the ‘Periodic Sample Time Constraint’ to ‘sample time independent’,
since that is precisely the kind of code that will be generated, but this is not always possible for all the
blocks that may exist in an arbitrary model.