save data only when ecg in used