13.07.2015 Views

An Integrated, Modular Simulation System for Education ... - Cal Poly

An Integrated, Modular Simulation System for Education ... - Cal Poly

An Integrated, Modular Simulation System for Education ... - Cal Poly

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Real Time WorkshopTo generate the final executable program a Simulink model must include thesource code <strong>for</strong> all of the user supplied S-functions. <strong>An</strong>y custom functions that will run inthe Simulink environment can be included in the auto-coding to run in a stand aloneapplication.Stand-alone CodeThe real-time workshop code generator creates an executable that runs in the 32bit DOS window of Windows 98. Using the TCP/IP connection, two <strong>for</strong>ms of IO arebeing provided that Mathworks didn t supply. There was no provision <strong>for</strong> keyboard inputto a real-time workshop application so modifying the program as it was running waslimited to using the supplied external mode interface which allows one process to runSimulink coupled to another process running the real time application. This allowsSimulink to be linked with running simulation code providing the ability change controlparameters inside the simulation while the program is running. The user simply changesthe values in the Simulink block and the value is immediately updated in the runningprogram. This allows different control gain sets to be used during the simulation orparameters such as time delay to be added to the simulation to demonstrate the resultingdeterioration in handling qualities. This also allows a separate computer to provide ainstructor station to control pilot in the loop simulations. Graphics is the second <strong>for</strong>mof output that is not supported by the RTW coder. Graphics has been in two <strong>for</strong>ms: 1) aninterface to the World Up VR viewer was adapted to run through the Simulinkenvironment.and, 2) PhEagle I graphics are being added through the network capabilityusing the existing TCP/IP sockets. Since the graphics computers only require a statevector providing position and orientation in<strong>for</strong>mation, the Simulink model can use the39

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

Saved successfully!

Ooh no, something went wrong!