We report a robust method of directly stabilizing a grating feedback diode laser to an arbitrary frequency in a large range. The error signal, induced from the difference between the frequency measured by a wavelength meter and the preset target freq