A new development in the determination of residual stresses in thin surface
layers and coatings is presented. The procedure, based on the grazing-inci
dence X-ray diffraction geometry (referred to here as the 'g-sin psi' geome
try), enables non-destructive measurement at a chosen depth below the sampl
e surface. The penetration depth of the X-ray radiation is well defined and
does not change during the experiment. The method is particularly useful f
or the analysis of nonuniform stresses in near-surface layers. The g-sin(2)
psi geometry was applied for measurements of the residual stresses in TiN
coatings. Anisotropic diffraction elastic constants of textured material we
re used to determine the stress value from the measured lattice strains. A
new method of data treatment enables reference-free measurements of residua
l stresses.