for use in an electro - optically sensed magnetic compass a photoelectric control circuit in which the duty cycle of the illumination source is varied to energize the source only until a valid electrical output signal is detected .