Different methods of investigation of the spin-echo attenuation, in the NMR pulsed field gradient experiments, were analyzed in order to optimize the measurements of the self-diffusion coefficient of the small molecules of simplest liquids. A particular algorithm of representation of the experimental data is proposed in order to eliminate the effect of the residual gradient. This algorithm, tested for pure water, give results in accord with the literature.