functioncreateFaultPackage

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.


This function creates a package with name packageName. In this package a hiarchial bus is build to which all faults can be easily coupled in the model ConnectBusToFaults.

Inputs

TypeNameDefaultDescription
StringmodelName"FaultTriggering.Examples.ActuatorExample.Actuator"Model name
StringscriptName"SetFaults.mos"Name of output script
StringpackageName"Faults.mo"Name of the Fault package created by the function
BooleanoverWriteScriptstrueReplaces existing models without propmpting

Outputs

TypeNameDefaultDescription
FaultTriggering.Utilities.Records.Faultsfaults

Revisions

Copyright
© 2012-2015, DLR Institute of System Dynamics and Control