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.
Seleccione un país/idioma
Seleccione un país/idioma para obtener contenido traducido, si está disponible, y ver eventos y ofertas de productos y servicios locales. Según su ubicación geográfica, recomendamos que seleccione: .
También puede seleccionar uno de estos países/idiomas:
Cómo obtener el mejor rendimiento
Seleccione China (en idioma chino o inglés) para obtener el mejor rendimiento. Los sitios web de otros países no están optimizados para ser accedidos desde su ubicación geográfica.