def init(self): ''' Secondary init function. See riglib.experiment.Experiment.init() Prior to starting the task, this 'init' creates a 4-channel DataSource, two channels for each joystick ------- ''' from riglib import source, phidgets System = phidgets.make(4, 1) self.dualjoystick = source.DataSource(System) super(DualJoystick, self).init()
def register_num_channels(self): from riglib import source, phidgets, sink System = phidgets.make(2, 1) self.joystick = source.DataSource(System)