Using Public Methods for External Communication
The methods are specified as described in Block Diagram Editor. Some examples are listed in the following, but the list is by no means complete.
- Create a public method in a public diagram.
Add the required arguments as described in Adding an Argument to the Method.
The arguments can be read only within the method. To be available in the state machine, their values have to be assigned to variables.
Add the respective number of variables.
Connect each argument with a variable.
The variables can be used in the entire state machine. The figure lists examples to process or check the input values in the method.

See also