How to deal with signal loss in an electromagnetic flowmeter?