Devices¶
Defines some of the devices that are used in the experiment.
-
class
forced_choice.devices.
FTDIOdorsBase
(**kwargs)¶ Bases:
object
Base class for the FTDI odor device.
-
n_valve_boards
¶ The number of valve boards that are connected to the FTDI controller. Each board can typically control 8 valves.
Defaults to 2.
-
-
class
forced_choice.devices.
FTDIOdorsSim
(**kwargs)¶ Bases:
forced_choice.devices.FTDIOdorsBase
,moa.device.digital.ButtonPort
Device used when simulating the odor device.
-
class
forced_choice.devices.
FTDIOdors
(**kwargs)¶ Bases:
forced_choice.devices.FTDIOdorsBase
,cplcom.moa.device.ftdi.FTDISerializerDevice
Device used when using the barst ftdi odor device.
-
class
forced_choice.devices.
DAQInDeviceBase
¶ Bases:
object
Base class for the Switch & Sense 8/8 input ports.
-
nose_beam
¶ Reads / controls the nose port photobeam.
-
reward_beam_l
¶ Reads / controls the left reward port photobeam.
-
reward_beam_r
¶ Reads / controls the right reward port photobeam.
-
-
class
forced_choice.devices.
DAQInDeviceSim
(**kwargs)¶ Bases:
forced_choice.devices.DAQInDeviceBase
,moa.device.digital.ButtonPort
Device used when simulating the Switch & Sense 8/8 input device.
-
class
forced_choice.devices.
DAQInDevice
(**kwargs)¶ Bases:
forced_choice.devices.DAQInDeviceBase
,cplcom.moa.device.mcdaq.MCDAQDevice
Device used when using the barst Switch & Sense 8/8 input device.
-
nose_beam_pin
¶ The port in the Switch & Sense to which the nose port photobeam is connected to.
Defaults to 1.
-
reward_beam_l_pin
¶ The port in the Switch & Sense to which the left reward port photobeam is connected to.
Defaults to 2.
-
reward_beam_r_pin
¶ The port in the Switch & Sense to which the right reward port photobeam is connected to.
Defaults to 3.
-
-
class
forced_choice.devices.
DAQOutDeviceBase
¶ Bases:
object
Base class for the Switch & Sense 8/8 output ports.
-
fans
¶ Controls the fans.
-
feeder_l
¶ Controls the left feeder.
-
feeder_r
¶ Controls the right feeder.
-
house_light
¶ Controls the house light.
-
ir_leds
¶ Controls the IR light.
-
-
class
forced_choice.devices.
DAQOutDeviceSim
(**kwargs)¶ Bases:
forced_choice.devices.DAQOutDeviceBase
,moa.device.digital.ButtonPort
Device used when simulating the Switch & Sense 8/8 output device.
-
class
forced_choice.devices.
DAQOutDevice
(**kwargs)¶ Bases:
forced_choice.devices.DAQOutDeviceBase
,cplcom.moa.device.mcdaq.MCDAQDevice
Device used when using the barst Switch & Sense 8/8 output device.
-
fans_pin
¶ The port in the Switch & Sense that controls the fans.
Defaults to 5.
-
feeder_l_pin
¶ The port in the Switch & Sense that controls the left feeder.
Defaults to 0.
-
feeder_r_pin
¶ The port in the Switch & Sense that controls the right feeder.
Defaults to 2.
-
house_light_pin
¶ The port in the Switch & Sense that controls the house light.
Defaults to 4.
-
ir_leds_pin
¶ The port in the Switch & Sense that controls the IR lights.
Defaults to 6.
-