import sys import numpy as N from ... import AnalogInputDevice, MultiChannelAnalogInputEvent from .... import Computer,ioDeviceError from psychopy.iohub.util import addDirectoryToPythonPath,printExceptionDetailsToStdErr,print2err addDirectoryToPythonPath('devices/daq/hw/labjack') import pylabjack class AnalogInput(AnalogInputDevice): """ The Labjack Implementation for the ioHub AnalogInput Device type. """ _SUPPORTED_MODELS = dict() _SUPPORTED_MODELS['U6'] = pylabjack.u6.U6 ANALOG_TO_DIGITAL_RANGE=2**16 ANALOG_RANGE=22.0 # <<<<< _newDataTypes = [('resolution_index',N.uint8),('settling_factor',N.uint8)] __slots__=[e[0] for e in _newDataTypes]+['_labjack', '_calibration_data', '_data_streaming_thread', '_scan_count'] def __init__(self, *args, **kwargs): """ """ AnalogInputDevice.__init__(self, *args, **kwargs) self._labjack=None
""" ioHub Common Eye Tracker Interface .. file: ioHub/devices/eyeTracker/hw/sr_research/eyelink/__init__.py Copyright (C) 2012-2013 iSolver Software Solutions Distributed under the terms of the GNU General Public License (GPL version 3 or any later version). .. moduleauthor:: Sol Simpson <*****@*****.**> + contributors, please see credits section of documentation. .. fileauthor:: Sol Simpson <*****@*****.**> """ from __future__ import absolute_import from psychopy.iohub.util import addDirectoryToPythonPath addDirectoryToPythonPath('devices/eyetracker/hw/sr_research/eyelink') from .eyetracker import (EyeTracker, MonocularEyeSampleEvent, BinocularEyeSampleEvent, FixationStartEvent, FixationEndEvent, SaccadeStartEvent, SaccadeEndEvent, BlinkStartEvent, BlinkEndEvent)
""" ioHub Common Eye Tracker Interface .. file: ioHub/devices/eyeTracker/hw/sr_research/eyelink/__init__.py Copyright (C) 2012-2013 iSolver Software Solutions Distributed under the terms of the GNU General Public License (GPL version 3 or any later version). .. moduleauthor:: Sol Simpson <*****@*****.**> + contributors, please see credits section of documentation. .. fileauthor:: Sol Simpson <*****@*****.**> """ from psychopy.iohub.util import addDirectoryToPythonPath addDirectoryToPythonPath('devices/eyetracker/hw/sr_research/eyelink') from eyetracker import (EyeTracker, MonocularEyeSampleEvent, BinocularEyeSampleEvent, FixationStartEvent,FixationEndEvent,SaccadeStartEvent, SaccadeEndEvent,BlinkStartEvent,BlinkEndEvent)
import sys import numpy as N from ... import AnalogInputDevice, MultiChannelAnalogInputEvent from .... import Computer, ioDeviceError from psychopy.iohub.util import addDirectoryToPythonPath, printExceptionDetailsToStdErr, print2err addDirectoryToPythonPath('devices/daq/hw/labjack') import pylabjack class AnalogInput(AnalogInputDevice): """ The Labjack Implementation for the ioHub AnalogInput Device type. """ _SUPPORTED_MODELS = dict() _SUPPORTED_MODELS['U6'] = pylabjack.u6.U6 ANALOG_TO_DIGITAL_RANGE = 2**16 ANALOG_RANGE = 22.0 # <<<<< _newDataTypes = [('resolution_index', N.uint8), ('settling_factor', N.uint8)] __slots__ = [e[0] for e in _newDataTypes] + [ '_labjack', '_calibration_data', '_data_streaming_thread', '_scan_count', '_part_sample' ] def __init__(self, *args, **kwargs): """ """
import sys import numpy as N from ... import AnalogInputDevice, MultiChannelAnalogInputEvent from .... import Computer, ioDeviceError from psychopy.iohub.util import addDirectoryToPythonPath, printExceptionDetailsToStdErr, print2err addDirectoryToPythonPath("devices/daq/hw/labjack") import pylabjack class AnalogInput(AnalogInputDevice): """ The Labjack Implementation for the ioHub AnalogInput Device type. """ _SUPPORTED_MODELS = dict() _SUPPORTED_MODELS["U6"] = pylabjack.u6.U6 ANALOG_TO_DIGITAL_RANGE = 2 ** 16 ANALOG_RANGE = 22.0 # <<<<< _newDataTypes = [("resolution_index", N.uint8), ("settling_factor", N.uint8)] __slots__ = [e[0] for e in _newDataTypes] + [ "_labjack", "_calibration_data", "_data_streaming_thread", "_scan_count", "_part_sample", ]