disclosed herein are a method for applying , while a charged particle beam is in a state being irradiated toward the sample , a voltage to the sample so that the charged particle beam does not reach the sample and detecting information on a potential of a sample using a signal obtained then , and a device for automatically adjusting conditions of the device based on the result of measuring .