Ammeter simulation