There are natural and artificial sources of X-ray radiation.
Artificial sources of X-ray radiation are X-ray tubes. The structure of the tube is shown in the figure.

An X-ray tube is an evacuated glass flask with two electrodes: an anode A and a cathode K, between which a high voltage U (1-500 kV) is created. The cathode is a spiral heated by an electric current. Electrons emitted by the heated cathode (thermionic emission) are accelerated by the electric field to high speeds (this is what high voltage is needed for) and hit the anode of the tube. When these electrons interact with the anode substance, two types of X-ray radiation arise: bremsstrahlung and characteristic.
The working surface of the anode is positioned at an angle to the direction of the electron beam in order to create the required direction of the X-rays.
Approximately 1% of the electron kinetic energy is converted into X-rays. The rest of the energy is released as heat. Therefore, the working surface of the anode is made of a refractory material.
Advantages
Flaws
Natural sources of X-rays include some radioactive isotopes (for example, Cd-109, Fe-55, Am-241).

Advantages
Flaws
Conclusions
There is a biased attitude towards X-ray fluorescence devices based on radionuclide sources. Many equipment distributors claim that Europe, the USA and Japan have long abandoned sources in favor of X-ray tubes, but this is not entirely accurate information. For example, portable analyzers Thermo Scientific Niton XL3p and Heuresis P200i XRF Lead Paint Analyzer based on radionuclide sources are widely used in Europe. The advantages of an X-ray tube (the ability to switch off and, as a result, "control" the radiation) are lost when it comes to industrial analyzers that operate 24 hours a day. It is also worth paying attention to the service life of the X-ray tube. When conducting continuous round-the-clock analysis, an X-ray tube cannot compare with sources in terms of stability, reliability and mean time between failures.
Until recently, a license was required to work with all types of radiation sources. But not all sources are equally dangerous to humans. Therefore, a law was passed according to which sources are categorized. ARP-1C contains sources of hazard categories 4 and 5 (the danger to humans is unlikely). For this type of sources, only registration of organizations operating radiation sources containing only radionuclide sources of the fourth and fifth categories of radiation hazard is required.