SlideShare a Scribd company logo
www.opal-rt.com
Asma Merdassi, Ph.D.
05/12/2014
OPAL-RT TECHNOLOGIES
REAL-TIME POWER SYSTEMS SIMULATOR
PSIM-eHS Interface
22
Outline
• Introduction : electric Hardware Solver (eHS)
• Building a PSIM model with eHS solver
• How to Start
• Case studies
• DEMO
• Prospective : New Workflow
33
Introduction : electric Hardware Solver (1/3)
eHS : electric Hardware Solver
• Simulation of switched electronic circuit on FPGA
• Very high sampling frequency, up to 5 MHz
• Building electric circuit models from a PSIM circuit in real-time (with
Ts between 150 nanos to 1µs)
• No need to write mathematical equations
• Use of PSIM schematic editor
• Can be interfaced with real devices, such electronic system
controllers, through analog and digital input, output hardware
44
Introduction : electric Hardware Solver (2/3)
eHS : electric Hardware Solver
• Circuit parameters and topology can be changed without
regenerating the bitstream
• Up to four (4) eHS cores can be interconnected
• Data logging implemented on FPGA to record signals with
time steps as low as 200 nanoseconds
55
eHS
(electrical Hardware Simulation)
Solver
Automatic generation of NetList
file (circuit.cct)
Parsing NetList
Nodal Analysis Approach
Generating eHS matrixes
Automatic methodology
OUTPUTS
FPGA
Implementation
USER INPUT
Introduction : electric Hardware Solver (3/3)
Structure of converter
PSIM circuit editor
(Circuit.psimsch)
66
Building a PSIM model with eHS solver
Switches Sources Passive
components
Measurements
PSIM Electrical Source Library
77
Parameter settings for switches
Building a PSIM model with eHS solver
For one circuit, the eHS solver
supports a maximum number of
24 switches.
88
Building a PSIM model with eHS solver
Parameter settings for passive components
For one circuit, the eHS solver
supports a maximum number of 60
non-switching devices (ie. L and
C) and unlimited number of
resistors.
99
Building a PSIM model with eHS solver
Parameter settings for sources
For one circuit, the eHS
solver supports a maximum
number of 16 inputs
(voltage/current sources).
1010
Building a PSIM model with eHS solver
Parameter settings for sources
1111
Building a PSIM model with eHS solver
Parameter settings for measurement components
For one circuit, the eHS solver
supports a maximum number of
16 outputs (voltage/current
measurements).
1212
Building a PSIM model with eHS solver
• Each circuit requires at least one ground.
• It is used as a reference by the solver and can be placed anywhere in the circuit.
Ground
1313
Building a PSIM model with eHS solver
• There are two types of inputs and one type of output to eHS:
Inputs
1. Electrical source (voltage or current) referred to as “U”
2. Pulse controlling a power switch referred to as “SW”
Outputs
1. Electrical measurement (voltage or current) referred to as “Y”
• The order of the inputs and outputs in the vector is determined by their
name.
Note:
1. The names for all blocks used for input and output must start with the
type+index (U01/SW02/Y01) and the “0” cannot be ignored
2. The order of the inputs and outputs must match the index
3. The index must be consecutive (ie. 01,02,03; not 01,03)
Rules of design – Inputs and Outputs
1414
Building a PSIM model with eHS solver
Example of a valid PSIM model for eHS
1515
Building a PSIM model with eHS solver
Example of a valid PSIM model for eHS
switches
SW01
SW02
SW03
SW04
SW05
SW06
1616
Building a PSIM model with eHS solver
Example of a valid PSIM model for eHS
sources
U01
U02
U03
1717
Building a PSIM model with eHS solver
Example of a valid PSIM model for eHS
measurements
Y01
Y02
Y06
Y03
Y05
Y04
Y08
Y07
Note: the
snubber resistors
across the
switches are not
required for eHS
simulation; this
may be useful to
prevent
discharge of
output capacitor
for no-load cases
1818
Building a PSIM model with eHS solver
Inserting the PSIM circuit into an RT-LAB Model
• Implements the
driver that
manages all
communication with
the eHS firmware.
• Initializes the solver
and transmission in
real time of the
circuit control
signals (current and
voltage source
control signals,
switching
information of the
switches). Note: You can find more details for eHS dual block in the Matlab-
eFPGAsim Blockset Help (eHS User Guide)
1919
• This block enables the developer to
simulate each part of the circuit
with exactly the same eHS solver
used for FPGA simulation with the
same sample time.
• Users can then compare results
expected with eHS with PSIM
results using off-line simulation,
without using FPGA hardware
• The effect of parasitic inductors and
capacitors added by eHS can then
be easily assessed
• This block enables the developer to
connect the block exactly as it is
connected inside the FPGA-based
board firmware
• One offline block should be added
for each eHS solver core
Building a PSIM model with eHS solver
Offline Simulation
2020
How to Start
The following toolboxes are needed:
• RT-LAB
• RT-EVENTS (to simulate accurate controller on CPU)
• eFPGAsim (to interconnect the CPU and FPGA and load the bitstream)
Supported FPGA boards:
• OP5600 : ML605 VIRTEX 6
• OP4500: KINTEX 7
• OP5607: VIRTEX 7
• NI cRIO – ZYNQ7020
Software versions:
• RT-LAB v10.6.4.280
• PSIM v9.3 (64 bits)
Requirements
2121
Create a PSIM Model
with eHS supported
blocks
Create a CPU Model
Simulink
Save the CPU Model
on the same folder
with the PSIM model
Create a RT-LAB
Project
Build the model and
Load/Execute
(XHP mode)
Compare online
simulations with
PSIM simulations
• Make a Simulink model for
Controller and I/O
• Choose a fixed-step solver,
sample time (Ts)
• Configure parameters of Dual
eHS block
• Add Simulink CPU model to
RT-LAB
• Assign and configure a target to
the model
• Rename elements using the
eHS naming convention
• Select the order of outputs
Step 1
Step 2
Step 3
How to Start
2222
Case studies
2323
Boost
Case studies
2424
Case studies
Three-phase inverter
2525
Case studies
2626
Case studies
2727
DEMO
• Boost Converter
• PSIM simulation
• eHS offline
• Real-time simulation
• Inverter 3 ph
• PSIM simulation
• eHS offline
• Real-time simulation
• Inverter 3 Level (NPC)
• Real-time simulation
2828
LabVIEW Panel
2929
Prospective
All I/O specifications and acquisition control will be
specified, configured and controlled outside of
Matlab/Simulink.
3030
Prospective – 4Q2014
Create a PSIM Model
with eHS supported
blocks
Create a CPU Model
Simulink
Save the CPU Model
on the same folder
with the PSIM model
Create a RT-LAB
Project
Build the model and
Load/Execute
(XHP mode)
Compare online
simulations with
PSIM simulations
• Choose fixed-step solver,
sample time (Ts)
• Configure parameters of Dual
eHS block
• Control + I/O
• Add CPU Simulink model
• Assign and configure a target to
the model
• Rename elements using the
eHS naming convention
• Select the order of outputs
Modeling Steps
Step 1
Step 2
Step 3
3131
Prospective – 4Q2014
Create a PSIM Model
with eHS supported
blocks
Create a RT-LAB
Project
Build the model and
Load/Execute
(XHP mode)
Compare online
simulations with
PSIM simulations
• Assign and configure a target to
the model
• I/O
• Rename elements by using
the eHS naming convention
• Select the order of outputs
Modeling Steps
Step 1
Step 2
32
New Workflow
32
Select Torque
Select AI_01
Drag & Drop
3333
Thank You!

More Related Content

PDF
Тварини – герої книг : рекомендаційний список
PPTX
Circuit breaker, Types of circuit breaker & different CB related questions
PPT
Surge supressor
PPT
Testing of cb
PPT
Dc Power System
PPT
Power Quality Issues Detailed Analysis.PPT
PPTX
Lightning impulse test in precise
PPT
Power Factor Correction.ppt
Тварини – герої книг : рекомендаційний список
Circuit breaker, Types of circuit breaker & different CB related questions
Surge supressor
Testing of cb
Dc Power System
Power Quality Issues Detailed Analysis.PPT
Lightning impulse test in precise
Power Factor Correction.ppt

What's hot (20)

DOCX
Simple Capacitive Voltage Transformer (CVT) Testing for Switchyard Equipment
PPTX
Reactive power compensation
PDF
Earthing in electrical power systems
PPT
Circuit breakers
PPTX
1українські народні думи.історія героїчного епосу
PPTX
4 PROTECTION OF ALTERNATOR.pptx
DOCX
Література хх століття ( конспект)
PDF
Generator protection
PPTX
Григорій Квітка-Основ'яненко
PPTX
Богдан Лепкий: дорогами життя і творчості
PPT
Motor.ppt
PPTX
220 KV Substation Operation & Maintenance
PPTX
"Аліса в Країні Чудес" Л. Керролл
PPTX
оскар і рожева дама
PPSX
V.Skott. Ivanhoe. Key episodes
PDF
Earth Resistance Testing
POT
High voltage technology & insulation testing
PPT
Practical Power System Protection for Engineers and Technicians
PPTX
HT and LT SWITCHGEAR
Simple Capacitive Voltage Transformer (CVT) Testing for Switchyard Equipment
Reactive power compensation
Earthing in electrical power systems
Circuit breakers
1українські народні думи.історія героїчного епосу
4 PROTECTION OF ALTERNATOR.pptx
Література хх століття ( конспект)
Generator protection
Григорій Квітка-Основ'яненко
Богдан Лепкий: дорогами життя і творчості
Motor.ppt
220 KV Substation Operation & Maintenance
"Аліса в Країні Чудес" Л. Керролл
оскар і рожева дама
V.Skott. Ivanhoe. Key episodes
Earth Resistance Testing
High voltage technology & insulation testing
Practical Power System Protection for Engineers and Technicians
HT and LT SWITCHGEAR
Ad

Similar to OPAL-RT - PSIM & eHS Interface (20)

PDF
OPAL-RT eFPGAsim Power Electronic Real-time Simulator
PDF
OPAL-RT Real time simulation using RT-LAB
PDF
RT15 Berkeley | Introduction to FPGA Power Electronic & Electric Machine real...
PPTX
15.02.2024.pptxDSD3E23DSDSDQWE23EWQDSDSDQWD
PDF
OPAL-RT HYPERSIM Features applied for Relay Testing
PPTX
SPICE LEVEL I/LEVEL II/LEVEL III AND BSIM MODELS
PPT
FreqLeak
PPTX
Grid.pptxdfsdgfsdfghdfcdfsdgdsfghgbnfghdfgd
PPTX
SVPWM Inverter
PDF
HDT TOOLS PRESENTATION (2000)
PPTX
NASPI-Arvin
PPT
electrical engineering project
PPT
ELECTRICAL ENGINEERING PROJECT
PDF
Bosch Internship presentation
PDF
An Efficient Control Implementation for Inverter Based Harmony Search Algorithm
PPTX
Temparature sensor relay switching circuit
PDF
Phase Locked Loop (PLL) Presentation for MTech Level
PDF
current_and_voltage_sensing_in_evse_and_solar.pdf
PDF
slup343.pdf
PPTX
Low power
OPAL-RT eFPGAsim Power Electronic Real-time Simulator
OPAL-RT Real time simulation using RT-LAB
RT15 Berkeley | Introduction to FPGA Power Electronic & Electric Machine real...
15.02.2024.pptxDSD3E23DSDSDQWE23EWQDSDSDQWD
OPAL-RT HYPERSIM Features applied for Relay Testing
SPICE LEVEL I/LEVEL II/LEVEL III AND BSIM MODELS
FreqLeak
Grid.pptxdfsdgfsdfghdfcdfsdgdsfghgbnfghdfgd
SVPWM Inverter
HDT TOOLS PRESENTATION (2000)
NASPI-Arvin
electrical engineering project
ELECTRICAL ENGINEERING PROJECT
Bosch Internship presentation
An Efficient Control Implementation for Inverter Based Harmony Search Algorithm
Temparature sensor relay switching circuit
Phase Locked Loop (PLL) Presentation for MTech Level
current_and_voltage_sensing_in_evse_and_solar.pdf
slup343.pdf
Low power
Ad

More from OPAL-RT TECHNOLOGIES (20)

PDF
Detailed large-scale real-time HYPERSIM EMT simulation for transient stabilit...
PDF
2017 Atlanta Regional User Seminar - Real-Time Microgrid Demos
PDF
2017 Atlanta Regional User Seminar - Conclusion
PDF
2017 Atlanta Regional User Seminar - Using OPAL-RT Real-Time Simulation and H...
PDF
2017 Atlanta Regional User Seminar - Virtualizing Industrial Control Systems ...
PDF
2017 Atlanta Regional User Seminar - Residential Battery Storage Systems. Des...
PDF
2017 Atlanta Regional User Seminar - Real-Time Volt/Var Optimization Scheme f...
PDF
Comparison of Non-real-time and Real-time Simulators with Relays-in-the-Loop ...
PDF
2017 Atlanta Regional User Seminar Introduction
PDF
Webinar | HIL-based Wide-area Monitoring, Protection and Control R&D and Testing
PDF
Webinar | HIL Testing of Electric Transportation
PPT
OPAL-RT and RTDS Technologies Co-Simulation
PPTX
Power Grid Cybersecurity
PPSX
Lab-Scale MMC Test Bench
PDF
Microgrid Controller HIL Demonstration Platform
PPTX
Rapid Control Prototyping Solutions
PPT
OPAL-RT | Setup and Performance of a Combined Hardware-in-loop and Software-i...
PDF
RT15 Berkeley | ePHASORsim: Real-time transient stability simulation tool - O...
PDF
RT15 Berkeley | HYPERSIM - OPAL-RT
PDF
RT15 Berkeley | Real-time simulation as a prime tool for Cybersecurity - OPAL-RT
Detailed large-scale real-time HYPERSIM EMT simulation for transient stabilit...
2017 Atlanta Regional User Seminar - Real-Time Microgrid Demos
2017 Atlanta Regional User Seminar - Conclusion
2017 Atlanta Regional User Seminar - Using OPAL-RT Real-Time Simulation and H...
2017 Atlanta Regional User Seminar - Virtualizing Industrial Control Systems ...
2017 Atlanta Regional User Seminar - Residential Battery Storage Systems. Des...
2017 Atlanta Regional User Seminar - Real-Time Volt/Var Optimization Scheme f...
Comparison of Non-real-time and Real-time Simulators with Relays-in-the-Loop ...
2017 Atlanta Regional User Seminar Introduction
Webinar | HIL-based Wide-area Monitoring, Protection and Control R&D and Testing
Webinar | HIL Testing of Electric Transportation
OPAL-RT and RTDS Technologies Co-Simulation
Power Grid Cybersecurity
Lab-Scale MMC Test Bench
Microgrid Controller HIL Demonstration Platform
Rapid Control Prototyping Solutions
OPAL-RT | Setup and Performance of a Combined Hardware-in-loop and Software-i...
RT15 Berkeley | ePHASORsim: Real-time transient stability simulation tool - O...
RT15 Berkeley | HYPERSIM - OPAL-RT
RT15 Berkeley | Real-time simulation as a prime tool for Cybersecurity - OPAL-RT

Recently uploaded (20)

PDF
Approach and Philosophy of On baking technology
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
cuic standard and advanced reporting.pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Electronic commerce courselecture one. Pdf
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
Approach and Philosophy of On baking technology
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
MYSQL Presentation for SQL database connectivity
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Review of recent advances in non-invasive hemoglobin estimation
Reach Out and Touch Someone: Haptics and Empathic Computing
cuic standard and advanced reporting.pdf
MIND Revenue Release Quarter 2 2025 Press Release
The AUB Centre for AI in Media Proposal.docx
NewMind AI Weekly Chronicles - August'25 Week I
Network Security Unit 5.pdf for BCA BBA.
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
“AI and Expert System Decision Support & Business Intelligence Systems”
Digital-Transformation-Roadmap-for-Companies.pptx
Electronic commerce courselecture one. Pdf
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Mobile App Security Testing_ A Comprehensive Guide.pdf
Understanding_Digital_Forensics_Presentation.pptx

OPAL-RT - PSIM & eHS Interface

  • 1. www.opal-rt.com Asma Merdassi, Ph.D. 05/12/2014 OPAL-RT TECHNOLOGIES REAL-TIME POWER SYSTEMS SIMULATOR PSIM-eHS Interface
  • 2. 22 Outline • Introduction : electric Hardware Solver (eHS) • Building a PSIM model with eHS solver • How to Start • Case studies • DEMO • Prospective : New Workflow
  • 3. 33 Introduction : electric Hardware Solver (1/3) eHS : electric Hardware Solver • Simulation of switched electronic circuit on FPGA • Very high sampling frequency, up to 5 MHz • Building electric circuit models from a PSIM circuit in real-time (with Ts between 150 nanos to 1µs) • No need to write mathematical equations • Use of PSIM schematic editor • Can be interfaced with real devices, such electronic system controllers, through analog and digital input, output hardware
  • 4. 44 Introduction : electric Hardware Solver (2/3) eHS : electric Hardware Solver • Circuit parameters and topology can be changed without regenerating the bitstream • Up to four (4) eHS cores can be interconnected • Data logging implemented on FPGA to record signals with time steps as low as 200 nanoseconds
  • 5. 55 eHS (electrical Hardware Simulation) Solver Automatic generation of NetList file (circuit.cct) Parsing NetList Nodal Analysis Approach Generating eHS matrixes Automatic methodology OUTPUTS FPGA Implementation USER INPUT Introduction : electric Hardware Solver (3/3) Structure of converter PSIM circuit editor (Circuit.psimsch)
  • 6. 66 Building a PSIM model with eHS solver Switches Sources Passive components Measurements PSIM Electrical Source Library
  • 7. 77 Parameter settings for switches Building a PSIM model with eHS solver For one circuit, the eHS solver supports a maximum number of 24 switches.
  • 8. 88 Building a PSIM model with eHS solver Parameter settings for passive components For one circuit, the eHS solver supports a maximum number of 60 non-switching devices (ie. L and C) and unlimited number of resistors.
  • 9. 99 Building a PSIM model with eHS solver Parameter settings for sources For one circuit, the eHS solver supports a maximum number of 16 inputs (voltage/current sources).
  • 10. 1010 Building a PSIM model with eHS solver Parameter settings for sources
  • 11. 1111 Building a PSIM model with eHS solver Parameter settings for measurement components For one circuit, the eHS solver supports a maximum number of 16 outputs (voltage/current measurements).
  • 12. 1212 Building a PSIM model with eHS solver • Each circuit requires at least one ground. • It is used as a reference by the solver and can be placed anywhere in the circuit. Ground
  • 13. 1313 Building a PSIM model with eHS solver • There are two types of inputs and one type of output to eHS: Inputs 1. Electrical source (voltage or current) referred to as “U” 2. Pulse controlling a power switch referred to as “SW” Outputs 1. Electrical measurement (voltage or current) referred to as “Y” • The order of the inputs and outputs in the vector is determined by their name. Note: 1. The names for all blocks used for input and output must start with the type+index (U01/SW02/Y01) and the “0” cannot be ignored 2. The order of the inputs and outputs must match the index 3. The index must be consecutive (ie. 01,02,03; not 01,03) Rules of design – Inputs and Outputs
  • 14. 1414 Building a PSIM model with eHS solver Example of a valid PSIM model for eHS
  • 15. 1515 Building a PSIM model with eHS solver Example of a valid PSIM model for eHS switches SW01 SW02 SW03 SW04 SW05 SW06
  • 16. 1616 Building a PSIM model with eHS solver Example of a valid PSIM model for eHS sources U01 U02 U03
  • 17. 1717 Building a PSIM model with eHS solver Example of a valid PSIM model for eHS measurements Y01 Y02 Y06 Y03 Y05 Y04 Y08 Y07 Note: the snubber resistors across the switches are not required for eHS simulation; this may be useful to prevent discharge of output capacitor for no-load cases
  • 18. 1818 Building a PSIM model with eHS solver Inserting the PSIM circuit into an RT-LAB Model • Implements the driver that manages all communication with the eHS firmware. • Initializes the solver and transmission in real time of the circuit control signals (current and voltage source control signals, switching information of the switches). Note: You can find more details for eHS dual block in the Matlab- eFPGAsim Blockset Help (eHS User Guide)
  • 19. 1919 • This block enables the developer to simulate each part of the circuit with exactly the same eHS solver used for FPGA simulation with the same sample time. • Users can then compare results expected with eHS with PSIM results using off-line simulation, without using FPGA hardware • The effect of parasitic inductors and capacitors added by eHS can then be easily assessed • This block enables the developer to connect the block exactly as it is connected inside the FPGA-based board firmware • One offline block should be added for each eHS solver core Building a PSIM model with eHS solver Offline Simulation
  • 20. 2020 How to Start The following toolboxes are needed: • RT-LAB • RT-EVENTS (to simulate accurate controller on CPU) • eFPGAsim (to interconnect the CPU and FPGA and load the bitstream) Supported FPGA boards: • OP5600 : ML605 VIRTEX 6 • OP4500: KINTEX 7 • OP5607: VIRTEX 7 • NI cRIO – ZYNQ7020 Software versions: • RT-LAB v10.6.4.280 • PSIM v9.3 (64 bits) Requirements
  • 21. 2121 Create a PSIM Model with eHS supported blocks Create a CPU Model Simulink Save the CPU Model on the same folder with the PSIM model Create a RT-LAB Project Build the model and Load/Execute (XHP mode) Compare online simulations with PSIM simulations • Make a Simulink model for Controller and I/O • Choose a fixed-step solver, sample time (Ts) • Configure parameters of Dual eHS block • Add Simulink CPU model to RT-LAB • Assign and configure a target to the model • Rename elements using the eHS naming convention • Select the order of outputs Step 1 Step 2 Step 3 How to Start
  • 27. 2727 DEMO • Boost Converter • PSIM simulation • eHS offline • Real-time simulation • Inverter 3 ph • PSIM simulation • eHS offline • Real-time simulation • Inverter 3 Level (NPC) • Real-time simulation
  • 29. 2929 Prospective All I/O specifications and acquisition control will be specified, configured and controlled outside of Matlab/Simulink.
  • 30. 3030 Prospective – 4Q2014 Create a PSIM Model with eHS supported blocks Create a CPU Model Simulink Save the CPU Model on the same folder with the PSIM model Create a RT-LAB Project Build the model and Load/Execute (XHP mode) Compare online simulations with PSIM simulations • Choose fixed-step solver, sample time (Ts) • Configure parameters of Dual eHS block • Control + I/O • Add CPU Simulink model • Assign and configure a target to the model • Rename elements using the eHS naming convention • Select the order of outputs Modeling Steps Step 1 Step 2 Step 3
  • 31. 3131 Prospective – 4Q2014 Create a PSIM Model with eHS supported blocks Create a RT-LAB Project Build the model and Load/Execute (XHP mode) Compare online simulations with PSIM simulations • Assign and configure a target to the model • I/O • Rename elements by using the eHS naming convention • Select the order of outputs Modeling Steps Step 1 Step 2