vivkr
|
Hi Molotov,
While it is certainly a very complex and computationally intensive task to put a run-time FFT evaluating block inside your simulation, it is certainly possible to do so in a somewhat efficient manner. I suppose that you are actually trying to do an FFT only on a relatively small data window compared to the duration of your simulation. I imagine that you are trying to use this like a virtual instrument, observing the change in the spectrum as time changes.
You could implement a time-dependent FFT by using a moving window to collect and update samples as time progresses, with the use of some strobing of course. Information about such a function and efficient realizations may be found in good DSP books. Unfortunately, I don't know any good function for this purpose.
Still, you should be aware that the overall simulation will be quite slow if you do this. If I were you, I would still try to export the data out, and do FFT later.
Regards Vivek
|