Skip to content
/ PyMU Public
forked from ITI/PyMU

This library is used for accessing PMU data in real-time and is based on the C37.118.2-2011 standard.

License

Notifications You must be signed in to change notification settings

gemblerz/PyMU

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python C37.118 data parser. Contains tools for connecting to PMUs and receiving data.

Full documentation

http://pythonhosted.org/PyMU/

Installation

  • Must use Python 3.0+
pip install PyMU

Quickstart

Quick demo of how to connect to a PMU and start capturing data

Get Config Frame

import pymu.tools as tools
confFrame = tools.startDataCapture(frameId, port, tcpPort)

Get Data Frame

from pymu.pmuDataFrame import DataFrame
from pymu.client import Client
cli = Client(ip, tcpPort, "TCP")
dataSample = tools.getDataSample(cli)
dataFrame = DataFrame(dataSample, confFrame)

You are now able to dive into all the fields of the data frame and config frame in real time. The example provided (/examples/pmuToCsv.py) writes all the phasor values, frequencies, and ROCOF a csv file.

About

This library is used for accessing PMU data in real-time and is based on the C37.118.2-2011 standard.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%