Beruflich Dokumente
Kultur Dokumente
Project Team
Ali Mehrizi-Sani, Project Leader
Saleh Ziaeinejad
Washington State University
August 2015
Acknowledgements
This is the final report for the Power Systems Engineering Research Center (PSERC) research
project titled Establishing a Software-Based Real-Time Simulation Platform for a Controls Laboratory for Training, Research and Development, and Experimentation (project T-54G). We express
our appreciation for the support provided by PSERC industry members and by the National Science
Foundation under the Industry / University Cooperative Research Center program.
We wish to thank our industry advisors, Juan Castandea and Andy Paylan from Southern
California Edison. We also thank Om Nayak (Nayak Corporation) and Craig Muller and Dharshana Muthumuni (Manitoba HVDC Research Centre) for the discussions about PSCAD/EMTDC
software tool.
Executive Summary
A distribution system may include distributed energy resources (DER), capacitors, and power
electronic devices such as active filters and power factor correctors. A central controller has a
supervisory role over the local controllers. In the process of designing the central and local controllers, one key requirement is their evaluation with simulation tools. Traditionally, the controllers
are evaluated with either offline or real-time simulators. The first approach is not comprehensive
since it can not interface to the physical controller hardware, and the second approach is expensive.
This project develops a software-based real-time simulator, which is a simple but useful tool for
evaluating the controller hardware that will eventually implement the control algorithms in the field.
In this project, the distributed system is simulated in PSCAD (an offline power system simulator)
and the control algorithms are implemented in physical controller hardware. Two structures are
developed for interfacing the simulation environment with the controller hardware. An algorithm is
proposed that enforces PSCAD to run in real-time. Therefore, the developed interfacing structure
and real-time enforcement scheme provide a hardware-in-the-loop (HIL) real-time simulation tool
that can test the performance of controllers in a system.
ii
Table of Contents
1 Introduction
1.1 Statement of Problem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.2 Research Objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.3 Organization of Report . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2 Software-Based Real-Time Simulation
2.1 Software Comparison . . . . . . . . . . . . . . . . . . . . .
2.2 Study System . . . . . . . . . . . . . . . . . . . . . . . . .
2.3 HIL Simulation Using PSCAD, MATLAB, and LabVIEW
2.4 HIL Simulation Using PSCAD and LabVIEW . . . . . . .
2.5 Synchronizing Real-Time Simulation . . . . . . . . . . . .
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
1
1
2
2
3
. 3
. 3
. 5
. 8
. 14
25
References
33
iii
List of Figures
2.1
2.2
2.3
2.4
2.5
2.6
2.7
2.8
2.9
2.10
2.11
2.12
2.13
2.14
2.15
2.16
2.17
3.1
3.2
3.3
3.4
3.5
3.6
iv
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
4
5
.
.
.
6
7
7
. 8
. 9
. 10
.
.
.
.
11
11
12
13
. 13
. 14
. 15
. 15
.
.
.
.
.
.
17
17
18
18
19
19
3.7
3.8
4.1
HIL real-time simulation results (readings of PSCAD plots): (a) voltages of the
capacitor buses when the external controller is not interfaced to the simulation and
both capacitors are switched off; (b) voltages of the capacitor buses when the external
controller is interfaced to the simulation; (c) commands of the capacitor switches in
the presence of the external controller (0 V means on, 5 V means off). . . . . . . . . 20
HIL real-time simulation results (measurements of the physical oscilloscope): (a)
voltages of the capacitor buses when the external controller is not interfaced to
the simulation and both capacitors are switched off (0.0125 pu/div); (b) voltages
of the capacitor buses when the external controller is interfaced to the simulation
(0.0125 pu/div); (c) commands of the capacitor switches in the presence of the
external controller (0 V means on, 5 V means off) (2 V/div). . . . . . . . . . . . . . 22
Improving the capabilities of the introduced HIL real-time simulation by using parallel computers to run a PSCAD file (recommended future work). . . . . . . . . . . . 24
List of Tables
2.1
vi
Chapter 1
Introduction
1.1
Statement of Problem
A distribution system may include distributed energy resources (DER), capacitors, and power
electronic devices such as active filters and power factor correctors. Each of these components is
controlled by a dedicated local controller [1], [2]. A central controller has a supervisory role over
the local controllers [3], [4]. Design of the local controllers and the central controller is one of the
key challenges for a distribution system operator [5].
One key question in the design of the local and central controllers is how to evaluate their performance. One simple solution is to use an offline simulation package such as MATLAB/Simulink,
PSCAD/EMTDC, and DigSILENT PowerFactory. In an offline solution, the entire distribution
system together with all the local and central controllers need to be implemented in the simulation environment [6]. Although this solution enables a primary evaluation of the controllers, its
shortcomings are the following:
An offline simulation software is unable to verify if a specific controller hardware is able
to handle the computational burden of a given control algorithm [7]. Therefore, an offline
simulator is not a useful benchmark tool for selecting the controller hardware.
Most offline simulation software tools are unable to consider communication delays. The
delays that occur in physical systems can affect the performance of the system and result in
the failure of the designed controllers. Lack of the ability of an offline simulator to consider
such nonidealities of real systems makes it an unreliable measure of the effectiveness of the
controllers.
and OP7020), and Typhoon HIL (producer of HIL 4 Series and HIL 6 Series). All the real-time
simulators can be used to evaluate the performance of the controllers of a distribution system.
However, two factors limit their application. First, since the software and hardware architecture
of real-time simulators is complex, they tend to be expensive [9]. Second, since the real-time simulators are designed to perform a single task at a time, their availability is limited. Since the
utilities tend to use a purchased real-time simulator for several purposes (e.g., training, research,
and development), this limitation in availability hampers the usefulness of the commercial real-time
simulators.
1.2
Research Objectives
The goal of this project is to develop a software-based solution for HIL real-time evaluation of
the local and central controllers of a distribution system. The developed software-based real-time
simulator is able to interface to external controllers and verify their performance.
1.3
Organization of Report
The rest of this report is organized as follows: Chapter 2 compares different offline power system
simulators for selection of the most suitable software tool for integration with external controllers.
With the chosen simulation software, an example distribution system is modeled, and the reason
and the approach for reducing the size of this system are discussed. Two methods for interfacing the simulation environment to external controllers are introduced, and their advantages and
disadvantages are discussed. Also a method for synchronising the real-time simulation is proposed.
Chapter 3 presents the results of an HIL real-time simulation case study. In that case study, a
control algorithm for a sample distribution system is implemented by an external controller that is
interfaced to the simulation environment.
Chapter 4 presents the concluding remarks and recommends future work.
Chapter 2
Software Comparison
In this section, the selection of a simulation tool as the base for the proposed software-based realtime simulator is discussed. Since the goal is to simulate the controllers of a distribution feeder, the
suitable power system simulator needs to have the ability to model most power system components
and systems. In addition, it should be able to simulate a power system in all operating conditioned
(steady-state and transient). High speed of a simulation tool helps realization of the real-time
simulation. In addition, user friendliness and ease of use are two assets for a simulation tool.
based on the mentioned criteria, several simulation tools are compared. Among them, three
are chosen for a more detailed comparison: MATLAB/Simulink, DigSILENT/PowerFactory, and
PSCAD/EMTDC. Table 2.1 shows the results of this comparison.
MATLAB/Simulink is an easy-to-use general-purpose simulation program. However, it fails to
accurately model some power system components (examples are dynamic loads and transformer
configurations). In addition, it is relatively slow. Therefore, MATLAB/Simulink is not a good
option for HIL real-time simulation.
DigSILENT/PowerFactory is a specialized power system simulator suitable for a variety of
power system applications. It has the ability to perform 1) electromagnetic transient (EMT)based simulation to study fast system dynamics and 2) quasi-stationary simulation to study slower
dynamics. It has a built-in real-time simulation feature but this feature can not be used in EMTbased simulation. In EMT-based simulation, PowerFactory is relatively slow. The slowness hampers
the usefulness of DigSILENT/PowerFactory for HIL real-time simulation.
PSCAD/EMTDC is a powerful EMT-based simulation program widely used in the industry, research centers, and educational institutes. It includes the models of most power system components
and is the fastest simulation program compared to the other two. Because of its high speed, ability
to simulate power system components and systems in both transient and steady state conditions,
and ease of use and user-friendliness, PSCAD is chosen as the simulation tool for this project.
2.2
Study System
In this project, a distribution feeder of Southern California Edison (SCE) is chosen as the test
system. Fig. 2.1 shows the feeder. It includes several balanced and unbalanced loads, distribution
lines, and three switched capacitors.
Changing the state of the capacitor switches results in a change in the voltage profile of the
system. Although this distribution feeder can be used for the evaluation of different controllers that
3
Table 2.1
Comparison of three simulation programs for HIL real-time simulation
Feature
Simulink
PowerFactory
PSCAD
Limited
Extensive
Yes
Yes
Yes
Yes
Difficult
Yes
Yes
Good
Limited
No
Yes
Yes
Yes
Difficult
No
No
Good
Good
No
Yes
Yes
Yes
Easy
No
Yes
No
Yes
Yes
Easy
Good
Normal
Slow
Difficult
Limited
Normal
Slow
Medium
Limited
Fast
Fast
A
V
P = 1.668
Q = 0.7293
V = 0.9939
CYMDist results:
0.994 Vpu, 1688 kW, 736 kVar
A
C
B
A
C
CYMDist results:
B
P = 0.9305
Q = 0.9894
V = 0.9957
A
B
A
V
P+jQ P+jQ
P+jQ P+jQ P+jQ
C
B
A
C
B
P+jQ P+jQ P+jQ
A
B
C
Cap0049107
B
A
C
0.0
Cap0049107
B
1.2 [MVAR]
P = 3.864
Q = 1.936
V = 0.9946
A
C
A
V
A
1.8 [MVAR]
Cap0127213
B
P+jQ
P = 4.811
Q = 0.6977
V = 0.999
A
V
CLP_3C_#2
JCN_3C_750
C
A
CYMDist results:
P+jQ
P+jQ
Vcap3
0.0
Cap0127213
CLP_3C_750
JCN_3C_1000
N_CU_3C_#4
B
P+jQ
P+jQ
3 Phase
RMS
B
A
P+jQ
P+jQ P+jQ
-0.0009834 [MW]
1.649 [MVAR]
P+jQ P+jQ
C
A
JCN_3C_350
B
CLP_3C_1/0
P+jQ P+jQ
CYMDist results:
CLP_3C_1000
P+jQ P+jQ
P+jQ P+jQ
P+jQ P+jQ
CYMDist results:
1.012 Vpu, 10720 kW, 1869 kVar
A
V
A
V
P = 5.384
Q = -0.1029
V = 1.007
A
V
CYMDist results:
1.0067 Vpu, 5443 kW, -83 kVar
P = 4.952
Q = 0.7826
V = 1.002
P = 4.994
Q = 1.721
V = 1.007
ACSR_3C_653_336N
P = 10.59
Q = 1.821
V = 1.012
10.59 [MW]
1.821 [MVAR]
A
V
Cairns 12 kV
Ph
P+jQ P+jQ
P+jQ P+jQ
P+jQ
P+jQ
P+jQ
N_ACSR_3C_336
T1_CB
C
A
C
A
C
A
C
A
P+jQ P+jQ
P+jQ
N_ACSR_3C_#4
12.22
P+jQ
0.0
P+jQ
F
60.0
RL
RRL
T1_CB
P+jQ P+jQ
CYMDist results:
1.0016 Vpu, 5005 kW, 801 kVar
A
Cap0021542
-0.0006563 [MW]
1.121 [MVAR]
Cap0021542
0.0
P+jQ
P+jQ P+jQ
1.2 [MVAR]
C
A
-0.0006749 [MW]
1.108 [MVAR]
CYMDist results:
P+jQ P+jQ
C
RMS
Vcap13 Phase
ACSR_3C_653
N_CU_3C_2/0
N_ACSR_3C_1/0
Figure 2.1: SCE distribution feeder chosen for the case studies.
PSUBPSUB
QSUBQSUB
VSUBVSUB
Main : Graphs
: Graphs
0.100
12.00
Untitled
PSUB
Main : Graphs
QSUB
VSUB
0.075
0.050
0.025
1.00
0.000
-0.025
-0.050
-0.075
-0.100
sec
0.00
-2.00
x
0.10
0.20
0.30
0.40
0.50
0.60
0.70
0.80
0.90
1.00
0.0
1.0
2.0
3.0
4.0
5.0
6.0
7.0
8.0
sec
1.0
2.0
3.0
4.0
5.0
6.0
7.0
A
V
C
B
A
CYMDist results:
0.994 Vpu, 1688 kW, 736 kVar
CYMDist results:
0.996 Vpu, 936 kW, 993 kVar
A
V
C
B
A
A
B
C
Cap0049107
1.0
Cap0049107
1.2 [MVAR]
P = 3.833
Q = 1.915
V = 0.9908
A
V
-0.0008504 [MW]
1.637 [MVAR]
Cap0127213
3 Phase
RMS
Vcap3
0.0
Cap0127213
C
1.8 [MVAR]
-5.993e-016 [MW]
1.835e-012 [MVAR]
RMS
Vcap13 Phase
P = 0.9144
Q = 0.9696
V = 0.9883
CLP_3C_#2
JCN_3C_750
CLP_3C_750
B
P = 4.771
Q = 0.6829
V = 0.9951
C
A
V
JCN_3C_1000
CYMDist results:
0.999 Vpu, 4863 kW, 720 kVar
N_CU_3C_#4
JCN_3C_350
1.2 [MVAR]
CLP_3C_1/0
CYMDist results:
CLP_3C_1000
A
V
A
V
P = 5.346
Q = -0.1082
V = 1.002
A
V
CYMDist results:
1.0067 Vpu, 5443 kW, -83 kVar
P = 4.912
Q = 0.7653
V = 0.9981
P = 4.912
Q = 2.788
V = 1.002
CYMDist results:
1.0016 Vpu, 5005 kW, 801 kVar
Cap0021542
-0.0005725 [MW]
1.111 [MVAR]
Cap0021542
0.0
CYMDist results:
1.012 Vpu, 10720 kW, 1869 kVar
P = 10.46
Q = 2.905
V = 1.008
ACSR_3C_653_336N
10.46 [MW]
2.905 [MVAR]
A
V
Cairns 12 kV
Ph
T1_CB
0.0
N_ACSR_3C_336
F
60.0
N_ACSR_3C_#4
12.22
RL
RRL
T1_CB
ACSR_3C_653
N_CU_3C_2/0
N_ACSR_3C_1/0
regulate the voltage, the large number of its nodes (324) poses a challenge for real-time simulation
on a typical computer. In order to reduce the size of the system, the loads that are located close
to each other are aggregated. The corresponding distribution lines are also merged. Fig. 2.2 shows
the resulting system with 174 nodes. In our case studies, it is observed that the time needed to
simulate the reduced system is almost half of the time needed for the original system.
While reducing the system size results in considerable reduction in simulation time, it is important to verify that the reduced and original systems behave similarly. For this purpose, two
cases are studied. In the first case study, all the capacitors are switched off, and the real and
reactive powers that the rest of the power system (modeled by an ideal voltage source behind an
impedance) supplies to the distribution feeder are measured. Fig. 2.3 compares the results of the
original and reduced feeders. In the second case study, all the capacitors are switched on, and again
the supplied real and reactive powers are measured. Fig. 2.4 compares the results with the original
and reduced feeders. Based on Figs. 2.3 and 2.4, the reduced system closely resembles the behavior
of the original system.
PSUB
VSUBVSUB
QSUB
Main : Graphs
1.00
VSUB
0.50
0.00
-0.50
-1.00
-1.50
-2.00
sec
2.3
5.20
5.40
5.60
5.80
6.00
6.20
6.40
6.60
6.80
7.00
A software interface can facilitate the data exchange between PSCAD and the external controller.
In this proposed approach, because of its ease of use, MATLAB is chosen as the software interface.
Fig. 2.5 shows the overall structure of the proposed HIL simulation with MATLAB. MATLAB
receives output PSCAD data (any required simulation variable) and writes each data point to a
15
Ps
Qs
10
0
0
(a)
15
Ps
Qs
10
0
0
(b)
Time (s)
Figure 2.3: Comparison of the real and reactive powers (Ps and Qs ) supplied to the original and reduced
SCE feeders when all three capacitors are switched off: (a) the original feeder; (b) the reduced feeder.
15
Ps
Qs
10
0
0
(a)
15
Ps
Qs
10
0
0
(b)
Time (s)
Figure 2.4: Comparison of the real and reactive powers (Ps and Qs ) supplied to the original and reduced
SCE feeders when all three capacitors are switched on: (a) the original feeder; (b) the reduced feeder.
dedicated text file. These text files are used as the interface between MATLAB and LabVIEW
(interface to a data acquisition [DAQ] module). After reading these files, LabVIEW writes their
contents to the output channels of the DAQ module. The external controller then reads the data
from the DAQ module
National Instruments NI-cRIO series is a commercial controller with applications in power system [10]. In this project, an NI-cRIO 9024 is chosen as the external controller. It can communicate
with LabVIEW via NI input/output modules.
The output control commands of NI-cRIO are written to an NI output module, read by the DAQ
module, and transferred to LabVIEW. LabVIEW writes each command in a dedicated text file.
The text files are then read by MATLAB, and transferred to PSCAD. Oscilloscopes or voltmeters
can read the physical signals that are taken from the simulation file (simulation variables) or the
external controller (control commands).
Fig. 2.6 shows the connection of MATLAB to PSCAD. A custom PSCAD component is used
to specify the number and the type of inputs and outputs of the MATLAB function that is being
called. This MATLAB interface component is activated using a clock signal. In our studies, an
impulse train with an adjustable frequency determines the rate of data exchange between PSCAD
and MATLAB, as shown in Fig. 2.7. Increasing the frequency of this impulse train results in a
more frequent data exchange between PSCAD and MATLAB and enables capturing fast transients.
However, it also reduces the speed of simulation. The frequency of the impulse train signal is set
appropriately to avoid slower-than-real-time simulation.
In our studies, the custom MATLAB interface component is designed to handle two inputs
and two outputs of the MATLAB code. The associated Fortran code is shown in Fig. 2.8. All
the inputs and outputs are defined as real numbers. Fig. 2.9 shows a sample MATLAB code that
writes two signal values to text files and reads the contents of two other text files. Each signal can
be a measurement (e.g., voltage, current, and real or reactive power) of a node of the simulated
Figure 2.7: Generation of an impulse train signal to trigger the MATLAB-PSCAD interface component.
system. The number of input and output ports of the interface component can change based on
the requirements of the external controller (the number of required measurements and the number
of control commands). Increasing the number of ports results in a slower communication.
Fig. 2.10 shows the LabVIEW layout that is used for interfacing the text files and the DAQ
module. The selection of the DAQ module depends on the required number of inputs and outputs
and also the required communication rate. In this project, an NI-6009 DAQ module is used. It has
twelve digital inputs/outputs, eight analog inputs, and two analog outputs.
2.4
The structure shown in Fig. 2.5 (HIL simulation with MATLAB interface) is simple to implement
because MATLAB is an advanced and user-friendly programming tool. Another advantage of
MATLAB is its ability to read a text file without locking the file, hence allowing the other software
(LabVIEW) to write on the same file simultaneously. However, the need to run MATLAB in
addition to another software tool makes the simulation slow. The proposed solution is to establish
a PSCAD-LabVIEW link without MATLAB. In this case, a custom PSCAD component is developed
to read/write to text files. Fig. 2.11 shows a developed PSCAD component to read from two text
files and write to two text files. Fig. 2.12 shows the associated Fortran code.
In order to control the rate of data exchange with the text files, the Fortran code shown in
Fig. 2.12 allows triggering read/write actions by an external impulse train signal. Increasing the
frequency of the impulse train results in a more frequent data exchange between PSCAD and
text files and enables capturing fast transients but it results in a slower simulation. Similar to
Subsection 2.3, the frequency of the impulse train should be set to avoid slower-than-real-time
simulation.
When the Fortran code of the custom component reads the content of a text file, that file can
not be simultaneously modified by other software tool. When LabVIEW attempts to write to a file
that is being read by Fortran, a LabVIEW error halts the simulation. The proposed solution uses
an extra signal to prohibit LabVIEW from writing to a file that is being read by PSCAD.
Fig. 2.13 shows the structure of HIL simulation without MATLAB. The connections between
LabVIEW and DAQ, DAQ and NI input/output modules, and NI input/output modules and NI8
11
13
15
17
19
21
23
25
27
29
31
33
35
#STORAGE REAL: 6
!
!
! PSCAD/EMTDC MATLAB INTERFACE
! Module : $Name
#LOCAL INTEGER IVD1 1
IF ( $ Enabl .GT. 0 . 9 ) THEN
!
! T r a n s f e r EMTDC Input V a r i a b l e s t o Matlab I n t e r f a c e
!
!
! F i r s t I n put Array (REAL( 2 ) )
DO IVD1 1 = 1 , 2
STORF(NSTORF+IVD1 1 1) = $INPUT( IVD1 1 )
END DO
!
!
! C a l l PSCAD/EMTDC Matlab I n t e r f a c e :
! CALL MLAB INT( MFILEPATH , MFILENAME , I /O Formats )
!
CALL COMPONENT ID(ICALL NO , $#Component )
CALL MLAB INT( %: Dir \ $ Path , $Name , R( 2 ) , R )
!
ENDIF
!
! T r a n s f e r Matlab Output V a r i a b l e s from Matlab I n t e r f a c e
!
!
! F i r s t Output Array (REAL( 1 ) )
DO IVD1 1 = 1 , 2
$OUTPUT( IVD1 1 )=STORF(NSTORF+IVD1 1+2)
END DO
! Update STORx P o i n t e r s
NSTORF = NSTORF + 6
!
!
10
i s stored .
12
14
16
18
20
22
24
26
28
%Reading t h e s e c o n d t e x t f i l e
%I f not blank , t h e s e c o n d t e x t f i l e
y=c s v r e a d ( r e a d f i l e 2 ) ;
w2=s i z e ( y ) ;
w2=w2 ( 1 ) ;
i f w2>0
csvwrite ( auxfile2 , y) ;
end
i s stored .
10
(a)
(b)
Figure 2.10: Using a LabVIEW layout as the interface of the text files and DAQ module: (a) reading from
Fig. and
kk?.writing
Using to
a LabVIEW
file(b)
as reading
the interface
of text
files and
DAQ module
(a) reading
text files
DAQ module;
from DAQ
module
and writing
to the text
files.
from text files and writing to DAQ module (b) reading from DAQ module and writing to text
files.
Custom PSCAD block Converting real number to
Low-pass filter
used for noise
cancellation
project,
an NI-6009
Boolean
In this
DAQ module is used. It has xx digital inputs, xx
analog inputs, xx digital outputs, and XX analog outputs.
The selection of the DAQ module depends on the requirement for the number
of inputs and outputs and also the maximum communication rate. This is a tradeFigure 2.11: Custom PSCAD component to manipulate text files.
11
i f ( $ p u l s e 1 . g t . 0 . 5 ) then ! Checking t h e c l o c k s i g n a l
2
10
! P r o h i b i t i n g LabVIEW w r i t e a c t i o n
open ( u n i t =206 , f i l e = C: \ U s e r s \LIPE1\ Desktop \ i n t e r f a c i n g \ f i r s t PSCAD MATLAB c a s e \
matlab \ m f i l e s \ p u l s e f i l e )
write (206 , * ) 1.1
c l o s e ( u n i t =206)
! Write a c t i o n s
open ( u n i t =104 , f i l e = C: \ U s e r s \LIPE1\ Desktop \ i n t e r f a c i n g \ f i r s t PSCAD MATLAB c a s e \
matlab \ m f i l e s \ w r i t e f i l e 1 )
write (104 , * ) $in1
c l o s e ( u n i t =104)
12
14
16
18
20
22
24
26
28
! Read a c t i o n s
open ( u n i t =101 , f i l e = C: \ U s e r s \LIPE1\ Desktop \ i n t e r f a c i n g \ f i r s t PSCAD MATLAB c a s e \
matlab \ m f i l e s \ r e a d f i l e 1 )
r e a d ( 1 0 1 , * ,IOSTAT=IERR) $ out1
c l o s e ( u n i t =101)
open ( u n i t =102 , f i l e = C: \ U s e r s \LIPE1\ Desktop \ i n t e r f a c i n g \ f i r s t PSCAD MATLAB c a s e \
matlab \ m f i l e s \ r e a d f i l e 2 )
r e a d ( 1 0 2 , * ,IOSTAT=IERR) $ out2
c l o s e ( u n i t =102)
! A l l o w i n g LabVIEW w r i t e a c t i o n
open ( u n i t =206 , f i l e = C: \ U s e r s \LIPE1\ Desktop \ i n t e r f a c i n g \ f i r s t PSCAD MATLAB c a s e \
matlab \ m f i l e s \ p u l s e f i l e )
write (206 , * ) 0.1
c l o s e ( u n i t =206)
30
endif
12
Figure 2.14: HIL real-time simulation with multiple external controllers interfaced to the real-time simulator.
cRIO controller are all similar to the case with MATLAB (Fig 2.5).
As discussed in Chapter 1, a distribution system operator simultaneously exploits multiple
controllers. Therefore, the ability of the real-time simulator to simultaneously evaluate multiple
external controllers with HIL real-time simulation results in a credible evaluation of the performance
of a distribution system. The proposed software-based real-time simulator (with both structures
shown in Figs. 2.5 and 2.13) is able to run HIL real-time simulation with multiple external controllers
interfaced to the simulator. It should be noted that increasing the number of external controllers
results in an increased number of input/output ports of the PSCAD custom component and hence
a reduced simulation speed and possibility of losing real-time performance. The maximum number
of external controllers that are interfaced to the proposed HIL real-time simulator depends on the
computing power available (for example, by employing a faster CPU, more high-speed RAM, and a
solid-state drive, more external controllers can be interfaced). Fig. 2.14 shows interfacing multiple
external controllers during simulation of a distribution system.
13
c a l l d a t e a n d t i m e ( v a l u e s=v a l u e s )
rTime=( v a l u e s ( 5 ) ) * 6 0 .
! Hours t o minutes
rTime=(rTime+v a l u e s ( 6 ) ) * 6 0 . ! Minutes t o s e c o n d s
rTime=(rTime+v a l u e s ( 7 ) ) ! Seconds t o m i l l i s e c o n d s
11
r T i m e m i l i=v a l u e s ( 8 )
13
out=rTime
o u t t=r T i m e m i l i
15
END
2.5
The external controllers interfaced to PSCAD simulator use real-time operating systems (RTOS)
that always run in real time. However, PSCAD itself can run slower or faster than real time. A
crucial step toward realization of HIL real-time simulation is to synchronize and enforce PSCAD
to run in real-time.
The first step to enforce a real-time simulation is to avoid slower-than-real-time simulation by
appropriately choosing the simulation time step, plotting time step, and the rate of data exchange
with the external controllers.
The second step is to slow the simulation down if it runs faster than real time. This requires
knowing the simulation time and the real time, and hence the difference between these two. PSCAD
has a built-in component that returns the simulation time. To find the real time (system time), a
Fortran code (Fig. 2.15) is developed that reads the system time with accuracy of one millisecond.
PSCAD uses an older version of Fortran (Fortran 88) and can not compile the developed code that
includes accessing the real time. Therefore, the code is written using a newer version of Fortran
(Fortran 95) and is linked to PSCAD.
In the developed real-time enforcement scheme, at the instances that data exchange with text
files occurs, a developed custom PSCAD component checks whether the simulation time is ahead
of the real time. If needed, it executes a mathematically complex command to slow down the
simulation. Fig. 2.16 shows the timeline of the simulation process. After each step of regulating
the time, the simulation time is the same as the real time, and the real-time simulation is enforced.
Fig. 2.17 shows the difference between the real time and the simulation time of a sample simulation case study (the study distribution feeder without external controllers) without and with the
real-time enforcing scheme. Without real-time enforcement, the simulation runs faster than the real
time and the difference between the two linearly increases with time. With the proposed real-time
enforcement scheme, the difference between the real time and the simulation time is always around
zero and real-time simulation is realized.
14
0.2
0
-0.2
-0.4
-0.6
0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
15
Chapter 3
In order to evaluate the performance of the proposed software-based HIL real-time simulator, an
experimental setup as shown in Fig. 3.1 is developed. Fig. 3.2 shows using a physical oscilloscope
to measure the instantaneous value of a single phase voltage of a bus of the test feeder. Fig. 3.3
shows the test feeder that is the reduced SCE feeder augmented with three extra loads. The extra
loads can be manually switched on and off. The control objective is to maintain the voltages of
the buses of C1 and C2 within the specified limits. This objective can be realized by appropriate
switching of C1 and C2 .
Fig. 3.4 shows the diagram of a sample control algorithm that is implemented in NI-cRIO 9024
(the external controller). It compares the voltages of the capacitor buses with their corresponding
reference values. Hysteresis controllers decide whether each capacitor should be switched on or off.
If the voltage of a capacitor bus is above the maximum allowed value, the controller switches the
associated capacitor off. If the voltage of a capacitor bus is below the minimum allowed value,
the controller switches the associated capacitor on. If the voltage of a capacitor bus is within the
allowed limits, the controller keeps the status of the associated capacitor switch unchanged.
In the implemented control algorithm, reference voltages of the capacitor buses are chosen to
be VC1 = 0.9875pu and VC2 = 0.9940pu, and the bands of the hysteresis controllers are chosen to
be VC1 = 0.0075 pu and VC2 = 0.0040 pu. With this selection of the reference voltages and
the hysteresis bands, when the extra loads are switched on and off, the voltage of the capacitor
buses violate the specified limits but can return to allowed limits if the external controller reacts
appropriately.
Based on the diagram shown in Fig. 3.4, the external controller needs to read two analog
signals from the simulation file (VC1 and VC2 ) and send two digital commands to the simulation
environment. Therefore, one analog input module and one digital output module are required.
The analog input module that is used is an NI 9229, which has four input channels. The digital
output module that is used is an NI 9474, which has eight output channels. Fig. 3.5 Shows NIcRIO 9024 with two I/O modules mounted on its chassis and Fig. 3.6 shows the hysteresis controllers
implemented in NI-cRIO through a LabVIEW interface.
In the simulation case studies, the HIL real-time simulation runs for 110 seconds. At t = 70 s,
all the extra loads are switched on. Fig 3.7 shows the simulation results shown in PSCAD without
and with the external controller interfaced to the simulator. Prior to t = 70 s, both C1 and C2
are switched off and their bus voltages are within the allowed limits (VC1 [0.98, 0.995], VC2
[0.990, 0.998].) After t = 70 s, switching the extra loads on results in a decrease in the voltages of
16
Figure 3.1: Implemented setup of the proposed software-based HIL real-time simulation.
Figure 3.2: Using oscilloscope for observing the single phase voltage of a bus.
17
A
V
C
B
A
CYMDist results:
0.994 Vpu, 1688 kW, 736 kVar
CYMDist results:
0.996 Vpu, 936 kW, 993 kVar
A
V
C
B
Extra loads
loadswitch
C
Cap0049107
RMS
Vcap13 Phase
B
C
-5.993e-016 [MW]
1.835e-012 [MVAR]
A
V
0.0
Cap0127213
1.8 [MVAR]
-0.0008504 [MW]
1.637 [MVAR]
1.2 [MVAR]
C1
Cap0127213
3 Phase
RMS
Vcap3
B
A
C3
CLP_3C_#2
JCN_3C_750
P+jQ P+jQ P+jQ
A
CLP_3C_750
B
A
V
P = 4.771
Q = 0.6829
V = 0.9951
JCN_3C_1000
CYMDist results:
0.999 Vpu, 4863 kW, 720 kVar
N_CU_3C_#4
JCN_3C_350
1.2 [MVAR]
CLP_3C_1/0
CYMDist results:
1.0067 Vpu, 5057 kW, 1744 kVar
3 PhaseVcap2
RMS
CLP_3C_1000
A
V
A
V
P = 5.346
Q = -0.1082
V = 1.002
A
V
P = 4.912
Q = 0.7653
V = 0.9981
P = 4.912
Q = 2.788
V = 1.002
CYMDist results:
1.0067 Vpu, 5443 kW, -83 kVar
CYMDist results:
1.0016 Vpu, 5005 kW, 801 kVar
writevoltage
Cap0021542
-0.0005725 [MW]
1.111 [MVAR]
C2
P = 10.46
Q = 2.905
V = 1.008
ACSR_3C_653_336N
10.46 [MW]
2.905 [MVAR]
A
V
Cairns 12 kV
Ph
0.0
N_ACSR_3C_336
T1_CB
60.0
N_ACSR_3C_#4
12.22
RL
RRL
T1_CB
0
P = 3.833
Q = 1.915
V = 0.9908
CYMDist results:
0.995 Vpu, 3904 kW, 1952 kVar
P = 0.9144
Q = 0.9696
V = 0.9883
ACSR_3C_653
N_CU_3C_2/0
PSUB
VSUBVSUB
QSUB
Main : Graphs
VSUB
2.00
1.50
1.00
0.50
0.00
-0.50
-1.00
-1.50
Switching
command for C1
Component representing
interface to LabVIEW
A
-2.00
sec
10
20
30
40
50
Cap0049107
G
Vcap1 1 + sT
G
Vcap2 1 + sT
in1
in2
in3
0.0
interfacing
out1
out2
out3
B Comparator
0.5
Cap0021542
pulse1
clook
B Comparator
0.5
clook
*
1000
D + timerr.f
D ++
S/H
in out
hold
out
Switching
command for C2
D + F
outt
timediff
A
TIME
0.001
swtch
D + -
B Comparator
Real-time
F
S/H
in out
hold
Real-time
NO
YES
*
1000
G
Vcap2 1 + sT
Matlab : Graphs
Matlab : Graphs
cp1V
2.00
ttt
2.00
Graphs
cp2V
G
Vcap3 1 + sT
1.50
cp3V
1.00
1.50
0.50
1.00
0.00
0.50
-0.50
0.00
-1.00
-0.50
-1.50
-1.00
-2.00
-1.50
sec
10
-2.00
sec
10
20
30
40
50
60
70
80
90
100
loadswitch
Untitled
Mai...
Untitled
on
off
20
30
40
50
60
70
80
90
100
18
60
70
80
90
100
19
VC1
1.02
VC2
1
0.98
0.96
0.94
20
40
60
80
100
120
(a)
VC1
1.02
VC2
1
0.98
0.96
0.94
20
40
60
80
100
120
Switch commands
(b)
C1
C2
5
0
-5
20
40
60
80
100
120
(c)
Time (s)
Figure 3.7: HIL real-time simulation results (readings of PSCAD plots): (a) voltages of the capacitor buses
when the external controller is not interfaced to the simulation and both capacitors are switched off; (b)
voltages of the capacitor buses when the external controller is interfaced to the simulation; (c) commands of
the capacitor switches in the presence of the external controller (0 V means on, 5 V means off).
both capacitor buses. In the simulation case without the external controller, the voltages of both
capacitor buses become less than the minimum allowed limits, Fig 3.7(a). In the simulation case
with the external controller interfaced to the simulation, the controller (NI-cRIO) switches C1 on.
This action of the controller regulates the voltages of the capacitor buses within the allowed limits
(VC1 = 0.9827 pu and VC2 = 0.9923 pu), Fig 3.7(b).
Fig. 3.8 shows the results of the same simulation case study measured by a physical oscilloscope.
Similarity of the results shown in Figs. 3.7 and 3.8 show that an external measuring devices (e.g.,
voltmeter and oscilloscope) can be used to measure the variables of the simulated distribution
system when the HIL real-time simulation is running. The time scales of Fig. 3.8 are the same
as those of Fig. 3.7. This shows the realization of the real-time simulation using the proposed
structure for real-time enforcement.
3.2
Different parts of the simulation case studies are recorded as video clips. This section briefly
describes the contents of the recorded video clips.
In the first video clip, http://goo.gl/q9QSb5, the goal of the proposed software-based HIL realtime simulator is described and the hardware and software are introduced. In addition, the test
distribution feeder is introduced, and the structure of the controllers that are used to regulate the
20
21
(a)
(b)
(c)
Figure 3.8: HIL real-time simulation results (measurements of the physical oscilloscope): (a) voltages of
the capacitor buses when the external controller is not interfaced to the simulation and both capacitors are
switched off (0.0125 pu/div); (b) voltages of the capacitor buses when the external controller is interfaced
to the simulation (0.0125 pu/div); (c) commands of the capacitor switches in the presence of the external
controller (0 V means on, 5 V means off) (2 V/div).
22
Chapter 4
Conclusion
4.1
This project develops a software-based HIL real-time simulation tool that can be used for evaluating the controllers of a distribution system. Two different structures for interfacing the external
controllers to the simulation environment are proposed. The first structure uses MATLAB for
interfacing. This structure is simple to implement, but it is relatively slow. The second structure establishes a direct link between the simulation environment and LabVIEW (interface to the
external controllers). Because of the requirement for running the simulation study in real-time,
an algorithm for synchronizing and enforcing the real-time simulation is proposed. The proposed
algorithm compares the simulation time with real time and slows the simulation down if needed.
An SCE distribution feeder is chosen for the studies. First, by aggregating the loads and the
distribution lines, the the number of nodes of the feeder system is reduced. This reduction increases
the simulation speed and facilitates the real-time simulation. The presented simulation case studies
show the similarity of the performance of the original system and the reduced one and hence the
validity of the use of the reduced feeder as the test system.
The goal of the control algorithm is to regulate the bus voltages by appropriately switching the
capacitors of the distribution system on and off. In the simulation case studies, the proposed HIL
real-time simulator is used to evaluate the performance of a sample hysteresis-based voltage control
algorithm implemented in an external controller hardware (NI-cRIO 9024). The simulation case
studies show the ability of the proposed HIL real-time simulator to verify the effectiveness of the
studied hysteresis-based voltage controller.
4.2
Future Work
Figure 4.1: Improving the capabilities of the introduced HIL real-time simulation by using parallel computers
to run a PSCAD file (recommended future work).
Power hardware in the loop: The capability of performing power hardware in the loop (PHIL)
adds to the validity of the real-time simulation results. The challenges and possibilities of a
software-based power-hardware-in-the-loop (PHIL) real-time simulator can be investigated.
On-line enforcement of real-time: A structure that synchronizes and enforces real-time simulation by on-line adaptation of the simulation settings can be proposed. This sructure can
obviate the need for the first step of the two-step real-time enforcement scheme that is proposed in this report.
Evaluation of remote controllers: Interfacing an external hardware to a remote computer can
be investigated. This realizes a remote assessment of the distribution system controllers.
Waveform relaxation: Waveform relaxation (WR) is a time-domain method used for the analysis
of large, nonlinear dynamical systems. WR method decomposes the large system into several
decoupled subsystems and uses an iterative method, such as Newton-Raphson method, to
analyze the subsystems for the entire simulation interval [11]. The simulated distribution
system and the external controller that is interfaced to it form a large system of nonlinear
equations. A waveform relaxationbased method can be developed to solve this system.
Communicating through ports: In this report, the software-based real-time simulator and the
external controllers communicate via input/output modules. A software-based HIL real-time
simulation can be investigated in which the real-time simulator and the external controllers
communicate through ports. This obviates the need for input/output modules and hence
simplifies the structure of the HIL real-time simulation.
24
Appendix A
Datasheets
This appendix provides the datasheets of the hardware tools that are used in this project.
25
Recommended Software
Operating Systems
LabVIEW
LabVIEW SignalExpress
LabWindows/CVI
Measurement Studio
Measurement Services
Software (included)
NI-DAQmx driver software
Measurement & Automation
Explorer configuration utility
LabVIEW SignalExpress LE
1You need to download NI-DAQmx
Base for these operating systems.
Product
USB-6009
USB-6008
1 SE
Bus
USB
USB
Analog
Inputs1
8 SE/4 DI
8 SE/4 DI
Input
Resolution
(bits)
14
12
Max
Sampling Rate
(kS/s)
48
10
Input
Range
(V)
1 to 20
1 to 20
Analog
Outputs
2
2
Output
Resolution
(bits)
12
12
Output
Rate
(Hz)
150
150
Output
Range
(V)
0 to 5
0 to 5
Digital
I/O
Lines
12
12
32-Bit
Counter
1
1
Trigger
Digital
Digital
2Software-timed
Recommended Software
National Instruments measurement services software, built around
NI-DAQmx driver software, includes intuitive application programming
interfaces, configuration tools, I/O assistants, and other tools
designed to reduce system setup, configuration, and development time.
National Instruments recommends using the latest version of NI-DAQmx
26
Low-Cost, Bus-Powered Multifunction DAQ for USB 12- or 14-Bit, up to 48 kS/s, 8 Analog Inputs
Every M Series data acquisition device also includes a copy of
LabVIEW SignalExpress LE data-logging software, so you can quickly
acquire, analyze, and present data without programming. The NI-DAQmx
Base driver software is provided for use with Linux, Mac OS X,
Windows Mobile, and Windows CE operating systems.
Recommended Accessories
The USB-6008 and USB-6009 have removable screw terminals for easy
signal connectivity. For extra flexibility when handling multiple wiring
configurations, NI offers the USB-600x Connectivity Kit, which includes
two extra sets of screw terminals, extra labels, and a screwdriver.
In addition, the USB-600x Prototyping Kit provides space for adding
more circuitry to the inputs of the USB-6008 or USB-6009.
Ordering Information
NI USB-60081 ........................................................................779051-01
NI USB-60091 ........................................................................779026-01
NI USB-6008 OEM ................................................................193132-02
NI USB-6009 OEM ................................................................193132-01
NI USB-6008 Student Kit1,2 ..................................................779320-22
NI USB-6009 Student Kit1,2 ..................................................779321-22
NI USB-600x Connectivity Kit ..............................................779371-01
NI USB-600x Prototyping Kit ................................................779511-01
1 Includes
2 Includes
BUY NOW!
For complete product specifications, pricing, and accessory
information, call 800 813 3693 (U.S. only) or go to ni.com/usb.
27
BUY ONLINE at ni.com or CALL 800 813 3693 (U.S.)
Technical Sales
(866) 531-6285
orders@ni.com
NI 9229, NI 9239
10 V or 60 V, Simultaneous Analog Input, 50 kS/s, 4 Ch Modules
250 Vrms ch-ch, CAT II (screw terminal), or 60 VDC ch-ch, CAT I (BNC) isolation
Antialias filter
Overview
The NI 9229 is a 4-channel, 24-bit C Series analog input module for use in any NI CompactDAQ or CompactRIO chassis. The NI 9239 is similar to the NI 9229 in functionality
except for the input range. You can find detailed specifications for the NI 9229 and NI 9239 in the same manual for comparison.
With channel-to-channel isolation, your entire system, including the device under test, is protected from harmful voltage spikes up to the isolation rating. In addition to safety,
isolation eliminates measurement errors caused by ground loops because the front end of the module is floating.
EMC Performance To ensure EMC compliance for BNC, you must use a ferrite bead, such as NI part number 782801-01.
Recommended Accessories
-NI 9971 strain relief and operator protection (for screw-terminal variant)
-EMI suppression ferrite for NI 9229/9239 BNC (for BNC variant)
Box Contents
-1 NI 9229 or NI 9239 C Series module
-1 NI 9229/9239 Operating Instructions and Specifications manual
-4 NI 9976 two-position screw-terminal connectors (for screw-terminal variant)
Back to Top
Comparison Tables
Product
Name
Signal Ranges
Channels
Sample
Rate
Simultaneous Resolution
Isolation
Connectivity
NI 9201
10 V
8 Single-Ended
500
kS/s/ch
No
12-Bit
Screw Terminal,
25-Pin D-SUB
NI 9205
200 mV, 1 V, 5
V, 10 V
32 Single-Ended, 16
Differential
250 kS/s
No
16-Bit
Spring Terminal,
37-Pin D-SUB
NI 9206
200 mV, 1 V, 5
V, 10 V
32 Single-Ended, 16
Differential
250 kS/s
No
16-Bit
Spring Terminal
NI 9215
10 V
4 Differential
100
kS/s/ch
Yes
16-Bit
Screw Terminal,
BNC
NI 9220
10 V
16 Differential
100
kS/s/ch
Yes
16-Bit
Spring Terminal,
37-Pin D-SUB
NI 9221
60 V
8 Single-Ended
800 kS/s
No
12-Bit
Screw Terminal,
25-Pin D-SUB
28
www.ni.com
Product
Name
Signal Ranges
Channels
Sample
Rate
Simultaneous Resolution
Isolation
Connectivity
NI 9222
10 V
4 Differential
500
kS/s/ch
Yes
16-Bit
60 VDC Ch-Ch
Screw Terminal
NI 9223
10 V
4 Differential
1 MS/s/ch
Yes
16-Bit
60 VDC Ch-Ch
Screw Terminal
NI 9229
60 V
4 Differential
50 kS/s/ch
Yes
24-Bit
Screw Terminal,
BNC
NI 9239
10 V
4 Differential
50 kS/s/ch
Yes
24-Bit
Screw Terminal,
BNC
Back to Top
NI C Series modules are engineered to provide high-accuracy measurements to meet the demands of advanced DAQ and control applications. Each module contains
measurement-specific signal conditioning to connect to an array of sensors and signals, bank and channel-to-channel isolation options, and support for wide temperature ranges
to meet a variety of application and environmental needs all in a single rugged package. You can choose from more than 100 C Series modules for measurement, control, and
communication to connect your applications to any sensor on any bus.
Most C Series I/O modules work with both the NI CompactDAQ and NI CompactRIO platforms. The modules are identical, and you can move them from one platform to the other
with no modification.
NI CompactRIO Platform
Powered by the NI LabVIEW reconfigurable I/O (RIO) architecture, NI CompactRIO combines an open embedded architecture with small size, extreme ruggedness, and
hot-swappable industrial I/O modules. Each system contains an FPGA for custom timing, triggering, and processing with a wide array of modular I/O to meet any embedded
application requirement.
Configure Your Complete NI CompactRIO System
NI CompactDAQ Platform
29
www.ni.com
Technical Sales
(866) 531-6285
orders@ni.com
NI 9474
24 V, Sourcing Digital Output, 8 Ch Module
Overview
The NI 9474 is a C Series 8-channel, 1 s high-speed sourcing digital output module. It works in any NI CompactDAQ or CompactRIO chassis. Each channel is compatible with 5
V to 30 V signals and features transient overvoltage protection of 2,300 Vrms between the output channels and earth ground. Each channel also has an LED that indicates the
state of that channel. With the NI 9474, you can connect directly to a variety of industrial devices such as motors, actuators, and relays.
The NI 9474 module is a correlated digital module, which means it can perform correlated operations, triggering, and synchronization when installed in an NI CompactDAQ
chassis.
Recommended Accessories
-NI 9927 strain relief and operator protection
Optional Accessories
-NI 9936 extra screw-terminal block (quantity 10)
-NI 9980 extra spring-terminal block (quantity 10)
Note: The NI 9980 is not compatible with the NI 9927 and must be used with low or nonhazardous voltages or installed in a properly rated enclosure.
Box Contents
-1 NI 9474 C Series module
-1 NI 9474 Operating Instructions and Specifications manual
-1 NI 9936 10-position screw-terminal connector
Back to Top
Comparison Tables
Product Name
Signal Levels
Direction
Channels
Update Rate
Continuous Current
Connectivity
NI 9375
12, 24 V
16 In, 16 Out
100 mA/ch
NI 9472
12, 24 V
Sourcing Output
100 s
750 mA/ch
NI 9474
5, 12, 24 V
Sourcing Output
1 s
1 A/ch
Screw Terminal
NI 9475
Sourcing Output
1 s
1 A/ch
25-Pin D-SUB
NI 9476
12, 24 V
Sourcing Output
32
500 s
250 mA/ch
37-Pin D-SUB
NI 9477
Sinking Output
32
8 s
37-Pin D-SUB
NI 9478
5, 12, 24, 48 V
Sinking Output
16
7 s
1.2 A/ch
37-Pin D-SUB
30
Back to Top
www.ni.com
Technical Sales
(866) 531-6285
orders@ni.com
Requirements and Compatibility | Ordering Information | Detailed Specifications | Pinouts/Front Panel Connections
For user manuals and dimensional drawings, visit the product page resources tab on ni.com.
Embedded controller runs LabVIEW Real-Time for deterministic control, data logging,
and analysis
800 MHz processor, 4 GB nonvolatile storage, 512 MB DDR2 memory
Hi-Speed USB host port for connection to USB flash and memory devices
RS232 serial port for connection to peripherals; dual 9 to 35 VDC supply inputs
-20 to 55 C operating temperature range
Dual Ethernet ports with embedded Web and file servers for remote user interfacing
Overview
The NI cRIO-9024 embedded real-time controller is part of the high-performance NI CompactRIO programmable automation controller (PAC) platform. It features an industrial 800
MHz real-time Freescale processor for deterministic, reliable real-time applications and contains 512 MB of DDR2 RAM and 4 GB of nonvolatile storage for holding programs and
logging data.
Back to Top
Driver Information
Software Compatibility
NI-RIO
LabVIEW
LabVIEW FPGA Module
LabVIEW Professional Development System
LabVIEW Real-Time Module
Back to Top
Embedded Software
31
www.ni.com
The cRIO-9024 runs NI LabVIEW Real-Time Module software on the Wind River VxWorks real-time operating system (RTOS) for extreme reliability and determinism. You can
now use leading VxWorks RTOS technology and LabVIEW graphical programming tools to quickly design, prototype, and deploy a customizable, commercial off-the-shelf
embedded system.
You can synchronize embedded code execution to an FPGA-generated interrupt request (IRQ) or an internal millisecond real-time clock source. The LabVIEW Real-Time ETS OS
provides reliability and simplifies the development of complete embedded applications that include time-critical control and acquisition loops in addition to lower-priority loops for
postprocessing, data logging, and Ethernet/serial communication. Built-in elemental I/O functions such as the FPGA Read/Write function provide a communication interface to the
highly optimized reconfigurable FPGA circuitry. Data values are read from the FPGA in integer format and then converted to scaled engineering units in the controller.
Built-In Servers
In addition to programmatic communication via TCP/IP, UDP, Modbus/TCP, IrDA, and serial protocols, the CompactRIO controllers include built-in servers for Virtual Instrument
Software Architecture (VISA), HTTP, and FTP. The VISA server provides remote download and communication access to the reconfigurable I/O (RIO) FPGA over Ethernet. The
HTTP server provides a Web browser user interface to HTML pages, files, and the user interface of embedded LabVIEW applications through a Web browser plug-in. The FTP
server provides access to logged data or configuration files.
Back to Top
Ordering Information
For a complete list of accessories, visit the product page on ni.com.
Products
Part
Number
Recommended Accessories
Part
Number
781174-01
Connector Block: Not Applicable - NI 9978 4-pos screw terminal power supply plugs 196938-01
(quantity 5)
NI cRIO-9024
cRIO-9024, Real-Time PowerPC Controller for cRIO,
800 MHz
Requires:
Connector Block: Not Applicable - NI 9979 Strain relief kit for 4-pos power
connector
196939-01
Back to Top
Software Recommendations
LabVIEW Professional
Development System for
Windows
32
www.ni.com
References
[1] I. Roytelman and V. Ganesan, Modeling of local controllers in distribution network applications, IEEE Trans. Power Del., vol. 15, no. 4, pp. 12321237, Oct. 2000.
[2] I. Dzafic, R. Jabr, E. Halilovic, and B. Pal, A sensitivity approach to model local voltage
controllers in distribution networks, IEEE Trans. Power Syst., vol. 29, no. 3, pp. 14191428,
May 2014.
[3] I. Roytelman and V. Ganesan, Coordinated local and centralized control in distribution management systems, IEEE Trans. Power Del., vol. 15, no. 2, pp. 718724, Apr. 2000.
[4] B. Robbins, C. Hadjicostis, and A. Dominguez-Garcia, A two-stage distributed architecture
for voltage control in power distribution systems, IEEE Trans. Power Syst., vol. 28, no. 2,
pp. 14701482, May 2013.
[5] H. Hatta, S. Uemura, and H. Kobayashi, Demonstrative study of control system for distribution system with distributed generation, in Power Syst. Conf. and Expo., Seattle, WA, Mar.
2009.
[6] J. Mahseredjian, V. Dinavahi, and J. Martinez, Simulation tools for electromagnetic transients
in power systems: overview and challenges, IEEE Trans. Power Del., vol. 24, no. 3, pp. 1657
1669, Jul. 2009.
[7] V. Dinavahi, M. Iravani, and R. Bonert, Real-time digital simulation of power electronic
apparatus interfaced with digital controllers, IEEE Trans. Power Del., vol. 16, no. 4, pp.
775781, Oct. 2001.
[8] A. Barry, F. Guay, S. Guerette, and P. Giroux, Digital real-time simulation for distribution
systems, in Transmission and Distribution Construction, Operation and Live-Line Maintenance Proc., Montreal, QC, 2000.
[9] X. Wu, H. Figueroa, and A. Monti, Testing of digital controllers using real-time hardware in
the loop simulation, in Power Electron. Specialists Conf., Aachen, Germany, Jun. 2004.
[10] M. Davarpanah, M. Sanaye-Pasand, and R. Iravani, A saturation suppression approach for
the current transformerpart II: performance evaluation, IEEE Trans. Power Del., vol. 28,
no. 3, pp. 19361943, Jul. 2013.
[11] E. Lelarasmee, A. E. Ruehli, and A. Sangiovanni-Vincentelli, The waveform relaxation
method for time-domain analysis of large scale integrated circuits, IEEE Trans. ComputAided Design of Integrated Circuits and Syst., vol. 1, no. 3, pp. 131145, Jul. 1982.
33