LTPDA Toolbox™ | contents | ![]() ![]() |
quasiSweptSine computes a transfer function from swept-sine measurements %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% DESCRIPTION: quasiSweptSine computes a transfer function from discrete swept-sine measurements. In order for the calculation to work, you need to give it an array of start and stop times (or durations), and (optionally) an array of amplitudes and frequencies of the injected sine-waves. If you don't specify the frequencies, you must give a time-series of the injected signal and the algorithm will try to determine the amplitudes and frequencies from the data. CALL: T = quasiSweptSine(out, pl); INPUTS: out - The measured output of the system PL - parameter list OUTPUT: T - the measured transfer function The procinfo of the output AOs contains the following fields: 'frequencies' - the frequencies used in the DFT estimation. 'timespans' - an array of timespan objects, one for each sine-wave segment Parameters Description %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Method Details | |
---|---|
Access | public |
Defining Class | ao |
Sealed | 0 |
Static | 0 |
Sets for this method … |
---|
Default |
Default |
|||
---|---|---|---|
no description | |||
Key | Default Value | Options | Description |
quasiSweptSine | |||
INPUT | [] | none | The input data series. |
START TIMES | {} [0x0] | none | A cell array of start times, or an array of time objects. |
STOP TIMES | {} [0x0] | none | A cell array of stop times, or an array of time objects. |
DURATIONS | [] | none | An array of durations that can be used instead of the stop times. |
AMPLITUDES | [] | none | An array of amplitudes. |
FREQUENCIES | [] | none | An array of frequencies [Hz]. |
INPUT UNITS | 'V' | none | If you don't give an input signal AO, you can specify the units of the signal that will be constructed internally. |
WIN | 'BH92' |
|
A window to apply to each segment when computing the DFT. |
NERROR | 5 | none | The number of samples either side of the line frequency to use to estimate the noise floor.The noise is estimated from mean([y(idx-2*M:idx-M);y(idx+M:idx+2M)]) where M=N-1 and idx is the index of the bin nearest to the frequency of the signal. |
Example |
---|
plist('INPUT', [[]], 'START TIMES', cell(0,0), 'STOP TIMES', cell(0,0), 'DURATIONS', [[]], 'AMPLITUDES', [[]], 'FREQUENCIES', [[]], 'INPUT UNITS', 'V', 'WIN', 'BH92', 'NERROR', [5]) |
Some information of the method ao/quasiSweptSine are listed below: | |
---|---|
Class name | ao |
Method name | quasiSweptSine |
Category | Operator |
Package name | ltpda |
VCS Version | 967b0eec0dece803a81af8ef54ad2f8c784b20b2 |
Min input args | 1 |
Max input args | -1 |
Min output args | 1 |
Max output args | -1 |
Can be used as modifier | 1 |
Supported numeric types | {'double'} |
![]() |
Method: ao/phase | Method: ao/real | ![]() |
©LTP Team