summaryrefslogtreecommitdiff
path: root/1316/CH2/EX2.1/example2_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '1316/CH2/EX2.1/example2_1.sce')
-rw-r--r--1316/CH2/EX2.1/example2_1.sce29
1 files changed, 29 insertions, 0 deletions
diff --git a/1316/CH2/EX2.1/example2_1.sce b/1316/CH2/EX2.1/example2_1.sce
new file mode 100644
index 000000000..a7f5357e7
--- /dev/null
+++ b/1316/CH2/EX2.1/example2_1.sce
@@ -0,0 +1,29 @@
+//Chapter 2
+//Example 2.1
+//Page 55
+
+clear;
+clc;
+
+Ri = 10;
+TF = 0.020;
+Ro = 5;
+T = 50;
+
+printf("The unloaded output of sensor is simply ")
+//Calculation of Vt
+x = TF*T;
+printf("Vt = %.1f \n",x)
+printf("Since the amplifier has a gain of 10,the output of the amplifier appears to be ")
+//Calculation of Vout
+y = Ri*x;
+printf("Vout = %.0f V \n",y)
+printf("But this is wrong because of loading !\n ")
+//Correct Analysis
+printf("Here we see that there will be a voltage dropped across the \n output resistance of the sensor.The actual amplifier input voltage will be given by ")
+//Calculation of Vin
+a = x*(1-((Ro)/(Ro+Ri)));
+printf("Vin = %.2f V.\n",a)
+printf("Thus the output of amplifier is actually Vout = %.1f V \n",Ri*a)
+
+