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®
Fault Analyzer™ 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
See Also
sltest.testmanager.TestCase
| Fault
(Simulink Fault Analyzer) | sltest.testmanager.FaultSet
| getSpecifiedFaults
| sltest.testmanager.refreshFaults
| remove