1. A method of controlling a scanning electron microscope, the method comprising the steps of: irradiating an object with an electron beam; and detecting electrons released from the object due to the irradiation, at a frequency depending on a magnification for observing the object.