The invention relates to a device for measuring intracorporeally generated magnetic fields, comprising: a
catheter, wherein a
fiber optic device is arranged within the
catheter, a sensor unit for measuring magnetic fields, the sensor unit is a
nitrogen vacancy center
magnetometer, which, as a sensor medium, comprises
diamond crystals having one or more
nitrogen-vacancy centers, wherein one or more
diamond crystals are arranged within the
optical fiber device, wherein the sensor unit comprises a
magnetic field generation device for generating a
magnetic field in the area of the sensor medium, wherein the sensor unit comprises an excitation
light source for shining excitation light into the
light guide device in order to excite the sensor medium, wherein the sensor unit comprises a
microwave source for generating microwaves to excite the sensor medium with microwaves, and wherein the sensor unit comprises a
photodetector for detecting
resonance-dependent
fluorescence light from the sensor medium and an evaluation unit which is set up to determine a
magnetic field at the respective location of one or more
diamond crystals based on the detected
fluorescence light. The invention relates to a method for measuring intracorporeally generated magnetic fields, a
computer program and a
machine-readable storage medium.