The present invention introduces a magnetic stimulation method in which a desired biosignal value or a range of values for at least one target is determined. Upon stimulation, magnetic field pulses of short duration are applied to the brain and the biosignal, such as electromyograph (EMG), value (S) of each target, such as a muscle, is measured before each TMS pulse. The firing of a TMS pulse is automatically prevented if the corresponding measured biosignal value (S) is outside the predetermined limits.