Opticka is an object–oriented visual stimulus+experiment manager built on top of the Psychophysics toolbox (PTB) for Matlab. It runs dynamic methods-of-constants type experiments with full behavioural control (using state machine logic). It uses a class system to create flexible, simple to use stimuli using experimenter friendly units. Opticka can use an Eyelink eyetracker, Plexon Omniplex neurophysiology data collection and general TTL control using either a cheap LabJack (ms precision) or DataPixx lite (µs precision). It contains analysis routines linked to Fieldtrip for spike and LFP data parsed in terms of the experimental variables.