addSpecifiedFault
Class: sltest.testmanager.FaultSet
Namespace: sltest.testmanager
Syntax
specifiedFault = addSpecifiedFault(fs,modelElement,faultName)
Description
adds the fault specifiedFault
= addSpecifiedFault(fs
,modelElement
,faultName
)faultName
on the model element
modelElement
to the fault set fs
. You can only add
a fault to a fault set once. You must have Simulink®
Test™ to use this method.
Input Arguments
Output Arguments
Examples
Tips
If you add faults to the model under test after you add fault sets to test cases, use the
sltest.testmanager.refreshFaults
function to make the faults available to the fault set.
Version History
Introduced in R2024a