Академический Документы
Профессиональный Документы
Культура Документы
This work was supported in part by the Office of Naval Research (ONR)
grant # N0014-01-1-0760.
F. M. Uriarte and Karen L. Butler-Purry are with the Power System
Automation Lab of the Electrical and Computer Engineering Department at
Texas A&M University (e-mail: fabian@tamu.edu, klbutler@ee.tamu.edu,
URL: http://psalserver.tamu.edu).
1992
primitive (or brute-force) mode of operation that is designed accomplish. The data from the real-time runs was logged to a
to execute target applications at samples times close to the delimited .TXT file. Although a smaller ǻt was possible with
limit of the CPU, interrupt-free, accurately, and with neither ETS, it was matched to xPC’s for comparison purposes to
overflow nor latency [18]. The advantage of this mode of compare equal time steps.
operation is its determinism for complex models such as DSP,
control, or power applications while its main disadvantage is IV. CASE STUDIES
that it shuts down all communication (tuning and data display) To determine the validity of the results in real-time, offline
during run-time. Polling mode was only used because the simulation results with variable ǻt using the ode23t solver
model was large and streaming real-time data was not of were used for comparison. The offline, xPC, and ETS
interest. simulations were able to simulate the system of Fig. 1 as a
whole while GRT required the optimizations noted. A table
TABLE 4 - XPC TARGET REAL-TIME SIMULATION SETTINGS
xPC Target 2.6.1 comparing the whole and reduced-sized models is given in
C compiler MS Visual C/C++ 6.0 Table 5.
Max Model Size 1MB
Host Target Comm. TCP/IP TABLE 5 - SCHEMATIC INFORMATION FOR SYSTEM OF FIG. 1
Target Scope Enabled Whole Reduced
Target Mouse None (Offline, xPC and ETS) (GRT)
TCP/IP Target Driver I82559 States* 85 10
TCP/IP Bus Type PCI Inputs 71 11
Step type Fixed Outputs 74 14
Solver type Ode5 (Dormand-Prince) Switches 66 6
Simulation type Discrete *MATLAB/SIMULINK® uses a state-space based instead of nodal-based realization for the
Step size 750µs system’s solution
Execution Model Real-Time A. Cas e A
Real-Time interrupt source Timer
xPC Target Mode Polling The first study produced transients during system startup by
TLC Option -axpcCPUClockPoll=1700 closing and re-opening the master breaker. The observable
variable was the line voltage at the receiving-end as shown in
Fig. 2. During steady-state no differences were noted between
C. ETS
any of the four curves but during the master breaker’s
Made available by NI while produced by [19], ETS switching times, small transient differences are picked up by
converts a PC into a real-time simulator. The principle is the offline simulation but not by the fixed-step schemes (these
similar to xPC Target’s, except that ETS requires a secondary are shown encircled). For the study in question, the offline
FAT32 / IDE hard-drive (not so common anymore) to log data results are considered correct since produced under variable
and receive files from the host-PC. The target-PC is treated as step simulation conditions using the entire schematic as shown
a PXI device by NI and thus requires additional software to be in Table 5. Even though the GRT schematic was of different
installed on it such as NI-VISA Server and LabVIEW’s Real- size, it didn’t produce major differences in regards to xPC and
Time Module for communication purposes. Also, a boot-disk ETS in this case. The major differences in this case were
for a PXI device must be created to boot the target-PC. The produced by switching (a color printout is recommended to
communication from the host-PC to the target-PC is via distinguish the traces).
TCP/IP and has a more complete settings user-interface
(called Measurement and Automation Explorer or MAX) for B. Case B
file management than xPC Target’s (called xPC Explorer). A The second case disconnected all loads from the receiving-
product by NI called the Simulation Interface Toolkit (SIT) is end bus and observed the line voltage as shown in Fig. 3. No
required to make possible the connection between a differences in steady-state were observed either and only a
LabVIEW’s virtual interface (VI) Simulink models. When minor under-shoot in Vab at the time of disconnection was
the SIT is installed on the host-PC, it adds a target to the RTW noticed. During the exponential decay, the fixed-step schemes
appearing as ‘nidll.tlc’. When selected, the Simulink model is loss some phase accuracy in Vab while in the other phases it
compiled into a .DLL file which is then embedded onto the was not noticed as much. Overall, the results are in good
target-PC; in this case the target-PC running ETS. One can agreement. The GRT even with its optimized model didn’t
use the original LabVIEW interface associated (via SIT) with show any differences in transient realm either. xPC and ETS
an offline power system model in Windows to interact with produced identical results again.
the real-time simulation in ETS; this is one of the main
C. Case C
attractions of ETS.
The logging of data by ETS can be streamed to the VI The third study starts with the master breaker closed and
controlling the real-time simulation without loss of shows the steady-state load bus current. Transients are
determinism by using RT-FIFO programming techniques [20]. produced by switching the inductor cart from tap 4-to-1 at
These techniques create timed priority loops that allow the t=0.8s and switching the light-bulb bank from tap 5-to-7 at
processor to write data, if possible and when available, by t=0.85s. All simulations produced identical results. The only
giving priorities to certain events. A problem with this is that difference was a small overshoot in phase a’s current during
it requires somewhat advanced LabVIEW understanding to the offline simulation; steady-state and transient results shown
1993
good agreement. noticed. A table comparing these facts and other important
facts is presented in Table 6.
1994
the other hand, real-time simulations with xPC and ETS were [13] P. S. Shiakolas and D. Piyabongkarn, "On the development of a
real-time digital control system using xPC-Target and a magnetic
achieved without simplifications running on an external stand-
levitation device," presented at Decision and Control, 2001.
alone machine where it was devoted full processing power. Proceedings of the 40th IEEE Conference on Volume 2, 4-7 Dec.
As of this work, it has been shown that a conventional PC 2001 Page(s):1348 - 1353 vol.2, 2001.
alone still lacks the power to model larger power systems in [14] B. A. Guvenc, B. Sencer, M. Giray, and L. Guvenc, "Use of a
real-time due to the small step size requirement and large simulink engine blockset in real time hardware in the loop
simulations," presented at Mechatronics, 2004. ICM '04.
schematic size. It is true that PCs can handle real-time Proceedings of the IEEE International Conference on 3-5 June
simulations of a power system as shown in this work, but it is 2004 Page(s):410 - 414 2004.
recommended that they still be smaller plants of about the [15] MathWorks Inc., REAL-TIME WORKSHOP: for use with simulink:
shown network, sections of bigger plants, and limited to the getting started: version 6. Natick, MA: MathWorks, 2005.
[16] MathWorks Inc., SIMPOWERSYTEMS: for use with simulink:
use of equivalent networks where possible. Also the use of version 4. Natick, MA: MathWorks, 2005.
stand-alone or dedicated hardware is recommended when [17] F. M. Uriarte and K. L. Butler-Purry, "Real-Time Simulation of a
available For larger and more complex power system Small-Scale Distribution Feeder Using Simulink and a Single PC,"
models, costly real-time simulators or PC clusters [10] must presented at NAPS (North American Power Symposium), Iowa
State University, 2005.
still be used. Nevertheless, in all cases, the steady-state result [18] MathWorks Inc., xPC TARGET: for use with real-time workshop:
was the same. Generally speaking, the results are in good user's guide version 2. Natick, MA: MathWorks, 2005.
agreement and the feasibility of using PCs for real-time [19] [online] Ardence (formerly VenturCom), http://www.ardence.com.
simulations of smaller-size power systems was confirmed as [20] National Instruments, LabVIEW Real-Time Model User's Manual.
Austin, TX: National Instruments, 2004.
shown in this study.
VI. REFERENCES
[1] [online] Opal-RT RTEES, http://www.opal-
rt.com/productsservices/simulations_testequipment/rtlab_ees/index
.html.
[2] [online] RTDS, http://www.rtds.com.
[3] C. D. French and P. P. Acarnley, "Simulink real time controller
implementation in a DSP based motor drive system," presented at
DSP Chips in Real Time Measurement and Control (Digest No:
1997/301), IEE Colloquium on 25 Sept. 1997 Page(s):3/1 - 3/5,
1998.
[4] C. D. French, J. W. Finch, and P. P. Acarnley, "Rapid prototyping
of a real time DSP based motor drive controller using Simulink,"
presented at Simulation '98. International Conference on (Conf.
Publ. No. 457) 30 Sept.-2 Oct. 1998 Page(s):284 - 291, 1998.
[5] A. G. Jack, D. J. Atkinson, and H. J. Slater, "Real-time emulation
for power equipment development. I. Real-time simulation,"
Electric Power Applications, IEE Proceedings, vol. 145, pp. 92,
1998.
[6] H. J. Slater, D. J. Atkinson, and A. G. Jack, "Real-time emulation
for power equipment development. II. The virtual machine,"
Electric Power Applications, IEE Proceedings, vol. 145, pp. 153,
1998.
[7] R. Crosbie, J. Zenor, R. Bednar, D. Word, N. Hingorani, and T.
Ericsen, "High-Speed, scalable, real-time simulation using DSP
arrays," presented at Parallel and Distributed Simulation, 2004.
PADS 2004. 18th Workshop on 16-19 May 2004 Page(s):52 - 59
2004.
[8] M. Basso and G. Bagni, "ARTIST: a real-time interactive
Simulink-based telelab," presented at Computer Aided Control
Systems Design, 2004 IEEE International Symposium on 2-4 Sept.
2004 Page(s):196 - 201, 2004.
[9] C. Dufour and J. Belanger, "A PC-Based Real-Time Parallel
Simulator of Electric Systems and Drives," presented at Parallel
Computing in Electrical Engineering, 2004. International
Conference on 7-10 Sept. 2004 Page(s):105 - 113, 2004.
[10] J. A. Hollman and J. R. Marti, "Real Time Network Simulation
With PC-cluster," IEEE Transactions on Power Systems, vol. 18,
pp. 563-569, 2003.
[11] M. Matar, M. Abdel-Rahman, and A. Soliman, "Developing an
FPGA coprocessor for real-time simulation of power systems,"
presented at Electrical, Electronic and Computer Engineering,
2004. ICEEC '04. 2004 International Conference on 5-7 Sept. 2004
Page(s):791 - 794 2004.
[12] F. C. Teng, "Real-time control using Matlab Simulink," presented
at Systems, Man, and Cybernetics, 2000 IEEE International
Conference on Volume 4, 8-11 Oct. 2000 Page(s):2697 - 2702
vol.4, 2000.
1995