Example 01 - Basic Configuration File

This basic example generates a GPS signal, applies a low-pass filter with a single-sided cut-off frequency of 10.12 MHz and displays it in a window.

You can start it by running

cd snacs/trunk/release
./SNACS-release -f ../../examples/example_01/example_01.cfg 
/*
* Example configuration file for
*
* SNACS - The Satellite Navigation Radio Channel Simulator
*
* example_01.cfg
*
* Simple demonstration of a SNACS configuration file, only
* GPS signal generation block, low-pass filter, and output window are included.
*
* Copyright (C) 2010 F. M. Schubert
*
*/
Simulation:
{
sampling_frequency = 40e6; // Hz
c0 = 2.99e8;
length = 10.0; // s
intermediate_frequency = 15e6; // Hz
conc_buf_length = 0.001; // in s
buffers_per_concbuf = 2;
result_directory = "Result";
append_date_to_outdir = true;
SNBlocks = (
{ Type = "snSignalGenerate";
start = 0.0;
signal = {
inphase = {
code = "C/A";
prn = 1;
modulation = "BPSK(n)";
n = 1.0;
data_type = "none";
};
};
},
{ Type = "snLowPassFilter";
coefficients_type = "remez";
order = 64;
cut_off_frequency = 10.23e6;
},
{ Type = "snSignalOutputWidget";
buffers_to_display = 1;
}
); // end SNBlocks
}; // end Simulation
Plotting:
{
UpdateInterval = 500; // ms
PlotXSize = 1024L; // pixel to be plottet. format: long (L)
plot_buffer_length = 0.00001; // s
};