GithubHelp home page GithubHelp logo

larsrollik / pypulsepal Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 74 KB

Python API to interact with PulsePal

License: GNU General Public License v3.0

Python 100.00%
api arduino-due hardware-api pulse-generator python stimulation pulsepal

pypulsepal's Introduction

Hi there ๐Ÿ‘‹

Lars B. Rollik's GitHub stats

pypulsepal's People

Contributors

larsrollik avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

grg2rsr

pypulsepal's Issues

Add offline mode for testing/debugging

  • accept all args, but do not really upload -> might require to move .write serial comms functions into central location to block interaction to avoid serial exceptions
  • also requires to not auto-connect

example code does not work

the provided example code doesn't run on my system:

# Create PulsePal object
pp = PulsePal(serial_port=serial_port)

# Set parameters

## Manually
pp.program_one_param(channel=2, param_name="phase1Duration", param_value=.002)

## Via convencience functions
pp.set_resting_voltage(channel=2, voltage=4.2)

# Upload parameters
pp.upload_all()

# Trigger channels
pp.trigger_selected_channels(channel_2=True, channel_4=True)
pp.trigger_all_channels()

# Stop outputs
pp.stop_all_outputs()

# Save settings (also done automatically on disconnect)
pp.save_settings()

trigger_all_channels() calls self.trigger_channels() of the PulsePal object, which isn't implemented. Guessing by its call signature that it should be self.trigger_selected_channels() still makes it crash further down the road, briefly looking at it seems like _read_confirmation() never returns True.

Windows 10, PulsePal 2.0

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.