forked from vtwireless/HLSI
-
Notifications
You must be signed in to change notification settings - Fork 1
/
03_gn.html
44 lines (34 loc) · 1.01 KB
/
03_gn.html
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
<!DOCTYPE html>
<html lang="en-US">
<head>
<title>HLSI Ex 3</title>
<meta charset="UTF-8"/>
<link rel="stylesheet" type="text/css" media="all" href="hlsi.css">
<script src=d3.v5.min.js></script>
<script src=fft.js></script>
<script src=common.js></script>
<script src=signal.js></script>
<script src=sliders.js></script>
<script src=powerSpectrumPlot.js></script>
<script src=iqPlot.js></script>
</head>
<body>
<h2>Exercise 3 - Gain</h2>
<p><a href="index.html">[exercises]</a></p>
</body>
<script>
'use strict';
// This sig contains all the constant parameters associated with the
// signal and also the 4 changing parameters (independent variables)
// sig.freq, sig.gn, sig.bw, and sig.mcs (center frequency, gain,
// bandwidth, and modulation scheme index), in addition to dependent
// variables sig.rate and sig.sinr.
//
var sig = Signal(conf.sig0);
sig.bw = 15.0e6; // 20 MHz
Signal(conf.noise).gn = -60.0;
Slider(sig, 'gn');
IQPlot(sig);
PowerSpectrumPlot();
</script>
</html>