Get the smallest amount of free stack available
Simulink® Real-Time™ Library for Execution Parameters
This block outputs the number of bytes that have not been used in the stack since the thread was created.
The block traverses the entire stack to find unused bytes. Use this block only for diagnostic purposes.