How can I define a trigger for a compound?
Altair Forum User
Altair Employee
Answers
-
Submitted by pete on Thu, 11/13/2014 - 11:50.
Conditional Execution and Enabled Compounds
You will often have blocks that you wish to run only under certain conditions. You can do this with enabled compounds. All the blocks contained in the compound will only run if the enable pin to the block has a 1 (or TRUE) value supplied. If the value supplied is 0 (or FALSE) then the compound does not run.
To create an enabled compound:- Put the blocks to execute conditionally inside a compound block.
- Ctrl+right click on the compound and select Enabled Execution
The compound block will have a green ball as the enable pin. It looks like this:
The enabled compound 'Safe Divide' will only execute when 'den' != 0
0