Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iti/pymu
This library is used for accessing PMU data in real-time and is based on the C37.118.2-2011 standard.
https://github.com/iti/pymu
Last synced: 3 months ago
JSON representation
This library is used for accessing PMU data in real-time and is based on the C37.118.2-2011 standard.
- Host: GitHub
- URL: https://github.com/iti/pymu
- Owner: ITI
- License: other
- Created: 2017-01-03T18:01:12.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-11-17T14:38:30.000Z (12 months ago)
- Last Synced: 2024-06-14T02:32:12.010Z (5 months ago)
- Language: Python
- Homepage: http://pythonhosted.org/PyMU/
- Size: 47.9 KB
- Stars: 22
- Watchers: 8
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-industrial-protocols - PyMU - Library based on the C37.118.2-2011 standard used for accessing PMU data in real-time (IEEE-C37.118 / Tools)
README
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
```python
import pymu.tools as tools
confFrame = tools.startDataCapture(frameId, port, tcpPort)
```### Get Data Frame
```python
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.