How is TDS measured?

By means of a conductivity meter. The conductivity is measured and the TDS is calculated by a fixed mathematical formula in the meter.