From 7bc77cb1ed33745c720952c92b3b2747c5cbf2df Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Sat, 3 Feb 2018 11:01:52 +0530 Subject: Added new code --- 3830/CH4/EX4.1/Ex4_1.sce | 19 +++++++++++++++++++ 3830/CH4/EX4.2/Ex4_2.sce | 40 ++++++++++++++++++++++++++++++++++++++++ 3830/CH4/EX4.3/Ex4_3.sce | 17 +++++++++++++++++ 3830/CH4/EX4.4/Ex4_4.sce | 15 +++++++++++++++ 3830/CH4/EX4.5/Ex4_5.sce | 18 ++++++++++++++++++ 3830/CH4/EX4.6/Ex4_6.sce | 29 +++++++++++++++++++++++++++++ 3830/CH4/EX4.7/Ex4_7.sce | 20 ++++++++++++++++++++ 3830/CH4/EX4.8/Ex4_8.sce | 15 +++++++++++++++ 3830/CH4/EX4.9/Ex4_9.sce | 19 +++++++++++++++++++ 9 files changed, 192 insertions(+) create mode 100644 3830/CH4/EX4.1/Ex4_1.sce create mode 100644 3830/CH4/EX4.2/Ex4_2.sce create mode 100644 3830/CH4/EX4.3/Ex4_3.sce create mode 100644 3830/CH4/EX4.4/Ex4_4.sce create mode 100644 3830/CH4/EX4.5/Ex4_5.sce create mode 100644 3830/CH4/EX4.6/Ex4_6.sce create mode 100644 3830/CH4/EX4.7/Ex4_7.sce create mode 100644 3830/CH4/EX4.8/Ex4_8.sce create mode 100644 3830/CH4/EX4.9/Ex4_9.sce (limited to '3830/CH4') diff --git a/3830/CH4/EX4.1/Ex4_1.sce b/3830/CH4/EX4.1/Ex4_1.sce new file mode 100644 index 000000000..25e272882 --- /dev/null +++ b/3830/CH4/EX4.1/Ex4_1.sce @@ -0,0 +1,19 @@ +// Exa 4.1 + +clc; +clear; + +// Given + +// An oscilloscope + +R = 400; // Resistance(k Ohms) +C = 0.025; // capacitance(micro Farad) +T = 0.4; // Time period of saw-tooth output waveform(msec) + +// Solution + +printf(' The percentage of non linearity i.e deviation in output can be given as t/(4*R*C)\n '); +PD = (T*10^-3)/(4*R*10^3*C*10^-6) ; + +printf(' Therefore, by calculation, percent deviation = %d percent \n ',PD*100); diff --git a/3830/CH4/EX4.2/Ex4_2.sce b/3830/CH4/EX4.2/Ex4_2.sce new file mode 100644 index 000000000..69016bfc6 --- /dev/null +++ b/3830/CH4/EX4.2/Ex4_2.sce @@ -0,0 +1,40 @@ +// Exa 4.2 + +clc; +clear; + +// Given + +f = 83.3 ; // frequency of sinusoidal voltage in KHz + +// Solution +// part a + +printf('Being sunchronised, the frequency of the saw-tooth wave will be a submultiple of the signal. \n'); + +printf(' Frequency of saw-tooth curve = %.2f kHz \n',f/10); +F = f/10; +printf(' Period of the saw-tooth curve = %.1f microsec \n',(1/F)*10^3); + +// since, Sine wave y = A sin theta +// but y/A = 0.5(since, end of trace was at position half the amplitide away from x-axis) +theta = asind(1/2) ; +printf(' The 10th wave is in short of a complete since wave by %d degrees \n',theta); +printf(' Therefore, No of full waves of sine form seen on the screen are 9 11/12 waveforms \n'); + +// Rise time +decay time = period of wave = 120 microsec +T = 120 ; // period in microsec + Rise_by_decay = (119/12) / (10- 119/12); +DecayTime = Rise_by_decay/T; +printf(' Decay time = %.1f microsec \n',round(DecayTime)); +printf(' Rise time = %.1f microsec \n',T-DecayTime); + +// part b + +printf(' Since, increase time base frequency = 10/4 times the final value \n'); + +L = (10/4)* theta ; +printf(' Length of trace blanked in degrees due to flyback time = %d degrees \n ',L); +T_new = T*4/10; +printf('Period of new time base = %d microsec \n',T_new); +printf(' Rise time as per new time base = %d microsec \n',T_new-1); diff --git a/3830/CH4/EX4.3/Ex4_3.sce b/3830/CH4/EX4.3/Ex4_3.sce new file mode 100644 index 000000000..6604a28fb --- /dev/null +++ b/3830/CH4/EX4.3/Ex4_3.sce @@ -0,0 +1,17 @@ +// Exa 4.3 + +clc; +clear; + +// Given + +Va = 2500; // Applied voltage(Volts) +e = 1.602*10^-19; // Charge of electron(C) +m = 9.107*10^-31; // Mass of electron(Kg) + +// Solution + +// For Electron beam in the oscilloscope, its velocity is given as- +V = sqrt(2*e*Va/m); + +printf(' The velocity of electron beam of an oscilloscope = %.3f * 10^6 m/sec \n',V/10^6); diff --git a/3830/CH4/EX4.4/Ex4_4.sce b/3830/CH4/EX4.4/Ex4_4.sce new file mode 100644 index 000000000..6ddf351ea --- /dev/null +++ b/3830/CH4/EX4.4/Ex4_4.sce @@ -0,0 +1,15 @@ +// Exa 4.4 + +clc; +clear; + +// Given + +Def_sensitivity = 0.05; // Deflection sensitivity in mm/V +Spot_deflection = 5; // in mm + +// Solution + +AppliedVoltage = Spot_deflection/Def_sensitivity ; + +printf(' The applied voltage = %d V \n',AppliedVoltage); diff --git a/3830/CH4/EX4.5/Ex4_5.sce b/3830/CH4/EX4.5/Ex4_5.sce new file mode 100644 index 000000000..063cc090f --- /dev/null +++ b/3830/CH4/EX4.5/Ex4_5.sce @@ -0,0 +1,18 @@ +// Exa 4.5 + +clc; +clear; + +// Given + +// A CRT under consideration +l = 20; // length of x-deflection plates in mm +d = 5; // distance between x-deflection plates in mm +s = 250; // distance between screen and center of plate in mm +Va = 3000; // applied accelerating voltage in volts + +// Solution + +Def_sensitivity = l*s/(2*d*Va) ; +printf(' The deflection sensitivity = %.5f mm/V \n',Def_sensitivity); +printf(' The deflection factor = %.1f V/mm \n',1/Def_sensitivity); diff --git a/3830/CH4/EX4.6/Ex4_6.sce b/3830/CH4/EX4.6/Ex4_6.sce new file mode 100644 index 000000000..42401bbcf --- /dev/null +++ b/3830/CH4/EX4.6/Ex4_6.sce @@ -0,0 +1,29 @@ +// Exa 4.6 + +clc; +clear; + +// Given + +l = 25; // length of x-deflection plates in mm +d = 1; // distance between x-deflection plates in mm +s = 200; // distance between screen and centre of plate in mm +Va = 3000; // applied accelerating voltage in volts +Lt = 100; // length of trace in mm + +// Solution + +// Deflection produced = y/Vd = s*l/(2*d*Va) + +y = 1/2 *(Lt); +// Therefore, +Vd = 2*d*Va*y/(l*s) ; + +Vrms = Vd/sqrt(2) ; + +printf(' The Vrms of the applied sinusoidal voltage = %.1f V \n',Vd); + +Def_sensitivity = l*s/(2*d*Va) ; +printf(' The deflection sensitivity = %.5f mm/V \n',Def_sensitivity); + +// The answer provided in the textbook is wrong diff --git a/3830/CH4/EX4.7/Ex4_7.sce b/3830/CH4/EX4.7/Ex4_7.sce new file mode 100644 index 000000000..8359d25d7 --- /dev/null +++ b/3830/CH4/EX4.7/Ex4_7.sce @@ -0,0 +1,20 @@ +// Exa 4.7 + +clc; +clear; + +// Given + +// Two sinusoidal voltage signals are applied to vertical and horizontal plates of CRO + +// Solution +printf('Theta = asin(dvo/DV'); +// Referring fig(a) +Theta_a = asind(0) ; // dvo = 0 +printf(' Theta for trace shown in fig(a) = %d degrees\n',Theta_a); +// Referring fig(b) +Theta_b = asind(3/6) ; // dvo = 3 and DV =6 +printf(' Theta for trace shown in fig(b) = %d degrees\n',Theta_b); +// Referring fig(c) +Theta_c = asind(1/1) ; // dvo = DV = 1 +printf(' Theta for trace shown in fig(c) = %d degrees\n',Theta_c); diff --git a/3830/CH4/EX4.8/Ex4_8.sce b/3830/CH4/EX4.8/Ex4_8.sce new file mode 100644 index 000000000..df37267b9 --- /dev/null +++ b/3830/CH4/EX4.8/Ex4_8.sce @@ -0,0 +1,15 @@ +// Exa 4.8 + +clc; +clear; + +// Given + +// Referring closed Lissajous pattern as shown in fig. +wx = 2; // no of positive x-peak +wy = 3; // no of positive y-peak + +// Solution + +fy_fx = wy/wx ; +printf(' Ratio of frequencies between vertical and horizontal signals = %.1f \n',fy_fx); diff --git a/3830/CH4/EX4.9/Ex4_9.sce b/3830/CH4/EX4.9/Ex4_9.sce new file mode 100644 index 000000000..068182b3e --- /dev/null +++ b/3830/CH4/EX4.9/Ex4_9.sce @@ -0,0 +1,19 @@ +// Exa 4.9 + +clc; +clear; + +// Given + +// Referring Lissajous pattern shown in figure +wx = 1 ; // Sum of x-peak pattern +wy = 2.5; // sum of y-peak pattern +fx = 3; // frequency of horizontal signal + +X = wy/wx ; // X is ratio of fy/fx + +// Therefore, fy = 2.5*fx + +printf(' Frequency of vertical signal = %.1f kHz \n ',X*fx); + +// The answer provided in the textbook is wrong -- cgit