MT Generate Filter Coefficients
- Updated2023-02-17
- 7 minute(s) read
MT Generate Filter Coefficients
Calculates filter coefficients for pulse-shaping and matched filters applied by the digital modulation nodes and demodulation nodes.
Inputs/Outputs

pulse shaping filter
Class of filter to generate.
You must correspond the selection here with the modulation type parameter setting as shown in the following table.
| Modulation Type | Valid Pulse-Shaping Type | |
|---|---|---|
| PSK, QAM, ASK, PAM | none (0) |
Note The node ignores the filter length parameter and generates a filter that is always one symbol long.
|
| Raised Cosine (1) |
|
|
| Root Raised Cosine (2) |
|
|
| MSK | none (0) |
Note The node ignores the filter length parameter and generates a filter that is always one symbol long.
|
| Raised Cosine (1) |
|
|
| Root Raised Cosine (2) |
|
|
| Gaussian (3) |
|
|
| FSK, CPM | none (0) |
Note The node ignores the filter length parameter and generates a filter that is always one symbol long.
|
| Raised Cosine (1) |
|
|
| Root Raised Cosine (2) |
|
|
| Gaussian (3) |
|
|
Default value: none

pulse shaping samples per symbol
Number of desired samples per symbol for the pulse-shaping filter.
If you use the pulse-shaping filter for demodulation, this parameter value must match the samples per symbol element of the system parameters cluster passed to the demodulation node. Specify an even number greater than 2.
Default value: 16

matched samples per symbol
Number of desired samples per symbol for the demodulation matched filter.
You must match this parameter value to the samples per symbol element of the system parameters cluster passed to the digital demodulation node. Specify an even number greater than 2.
Default value: 16

filter parameter
A value that indicates either alpha (rolloff for raised cosine and square root raised cosine filters), or BT (the product of the -3 dB bandwidth and the symbol period for a Gaussian filter). Ignore this parameter when you set the pulse shaping filter parameter to none.
Default value: 0.5

error in
Error conditions that occur before this node runs.
The node responds to this input according to standard error behavior.
Default value: No error

modulation type
Type of modulation or demodulation for which to generate filter coefficients.
| FSK |
Generates FSK filter coefficients. |
| PSK |
Generates PSK filter coefficients. |
| QAM |
Generates QAM filter coefficients. |
| MSK |
Generates MSK filter coefficients. |
| PAM |
Generates PAM filter coefficients. |
| ASK |
Generates ASK filter coefficients. |
| CPM |
Generates CPM filter coefficients. |
Default value: FSK

filter length
The desired length, in symbols, of the pulse-shaping filter. The length of the matched filter can vary according to filter type and modulation type. Valid values are greater than 1.
Default value: 8

pulse shaping filter coefficients
An ordered array of filter coefficients corresponding to the desired filter response for the pulse-shaping filter used in modulation. The number of coefficients depends on the pulse-shaping filter characteristics specified in the pulse shaping filter parameter.
| Number of Coefficients | Size for FSK | Size for MSK | Size for PSK/QAM/ASK/PAM |
|---|---|---|---|
| none | (samples/symbol) | (samples/symbol) | (samples/symbol) |
| raised cosine | (samples/symbol) × filter length + 1 | (samples/symbol) × filter length + 1 | (samples/symbol) × filter length + 1 |
| root raised cosine | (samples/symbol) × filter length + 1 | (samples/symbol) × filter length + 1 | (samples/symbol) × filter length + 1 |
| Gaussian | (samples/symbol) × filter length + 1 | (samples/symbol) × filter length + 1 | N/A |

matched filter coefficients
An ordered array of filter coefficients corresponding to the desired filter response for the matched filter used in demodulation.
| Number of Coefficients | Size for FSK | Size for MSK | Size for PSK/QAM/ASK/PAM |
|---|---|---|---|
| none | (samples/symbol) | (samples/symbol) | (samples/symbol) |
| raised cosine | 1 | 1 | 1 |
| root raised cosine | (samples/symbol) × filter length + 1 | (samples/symbol) × filter length + 1 | (samples/symbol) × filter length + 1 |
| Gaussian | 14 × (samples/symbol) + 1 | 3 × (samples/symbol) - 1 | N/A |

error out
Error information.
The node produces this output according to standard error behavior.
Filter Impulse Response Calculations
Use the calculated filter coefficients during modulation to reduce the bandwidth of the transmitted signal and during demodulation to reduce intersymbol interference. The pulse-shaping filter can be used either in transmission or for demodulation of PSK-, FSK-, MSK-, ASK-, PAM-, QAM-, and CPM-modulated signals. Use matched filter only for demodulation.
The node calculates the impulse response of the filter using the following formulas.
| Filter Type | Formula |
|---|---|
| Raised Cosine |
|
| Root Raised Cosine |
|
| Gaussian |
|