Minimum Available Stack Size

Get the smallest amount of free stack available

  • Library:
  • Simulink Real-Time / Target Management / Execution Parameters

Description

This block outputs the number of bytes that have not been used in the stack since the thread was created.

Note

Because it checks the entire stack, this block executes slowly and is not intended for real-time operation. Use this block only for diagnostic purposes. To check how much stack remains unused, slow model execution until it runs with the block. Then, comment out the block to run the model at full speed.

Parameters

expand all

Enter the base sample time or a multiple of the base sample time (-1 means sample time is inherited).

Programmatic Use

Block Parameter: ts

Introduced in R2014a