In situ experimental techniques under optical