How MATLAB is different from Pspice and how can they be useful for the circuit simulation

Why simulation is needed

In electrical engineering circuit performance is an important factor, the overall performance of the system is done or contributed by each and every component of the system, for signal generation and circuit operation control chips are used which is very complex and need to analyze them using software-based tools. Simulation is a process by which the circuit design is converted into a software model and then it will be tested by using the input stimuli and output monitoring. The simulation is very helpful to reveal the errors

Operations done by the simulation

• Performance improvement and degradations can be checked

• Voltage and current ratings by examining the waveform

• Tolerance calculation can be done for various components which lead to sensitivity analysis

• Waveforms at various point of the circuit can be checked

• Checking of noise and distortion in any node could be checked without using any expensive equipment

• Harmonics can be checked without using an equipment

• The evaluation of the effect of the non-linear element on circuit performance can be done

• Design of electronic circuits can be done in terms of circuit parameters

• Power losses of various components can be measured

Introduction to Pspice

• It uses a schematic capture program to generate a netlist so we can draw our circuit to simulate it,

• space uses a text file that has a circuit description as input

• it can perform DC level, AC frequency response, bias point, and transient time-domain simulation

• simulation of circuits can be done without building physical prototypes

Steps for simulation

• Designing a circuit – component parts, sources, and ground

• Simulation analysis type time, voltage, frequency-based

• Output results: know your design and your intended result

• Display the result: parameters that you want from the output like bandwidth, slopes…

Opening Pspice

Orcad 16.0 – Orcad capture CIS – new – project – name – RC ckt – analog or mixed A/D – create a blank project

Drawing a circuit

• Getting the parts & placing the parts

• Connecting the circuit

• Changing part name

• Value of the part changes as desired

• Connecting ground

• Voltage and current bubbles

• Saving

To take the parts click on the board then click on the second icon from the menu list then place the parts then click on the third icon from the menu list to place the wire and to do the connection. After that double click the V1 to change the name to Vsource. To change the values double click the value to change it. make sure the ground is connected and the name must be always zero and then place it near the negative side of the voltage source

Introduction to MATLAB and how is it different from Pspice

Matlab is a high-performance language which is used for technical computing it integrates computation, visualization, and programming in an easy to use environment and the problems and solutions are expressed in mathematical notation MATLAB is used for circuit theory, filter design, random process control systems, and communication

Uses

• Data acquisition

• Data analysis, exploration, and visualization

• Scientific and engineering graphics

• Graphical user interface

The graphical features of MATLAB are useful to display the frequency response of amplifiers and illustrates the concepts and principles of semiconductor MATLAB has applications from control systems to robotics any controller can be designed and simulated in the simulation arena for power electronics

Important Elements

Source

DC voltage source AC voltage or current source, 3-phase programmable control source

Switches

Single and three phases logical controlled, ideal switch parallel to an RC snubber circuit

Machines

Simplified synchronous, permanent magnet synchronous, synchronous machine voltage regulator and exciter, asynchronous, DC

Measurement elements

Ideal voltage and current measurement, impedance measurement, true RMS meter, THD active and reactive power