A service oriented framework to set up flexible and distributed data acquisition and control systems