You are on page 1of 8

2016

Frequency response plots


Tenet Technetronics is official Training Partners for

SCILAB.

M.Mohamed Ibrahim
Tenet Technetronics
03-DEC-16

Tenet Technetronics 1
Application Notes

Contents
Introduction 2
Bode plot

Nyquist plot

...2

Frequency response plots in XCOS

Tenet Technetronics | Varsity


#9/3, Shree Lakshmi Complex, 2nd Floor, Opp. To Vivekananda Park, Girinagar, Bangalore - 560085.
Ph. No: 080-26722726., Website: www.tenettech.com, Email: info@tenettech.com

Tenet Technetronics 2
Application Notes

Introduction:
Frequency response analysis of control systems can be carried either graphically or
analytically. There are various graphical techniques available for frequency response
analysis. In this document we will learn how to plot Bode& Nyquist plot in Scilab.
The frequency response plots are used to determine the frequency domain
specifications, to study the stability of the systems and to adjust the gain of the system
to satisfy the desired specifications.

Bode plot:
The bode plot is a frequency response plot of the sinusoidal transfer function of the
system. A bode plot consists of two graphs. One is a plot of the magnitude of a
sinusoidal transfer function vs log . The other is a plot of the phase angle of a
sinusoidal transfer function vs log .

Nyquist plot:
The nyquist plot of a sinusoidal transfer function G(j ) is a plot of the magnitude of
G(j ) vs phase angle of G(j ) on polar coordinates as is varied from zero to infinity.
Thus the nyquist plot is the locus of vectors | G(j )| G(j ) as is varied from zero to
infinity. The nyquist plot is also called Polar plot.

Frequency response plots in XCOS:


In scilab XCOS to analyses the frequency response plot to install CPGE module

-->atomsInstall(CPGE)
Or
Download zip file from internet
Tenet Technetronics | Varsity
#9/3, Shree Lakshmi Complex, 2nd Floor, Opp. To Vivekananda Park, Girinagar, Bangalore - 560085.
Ph. No: 080-26722726., Website: www.tenettech.com, Email: info@tenettech.com

Tenet Technetronics 3
Application Notes

Step 1: List of blocks required to plotting Bode and Nyquist plot

Designation

Representation

Sub-Palette

Frequency
response

CPGE/Analyses/REP_FREQ

Reference to
physical quantity
of the diagram

CPGE/Analyses/GRANDEUR_PHYSIQUE

Step Function

Sources/ STEP_FUNCTION

Scope

CPGE/sorties/SCOPE

Scalar or vector
addition
/substraction

Mathematical operation /BIGSOM_f

Gain

Mathematical operation/GAINBLK

Continuous transfer
function

Continuous time systems/CLR

Purpose of blocks:
1. CLR Block
The CLR Block is a continuous transfer function block. This block realizes a SISO
linear
system
represented
by
its
rational
transfer
function
Numerator/Denominator. The rational function must be proper (denominator
degree must be less or equal to numerator degree).
Tenet Technetronics | Varsity
#9/3, Shree Lakshmi Complex, 2nd Floor, Opp. To Vivekananda Park, Girinagar, Bangalore - 560085.
Ph. No: 080-26722726., Website: www.tenettech.com, Email: info@tenettech.com

Tenet Technetronics 4
Application Notes
2. Step function
In its simpler use this block output a step signal between two definable levels
Initial Value and Final Value starting at a specified time Step Time.

3. Scalar or Vector addition/ Substraction


This block performs addition or subtraction on scalar, vector or matrix inputs.

4. Scope
The SCOPE is a single display scope and this Scope block displays its input with
respect to simulation time. Both axes have a common range. The Scope allows
you to adjust the amount of time and the range of input values displayed.
5. Bode
This block includes the Bode, nyquist and two more plots for frequency response
analyses. In block parameter dialog box, set the type of diagram is 1 for Bode
plot and 3 for Nyquist plot.

Figure 1: Block parameter

Tenet Technetronics | Varsity


#9/3, Shree Lakshmi Complex, 2nd Floor, Opp. To Vivekananda Park, Girinagar, Bangalore - 560085.
Ph. No: 080-26722726., Website: www.tenettech.com, Email: info@tenettech.com

Tenet Technetronics 5
Application Notes

Figure 2: Block parameter


6. Block with reference to physical quantity of the diagram

Figure 3: Set the reference to physical quantity

7. Gain
That bloc computes the product of a square matrix A by the input vector U,
where the number of rows/cols of A is equal to the number of rows of U. The A
matrix is set with the Gain parameter.

Tenet Technetronics | Varsity


#9/3, Shree Lakshmi Complex, 2nd Floor, Opp. To Vivekananda Park, Girinagar, Bangalore - 560085.
Ph. No: 080-26722726., Website: www.tenettech.com, Email: info@tenettech.com

Tenet Technetronics 6
Application Notes
Step 2: Arrange the blocks in XCOS window and then connected to required ports.

Figure 4: XCOS Diagram


Step 3: Response of the circuit will be displayed.

Figure 5: Bode plot


Tenet Technetronics | Varsity
#9/3, Shree Lakshmi Complex, 2nd Floor, Opp. To Vivekananda Park, Girinagar, Bangalore - 560085.
Ph. No: 080-26722726., Website: www.tenettech.com, Email: info@tenettech.com

Tenet Technetronics 7
Application Notes

Figure 6: Nyquist plot (Polar plot)

For more information please visit: www.tenettech.com


For technical query please send an e-mail: info@tenettech.com
Tenet Technetronics | Varsity
#9/3, Shree Lakshmi Complex, 2nd Floor, Opp. To Vivekananda Park, Girinagar, Bangalore - 560085.
Ph. No: 080-26722726., Website: www.tenettech.com, Email: info@tenettech.com

You might also like