This paper discusses the principles that have guided the development of a computerized diagnostic and control system for both the Neutral Beam Systems Test Facility at Lawrence Berkeley Laboratory and the Doublet III neutral beams at the General Atomic Company. The emphasis is not on the particular details of the implementation, but on general considerations which have influenced the design criteria for the system. Foremost among these are the requirements of an appropriate human interface to the system, and effective use of a relational data base. Examples are used to illustrate how these principles are carried out in practice. A systems view of diagnostic programs is suggested in the light of our experience