Measurements of the neutron-proton analyzing power in the energy range from 17 to 50 MeV