Main Content

Simulink.fault.libraryBlocks

Get fault subsystem blocks in libraries

Since R2023b

Description

example

faultBehaviors = Simulink.fault.libraryBlocks returns the Fault Subsystem block paths stored in the fault libraries as a cell array of character vectors. You can select these behaviors when you add faults to models.

To assign the behavior to new faults, add a fault to the model with the Simulink.fault.addFault function and then use the addBehavior function on the fault. Retrieve existing faults by using the Simulink.fault.findFaults.

Examples

collapse all

Open MATLAB® and retrieve the path of the Fault Subsystem blocks stored in the recognized fault behavior libraries.

fb = Simulink.fault.libraryBlocks;

Version History

Introduced in R2023b