Description
The Port Array Module expands a Bpod state machine (r0.7 or newer) with 8 additional behavior ports.
Interfacing with the port array differs from the state machine's onboard ports in a few important ways:
- Special commands must be sent from the state machine to control the port valves and LEDs.
- The names of port entry and exit events are prefaced with the port array index, e.g. 'PA1_Port2In' or 'PA3_Port4Out', where 'PAn' is the nth port array module connected to the state machine.
- With current state machine firmware, global timers and conditions cannot be linked to ports on the array.
The port array module can also be controlled directly via USB with a MATLAB class. This enables use without a state machine, though timing precision in this mode is limited by the host PC’s operating system.


