Get free Stack

Block to read the free Stack size.

Description

A 'Get free Stack' block reads the number of bytes that are still available on the stack of a specific task.

Each stack has its own dedicated stack for storage of temporary data, including local variables.

Output

Number of bytes still available on the stack in bytes.

Parameters
Task
Select the task of which the stack size should be read. Note that the Simulink model's generated code is executed by the Application Control Task. If necessary, its stack size can be increased in the 'System Init' block.