mod_process

Modulation (binary vector to RF or IF output)

Calling sequence

[mod,x] = mod_process(mod,b)

Parameters

mod:

Modulation object (created with mod_init(...))

b:

Input binary vector

x:

Output IF or RF signal

Description

Code the binary signal using the configured waveform (BPSK, FSK, ...) and then upconvert to IF or RF frequency. If the specified IF frequency is not null, remove also the imaginary part of the signal (output signal is real).

Example

// FSK modulator, sampling frequency = 1 MHz, IF = 50 KHz, FSYMB = 20 KHz
wf = wf_init('fsk',M=2,index=2.0);
mod = mod_init(wf, fs = 1e6, fi = 50e3, fsymb = 20e3);
// Random sequence of 20 bits
b = prbs(20);
// Modulation
[mod,x] = mod_process(mod,b);
clf(); plot(x);

Using mod_process to modulate a FSK signal


See also