Clear Filters
Clear Filters

how to get fft analysis data from power gui to command and hence to exce;

8 views (last 30 days)
Hey guys,
I am tring to export the fft analysis result from fft tools in power gui to excel. I have 4 input signal available and 3 signal number (i.e. it is a 3 phase sytem with 4 different currents). I tried to export it to MATLAB command window using following command.
FFTDATA = power_fftscope(Currents);
FFTDATA.startTime=0.25;
FFTDATA.cycles = 1;
FFTDATA.fundamental = 50;
FFTDATA.maxFrequency = 2050;
FFTdata.input=3;
>> FFTDATA = power_fftscope(FFTDATA)
FFTDATA =
(%struct with fields:
time: [60001×1 double]
signals: [1×4 struct]
blockName: 'Three_phase_PV_Mod_2018a_correct/Currents'
input: 1%First input
signal: 1% First signal
startTime: 0.2500
cycles: 1
fundamental: 50
maxFrequency: 2050
THDmaxFrequency: Inf
THDbase: 'fund'
freqAxis: 'Hertz'
mag: [41×1 double]
phase: [41×1 double]
freq: [41×1 double]
THD: 8.0498
samplingTime: 5.0000e-06
samplesPerCycle: 4000
DCcomponent: 1.0374
magFundamental: 26.8804)
FFTDATA.mag
FFTDATA.phase
FFTDATA.freq
However, I get magnitude, phase and frequency for 1st input and 1st signal only (as indicated by comment in the result above). How can I get data for other combinations? For example, 2nd signal 3rd inout and so on.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!