summaryrefslogtreecommitdiff
path: root/grc/blocks/gr_channel_model.xml
blob: e23062dff49a1e74b5b6e0e264ecf1fe245a4f3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?xml version="1.0"?>
<!--
###################################################
##Channel Model
###################################################
 -->
<block>
	<name>Channel Model</name>
	<key>gr_channel_model</key>
	<import>from gnuradio import gr</import>
	<import>from gnuradio.gr import firdes</import>
	<make>gr.channel_model(
	noise_voltage=$noise_voltage,
	frequency_offset=$freq_offset,
	epsilon=$epsilon,
	taps=$taps,
	noise_seed=$seed,
)</make>
	<callback>set_noise_voltage($noise_voltage)</callback>
	<callback>set_frequency_offset($freq_offset)</callback>
	<callback>set_taps($taps)</callback>
	<callback>set_timing_offset($epsilon)</callback>
	<param>
		<name>Noise Voltage</name>
		<key>noise_voltage</key>
		<value>0.0</value>
		<type>real</type>
	</param>
	<param>
		<name>Frequency Offset</name>
		<key>freq_offset</key>
		<value>0.0</value>
		<type>real</type>
	</param>
	<param>
		<name>Epsilon</name>
		<key>epsilon</key>
		<value>1.0</value>
		<type>real</type>
	</param>
	<param>
		<name>Taps</name>
		<key>taps</key>
		<value>1.0 + 1.0j</value>
		<type>complex_vector</type>
	</param>
	<param>
		<name>Seed</name>
		<key>seed</key>
		<value>42</value>
		<type>int</type>
	</param>
	<sink>
		<name>in</name>
		<type>complex</type>
	</sink>
	<source>
		<name>out</name>
		<type>complex</type>
	</source>
</block>