FrequencyWeightingA (FPScript)

21.09.2021

Calculates the frequency weighting A according to IEC 651 for an input signal or a signal series.

Syntax

FrequencyWeightingA(Signal [ , InputWeighting = FREQUENCYWEIGHTING_LINEAR ])

 

The syntax of the FrequencyWeightingA function consists of the following parts:

Part

Description

Signal

A signal or a signal series with variations in time. The sampling rate must be at least 4 kHz.

Permitted data structures are signal und signal series. All numeric data types are permitted. The argument is transformed to the unit V.

For the X component additional restrictions do apply.

For complex data types the absolute value is formed.

If the argument is a list, then the function is executed for each element of the list and the result is also a list.

InputWeighting

Frequency weighting of the input signal or the input signal series.

The argument InputWeighting can have the following values:

Constant

Meaning

FREQUENCYWEIGHTING_LINEAR

No frequency weighting

FREQUENCYWEIGHTING_A

A-weighting

FREQUENCYWEIGHTING_C

C-weighting

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 FREQUENCYWEIGHTING_LINEAR.

Remarks

The result has the same structure as the argument Signal.

B-weighting as input weighting is not possible, since an A-weighted output signal cannot be calculated from an B-weighted input signal with meaningful accuracy.

Available in

Option Acoustics

Observed Standards

Standard

Description

IEC 651, EN60651

Sound level meter

From a sampling rate of the input signal of 40 kHz onwards, precision class 1 is observed, from a sampling rate of 80 kHz onwards, precision class 0 applies.

The deviations observed for sampling rates between 40 kHz and 80 kHz lie only in the frequency bands above 12.5 kHz (16 kHz and 20 kHz), since these are too close to the half sampling rate.

Examples

FrequencyWeightingA(TimeSignal, FREQUENCYWEIGHTING_LINEAR)

Calculates the frequency weighting A for the signal 'TimeSignal'. The signal does not have an input weighting.

See Also

FrequencyWeightingB Function

FrequencyWeightingC Function

Sound Level Analysis Object

Octave Analysis Object

Share article or send as email:

You might be interested in these articles