Replaced obsolete non-generator parameter prepare_wave with the generator's gen_awg_refresh.