.FaultTriggering.createFaultPackage

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.

Interface

function createFaultPackage
  extends FaultTriggering.Utilities.Icons.FaultFunction;
  input String modelName = "FaultTriggering.Examples.ActuatorExample.Actuator" "Model name";
  input String scriptName = "SetFaults.mos" "Name of output script";
  input String packageName = "Faults.mo" "Name of the Fault package created by the function";
  input Boolean overWriteScripts = true "Replaces existing models without propmpting" annotation(
    choices(checkBox = true));
  output FaultTriggering.Utilities.Records.Faults faults;
end createFaultPackage;

Revisions

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

Generated at 2024-11-20T19:25:51Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos