The high rate data acquisition system for the SLIM5 beam test