| Using Simulink |
 |
Some Things to Try
Here are several things to try to see how the model responds to different parameters:
- Each Scope block contains one or more signal display areas and controls that enable you to select the range of the signal displayed, zoom in on a portion of the signal, and perform other useful tasks. The horizontal axis represents time and the vertical axis represents the signal value.
- The Constant block labeled Set Point (at the top left of the model) sets the desired internal temperature. Open this block and reset the value to 80 degrees. Rerun the simulation to see how the indoor temperature and heating costs change. Also, adjust the outside temperature (the Avg Outdoor Temp block) and rerun the simulation to see how it affects the indoor temperature.
- Adjust the daily temperature variation by opening the Sine Wave block labeled Daily Temp Variation and changing the Amplitude parameter and rerun the simulation.
What This Demo Illustrates
This demo illustrates several tasks commonly used when you are building models:
- Running the simulation involves specifying parameters and starting the simulation with the Start command, described in Diagnosing Simulation Errors.
- You can encapsulate complex groups of related blocks in a single block, called a subsystem. See Creating Subsystems for more information.
- You can customize the appearance of and design a dialog box for a block by using the masking feature, described in detail in Creating Masked Subsystems. The
thermo model uses the masking feature to customize the appearance of all the Subsystem blocks that it contains.
- Scope blocks display graphic output much as an actual oscilloscope does.
| Running a Demo Model | | Other Useful Demos |  |
© 1994-2005 The MathWorks, Inc.