Upload
cakmad69
View
218
Download
0
Embed Size (px)
Citation preview
8/9/2019 BAB18 - The Additional Math
1/8
Introduction to Simulink with Engineering Applications 18 −1Copyright© Orchard Publications
Chapter 18
The Additional Math − Increment / Decrement Library
his chapter is an introduction to the Additional Math − Increment / Decrement Library.This is the seventeenth and last library in the Simulink group of libraries and contains theblocks shown below. We will describe the function of each block included in this library
and we will perform simulation examples to illustrate their applications.
8/9/2019 BAB18 - The Additional Math
2/8
Chapter 18 The Additional Math − Increment / Decrement Library
18 −2 Introduction to Simulink with Engineering Applications Copyright© Orchard Publications
18.1 The Increment Real World Block
The Increment Real World block increases the real −world value of the signal by one.
Example 18.1
The model of Figure 18.1 implements the function as indicated by the XY Graph inFigure 18.2.
Figure 18.1. Model for Example 18.1
Figure 18.2. The XY graph for the model of Figure 18.1
y 3x 5+=
8/9/2019 BAB18 - The Additional Math
3/8
8/9/2019 BAB18 - The Additional Math
4/8
Chapter 18 The Additional Math − Increment / Decrement Library
18 −4 Introduction to Simulink with Engineering Applications Copyright© Orchard Publications
18.3 The Increment Stored Integer Block
The Increment Stored Integer block increases the stored integer value of a signal by one.
Example 18.3
The model of Figure 18.5 implements the function . The XY Graph for thismodel is shown in Figure 18.6.
Figure 18.5. Model for Example 18.3
Figure 18.6. XY graph for the model of Figure 18.5
y 2 x+( ) x 1–sin=
8/9/2019 BAB18 - The Additional Math
5/8
Introduction to Simulink with Engineering Applications 18 −5Copyright© Orchard Publications
The Decrement Stored Integer Block
18.4 The Decrement Stored Integer Block
The Decrement Stored Integer block decreases the stored integer value of a signal by one.
Example 18.4
The model of Figure 18.7 implements the function . The XY Graph for this model isshown in Figure 18.8.
Figure 18.7. Model for Example 18.4
Figure 18.8. XY graph for the model of Figure 18.7
y 2x 4 1+=
8/9/2019 BAB18 - The Additional Math
6/8
Chapter 18 The Additional Math − Increment / Decrement Library
18 −6 Introduction to Simulink with Engineering Applications Copyright© Orchard Publications
18.5 The Decrement to Zero Block
The Decrement To Zero block decreases the real −world value of the signal by one. The outputnever goes below zero.
Example 18.5
For the model of Figure 18.9, the output value never goes below zero as shown in Figure 18.10.
Figure 18.9. Model for Example 18.5
Figure 18.10. XY graph for the model of Figure 18.9
8/9/2019 BAB18 - The Additional Math
7/8
Introduction to Simulink with Engineering Applications 18 −7Copyright© Orchard Publications
The Decrement Time To Zero Block
18.6 The Decrement Time To Zero Block
The Decrement Time To Zero block decreases the real −world value of the signal by the sampletime, . This block works only with fixed sample rates and the output never goes below zero.
Example 18.6
The model of Figure 18.11 implements the waveform shown in Figure 18.12.
Figure 18.11. Model for Example 18.6
Figure 18.12. XY graph for the model of Figure 18.11
Ts
8/9/2019 BAB18 - The Additional Math
8/8