The variable scope determines how variables are referenced. There are five scope attributes.
Scope |
Function |
Constant |
Constant value used inside the state chart. You can only assign it a default value. |
External |
For code generation. It is external to the block diagram and defined in handwritten C code outside the diagram. |
Input |
Passes information to the state chart. You can assign it a type, number, and default value. |
Local |
Value used inside the state chart. |
Output |
Passes information from the state chart to the block diagram. You can assign it a type, number, and default value. |