Unofficial port of Pulse Pal for Python 3
Project description
Pulse Pal for Python 3
Unofficial port of Pulse Pal for Python 3
Free software: MIT license
Documentation: https://pulse-pal.readthedocs.io.
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
Release history Release notifications | RSS feed
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 details)
Built Distribution
File details
Details for the file pulse_pal-0.0.6.tar.gz
.
File metadata
- Download URL: pulse_pal-0.0.6.tar.gz
- Upload date:
- Size: 13.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfa96cee56ddbcc4794619cff66b85f1040849ebd18b0ad4c997711d236cb664 |
|
MD5 | 86b89dd7e49d19263a988dac8e5afeb9 |
|
BLAKE2b-256 | 860e8098585bb82e5cc2abb4e48be6072c1126e2d3fdeb0b8e16515d63a6398c |
File details
Details for the file pulse_pal-0.0.6-py2.py3-none-any.whl
.
File metadata
- Download URL: pulse_pal-0.0.6-py2.py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25426109abb361ac6e23c0bb05b87a9605266b650415276cffcc26c53fc8bc5a |
|
MD5 | e521cb42f31438f098e6b015c382e64e |
|
BLAKE2b-256 | 159719ea424920f9b1ed6b115387e16d59d467d557a26b9e01ae2f8ed675974a |