Académique Documents
Professionnel Documents
Culture Documents
Hardware-in-the-Loop
(HIL) Modeling and
Simulation
2008 Mathworks Aerospace and Defense Symposium
April 2, 2008
4/17/2008 2:20 PM
4/17/2008 2:20 PM
4/17/2008 2:20 PM
4/17/2008 2:20 PM
4/17/2008 2:20 PM
Configure Output
A
B
C
Input Speed
Voltage
Current
m
-C-
-C-
Pm
A
Vf_
C
Output Signal
Three-Phase Breaker
com
Synchronous Machine
pu Fundamental
80 MW Load
Analog Input
From Wave
Device
Vabc
Iabc
C
Internal
Voltage
4/17/2008 2:20 PM
To Wave
Device
100 MW Load
pow ergui
Discrete,
Ts = 0.0001 s.
Breaker Command
Breaker Control
Breaker
Fault
Breaker
Feedback
com
A
B
C
Three-Phase Fault
4/17/2008 2:20 PM
4/17/2008 2:20 PM
4/17/2008 2:20 PM
4/17/2008 2:20 PM
Time
HIL
Relay
Relay is Initialized
Simulation Begins
(Steady State)
Fault Condition
Exists
Relay Receives
Data from
Simulation
Fault Cleared
Contact Closes
Contact Bouncing
Virtual
Breaker
Opens
Relay Receives
Data from
Simulation
Breaker Closes
Simulation Returns
To Steady State
10
4/17/2008 2:20 PM
Relay Receives
Data from
Simulation
100 MW Load
A
pow ergui
Discrete,
Ts = 0.0001 s.
Machine
Mearsurments
Input Speed
m
-C-
Internal
Voltage
E
C
Simplified Synchronous
Machine pu Units
Digital Input
Digital Input
Breaker Control
Analog Output
Analog
Output
Output Signal
Three-Phase Breaker
com
Breaker Command
National Instruments
PCI-6733 [auto]
4/17/2008 2:20 PM
Vabc
Iabc
Digital
Input
11
Current
Configure Output
Voltage
Pm
SSM
-C-
B
C
National Instruments
PCI-6733 [auto]
Breaker
80 MW Load
Fault
Breaker
Feedback
com
A
B
C
Three-Phase Fault
Simulation Time
Step: 10 s
Bolted Fault @
0.25s ~ 10 cycles
Current
2
0
-2
-4
-6
0.22
0.23
0.24
0.25
0.26
0.27
time
0.28
0.29
0.3
0.31
0.32
0.28
0.29
0.3
0.31
0.32
Voltage
1
0.5
Voltage (V)
Clears fault
immediately
Closes Breaker in
25ms later
-0.5
-1
0.22
0.23
0.24
0.25
0.26
0.27
time
Trip Signal
Trip
Fault
Switch bouncing
can be seen
Detects fault at
1.5pu overcurrent
12
4/17/2008 2:20 PM
Trip
0.8
0.6
0.4
0.2
0
0.22
0.23
0.24
0.25
0.26
0.27
time
0.28
0.29
0.3
0.31
0.32
Three
Phase
Currents
Fault
Detection
Signals
13
4/17/2008 2:20 PM
Con
Expensive
Not standard in Computers Add-on PCI Card
Multi-port Interface for Control Simulation
14
4/17/2008 2:20 PM
Conclusion
The relay in the HIL environment was able to receive
Voltage and Current analog signals from the power
system simulation running in a Simulink real-time
environment.
The relay acted on the signals as if the relay had
been installed in an actual power system.
The relay was able to communicate back to the
Simulink simulation. (Closing the Loop)
The simulation used the relay feedback information
to control a virtual breaker and clear a fault.
15
4/17/2008 2:20 PM
Conclusions, Cont.
For very simple HIL interface needs, a computer sound card
can be used as a data acquisition tool.
For multiple signals, multiple sound cards could be used.
For more complex HIL interface needs, a dedicated I/O card
should be chosen.
Windows Real-Time Target simulation environment is
necessary for this HIL testing.
Next stage is to use xPC target, as it is completely independent
of windows.
HIL provides a cost effective method of testing prototype
hardware with standard tools.
Simulink/MATLAB real-time environment
Desktop Computer/PC
Data Acquisition Card
Sound Card
Dedicated I/O Card National Instruments DAQ
16
4/17/2008 2:20 PM
Questions
17
4/17/2008 2:20 PM