Adding User-Written Code : Supplementing the Model with a Procedure

Supplementing the Model with a Procedure

This section explains how to add a handwritten procedure to your Rational Statemate model by showing the following:

Note: Rational Statemate also provides templates for functions and tasks. The subroutine’s template is a result of mapping the declarations into its C representation. This includes mapping the parameter types and, in the case of functions, the returned value.

Complete the following steps to add a handwritten procedure:

1.
Click in the Properties Editor.

The New Element window opens.
.
2.
3.
4.
Select Subroutine as the Element Type.

The Properties Editor appears with the name of the new subroutine.
5.
6.
7.
Select a parameter and click Properties.

The Parameter window opens.