We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

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 Created 09/08/2014
Last Updated 04/15/2015
Status Active
Type General Article
  • System Generator for DSP
  • Vivado Design Suite - 2014.2