14.02.2013 Views

Thesis - Leigh Moody.pdf - Bad Request - Cranfield University

Thesis - Leigh Moody.pdf - Bad Request - Cranfield University

Thesis - Leigh Moody.pdf - Bad Request - Cranfield University

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 8 / Simulation<br />

_ _<br />

comprehensive array of time series analysis tools and graphics facilities<br />

complementing those provided in the simulation. The simulation provides<br />

an ASCII output data file with the I/O name and extension “MTB” in a<br />

location defined by the logical pointer MTB_LOC for analysis using<br />

MATLAB. Initially two header records are written to this file, the first is a<br />

list of variable names, the second their units extracted from the GCB text<br />

file. The data records are then written at the prescribed time and frequency,<br />

for example:<br />

TIME CR_PH_SH CR_TH_SH I_PHI_SH<br />

[ SECONDS] [ DEGREES] [ DEGREES] [ DEGREES]<br />

0.00000E+00 0.12561E-2 0.12000E+1 0.12551E-2<br />

0.12500E-01 0.13761E-2 0.12600E+1 0.13753E-2<br />

M M M M<br />

0.10000E+10 0.14961E-2 0.13300E+1 0.14951E-2<br />

The internal SI representation of the data is multiplied by the GCB scaling<br />

factor prior to output. A MATLAB graphical user interface (GUI) has been<br />

created to manipulating the data provided by the research simulation and the<br />

AMIS. MATLAB reads the data in these files, creating a vector for each<br />

output variable, denoted by the original variable name, and a complimentary<br />

vector of units.<br />

8.7 Interactive X-Windows Interface<br />

Competition to secure fixed price contracts has reduced the development<br />

period of missile systems even though the complexity of the modern<br />

weapon systems has increased. Simulations such as the AMIS, developed to<br />

cope with this increase in functionality, must also address the problem of<br />

longer learning curves by automating as many of the housekeeping<br />

functions as possible. Simulations now include a level of functionality that<br />

cannot be controller entirely by external data files alone if rapid<br />

development, analysis, and system assessment is required. To do so would<br />

inevitably lead to excessive learning curves, limit testing, reduce scenario<br />

generation and their analysis. An interactive windows interface enhances<br />

user control and on-line data presentation, maximising its potential for rapid<br />

development and fault finding.<br />

The windows I/F here provides an easy to use “front end” to the core model,<br />

thereby reducing the time taken for familiarisation. Combining the<br />

windows I/F with a GCB makes all the program variables accessible for<br />

automated I/O, statistical analysis and interactive change during program<br />

execution. Interactive control over the program means that it can be stepped<br />

at any one of the clock rates provided, a valuable tool for detailed algorithm<br />

analysis and sub-system interactions.<br />

For this application the Windows interactive and visualisation software is<br />

written in “C++”, a language ideally suited to graphical presentations,<br />

utilising MOTIF X-18 library functions. The interactive interface with the<br />

FORTRAN core models controls the flow of data to and from the<br />

visualisation software using a mouse. The windows are dynamically linked,<br />

8-19

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!