Smart diagnostic flow meter: Quickly locate faults and ensure normal operation