A medical system tracks the position of a medical instrument within a body of a patient. The medical instrument includes an electromagnet structure having an inductor coil wound around a core. A control circuit applies a low frequency excitation signal across the inductor coil. The inductor coil and the core generate a magnetic field. A plurality of sensors sense parameters of the generated magnetic field and produce sensor signals. The control circuit calculates the position of the medical instrument based on the produced sensor signals.