I wanted to make sure everyone is aware of the latest version of the NI LabVIEW Electrical Power Suite and that you can download an evaluation version.
This is an open source code library of IP for FPGA and Real-Time operating systems (Linux RT, VxWorks, and Pharlap ETS). Included in the suite are three toolkits.
1. Power Quality Toolkit (50/60Hz)
- IEC 61000-4-7 (harmonics)
- IEC 61000-4-15 (flicker)
- IEC 61000-4-30 (Event Measurement Class A)
- EN 50160 (Data Aggregation)
2. Synchrophasor (PMU) Toolkit
- C37.118-2005 and C37.118-2011 (P and M Class)
3. Protection Relay IP Toolkit (IEC 60255-155, IEEE C37.112)
- 27, Under voltage
- 50, Instantaneous Overcurrent
- 51, Inverse Time Overcurrent Support
- 59, Overvoltage Relay Support
- 79, Reclose Logic
Other Features
- Support for COMTRADE file format
- NI RIO and NI-DAQmx support
- Over 10 ready to run examples
Here is a list of related power quality analysis, measurement, and protection relay standards.
- EN 50160:2007, Voltage Characteristics of Electricity Supplied by Public Distribution Networks
- IEC 60255-127:2010, Measuring relays and protection equipment - Part 127: Functional requirements for over/under voltage protection
- IEC 60255-151:2009, Measuring relays and protection equipment - Part 151: Functional requirements for over/under current protection
- IEC 61000-4-7:2002, Electromagnetic Compatibility (EMC) - Part 4-7: Testing and Measurement Techniques - General Guide on Harmonics and Interharmonics Measurements and Instrumentation, for Power Supply Systems and Equipment Connected Thereto
- IEC 61000-4-15:2010, Electromagnetic Compatibility (EMC) - Part 4-15: Testing and Measurement Techniques - Flickermeter - Functional and Design Specifications
- IEC 61000-4-30:2008, Electromagnetic Compatibility (EMC) - Part 4-30: Testing and Measurement Techniques - Power Quality Measurement Methods
- IEEE Std 1159:1995, IEEE Recommended Practice for Monitoring Electric Power Quality
- IEEE Std C37.111:1999, IEEE Standard Common Format for Transient Data Exchange (COMTRADE) for Power Systems
- IEEE Std C37.112:1996, IEEE Standard Inverse-Time Characteristic Equations for Overcurrent Relays
- IEEE Std C37.118:2005, Synchrophasors for Power Systems
Here is a screenshot of the example projects. The CompactRIO Recloser Control Project is highlighted.

Real-Time Operating System Configuration Panel User Interface:

Diving into the recloser protection relay IP, here's the diagram of the FPGA recloser logic control application.

In alignment with NI's philosophy of "LabVIEW to the pin" - we never want a black box. So, we can dive into the FPGA IP cores and actually see the source code. Let's take a look at a couple of the IP cores.
Here is the FPGA Over Threshold IP core:
.png)
Here is the FPGA rescloser timer state machine IP core:
