PDF (Thesis) - Nottingham eTheses - University of Nottingham
PDF (Thesis) - Nottingham eTheses - University of Nottingham
PDF (Thesis) - Nottingham eTheses - University of Nottingham
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
B.1 C code<br />
APPENDIX B<br />
External DLL<br />
This is the full code for the external library file, this file has simply to be compiled as<br />
a "Win32 DLL" with any C compiler, the binary file has to be named ventReal.dll and<br />
then placed inside the simulation folder. No others steps are needed.<br />
# define _MSC_VER<br />
/ / A l l t h e in / out v a r i a b l e s a r e d e f i n e d as d o u b l e<br />
/ / in t h e s a b e r A p i . h<br />
# define time inp [ 0 ]<br />
# define VA inp [ 1 ]<br />
# define VB inp [ 2 ]<br />
# define VC inp [ 3 ]<br />
# define Vra inp [ 4 ]<br />
# define Vrb inp [ 5 ]<br />
# define Vrc inp [ 6 ]<br />
# define q inp [ 7 ]<br />
# define T11 out [ 0 ]<br />
# define T12 out [ 1 ]<br />
# define T21 out [ 2 ]<br />
# define T22 out [ 3 ]<br />
# define T31 out [ 4 ]<br />
# define T32 out [ 5 ]<br />
118