The code presented here concerns the impedance frequency response measurement of a two-terminal circuit using the DAQ-system NI USB-6211. The measurement is based on the Discrete Fourier Transform (DFT) and Maximum Likelihood estimation (MLE) of the amplitude and phase of the voltage across- and the current through- the two-terminal circuit. Then the impedance modulus and phase is calculated. The excitation of the device under test is performed via single-tone sine wave signal with stepwise increasing frequency. The measurement setup is given in the .zip file. The code provides:
1) a plot of the impedance frequency response (modulus and phase) of the two-terminal circuit;
2) ImpedanceRespData.mat file with the measurement results (for post-processing).
The code is based on the theory described in:
 H. Zhivomirov, I. Iliev. Impedance Frequency Response Measurement with Matlab Implementation. Journal of the Technical University of Gabrovo, ISSN: 1310-6686, Vol. 52, pp. 61-65, 2016. (umis.tugab.bg/prep/tomove/10/52-03-EE-01-min.pdf)
 NI USB-621x Specifications.pdf. Austin, National Instruments, Corp., 2009.
H. Zhivomirov, I. Iliev. Impedance Frequency Response Measurement with Matlab Implementation. Journal of the Technical University of Gabrovo, ISSN: 1310-6686, Vol. 52, pp. 61-65, 2016. (umis.tugab.bg/prep/tomove/10/52-03-EE-01-min.pdf)
Hristo Zhivomirov (2022). Impedance Frequency Response Measurement with Matlab (https://www.mathworks.com/matlabcentral/fileexchange/50637-impedance-frequency-response-measurement-with-matlab), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!