Database GUI

Contents

Introduction

This GUI allows you to search for and find the values for certain constants in a database. Simply type Database into the MATLAB command window to open the GUI which will prompt you select a database file. For a demo you can navigate to, and open ../Common/Database/Sample.db.

Alternative Uses

You can also use Database.m as a function to output a value associated with a constant. You must first inialize the database file and then you can specify the the constant you are interested in. For example:

Database('Sample.db')
Database('inertia')
Sample.db is not in the database
ans =
     []
ans =
     1     0     0
     0     1     0
     0     0     1

Database file format

The file format for a database is pretty simple. For an example, you can open Sample.db to take a look at a template. Each constant is designated their own line. Each line has four columns. The first column is the name of the constant. The second column is the value of the constant. The third column is the units for the constant. And finally the fourth column allows you to specify a reference for the constant.

Buttons

Find All

Restores the database to its initial state, with all constant once again visible in the frame to the left.

Find

Simply type the constant you are looking for in the field above and click Find. Any constants that include the string you entered will be displayed in the catalog frame on the left hand side.

Add

This button allows you to add a Constant to the database. Simply enter in the values you desire for the string name (no spaces of capitals), the value (can be in the form a matrix), units (again no spaces of capitals), and Reference. The GUI will prompt you to save the changes before the constant is officially added to the database.

Quit

Closes and exits out of the GUI.

Help

Access the GUI help system (This page).

%
% Back to <GUIindex.html>
%