Skip to content

Commit 72432a6

Browse files
authored
Merge pull request #4 from virtual-labs/dev
Dev
2 parents 2c0f857 + 2c5ca76 commit 72432a6

File tree

18 files changed

+546
-402
lines changed

18 files changed

+546
-402
lines changed

experiment/aim.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
2-
#### To study the properties of a magic tee and determining the scattering parameters.
1+
2+
#### To study the Properties of Magic Tee and Determine the Scattering Parameters of Magic.

experiment/postest.md

Lines changed: 51 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,51 @@
1-
## Post test
2-
#### Please attempt the following questions
3-
4-
5-
Q1. In a microwave Magic-Tee, E-plane and H-plane are \_\_\_\_\_\_.<br>
6-
7-
A in phase
8-
<b>B out of phase</b>
9-
C isolated
10-
D None
11-
<br>
12-
13-
Q2. Which device can detect the presence of both forward and backward waves in a wave guide \_\_\_\_\_\_.<br>
14-
15-
A filter
16-
B detector
17-
<b>C directional coupler</b>
18-
D magic Tee
19-
<br>
20-
21-
Q3. What is the other name for Magic-Tee?<br>
22-
23-
<b>A Hybrid Tee</b>
24-
B E Plane Tee
25-
C H Plane Tee
26-
D Rat Race Tee
27-
<br>
28-
29-
Q4. A reflex Klystron fuctions as<br>
30-
31-
<b>A Microwave oscillator</b>
32-
B Microwave amplifier
33-
C Both as Microwave amplifier and oscillator
34-
D A high gain cavity
35-
<br>
36-
37-
Q5. Which one of the following is also called 'rat race'?<br>
38-
39-
A E plane tee
40-
B H plane tee
41-
C Magic tee
42-
<b>D Hybrid ring</b>
43-
44-
1+
## Post test
2+
#### Please attempt the following questions
3+
4+
5+
Q1. In a Magic Tee, how many ports are there?<br>
6+
7+
A Two
8+
B Three
9+
<b>C Four</b>
10+
D Five
11+
<br>
12+
13+
Q2. Which device can detect the presence of both forward and backward waves in a wave guide___________.<br>
14+
15+
A filter
16+
B detector
17+
<b>C directional coupler</b>
18+
D magic Tee
19+
<br>
20+
21+
Q3. Consider the following statements about a magic tee:
22+
1. The collinear arms are isolated from each other.
23+
2. On of the collinear arms is isolated from E arm.
24+
3. On of the collinear arms is isolated from H arm.
25+
4. E and H arms are isolated from each other.
26+
27+
Which of these statements are correct?
28+
<br>
29+
30+
A 1 and 2 are correct
31+
B 1 and 3 are correct
32+
<b>C 1 and 4 are correct</b>
33+
D 2 and 3 are correct
34+
<br>
35+
36+
Q4. A reflex Klystron functions as<br>
37+
38+
<b>A Microwave oscillator</b>
39+
B Microwave amplifier
40+
C Both as Microwave amplifier and oscillator
41+
D A high gain cavity
42+
<br>
43+
44+
Q5. Which one of the following is also called 'rat race'?<br>
45+
46+
A E plane tee
47+
B H plane tee
48+
C Magic tee
49+
<b>D Hybrid ring</b>
50+
51+

experiment/posttest.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
[{"question":"In a microwave Magic-Tee, E-plane and H-plane are ______.","answers":{"a":"in phase","b":"out of phase","c":"isolated","d":"None"},"correctAnswer":"b"},
2-
{"question":"Which device can detect the presence of both forward and backward waves in a wave guide ______.","answers":{"a":"filter","b":"detector","c":"directional coupler","d":"magic Tee"},"correctAnswer":"c"},
3-
{"question":"What is the other name for Magic-Tee?","answers":{"a":"Hybrid Tee","b":"E Plane Tee","c":"H Plane Tee","d":"Rat Race Tee"},"correctAnswer":"a"},
4-
{"question":"A reflex Klystron fuctions as","answers":{"a":"Microwave oscillator","b":"Microwave amplifier","c":"Both as Microwave amplifier and oscillator","d":"A high gain cavity"},"correctAnswer":"a"},
5-
{"question":"Which one of the following is also called 'rat race'?","answers":{"a":"E plane tee","b":"H plane tee","c":"Magic tee","d":"Hybrid ring"},"correctAnswer":"d"}]
1+
[{"question":"In a Magic Tee, how many ports are there?","answers":{"a":"Two","b":"Three","c":"Four","d":"Five"},"correctAnswer":"c"},
2+
{"question":"Which device can detect the presence of both forward and backward waves in a wave guide ______.","answers":{"a":"filter","b":"detector","c":"directional coupler","d":"magic Tee"},"correctAnswer":"c"},
3+
{"question":"Consider the following statements about a magic tee: \n1. The collinear arms are isolated from each other.\n 2. On of the collinear arms is isolated from E arm.\n 3. On of the collinear arms is isolated from H arm.\n4. E and H arms are isolated from each other.\n Which of these statements are correct?","answers":{"a":"1 and 2 are correct","b":"1 and 3 are correct","c":"1 and 4 are correct","d":"2 and 3 are correct"},"correctAnswer":"c"},
4+
{"question":"A reflex Klystron functions as","answers":{"a":"Microwave oscillator","b":"Microwave amplifier","c":"Both as Microwave amplifier and oscillator","d":"A high gain cavity"},"correctAnswer":"a"},
5+
{"question":"Which one of the following is also called 'rat race'?","answers":{"a":"E plane tee","b":"H plane tee","c":"Magic tee","d":"Hybrid ring"},"correctAnswer":"d"}]
6+
7+

experiment/pretest.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
[{"question":"A Magic–Tee is nothing but","answers":{"a":"Modification of E-Plane tee","b":"Modification of H-Plane tee","c":"Combination of E-plane & H-plane","d":"Two E-plane tees connected in parallel"},"correctAnswer":"c"},
2-
{"question":"Which of the following is wrong for a magic used to tee","answers":{"a":"A signal into coplanar arm splits equally between Eand H arms","b":"coplanar arms are coupled","c":"all ports are perfectly matched","d":"E and H arms are decoupled"},"correctAnswer":"b"},
3-
{"question":"Consider the following statements about a magic tee \n1. The collinear arms are isolated from each other.\n 2. On of the collinear arms is isolated from E arm.\n 3. On of the collinear arms is isolated from H arm.\n4. E and H arms are isolated from each other.\n Which of these statements are correct?","answers":{"a":"1 and 2 are correct","b":"1 and 3 are correct","c":"1 and 4 are correct","d":"2 and 3 are correct"},"correctAnswer":"c"},
4-
{"question":"A Tee connector used with waveguides is:","answers":{"a":"an H-plane Tee","b":"a magic Tee","c":"an E-plane Tee","d":"all of the above"},"correctAnswer":"d"},
1+
[{"question":"A Magic–Tee is nothing but","answers":{"a":"Modification of E-Plane tee","b":"Modification of H-Plane tee","c":"Combination of E-plane & H-plane","d":"Two E-plane tees connected in parallel"},"correctAnswer":"c"},
2+
{"question":"Which of the following is wrong for a magic used to tee","answers":{"a":"A signal into coplanar arm splits equally between E and H arms","b":"coplanar arms are coupled","c":"all ports are perfectly matched","d":"E and H arms are decoupled"},"correctAnswer":"b"},
3+
{"question":"What is the other name for Magic-Tee?","answers":{"a":"Hybrid Tee","b":"E Plane Tee","c":"H Plane Tee","d":"Rat Race Tee"},"correctAnswer":"a"},
4+
{"question":"A Tee connector used with waveguides is:","answers":{"a":"an H-plane Tee","b":"a magic Tee","c":"an E-plane Tee","d":"all of the above"},"correctAnswer":"d"},
55
{"question":"When two signals of equal magnitude are fed from port 1 and 2, we get a zero at","answers":{"a":"Port 2","b":"Port 3","c":"Port 4","d":"None of the above"},"correctAnswer":"b"}]

experiment/pretest.md

Lines changed: 47 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,47 @@
1-
## Pre Test
2-
#### Please attempt the following questions
3-
4-
5-
Q1. A Magic–Tee is nothing but<br>
6-
7-
A Modification of E-Plane tee
8-
B Modification of H-Plane tee
9-
<b>C Combination of E-plane & H-plane</b>
10-
D Two E-plane tees connected in parallel
11-
<br>
12-
13-
14-
Q2. Which of the following is wrong for a magic used to tee<br>
15-
16-
A A signal into coplanar arm splits equally between Eand H arms
17-
<b>B coplanar arms are coupled</b>
18-
C all ports are perfectly matched
19-
D E and H arms are decoupled
20-
<br>
21-
22-
23-
Q3. Consider the following statements about a magic tee
24-
1. The collinear arms are isolated from each other.
25-
2. On of the collinear arms is isolated from E arm.
26-
3. On of the collinear arms is isolated from H arm.
27-
4. E and H arms are isolated from each other.
28-
29-
Which of these statements are correct?
30-
<br>
31-
32-
A 1 and 2 are correct
33-
B 1 and 3 are correct
34-
<b>C 1 and 4 are correct</b>
35-
D 2 and 3 are correct
36-
<br>
37-
38-
39-
Q4. A Tee connector used with waveguides is:<br>
40-
41-
A an H-plane Tee
42-
B a magic Tee
43-
C an E-plane Tee
44-
<b>D all of the above</b>
45-
<br>
46-
47-
48-
Q5. When two signals of equal magnitude are fed from port 1 and 2, we get a zero at<br>
49-
50-
A Port 2
51-
<b>B Port 3</b>
52-
C Port 4
53-
D None of the above
54-
1+
## Pre Test
2+
#### Please attempt the following questions
3+
4+
5+
Q1. A Magic–Tee is nothing but<br>
6+
7+
A Modification of E-Plane tee
8+
B Modification of H-Plane tee
9+
<b>C Combination of E-plane & H-plane</b>
10+
D Two E-plane tees connected in parallel
11+
<br>
12+
13+
14+
Q2. Which of the following is wrong for a magic used to tee<br>
15+
16+
A A signal into coplanar arm splits equally between E and H arms
17+
<b>B coplanar arms are coupled</b>
18+
C all ports are perfectly matched
19+
D E and H arms are decoupled
20+
<br>
21+
22+
23+
Q3. What is the other name for Magic-Tee?<br>
24+
25+
<b>A Hybrid Tee</b>
26+
B E Plane Tee
27+
C H Plane Tee
28+
D Rat Race Tee
29+
<br>
30+
31+
32+
Q4. A Tee connector used with waveguides is:<br>
33+
34+
A an H-plane Tee
35+
B a magic Tee
36+
C an E-plane Tee
37+
<b>D all of the above</b>
38+
<br>
39+
40+
41+
Q5. When two signals of equal magnitude are fed from port 1 and 2, we get a zero at<br>
42+
43+
A Port 2
44+
<b>B Port 3</b>
45+
C Port 4
46+
D None of the above
47+

experiment/simulation/css/task10.css

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,6 @@ transition:all 1s ease-in-out;
188188
}
189189

190190

191-
192-
193191
p {
194192
font-family: Helvetica, Arial, Sans-serif;
195193
text-align: center;
@@ -198,15 +196,16 @@ color: #0f69cd;
198196

199197
#jog_dial_one,#jog_dial_two {
200198
position: relative;
201-
width: 30px;
202-
height: 30px;
199+
width: 40px;
200+
height: 40px;
203201
margin: 5px auto;
204202
background: #0f69cd;
205203
-webkit-border-radius: 150px;
206204
-moz-border-radius: 150px;
207205
-ms-border-radius: 150px;
208206
-o-border-radius: 150px;
209207
border-radius: 150px;
208+
cursor:not-allowed;
210209
}
211210
#jog_dial_3,#jog_dial_4,#jog_dial_5,#jog_dial_6{
212211
position: relative;

experiment/simulation/css/task7.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,15 +193,16 @@ color: #0f69cd;
193193

194194
#jog_dial_one,#jog_dial_two {
195195
position: relative;
196-
width: 30px;
197-
height: 30px;
196+
width: 40px;
197+
height: 40px;
198198
margin: 5px auto;
199199
background: #0f69cd;
200200
-webkit-border-radius: 150px;
201201
-moz-border-radius: 150px;
202202
-ms-border-radius: 150px;
203203
-o-border-radius: 150px;
204204
border-radius: 150px;
205+
cursor:not-allowed;
205206
}
206207
#jog_dial_3,#jog_dial_4,#jog_dial_5,#jog_dial_6{
207208
position: relative;

experiment/simulation/css/task9.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,15 +278,16 @@ html,body{
278278

279279
#jog_dial_one,#jog_dial_two {
280280
position: relative;
281-
width: 30px;
282-
height: 30px;
281+
width: 40px;
282+
height: 40px;
283283
margin: 5px auto;
284284
background: #0f69cd;
285285
-webkit-border-radius: 150px;
286286
-moz-border-radius: 150px;
287287
-ms-border-radius: 150px;
288288
-o-border-radius: 150px;
289289
border-radius: 150px;
290+
cursor:not-allowed;
290291
}
291292
#jog_dial_3,#jog_dial_4,#jog_dial_5,#jog_dial_6{
292293
position: relative;

experiment/simulation/index.html

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@
257257
<td>
258258

259259
<div id="exph">
260-
<h2 id="expm">To Study and Determine the Scattering Parameters of Magic Tee. &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <button ondblclick="hide()" onclick="hov()" id="help">INSTRUCTIONS</button> </h2>
260+
<h2 id="expm"> Measurement of Scattering Parameters of Magic Tee &emsp; &emsp; &emsp; &emsp; &emsp; &emsp; &emsp; &emsp; <button style="font-family: 'Times New Roman', Times, serif;" ondblclick="hide()" onclick="hov()" id="help">INSTRUCTIONS</button> </h2>
261261

262262

263263
</div>
@@ -295,9 +295,8 @@ <h2 id="expm">To Study and Determine the Scattering Parameters of Magic Tee. &nb
295295

296296
As soon as you start varying the reflector voltage you will observe a waveform on CRO.
297297
</div>
298-
<div class="carousel-item ">
299-
300-
Keep varying the "Reflector voltage" till you get square waveform on CRO.
298+
<div class="carousel-item ">
299+
Keep varying the "Reflector voltage" till you get square waveform (at 180, 219, or 239) on CRO.
301300
</div>
302301
<div class="carousel-item ">
303302

@@ -748,7 +747,7 @@ <h5 class="heading4">Frequency</h5>
748747

749748

750749

751-
<script src="js/JogDial.js"></script>
750+
<script src="js/jogDial.js"></script>
752751
<script src="js/jsplumb1.js"></script>
753752
<!-- /JS -->
754753

experiment/simulation/js/demo1.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
var rightconnection=false;
22
var datapoints1 = [];
3+
var knobFlag=false;
34
jsPlumb.ready(function () {
45

56
var instance,
@@ -221,11 +222,15 @@ document.getElementById("check11").addEventListener("click", function () {
221222
container: 'position-absolute',
222223
popup:"swal2-popup"
223224
},
224-
title:"Good Job",
225-
text:"Correct Connection",
225+
title:"Correct Connection",
226+
text:"Connection established",
226227
icon:'success',
227228
});
228229

230+
knobFlag=true;
231+
document.getElementById('jog_dial_one').style.cursor='pointer';
232+
document.getElementById('jog_dial_two').style.cursor='pointer';
233+
229234
document.getElementById("name").style.visibility = "visible";
230235
document.getElementById("cch").disabled= false;
231236
document.getElementById("check11").disabled= true;

experiment/simulation/js/demo2.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
var rightconnection=false;
22
var c,d;
33
var datapoints1 = [];
4+
var knobFlag=false;
45
jsPlumb.ready(function () {
56

67
var instance,
@@ -222,11 +223,15 @@ document.getElementById("check11").addEventListener("click", function () {
222223
container: 'position-absolute',
223224
popup:"swal2-popup"
224225
},
225-
title:"Good Job",
226-
text:"Correct Connection",
226+
title:"Correct Connection",
227+
text:"Connection established",
227228
icon:'success',
228229
});
229230

231+
knobFlag=true;
232+
document.getElementById('jog_dial_one').style.cursor='pointer';
233+
document.getElementById('jog_dial_two').style.cursor='pointer';
234+
230235
document.getElementById("name").style.visibility = "visible";
231236
document.getElementById("cch").disabled= false;
232237
document.getElementById("check11").disabled= true;
@@ -235,10 +240,10 @@ document.getElementById("check11").addEventListener("click", function () {
235240
document.getElementById("images").style.visibility= "hidden";
236241
document.getElementById("images").style.display= "none";
237242
document.getElementById("images1").style.visibility= "visible";
238-
document.getElementById("beam").innerText= localStorage.getItem("Beam")
243+
document.getElementById("beam").innerText= localStorage.getItem("Beam")+' V'
239244
document.getElementById("one").innerText= localStorage.getItem("V1")
240245

241-
document.getElementById("reflector").innerText= localStorage.getItem("Reflector")
246+
document.getElementById("reflector").innerText= localStorage.getItem("Reflector")+' V'
242247

243248
document.getElementById("images1").style.opacity= "1";
244249
document.getElementById("images1").style.display= "block";

0 commit comments

Comments
 (0)