An input trigger is an event on the input port that causes the MATLAB Function block to execute. See Using Triggered Subsystems.
You can define the following types of triggers in MATLAB Function blocks:
Either (rising or falling)
For a description of each trigger type, see Setting Input Trigger Properties.
Use the Ports and Data Manager to add input triggers to a MATLAB Function block that is open and has focus. To add an input trigger and modify its properties, follow these steps:
In the Ports and Data Manager, select Add > Input Trigger.
The Ports and Data Manager adds a default definition of the new input trigger to the MATLAB Function block and displays the Trigger properties dialog.
Modify trigger properties.
Return to the MATLAB Function block properties at any time by selecting Tools > Block Dialog.
The Trigger properties dialog in the Ports and Data Manager allows you to set and modify the properties of input triggers in MATLAB Function blocks.
To open the Trigger properties dialog, select an input trigger in the Contents pane.
You can set the following properties in the Trigger properties dialog:
|Name||Name of the input trigger, following the same naming conventions used in MATLAB®.|
|Port||Index of the port associated with the input trigger. The default value is
Type of event that triggers execution of the MATLAB Function block. You can select one of the following types of triggers:
|Description||Description of the input trigger.|
|Document link||Link to documentation for the input trigger. You can enter a Web URL address or a MATLAB command that displays documentation in a suitable format, such as an HTML file or text in the MATLAB Command Window. When you click the blue text that reads Document link displayed at the bottom of the Trigger properties dialog, the MATLAB Function block evaluates the link and displays the documentation.|