faults = Simulink.fault.findFaults(model)
finds the faults in the model, model. The function returns the faults
alphabetically by name. If two or more faults on different model elements have the same
name, the function returns those faults alphabetically by model element path.
faults = Simulink.fault.findFaults(model,property=value)
finds the faults filtered by the Fault object property,
property, that match the value, value. The
function returns complete and partial matches.
openExample("faultanalyzer/EvaluateFaultsForFuelSystemExample")
model = "sldemo_fuelsys_fault_analyzer";
open_system(model)
fuelSysFaultSetup
Add a fault named map_fault to the model.
Simulink.fault.addFault(...
model + "/To Controller/Inport/3",Name="map_fault");
Three faults in the model contain the substring map_fault. To
retrieve only the map_fault fault, use a regular expression in the
Name name-value argument.
Path or handle to the model, specified as a string scalar, character vector, or model
handle.
Data Types: string | char | double
Name of the property, specified as a property of the Fault object.
For more information on Fault object properties, see
Properties.
Value of the property, specified in the format determined by the property. You can
define this argument by using a regular expression. For more information on using
regular expressions in MATLAB®, see Regular Expressions.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Sélectionner un site web
Choisissez un site web pour accéder au contenu traduit dans votre langue (lorsqu'il est disponible) et voir les événements et les offres locales. D’après votre position, nous vous recommandons de sélectionner la région suivante : .
Vous pouvez également sélectionner un site web dans la liste suivante :
Comment optimiser les performances du site
Pour optimiser les performances du site, sélectionnez la région Chine (en chinois ou en anglais). Les sites de MathWorks pour les autres pays ne sont pas optimisés pour les visites provenant de votre région.