MATLAB: Am I getting less data points than the amount mentioned in Configuration parameter when logging data using Simulink Real Time

I am trying to log data when connected to a Speedgoat target. I have set the limit data points value to 100000, but only 5555 data points are logged. Why is this happening?
 

Best Answer

This decrease in number is expected because, the maximum value for this option derives from available target computer memory, which the Simulink Real-Time software also uses to hold other items. For example, in addition to signal logging data, the software also uses the target computer memory for the Simulink Real-Time kernel, real-time application, and scopes.
For example, assume that your model has six data items (time, two states, two outputs, and task execution time). If you enter a buffer size of 100000, the target object property tg.MaxLogSamples is calculated as floor(100000 / 6) = 16666. After the buffer saves 16666 sample points, it wraps and further samples overwrite the older ones.
This can be found in the following link: