Dear All, I am doing linearity analysis through the Fourier Analyzer component of analogLib. After the analysis the results get written in spectre.out file as below: ------------------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------------------- ===================== Fourier Analysis `FA' ===================== Fundamental frequency = 1 kHz. Fundamental period = 1 ms. Fourier components of V(a18) for the interval from 1 ms to 2 ms: DC = 899.885 mV. Harm: Absolute Absolute Relative Relative Magnitude Phase Magnitude Phase 1: 739.851 mV -90.0827 Deg 0.000 dB 0 Deg <- normalizer 2: 37.4673 uV 179.792 Deg -85.910 dB 269.875 Deg 3: 8.99541 mV -90.1928 Deg -38.302 dB -110.107 mDeg 4: 28.0017 uV -425.261 mDeg -88.439 dB 89.6574 Deg 5: 7.14442 mV 89.6791 Deg -40.304 dB 179.762 Deg 6: 15.4169 uV 179.322 Deg -93.623 dB 269.405 Deg 7: 4.87799 mV -90.4481 Deg -43.618 dB -365.424 mDeg 8: 3.29339 uV -1.24389 Deg -107.030 dB 88.8388 Deg 9: 2.64496 mV 89.4268 Deg -48.935 dB 179.509 Deg 10: 5.30079 uV -788.303 mDeg -102.896 dB 89.2944 Deg 11: 828.951 uV -90.688 Deg -59.012 dB -605.3 mDeg 12: 8.78719 uV 178.805 Deg -98.506 dB 268.888 Deg 13: 342.614 uV -90.8714 Deg -66.687 dB -788.678 mDeg 14: 7.47167 uV -1.59393 Deg -99.915 dB 88.4888 Deg 15: 835.565 uV 89.0308 Deg -58.943 dB 179.114 Deg 16: 3.18807 uV 177.568 Deg -107.312 dB 267.651 Deg 17: 785.723 uV -91.0857 Deg -59.478 dB -1.00297 Deg 18: 1.56208 uV 179.976 Deg -113.509 dB 270.059 Deg 19: 429.241 uV 88.8079 Deg -64.729 dB 178.891 Deg 20: 4.64 uV -1.68464 Deg -104.053 dB 88.3981 Deg 21: 14.3466 uV -90.392 Deg -94.248 dB -309.313 mDeg 22: 5.02109 uV 177.615 Deg -103.367 dB 267.698 Deg 23: 274.702 uV -91.5095 Deg -68.606 dB -1.42682 Deg 24: 3.01993 uV -3.49596 Deg -107.783 dB 86.5867 Deg 25: 358.535 uV 88.394 Deg -66.292 dB 178.477 Deg Total harmonic distortion = 1.73757 % (-35.2012 dB). RMS value of computed spectrum (excluding DC) = 739.963 mV. RMS value of computed spectrum (including DC) = 1.16505 V. Nonperiodicity (first/last point mismatch) = -33.8149 nV (-4.5705 u%). ------------------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------------------- My question is: I want to access the value of Total harmonic distortion through an OCEAN script. How can I do that? Does anybody have ever worked with the Fourier Analyzer component? Regards Sam
Samiran wrote, on 06/10/10 07:42: Hi Sam, There's a CCR, 725021, asking for just this. I don't think it's available right now. The CCR is planned, but not released yet. Regards, Andrew.