electromagnetic flow meter function