Source Coding For Controlling Cyber Physical Systems