Skip to main content

Unofficial port of Pulse Pal for Python 3

Project description

Pulse Pal for Python 3

https://img.shields.io/pypi/v/pulse_pal.svg https://img.shields.io/travis/mmyros/pulse_pal.svg Documentation Status

Unofficial port of Pulse Pal for Python 3

Features

  • Python 3 compatibility

  • Easy install through pip

  • Command line interface (In progress)

  • Limited support

Installation

pip install pulse_pal

Usage

See help:

pulse_pal --help

Set phase 1 voltage to 5:

pulse_pal --do set --port COM2 --param_name phase1Voltage --param_value 5

Trigger channel 1:

pulse_pal --do trigger --channel 1

Test your Pulse Pal connection

  • Easy (from console):

pulse_pal --do test
  • Low-level (from python):

def test_pulse_pal(serialPortName='COM10'):
    import serial,struct

    OpMenuByte = 213
    serialObject = serial.Serial(serialPortName, 115200, timeout=1)
    handshakeByteString = struct.pack('BB', OpMenuByte, 72)
    serialObject.write(handshakeByteString)
    Response=serialObject.read(5)
    print(len(Response))

test_pulse_pal('COM10')

History

0.1.0 (2020-10-08)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pulse_pal-0.0.6.tar.gz (13.0 kB view hashes)

Uploaded Source

Built Distribution

pulse_pal-0.0.6-py2.py3-none-any.whl (8.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page