save modulation output state in data file