Distributed digital real-time control system for the TCV tokamak and its applications. (17th March 2017)