The architecture of DAQ system for the ARGO-YBJ experiment