The data acquisition system for the ANTARES neutrino telescope