Why do I receive an error when I use the Bernoulli Binary Generator block from the Communications Blockset 3.0 (R14)?

11 views (last 30 days)
I have a Simulink model that uses the Bernoulli Binary Generator block from the Communications Blockset that has a variable for the Sample Time parameter. If I open the model first, then declare the variable in the MATLAB workspace, I receive the following error when I try to simulate the model:
??? Error using ==> sim
Error in block 'test_frmbs/Bernoulli Random Binary Generator': Block initialization commands cannot be evaluated. MATLAB error message: Error using ==> set_param
Invalid setting in block 'test_frmbs/Bernoulli Random Binary Generator/DSP Constant/zoh' for parameter 'SampleTime'.
The model simulates correctly if I first declare the variable in the MATLAB workspace and then open the model and simulate it.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This bug has been fixed in Release 2006a (R2006a). For previous product releases, read below for any possible workarounds:
This bug has been fixed in Release 14 Service Pack 2 (R14SP2). For previous releases, please read below for any possible workarounds:
This bug has been fixed for Release 14 SP1 (R14SP1). For previous releases, please read below for any possible workarounds:
This has been verified as a bug in Communications Blockset (R14) in the way that the Bernoulli Binary Generator handles variables as the Sample Time parameter.
Currently, to work around this issue, you must first declare the variable in the MATLAB workspace before opening the model that contains the Bernoulli Binary Generator block.

More Answers (0)

Categories

Find more on Event Functions in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!