How to calculate the initial buffer size for the transport delay block

18 vues (au cours des 30 derniers jours)
Dirk kok
Dirk kok le 30 Mai 2012
Hi,
From the matlab help file:
Initial buffer size
Define the initial memory allocation for the number of input points to store.
Settings
Default: 1024
If the number of input points exceeds the initial buffer size, the block allocates additional memory.
After simulation ends, a message shows the total buffer size needed.
----- Do I understand it correctly that the number of the buffer is the number of points to stored (no mater what size each point is)?
If so, then I can calculate the size I need as follows:
fixed sample time: 10 samples per second (10 hz) delay: 0.5 second (5 samples) Thus buffer size = 5
For my model I would like to calculate the size of the buffer so I store enough data, but not run out of buffer.
thanks

Réponses (0)

Catégories

En savoir plus sur General Applications dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by