He didn't. Tesla did not invent the X-Ray. Wilhelm Röntgen did.
Tesla is often reported as the inventor or discoverer. He did neither.
X-rays even by electronic means were well known to fog film by the time Tesla reported his discoveries. He made some observations - which have been widely touted by the press but his work with them was actually pretty limited.
X-rays, were observed by both Johann Hittorf and William Crookes in the 1870s with Crookes tubes. The effects of them wouldn't be understood to the uses we have for them today until Rontgen's work in 1889.
Nikola Tesla had his ac motors ready and patented in 1890.
1899
He got this work from 1885 to 1890.
Nikola Tesla claimed to have invented a death ray but it has neither been proven nor disproven.
he did it for communication advances by transporting power long distances
Nikola Tesla had inventions that have to do with wireless technology. He did not invent telophone cables.
Nikola Tesla
1931
Nikola Tesla had his ac motors ready and patented in 1890.
Nikola Tesla
1899
He got this work from 1885 to 1890.
Nikola Tesla invented the car. He did turn a pierce arrow 1930 car all electric.
Nikola Tesla is a non longer living person so we can not ask him this question. To my mind, it just was the thing he beleived he had to do.
Nikola Tesla claimed to have invented a death ray but it has neither been proven nor disproven.
he did it for communication advances by transporting power long distances
It was called the Oscillator