-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpostlab.html
More file actions
571 lines (534 loc) · 19.8 KB
/
Copy pathpostlab.html
File metadata and controls
571 lines (534 loc) · 19.8 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- Bootstrap CSS -->
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3"
crossorigin="anonymous"
/>
<!-- <link rel="stylesheet" type="text/css" href="Style/style.css"> -->
<link rel="stylesheet" type="text/css" href="Styles/postlab.css" />
<script src="JS/postlab.js"></script>
<!-- <script src="JS/plot.js"></script> -->
<title>PostLab</title>
</head>
<body
style="
background-color: aliceblue;
background-size: cover;
background-repeat: no-repeat;
"
>
<!-- Option 1: Bootstrap Bundle with Popper -->
<script
src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p"
crossorigin="anonymous"
></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.4/Chart.js"></script>
<div class="center">
<p>
<a class="btn btn-lg btn-outline-dark"> PostLab Quiz and Exercise </a>
</p>
</div>
<div class="info-center border border-dark border-1 rounded-3">
<p>
<a class="btn btn-lg btn-outline-dark"> Quiz </a>
</p>
<hr />
<div class="questions">
<div class="q1">
<!-- ans: 2 -->
<p>
1. Transmitting antenna has which of the following parameter as a basic requirement.
</p>
<div class="form-check">
<input class="form-check-input" type="radio" name="exampleRadios" id="exampleRadios1" value="option1">
<label class="form-check-label" for="exampleRadios1">
Side lobes are low
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="exampleRadios" id="exampleRadios2" value="option2">
<label class="form-check-label" for="exampleRadios2">
Efficiency is high
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="exampleRadios" id="exampleRadios3" value="option3">
<label class="form-check-label" for="exampleRadios3">
High SNR value
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="exampleRadios" id="exampleRadios4" value="option4">
<label class="form-check-label" for="exampleRadios4">
Low SNR value
</label>
</div>
<div class="ans mt-2">
<p>
<a class="btn btn-sm btn-dark" data-bs-toggle="collapse" href="#ans1" role="button" aria-expanded="false" aria-controls="collapseExample">
Answer
</a>
</p>
<div class="collapse" id="ans1">
<div class="card card-body">
2. Efficiency is High
</div>
</div>
</div>
</div>
<hr>
<br>
<div class="q2">
<!-- ans: 1 -->
<p>
2. At what condition does wave radiates?
</p>
<div class="form-check">
<input class="form-check-input" type="radio" name="exampleRadios" id="exampleRadios1" value="option1">
<label class="form-check-label" for="exampleRadios1">
When the TEM wave between transmitting and receiving antenna approaches lambda
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="exampleRadios" id="exampleRadios2" value="option2">
<label class="form-check-label" for="exampleRadios2">
When the TEM wave between transmitting and receiving antenna exceeds lambda
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="exampleRadios" id="exampleRadios3" value="option3">
<label class="form-check-label" for="exampleRadios3">
None of the above
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="exampleRadios" id="exampleRadios4" value="option4">
<label class="form-check-label" for="exampleRadios4">
When the TEM wave between transmitting and receiving antenna is lesser than lambda
</label>
</div>
<div class="ans mt-2">
<p>
<a class="btn btn-sm btn-dark" data-bs-toggle="collapse" href="#ans2" role="button" aria-expanded="false" aria-controls="collapseExample">
Answer
</a>
</p>
<div class="collapse" id="ans2">
<div class="card card-body">
1. When the TEM wave between transmitting and receiving antenna approaches lambda
</div>
</div>
</div>
</div>
<hr>
<br>
<div class="q3">
<!-- ans: 2 -->
<p>
3. The characteristics of an antenna's radiation pattern can be represented in ________ number of ways.
</p>
<div class="form-check">
<input class="form-check-input" type="radio" name="exampleRadios" id="exampleRadios1" value="option1">
<label class="form-check-label" for="exampleRadios1">
2
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="exampleRadios" id="exampleRadios2" value="option2">
<label class="form-check-label" for="exampleRadios2">
3
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="exampleRadios" id="exampleRadios3" value="option3">
<label class="form-check-label" for="exampleRadios3">
4
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="exampleRadios" id="exampleRadios4" value="option4">
<label class="form-check-label" for="exampleRadios4">
5
</label>
</div>
<div class="ans mt-2">
<p>
<a class="btn btn-sm btn-dark" data-bs-toggle="collapse" href="#ans3" role="button" aria-expanded="false" aria-controls="collapseExample">
Answer
</a>
</p>
<div class="collapse" id="ans3">
<div class="card card-body">
2. 3
</div>
</div>
</div>
</div>
<hr>
<br>
<div class="q4">
<!-- ans: 3 -->
<p>
4. Radiation patterns can be represented in terms of _______ types.
</p>
<div class="form-check">
<input class="form-check-input" type="radio" name="exampleRadios" id="exampleRadios1" value="option1">
<label class="form-check-label" for="exampleRadios1">
Field Patterns
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="exampleRadios" id="exampleRadios2" value="option2">
<label class="form-check-label" for="exampleRadios2">
Power Patterns
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="exampleRadios" id="exampleRadios3" value="option3">
<label class="form-check-label" for="exampleRadios3">
Both a and b
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="exampleRadios" id="exampleRadios4" value="option4">
<label class="form-check-label" for="exampleRadios4">
Direection Patterns
</label>
</div>
<div class="ans mt-2">
<p>
<a class="btn btn-sm btn-dark" data-bs-toggle="collapse" href="#ans4" role="button" aria-expanded="false" aria-controls="collapseExample">
Answer
</a>
</p>
<div class="collapse" id="ans4">
<div class="card card-body">
3. Both a and b
</div>
</div>
</div>
</div>
<hr>
<br>
<div class="q5">
<!-- ans: 1 -->
<p>
5. An electromagnetic wave has how many fields _______.
</p>
<div class="form-check">
<input class="form-check-input" type="radio" name="exampleRadios" id="exampleRadios1" value="option1">
<label class="form-check-label" for="exampleRadios1">
2
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="exampleRadios" id="exampleRadios2" value="option2">
<label class="form-check-label" for="exampleRadios2">
3
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="exampleRadios" id="exampleRadios3" value="option3">
<label class="form-check-label" for="exampleRadios3">
4
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="exampleRadios" id="exampleRadios4" value="option4">
<label class="form-check-label" for="exampleRadios4">
5
</label>
</div>
<div class="ans mt-2">
<p>
<a class="btn btn-sm btn-dark" data-bs-toggle="collapse" href="#ans5" role="button" aria-expanded="false" aria-controls="collapseExample">
Answer
</a>
</p>
<div class="collapse" id="ans5">
<div class="card card-body">
1. 2
</div>
</div>
</div>
</div>
<hr>
<br>
<div class="q6">
<!-- ans: 4 -->
<p>
6. Electric field in EM wave is plotted on ______ axis.
</p>
<div class="form-check">
<input class="form-check-input" type="radio" name="exampleRadios" id="exampleRadios1" value="option1">
<label class="form-check-label" for="exampleRadios1">
Either a or b
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="exampleRadios" id="exampleRadios2" value="option2">
<label class="form-check-label" for="exampleRadios2">
Y-axis
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="exampleRadios" id="exampleRadios3" value="option3">
<label class="form-check-label" for="exampleRadios3">
Z-axis
</label>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="exampleRadios" id="exampleRadios4" value="option4">
<label class="form-check-label" for="exampleRadios4">
X-axis
</label>
</div>
<div class="ans mt-2">
<p>
<a class="btn btn-sm btn-dark" data-bs-toggle="collapse" href="#ans6" role="button" aria-expanded="false" aria-controls="collapseExample">
Answer
</a>
</p>
<div class="collapse" id="ans6">
<div class="card card-body">
4. X-axis
</div>
</div>
</div>
</div>
<hr>
<br>
</div>
</div>
<!-- Procedure Starts here -->
<div class="info-center border border-dark border-1 rounded-3">
<p>
<a class="btn btn btn-outline-dark">
Vary the value of the distance of the point with from the antenna to
plot the graph and check the results obtained for a given frequency
and angle.
</a>
</p>
<hr />
<div id="steps">
<ol>
<li>
The exercise consists of three sliders through which you can vary
the Frequency, Distance and theta.
</li>
Here,
<br />
<ul>
<li>F: operating frequency of antenna</li>
<li>R: distance between given point and center of antenna</li>
<li>
Θ : angle between arm of antenna and the line joining point
P and center of antenna O
</li>
</ul>
<li>
Set the value of frequency and theta to your choice. (The value must
remain constant throughout the experiment)
</li>
<li>
After changing the values for R, F and Θ, observe the value of
the following parameters:
</li>
<ul>
<li>Magnitude of Electric Field</li>
<li>Magnitude of Magnetic Field</li>
</ul>
<li>
Now click on "Add to the table" button to add the values to the
Observation Table
</li>
<li>
Repeat the experiment 10 times with different values to fill up the
Observation Table
</li>
</ol>
</div>
</div>
<div class="exp">
<div class="d-flex justify-content-evenly">
<div class="d-flex flex-column">
<div class="btn btn-outline-dark btn-sm my-3">
<label for="customRange3" class="form-label">
Frequency (F) :
</label>
<input
type="range"
class="form-range"
min="300"
max="1000"
value="650"
id="customRange3"
onmousemove="freq(this.value)"
/>
<div id="freq">650 mHz</div>
</div>
<div class="btn btn-outline-dark btn-sm my-3">
<label for="customRange3" class="form-label">
Distance (R) :
</label>
<input
type="range"
class="form-range"
min="1"
max="100"
value="50"
id="customRange3"
onmousemove="dist(this.value)"
/>
<div id="dist">50 m</div>
</div>
<div class="btn btn-outline-dark btn-sm my-3">
<label for="customRange3" class="form-label">
Angle (Θ) :
</label>
<input
type="range"
class="form-range"
min="0"
max="180"
value="90"
id="customRange3"
onmousemove="angle(this.value)"
/>
<div id="theta">90 °</div>
</div>
</div>
<div class="d-flex flex-column">
<div class="consts">
<div class="d-flex flex-column">
<div class="inp1 mt-4 mb-2" id="txt3">
Speed of Light (c) : 3x10<sup>8</sup>,   µ<sub>0</sub>
= 4πx10<sup>-7</sup>   ε<sub>0</sub> =
8.84x10<sup>-12</sup>
</div>
<div class="inp1 my-2" id="txt3">
Maximum or peak value of current (I<sub>0</sub>) = 5
</div>
<div class="inp1 my-2" id="txt3">
Intrinsic Impedence (η) = 120π
</div>
<div class="inp1 my-2" id="txt3">
Relative permitivity (ε<sub>0</sub>) = 1
</div>
<div class="reset mt-3">
<p>
<a class="btn btn-outline-success" onclick="solve()">
Add values to the Observation Table
</a>
</p>
<p>
<a class="btn btn-outline-danger" onclick="reset()">
Reset
</a>
</p>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Observation Table Starts -->
<div class="table-header mt-3">
<p>
<a class="btn btn-outline-dark btn-lg"> Observation Table </a>
</p>
</div>
<div class="obs-table">
<div class="d-flex justify-content-evenly">
<table
class="table table-striped table-hover table-bordered border-dark"
>
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Frequency (mHz)</th>
<th scope="col">Distance (m)</th>
<th scope="col">Magnetic Field (A/m)</th>
<th scope="col">Electric Field (V/m)</th>
</tr>
</thead>
<tbody>
<tr>
<th scope="row">1</th>
<td><span id="freq2_1"></span></td>
<td><span id="dist2_1"></span></td>
<td><span id="mag2_1"></span></td>
<td><span id="elec2_1"></span></td>
</tr>
<tr>
<th scope="row">2</th>
<td><span id="freq2_2"></span></td>
<td><span id="dist2_2"></span></td>
<td><span id="mag2_2"></span></td>
<td><span id="elec2_2"></span></td>
</tr>
<tr>
<th scope="row">3</th>
<td><span id="freq2_3"></span></td>
<td><span id="dist2_3"></span></td>
<td><span id="mag2_3"></span></td>
<td><span id="elec2_3"></span></td>
</tr>
<tr>
<th scope="row">4</th>
<td><span id="freq2_4"></span></td>
<td><span id="dist2_4"></span></td>
<td><span id="mag2_4"></span></td>
<td><span id="elec2_4"></span></td>
</tr>
<tr>
<th scope="row">5</th>
<td><span id="freq2_5"></span></td>
<td><span id="dist2_5"></span></td>
<td><span id="mag2_5"></span></td>
<td><span id="elec2_5"></span></td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="plot-label">
<p>
<a class="btn btn-outline-success" onclick="plot()"> Plot </a>
</p>
</div>
<div id="mag">
<h5><u>Magnetic Field vs Distance from the antenna</u></h5>
</div>
<canvas id="myChartMag" style="width: 100%; max-width: 600px"></canvas>
<br><br>
<div id="elec">
<h5><u>Electric Field vs Distance from the antenna</u></h5>
</div>
<canvas id="myChartElec" style="width: 100%; max-width: 600px"></canvas>
<div>
<p>
<span style="float: left; margin-left: 50px"
><a class="btn btn-sm btn-outline-dark" href="index.html"
><strong> Back </strong></a
></span
>
<!-- <span style="float: right; margin-right: 50px"
><a class="btn btn-sm btn-outline-dark" href="conclusion.html"
><strong> Next </strong></a
></span -->
>
</p>
</div>
<br /><br />
<!-- Observation Table ends -->
</body>
</html>