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.

Linked Answer Records

Associated Answer Records

AR# 61951
Date 04/15/2015
Status Active
Type General Article