SRS (FPScript)
Calculates one or more shock response spectra (SRS) from the signal of an acceleration sensor.
Syntax
SRS(Signal, [ SpectrumType = SRS_MAXIMAX_ABSOLUTE ], [ StartIndex = 0 ], [ EndIndex ], [ DampingRatio = 0.05 ], [ StartingFrequency ], [ EndingFrequency ], [ FrequencyDivision = SRS_FREQUENCY_OCTAVE ], [ FrequencyResolution = 12 ] [ , Result = SRS_RESULT_ACCELERATION ])
The syntax of the SRS function consists of the following parts:
Part |
Description |
||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Signal |
The accelerator sensor data to be analyzed. The data must have a constant sampling rate and must not contain void values. Permitted data structures are data series und signal. All numeric data types are permitted. For the X component additional restrictions do apply.The values must have a constant positive spacing. If the argument is a list, then the function is executed for each element of the list and the result is also a list. |
||||||||||||||||||||
SpectrumType |
Specifies the type of spectrum. The argument SpectrumType can have the following values:
Permitted data structures are scalar value. All integral data types are permitted. If the argument is a list, then the first element in the list is taken. If this is also a list, then the process is repeated. If this argument is omitted, it will be set to the default value SRS_MAXIMAX_ABSOLUTE. |
||||||||||||||||||||
StartIndex |
The starting index for the shock event. Here, a negative index determines a position relative to the end of the data set. Permitted data structures are scalar value. All integral data types are permitted. If the argument is a list, then the first element in the list is taken. If this is also a list, then the process is repeated. If this argument is omitted, it will be set to the default value 0. |
||||||||||||||||||||
EndIndex |
The ending index for the shock event. The default is half of the highest index of the time signal. Here, a negative index determines a position relative to the end of the data set. Permitted data structures are scalar value. All integral data types are permitted. If the argument is a list, then the first element in the list is taken. If this is also a list, then the process is repeated. |
||||||||||||||||||||
DampingRatio |
The damping ratio of the SDOF systems. The damping ratio is 1 / (2 * quality Q). Permitted data structures are scalar value. All real data types are permitted. The value must be greater or equal to 0.00001 and less or equal to 0.999999. If the argument is a list, then the first element in the list is taken. If this is also a list, then the process is repeated. If this argument is omitted, it will be set to the default value 0.05. |
||||||||||||||||||||
StartingFrequency |
The starting frequency for calculating the frequency series for the individual SDOF systems. The default value is 0.01 * sampling rate. Permitted data structures are scalar value. All real data types are permitted. The value must be greater or equal to 0.01 and less or equal to 10000. If the argument is a list, then the first element in the list is taken. If this is also a list, then the process is repeated. |
||||||||||||||||||||
EndingFrequency |
The ending frequency for calculating the maximum frequency of the SDOF frequency series. The maximum frequency is 0.1 * sampling rate. The default value is 0.1 * sampling rate. Permitted data structures are scalar value. All real data types are permitted. If the argument is a list, then the function is executed for each element of the list and the result is also a list. |
||||||||||||||||||||
FrequencyDivision |
Specifies the frequency division for calculating the frequency series for the individual SDOF systems. The argument FrequencyDivision can have the following values:
If the argument is a list, then the first element in the list is taken. If this is also a list, then the process is repeated. If this argument is omitted, it will be set to the default value SRS_FREQUENCY_OCTAVE. |
||||||||||||||||||||
FrequencyResolution |
Specifies the value for calculating the frequency range. The value specifies the number of frequencies per octave for the logarithmic frequency division. The value specifies the difference between two neighboring frequencies for the linear frequency division. Permitted data structures are scalar value. All real data types are permitted. If the argument is a list, then the first element in the list is taken. If this is also a list, then the process is repeated. If this argument is omitted, it will be set to the default value 12. |
||||||||||||||||||||
Result |
Specifies the result type of the function. You can request multiple results by adding the respective constants. The argument Result can have the following values:
Permitted data structures are scalar value. All integral data types are permitted. If the argument is a list, then the first element in the list is taken. If this is also a list, then the process is repeated. If this argument is omitted, it will be set to the default value SRS_RESULT_ACCELERATION. |
Remarks
The result always has the data structure signal.
The X component outputs the calculated SDOF frequencies. If several types of spectra are specified, then the result is a list.
Available in
Option Spectral Analysis
Examples
SRS(Acceleration, SRS_PRIMARY_POSITIVE + SRS_PRIMARY_NEGATIVE , 600, 5600, 5 %, 31.5 Hz, 2 kHz,
SRS_FREQUENCY_OCTAVE, 6, SRS_RESULT_ACCELERATION)
Calculates two shock response spectra from the 'Acceleration' signal. The shock event is defined between indices 600 and 5600. A logarithmic frequency resolution (octave) between 31.5 Hz and 2000 Hz is used.
The result is a list with two entries. The first element contains a signal with the maxima during the shock event. The second element contains a signal with the minima during the shock event.