psyfood / pyqmix

Qmix pump and valve interface
GNU General Public License v3.0
2 stars 1 forks source link
eeg fmri gustation psychophysics pumps python stimulator

Qmix pump and valve interface

Travis-CI Build Status Latest PyPI Release Conda Version

This Python package wraps the Cetoni Qmix pump and valve interface DLLs using CFFI. Supports both Python 2 and 3.

Table of Contents

Quick installation instructions

If you already installed the Cetoni QmixSDK, created a device configuration via QmixElements, and are familiar with Python, you may simply install pyqmix via conda from conda-forge. To create a new conda environment for pyqmix, named nemesys, run

conda create -n nemesys -c conda-forge pyqmix

from the command line. This is the recommended installation procedure, because it ensures the installation of pyqmix and all of its dependencies will not alter any existing conda environment.

To install pyqmix into an existing conda environment, run

conda install -c conda-forge pyqmix

However, we suggest you always create a new, dedicated environment instead.

Of course, you may also install pyqmix via good ol' pip:

pip install pyqmix

If you have no idea what this is all about, we suggest you follow the procedures described below.

Gustometer Setup

Find the CD and license code

Open the paper-folder you received from CETONI. In the folder you will find a license key and a CD with:

Prepare your computer

Set up system requirements on your computer as described in the documentation. Refer to QmixElements manual:

Install QmixElements

Install QmixSDK

Connect the pump system to the computer

Create a Device Configuration

Operate pumps via pyqmix-web

The user-visible part of pyqmix-web runs in the web browser. You need a modern browser to run the application. Recent versions of Chrome, Firefox, and Safari work well; Microsoft Internet Explorer is not supported.

Install Python and pyqmix

Install Anaconda Python

Create a new Python environment

Create a new conda Python environment called nemesys and install the required packages into this environment.

Operate pumps via pyqmix

Open and run scripts

Best Practices

The setup of the pump system and best practices are described in our paper (see reference below). Additionally, we suggest the following procedures the improve reliability and ease of use:

Citation

If you use this software, please cite our publication:

Andersen, Camilla Arndal, Alfine, Lorenzo, Ohla, Kathrin, & Höchenberger, Richard. (in press). A new gustometer: Template for the construction of a portable and modular stimulator for taste and lingual touch. Behavior Research Methods. doi: 10.3758/s13428-018-1145-1

A pre-print is available from Zenodo.