A magnetic stimulation method inwhich a desired biosignal value or a range of valuesfor at least one target is determined. Upon stimulation,magnetic field pulses of short duration are appliedto the brain and the biosignal, such as electromyograph (EMG),value (S) of each target, suchas a muscle, is measured before each TMS pulse.The firing of a TMS pulse is automatically preventedif the corresponding measured biosignal value (S) isoutside the predetermined limits.