Writes duty cycle data to an h5 file