A device for use in the detection of binding affinities, the device comprising a planar waveguide (2) arranged on a substrate (3), and further comprising an optical coupler (41) having a predetermined length for coupling coherent light (1) of a predetermined wavelength into the planar waveguide (2) such that a parallel beam of coherent light propagates through the planar waveguide (2) with an evanescent field (11) of the coherent light propagating along an outer surface (21) of the planar waveguide (2). The outer surface (21) of the planar waveguide (2) comprises binding sites thereon capable of binding target samples to the binding sites such that light of the evanescent field (11) is diffracted by target samples bound to the binding sites. The binding sites are arranged along a plurality of predetermined straight lines (7) running parallel to one another with a constant distance between adjacent straight lines.