
Self._preRemoteMethodCallFunctions = dict() Self.name = device_config.get( ' name ',device_class_name.lower()) That are actually interpreted on the ioHub Process as if the device methodĭef _init_( self,hubClient, device_class_name, device_config): This allows a PsychoPy experiment to call device methods Is used to provide the PsychoPy Process interface to the given ioHub Processĭevice instance. MethodNameList=my_device.getDeviceInterface() To the ioHub Process queries the ioHub Process for the current list of public The ioHubDeviceView provides methods to access events at a device levelĪs well as other methods allowing interaction with the device being accessed.Įach ioHubDeviceView instance created when the ioHubConnection has connected They are created for you by the ioHubConnection class when it connects to ioHubDeviceView instances are never created directly by a user script,

Process side representation of each ioHub Process Device created for IoHubDeviceView is used by the ioHubConnection class to create a PsychoPy #print 'DeviceViewCall Device: ',vice_class If thod_name = ' getEvents ' and r:ĬonversionMethod=ioHubConnection._eventListToDictĬonversionMethod=ioHubConnection._eventListToObjectĬonversionMethod=ioHubConnection._eventListToNamedTuple R = ndToHub(( ' EXP_DEVICE ', ' DEV_RPC ', vice_class, thod_name,args,kwargs)) _log_level_index=LogEvent.CLASS_ATTRIBUTE_NAMES.index( ' log_level ')ĭef _init_( self,sendToHub,device_class,method_name): _log_text_index=LogEvent.CLASS_ATTRIBUTE_NAMES.index( ' text ') _log_time_index=DeviceEvent.EVENT_HUB_TIME_INDEX # however here, each results in an RPC call to the ioHub for the device, which returns

# (matching the list of methods for the device in the vices module), # It has a dynamically created list of methods that can be called # The ioHubDeviceView is the ioHub client side representation of an ioHub device. constants import DeviceConstants, EventConstants devices.experiment import MessageEvent, LogEventįrom. devices import Computer, DeviceEvent, import_deviceįrom. import print2err,printExceptionDetailsToStdErr,ioHubErrorįrom. import MessageDialog, win32MessagePumpįrom. import IO_HUB_DIRECTORY,isIterable, load, dump, Loader, Dumper, updateDictįrom. Import psychopy.logging as psycho_loggingįrom. moduleauthor:: Sol Simpson + contributors, please see credits section of documentation.

#Psychopy keypress enter software
Copyright (C) 2012-2013 iSolver Software Solutionsĭistributed under the terms of the GNU General Public License (GPL version 3 or any later version).
