added acquisition control using serial commands