Vous êtes sur la page 1sur 10

2016

Series RLC circuit in XCOS - Scilab


Tenet Technetronics is official Training Partners for

SCILAB.

M. Mohamed Ibrahim
Tenet Technetronics
18-NOV-16

Tenet Technetronics 1
Application Notes

Contents
Introduction 2
Required blocks

..2

Purpose of each block

.............................................................................................3

Steps involved in RLC circuit

Changing clock period

....8

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:
An RLC circuit is an electrical circuit consisting of a resistor (R), an inductor (L) and a
capacitor (C) connected in series or in parallel. Now, we connect in series and simulate
this circuit in XCOS.

Required Blocks:

Designation

Representation

Sub-Palette

Constant voltage

Electrical / constant Voltage

Resistor

Electrical / Resistor

Inductor

Electrical / Inductor

Capacitor

Electrical / Capacitor

Voltage sensor

Electrical / voltage sensor

Current sensor

Electrical / current sensor

Ground

Electrical / Ground

Visualization

Sinks / CSCOPE

Clock

Sources / clock_c
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

Purpose of blocks:
1. Constant voltage
A model for a system that can produce a constant EMF between its ports.
The output voltage of this DC voltage source is defined by the user.
The black port indicates the positive voltage.
The ohmic resistance of this DC voltage = 0.

2. Resistor
A two-port electrical component resists flow of electric current (I) by producing a
voltage drop (V) between its terminals.

3. Inductor
Store energy in the form of magnetic field.
Also called a coil or reactor.
A passive two-terminal electrical component resists changes in electric
current passing through it.

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
4. Capacitor
Temporarily stores electrical energy in the form of electric field.
Also called as condenser.
Opposes the changes in voltage passing through it.

5. Voltage sensor
Used to measure the voltage difference between two nodes.
The output (available through black triangle) is the difference between the
voltages of the black port and the white port

Vout = VBLACK - VWHITE

The ohmic conductance = 0.

6. Current sensor
Inserted in series in an electrical circuit.
Measures the current passing through the component.
The current flowing into the black port is considered positive.
The ohmic resistance =0.

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
7. Ground
Single port component to provide a zero reference voltage in electrical circuits.
The potential at the ground node =0.
Every electrical circuit has to contain at least one ground element.

8. Visualization
Dual display scope displays its inputs with respect to simulation time.
Both axes have a common range.
Adjust the amount of time and the range of input values displayed.

9. Clock
The unique output of this block generates a regular train of events that are
scheduled by parameter Period in seconds.
The starting date of events generation can be set in seconds with the
Initialization Time 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
Let us now move on to simulate an RLC circuit in XCOS,

Step 1: Open XCOS window in Scilab,


Drag the required blocks from palette browser and drop into XCOS window.

Step 2: Arrange the blocks in XCOS window and then connect all the ports as shown
below

Step 3: Double click on a block If you want to change the default parameter value of
that block.
Select a block, dialogue box appears on the screen
Set the parameter values on it as shown in the figure.

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

Step 4: After setting the values, click simulate button. The different graphs are shown
with different time periods. The time period is the time over which the simulation is run.

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 8
Application Notes
Step 5: To change the clock period and see the output variation below

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 9
Application Notes

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

Vous aimerez peut-être aussi