The invention relates to a novel doubly-salient memory electrical 
machine comprising an outer rotor with tooth and an inner 
stator with tooth, wherein permanent magnets are arranged on the inner 
stator. The number of tooth Nr of the outer rotor, the number of tooth Ns of the inner 
stator and the number Np of the permanent magnets should satisfy the relational expression: (m+k1)*Np=Ns=mk2 and 360Nr / Ns=360k3+ / -alpha, wherein m is a 
phase number and is bigger than or equal to 3, alpha is a slot 
pitch angle the span of which is 0-360 degrees, k1 belongs to an integer from 1 to 1-m, and k2 and k3 are respectively a random positive integer. 
AlNiCo is adopted as the permanent magnets, and current pulses with different sizes and polarities are charged to a plurality of separated 
direct current windings to realize on-line 
magnetism charge demagnetization, thereby realizing multiple functions. Due to the fact that the duration of the 
current pulse is short, and the induced loss almost can be neglected, as an electromotor, the electrical 
machine can realize on-line 
magnetism modulation in the real sense while in running, and as a generator, the electrical 
machine can realize high-efficiency constant-
voltage output while in running.