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
| Type | Name | Default | Description |
|---|---|---|---|
| String | modelName | "FaultTriggering.Examples.ActuatorExample.Actuator" | Model name |
| String | scriptName | "SetFaults.mos" | Name of output script |
| Boolean | overWriteScripts | false | Replaces existing models without propmpting |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| String | realFaultParameterNames | ||
| String | integerFaultParameterNames | ||
| String | booleanFaultParameterNames | ||
| String | realFaultNames | ||
| String | integerFaultNames | ||
| String | booleanFaultNames | ||
| FaultTriggering.Utilities.Records.Faults | faults |
