the prior art the spoiler gradients 23 and 24 from fig3 were kept constant however the diffusion gradients differ in terms of their amplitude and polarity given generation of the various diffusion weighted data sets in order to be able to calculate the diffusion tensor overall for this reason the switching shown in fig3 is not able to effectively avoid stimulated or respectively anti stimulated echoes the polarity and the amplitude of the spoiler gradients now inventively depend on the diffusion gradients since the diffusion gradients are not the same for all diffusion weighted data sets the polarity must be calculated given each acquisition of a data set in the progression of the imaging sequence during progression of the imaging sequence the net gradient moment must be calculated from the first diffusion gradient 15 and the fourth diffusion gradient 18 the polarity of the spoiler gradients 25 and 26 must be selected dependent on which moment is greater among other things the amplitude of the spoiler gradients 25 and 26 depends on the gradient moment of the readout gradient an inventive imaging sequence for generation of diffusion weighted images is shown in fig5 in the shown embodiment diffusion gradients are activated in the phase coding direction and in the slice selection direction as in the exemplary embodiment from fig1 this is a double spin echo sequence with a 90 u00b0 pulse 11 and two 180 u00b0 pulses 12 and 13 a first diffusion gradient pair 31 and 32 that temporally surrounds the second diffusion gradient pair with the gradients 33 and 34 is switched in the phase coding direction dephasing gradients 35 are additionally activated.