In an attempt to generate random numbers from a triangular distribution for input for the “Entity Server Block” the “Event-Based Random Number Block” was connected to the input port of the “Entity Server Block” in a SimEvents model created using Matlab R2016b. However the following error message appears when running the model. “You cannot use entity blocks from an older release (prior to R2016a) in a model that uses the new versions of entity blocks (R2016a and beyond)." The error message does not appear and the model runs fine when instead of the “Event Based Random Number Block, a “Constant Block” is connected to the input port of the “Entity Server Block.” The error only message only appears when connecting the “Event-Based Random Number Block” to the input port of the “Entity Server Block.” The “Event-Based Random Number Block” comes from the SimEvents “Legacy Block Library” so the word “Legacy” suggests that the “Event-Based Random Number Block” is outdated for use in a SimEvents model created in Matlab R2016b. If this is correct, is there a more appropriate source of event based random numbers of various distributions (including the triangular distribution) to use for a SimEvents model created using Matlab R2014b? I would very much appreciate any comments. John
MATLAB: Trying to generate random numbers from a triangular distribution for input for an Entity Server Block in a SimEvents model created using Matlab R2016b
SimEventstriangular distribution
Best Answer