<< demod_process Modulation / demodulation mod_process >>

comm_tbx >> Modulation / demodulation > mod_init

mod_init

Creation of a modulator object

Parameters

name:

Waveform name ('bpsk', 'qpsk', 'qam16', ...: same parameter as wf_init)

wf:

Waveform object (created with wf_init)

fs:

Output sample frequency (in Hz)

fi:

Output intermediate (or RF) frequency (in Hz)

fsymb:

Symbol frequency (in Hz)

mode:

Real modulation ('r') or I/Q modulation ('c'). Default is real modulation.

Description

In the first form, the default waveform configuration is used (NRZ pulse shaping, and default waveform parameters). In the second form, the user can configure more accurately the waveform.

Examples

// QPSK modulator, NRZ pulse shaping,
// sampling frequency = 1 MHz, IF = 200 KHz, FSYMB = 20 KHz
mod = mod_init('qpsk', 1e6, 200e3, 20e3);

// BPSK modulator, SRRC pulse shaping (r = 0.2), same frequencies
wf  = wf_init('bpsk');
wf  = wf_set_filter(wf, 'srrc', 0.2);
mod = mod_init(wf, 1e6, 200e3, 20e3);

See also

Authors


Report an issue
<< demod_process Modulation / demodulation mod_process >>