electromagnetic flowmeter function