Main Content

getWaveData

Retrieve waveform data from adeDataReader object

Since R2024b

Description

DataTable = obj.getWaveData(analysisType,signalName) retrieves the waveform data from the adeDatatReader object obj based on specified signal name and analysis type.

Note

You can combine the two input variables in the same argument separated by a comma. For example, you can also use the syntax wave = obj.getWaveData('tran,/ldo_out').

example

Examples

collapse all

Unzip the ldo_test_Interactive.244.zip file. Load the ldo_test_Interactive.244.mat file containing the adeInfo object data.

unzip('ldo_test_Interactive.244.zip')
data = adeDataReader('ldo_test_Interactive.244.mat');

Find the available waveform details.

data.WaveInfo
ans = 4×1 cell
    {'stb, Loop Gain Phase'}
    {'stb, Loop Gain dB20' }
    {'tran, /I_load'       }
    {'tran, /ldo_out'      }

Get the information about the tran, ldo_out waveform.

wave = data.getWaveData(data.WaveInfo{4});

Plot the waveform.

for i=1:height(wave)
    plot(wave.XValues{i},wave.YValues{i});
    hold on;
end

Figure contains an axes object. The axes object contains 48 objects of type line.

Input Arguments

collapse all

Name of the signal whose waveform data you want to extract, specified as a string.

Data Types: char

Type of the analysis you want to extract for the requested waveform data, specified as a string.

Data Types: char

Output Arguments

collapse all

Extracted waveform data, returned as a table.

Version History

Introduced in R2024b