Git Product home page Git Product logo

pymu's Introduction

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.

pymu's People

Contributors

aaronli7 avatar cdrew3 avatar esilksel avatar gemblerz avatar timyardley avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pymu's Issues

encoding with 'hex' codec failed

Hello,

I used the example script, but my excel is only filled with headings and not with values.
Also, I always get the message:

Socket Timeout
#-1# Exception: encoding with 'hex' codec failed (TypeError: a byte-like object is required, not 'str')

I use Python 3.9 and I have started anew.
Can someone explain me why this does not work and how I can solve the problem?

Thank you very much!

No module named 'PyCRC'

Hi,
I installed the PyMu library using pip install PyMU.

I ran into a problem while running the QUICKSTART guide to Get Config Frame

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

image

Output

runfile('C:/Users/HP/untitled0.py', wdir='C:/Users/HP')
Traceback (most recent call last):

File "C:\Users\HP\untitled0.py", line 8, in
import pymu.tools as tools

File "C:\Users\HP\anaconda3\lib\site-packages\pymu\tools.py", line 7, in
from .pmuCommandFrame import CommandFrame

File "C:\Users\HP\anaconda3\lib\site-packages\pymu\pmuCommandFrame.py", line 5, in
from PyCRC.CRCCCITT import CRCCCITT

ModuleNotFoundError: No module named 'PyCRC'

Data in CSV were incomplete.

Hi, when I used the 'pmuToCSV.py' example to save the stream data from my PMU device to the CSV file.

  • I found the data was incomplete, the rate sample rate of the PMU device should be 60 per second while in the CSV file the number of the data sample is unstable between 40 to 50 per second.
  • In addition, the number of measurements or the channel name is also incomplete, only phasor angles, freq, and rocof. I expect the magnitude value were included.

I walked through your code but still can't figure it out. Do you have some comments or suggestions? I'd appreciate it.

snaptshot_pmuoutput

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.