UPGRADE YOUR BROWSER

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:

 

error61951.JPG




'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.
 
Or
 
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 综合文章
Tools
的页面