How to increase Buffer size parameter in MATLAB .mdl simulation file?

145 views (last 30 days)
I am having error like "The specified buffer was too small.During simulation, the buffer size was temporarily increased to 2048. In order to use Real-Time Workshop, you need to update the buffer size parameter"

Answers (2)

Kaustubha Govind
Kaustubha Govind on 11 Apr 2014
Errors from Simulink typically point to a block, so it is strange that your error doesn't do so. Do you have a Transport Delay block in your model? If so, that is likely the cause of the error. You can try increasing the 'Initial buffer size' parameter.
  2 Comments
ovais nazir
ovais nazir on 1 Jan 2020
I am using transport delay ,i get error from simulink as "during simulation,the buffer size was temporarily increased to 9216.in order to generate code ,you need to update buffer size parameter .. My initial buffer size parameter is 2048*4.where i can update the new size or increase initial size . Thankyou
marwa Eltouhamy
marwa Eltouhamy on 15 Dec 2021
You can try increasing the 'Initial buffer size' parameter.
this initial buffer size is not editable

Sign in to comment.


Mariamcher Chanie
Mariamcher Chanie on 12 Dec 2020
I keep getting this error even when In increased the buffer to 2048 in the time delay block
"eased to 2048. In order to generate code, you need to update the
buffer size parameter"
Does anyone have an idea of what to do?
  1 Comment
DINESH KUMAR NISHAD
DINESH KUMAR NISHAD on 14 Feb 2024
Go to library using right click and unlock library from main tool bar . then right clik on block T go to block parameter and put new buffer size.

Sign in to comment.

Products

Community Treasure Hunt

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

Start Hunting!