AR# 61951

2014.2 Vivado Sysgen - Constant blocks that have the "sampled constant" option unchecked generate a Matlab error.


"Constant" blocks that have the "sampled constant" option unchecked will generate a Matlab error as follows:



'constant_smoke/Constant' has an invalid constant (inf) sample time.
Discrete states, continuous states and tunable parameters are not allowed with constant sample times.

How can I work around this issue?



It appears that the simulation and generation of the design will still function without issue.

To work around this issue you can do one of the following:

1) Select to enable the "Sampled Constant" feature in the Constant block.
2) Check the "Inline Parameters" checkbox for simulation.

From the Simulation menu select Model Configuration Parameters -> Optimization -> Signals and Parameters

Check the Inline Parameters checkbox.

Please review this Matlab Answer Record for further information on Sample Times in Simulink.



Answer Number 问答标题 问题版本 已解决问题的版本
61346 2014.2 Vivado Sysgen - Compilation fails for SLX and MDL files which include OPMODE block when using Matlab R2014a N/A N/A
AR# 61951
日期 04/15/2015
状态 Active
Type 综合文章