Git Product home page Git Product logo

mpydev's Introduction

MPyDev

Version: 1.0.0 Date: 2018-12-02

This is a Python wrapper for BIOPAC's mpdev libraries, and it should work with the MP150, MP36R, and MP160. For the latter, make sure that your mpdev.dll version is up to date.

Installation

  1. Click the big green 'Clone/Download' button, then select 'Download ZIP'.
  2. Unzip the downloaded archive.
  3. Copy the file mpydev.py to a place from which you can import it, for example the site-packages directory of your Python installation, or the directory in which you store your experiment script.
  4. Profit.

Example Usage

An example script can be found in pygame_example.py.

FAQ

Your thing doesn't work! Do you have mpdev.dll installed and/or within the directory that mpydev.py is in?

Your thing still doesn't work! Are you sure you're using the right version of mpdev.dll for your BIOPAC device?

IT STILL DOESNT WORK!! Are you running Ackknowledge in the background? Please close down that software before running a script that uses MPyDev.

I don't have mpdev.dll, can you give it to me? Unfortunately not. Please ask BIOPAC Systems for the file. It's proprietary software, and part of their SDK. You'll need to buy it from them directly.

Boring Stuff

All Python bits are developed by Edwin Dalmaijer. The required mpdev.dll file is a proprietary library, created by BIOPAC Systems, Inc..

MPyDev is open source software and therefore free to use and modify at will. Warranty, however, is NOT given. If this software fails, causes your computer to blow up, your spouse to leave you, your toilet to clog and/or the entire supply of nuclear missles on earth to launch, or anything else that you might want to blame on us, the author(s) CANNOT IN ANY WAY be held responsible.

MPyDev was released under the GNU Public License (version 3), of which you should have received a copy of together with the software:

MPyDev is Python software to communicate via UDP with BioPac devices.
Copyright (C) 2014 Edwin S. Dalmaijer

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>

mpydev's People

Contributors

esdalmaijer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mpydev's Issues

MP150: logged timestamps do not align with requested sampling frequency

Hi Edwin,

Thanks for the great work! I had a question related to an issue that I ran into with a MP150 device. Although it might not necessarily be related to the wrapper itself, you nevertheless might be able to solve it. For unknown reasons, the timestamps that are logged inform me that data logging does not occur at the requested frequency. For instance, if I run the pygame_example.py script for exactly 1 second, and set the sampling rate to 2000 Hz (mp = BioPac("MP150", n_channels=1, samplerate=2000, logfile="pygame_example_HBRoel", overwrite=True)), I obtain the following data (I only printed a subset here):

timestamp,channel_0
42,1.23687744141
52,1.24755859375
65,1.25366210938
75,1.21978759766
90,1.24694824219
101,1.21643066406
113,1.22863769531
124,1.22589111328
134,1.1962890625
147,1.22802734375

The time between subsequent samples is way off.
Do you have any clue what could go wrong here?

Cheers,
Roel

pygame_example_HBRoel_BIOPAC_data.txt

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.