Architecture for Data Acquisition in Research and Teaching Laboratories