https://nl.mathworks.com/help/driving/ref/parallelphase.setfailcondition.html
setFailCondition - Assign fail condition to simulation - MATLAB
This MATLAB function assigns a condition of the specified type to the Fail Conditions of the scenario root phase.
assignfailconditionsimulationmatlab