MOTHS

 

The MOTHS tool suite was developed uses the Fault Adaptive Control Technology (FACT) modeling paradigm. Hybrid bond graph (HBG) models created in the FACT modeling paradigm in GME. MOTHS includes a model transformer, HBG2Simulink, which transforms HBG models to Matlab Simulink models. The construction and execution of these models within the Matlab environment is supported through the HBGSimulinkLibrary software.

 

Installation

See also the release notes. Windows XP or Vista required.

  1. Install GME 7.6.29 at http://repo.isis.vanderbilt.edu/.

  2. If Visual Studio 2005 is not installed, install the .NET Framework 2.0 redistributable package at http://www.microsoft.com/downloads/details.aspx?FamilyID=0856EACB-4362-4B0D-8EDD-AAB15C5E04F5&displaylang=en.
  3. If Visual Studio 2005 is not installed, or Visual Studio 2005 service pack 1 is not installed, install the Visual C++ SP1 redistributable package at http://www.microsoft.com/downloads/details.aspx?familyid=200b2fd9-ae1a-4a14-984d-389c36f85647&displaylang=en.
  4. Run the MOTHS installer.
  5. Open Matlab, and change directories to the MOTHS/src/HBGSimulinkLibrary directory. Run the install script, "installHBGSimulink.m", which adds the HBGSimulinkLibrary directories to the Matlab search path.

 

Using the Software

The documentation describes how to use the software. Here is a quick overview of the general procedure.

  1. Build an HBG model in GME using the FACT modeling paradigm.
  2. Interpret the model using HBG2Simulink. This will generate a build script (<ModelName>Build.m) and a data structure file (<ModelName>DataStructure.m).
  3. In Matlab, run the build script. It will create the .mdl file and a .fig file which is the GUI for changing parameter values and fault injection. Note that bond graph elements must be marked as fault candidates within GME to appear in the GUI, otherwise set "bg.faultOnlyGUI = 0" in the data structure file to get all elements to appear.
  4. Run <ModelName>.mdl to simulate the system. The current Matlab directory must be the one in which the data structure file is present for the simulation to work properly.