Python code used to control and record electrical impedance tomography measurements using an adaptive electrode selection algorithm (ESA) with a NI-VISA interface as desrcribed in my MPhys report 'Machine learning enable electrical impedance tomography'.