It is not possible to access the FFT in the PLECS Scope via the PLECS scripting interfaces. For the moment, the only solutions are to perform the FFT analysis using the ‘Fourier Transform’ block or to export the signal that should be analyzed, and perform the FFT analysis in post processing.
The Octave distribution with PLECS standalone includes the fft() function. Attached is a simple example where the PLECS simulation results are post processed using Octave. Note the return of values of the fft() function require some manipulation to return the single sided amplitude spectrum that is shown in the PLECS Scope.
fft_postprocess.plecs (7.72 KB)