functionfaultProcessingForFaultBus

Gathers all faults in the model and set them.

Extends from FaultTriggering.Utilities.Icons.FaultFunction.

Information

This Function gathers all the faults in the model modelName, sets the values of the faults and saves it into the modelica script scriptName. The Integer maxSearchSize is needed to preallocate the number of searched elements.


Unfortunately it is impossibke to read the default values directly from the model using the ModelManagement.Structure.AST libray, therefore all parameter values are set to 0, and all variable faults to index 1 by default.


Copyright © DLR Institute of System Dynamics and Control

Inputs

TypeNameDefaultDescription
StringmodelName"FaultTriggering.Examples.ActuatorExample.Actuator"Model name
StringscriptName"SetFaults.mos"Name of output script
BooleanoverWriteScriptsfalseReplaces existing models without propmpting

Outputs

TypeNameDefaultDescription
StringrealFaultParameterNames
StringintegerFaultParameterNames
StringbooleanFaultParameterNames
StringrealFaultNames
StringintegerFaultNames
StringbooleanFaultNames
FaultTriggering.Utilities.Records.Faultsfaults