Computers in the control of treatment units