Matlab Krit Installation Instructions (2009)

10
January 5, 2009 January 5, 2009 Software installation instructions Software installation instructions 1 Basic software Basic software n Operating system Operating system – Windows XP Windows XP n Compaq Visual Fortran ver.6.6 Compaq Visual Fortran ver.6.6 Installed first because Installed first because Matlab Matlab modifies some Visual Studio files modifies some Visual Studio files For making fast DLL functions For making fast DLL functions n Matlab Matlab 2008A, with: 2008A, with: Compiler toolbox (necessary for Compiler toolbox (necessary for Krit Krit) Robust Control toolbox (necessary for synthesis part) Robust Control toolbox (necessary for synthesis part) Control System toolbox (required by Robust Control) Control System toolbox (required by Robust Control) n Krit Krit package package

description

А.Храмцовский - Инструкции по установке пакета КРИТ для системы MATLAB, январь 2009 года Andrew Khramtsovsky "Krit Toolbox for Matlab. Installation Instructions", 2009

Transcript of Matlab Krit Installation Instructions (2009)

Page 1: Matlab Krit Installation Instructions (2009)

January 5, 2009January 5, 2009 Software installation instructionsSoftware installation instructions 11

Basic softwareBasic software

nn Operating system Operating system –– Windows XPWindows XP

nn Compaq Visual Fortran ver.6.6Compaq Visual Fortran ver.6.6–– Installed first because Installed first because MatlabMatlab modifies some Visual Studio filesmodifies some Visual Studio files–– For making fast DLL functionsFor making fast DLL functions

nn MatlabMatlab 2008A, with:2008A, with:–– Compiler toolbox (necessary for Compiler toolbox (necessary for KritKrit))–– Robust Control toolbox (necessary for synthesis part)Robust Control toolbox (necessary for synthesis part)–– Control System toolbox (required by Robust Control)Control System toolbox (required by Robust Control)

nn KritKrit packagepackage

Page 2: Matlab Krit Installation Instructions (2009)

January 5, 2009January 5, 2009 Software installation instructionsSoftware installation instructions 22

Important Fortran project settings:Important Fortran project settings:Fortran tab Fortran tab -- GeneralGeneral

nn Predefined preprocessor Predefined preprocessor symbol symbol MATLAB_MEX_FILEMATLAB_MEX_FILE

Page 3: Matlab Krit Installation Instructions (2009)

January 5, 2009January 5, 2009 Software installation instructionsSoftware installation instructions 33

Important Fortran project settings:Important Fortran project settings:Fortran tab Fortran tab –– Compilation DiagnosticsCompilation Diagnostics

nn Fortran standard Fortran standard ––FortranFortran--9595

Page 4: Matlab Krit Installation Instructions (2009)

January 5, 2009January 5, 2009 Software installation instructionsSoftware installation instructions 44

Important Fortran project settings:Important Fortran project settings:Fortran tab Fortran tab –– Fortran DataFortran Data

nn For 32For 32--bit system, default bit system, default Real kind is 8 bytes, Real kind is 8 bytes, Integer kind is 4 bytesInteger kind is 4 bytes

Page 5: Matlab Krit Installation Instructions (2009)

January 5, 2009January 5, 2009 Software installation instructionsSoftware installation instructions 55

Important Fortran project settings:Important Fortran project settings:Link tab Link tab -- GeneralGeneral

nn No object or library No object or library modulesmodules

nn /export:_MEXFUNCTION@16/export:_MEXFUNCTION@16commandcommand

Page 6: Matlab Krit Installation Instructions (2009)

January 5, 2009January 5, 2009 Software installation instructionsSoftware installation instructions 66

Optional Fortran project Optional Fortran project settings: path to the librariessettings: path to the libraries

nn Use this feature to inform Use this feature to inform the compiler about the the compiler about the location of various location of various MatlabMatlablibrarieslibraries

Page 7: Matlab Krit Installation Instructions (2009)

January 5, 2009January 5, 2009 Software installation instructionsSoftware installation instructions 77

Important Fortran project settings:Important Fortran project settings:LibrariesLibraries

nn Add the following Add the following MatlabMatlab libraries to the project:libraries to the project:libmat.liblibmat.liblibmex.liblibmex.liblibmx.liblibmx.lib

To be found at:To be found at:<<Matlab_RootMatlab_Root>>\\externextern\\liblib\\win32win32\\microsoftmicrosoft

Page 8: Matlab Krit Installation Instructions (2009)

January 5, 2009January 5, 2009 Software installation instructionsSoftware installation instructions 88

KritKrit package installationpackage installation

nn Copy folder structure containing at least the folders Copy folder structure containing at least the folders

KRIT76, KRITAERO, KRITMISC and KRITGUI76KRIT76, KRITAERO, KRITMISC and KRITGUI76nn For example:For example:

KritKrit|__|__ StandardStandard

|______KRIT76|______KRIT76 ((KritKrit core)core)

|______|______KritAeroKritAero (Flight dynamics add(Flight dynamics add--ons)ons)

|______|______KritMiscKritMisc (Other add(Other add--ons)ons)

|______KRITGUI76|______KRITGUI76 (GUIs incl. (GUIs incl. ManGUIManGUI))

Page 9: Matlab Krit Installation Instructions (2009)

January 5, 2009January 5, 2009 Software installation instructionsSoftware installation instructions 99

KritKrit package installationpackage installation

nn In In MatlabMatlab, add all , add all the four folders:the four folders:-- KRIT76KRIT76-- KritAeroKritAero-- KritMiscKritMisc-- KRITGUI76KRITGUI76to to MatlabMatlab pathpath

Page 10: Matlab Krit Installation Instructions (2009)

January 5, 2009January 5, 2009 Software installation instructionsSoftware installation instructions 1010

Useful tipsUseful tips

nn Use Use this this command to command to avoid the warnings like avoid the warnings like this onethis one

nn Even better to add it to Even better to add it to startup file:startup file:<<MatlabMatlab>>\\ToolboxToolbox\\LocalLocal\\matlabrc.mmatlabrc.m