FIX _write_raw():  don’t write meas_id if it is not specified