We describe the digital optical control system (DOGS), a state-of-the-art controller for electrical feedback in an optical system. The need for a versatile optical controller arose from a number of unique experiments being performed by the Air Force Weapons Laboratory. These experiments use similar detectors and actuator-controlled mirrors, but the control requirements vary greatly. The experiments have in common a requirement for parallel control systems. The DOGS satisfies these needs by allowing several control systems to occupy a single chassis with one master controller. The architecture was designed to allow upward compatibility with future configurations. Combinations of off-the-shelf and custom boards are configured to meet the requirements of each experiment. The configuration described here was used to control piston error to X/80 at a wavelength of 0.51 Am. A peak sample rate of 8 kHz, yielding a closed loop bandwidth of 800 Hz, was achieved.