Supplementing the Model with a Procedure
This section explains how to add a handwritten procedure to your Rational Statemate model by showing the
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.To add a handwritten procedure:
1. Select File > New in the Data Dictionary Editor.
2. Name the new element (in this example ADD_JOB_TO_RQ), then select its Chart Name.
3. Select Subroutine as the Element Type. The Data Dictionary Editor dialog box opens with the name of the new subroutine.
4. Define the subroutine Type as a Procedure
5. Enter the procedure’s parameters if you want to store them in the DDE. Select a parameter and click Data Dict to display the following dialog box: