We describe a set of techniques for studying spontaneous behavior of freely swimming weakly electric fish over an extended period of time, by synchronously measuring the animal's electric organ discharge timing, body position and posture both accurately and reliably in a specially designed aquarium tank inside a sensory isolation chamber.