From 8ac15bc5efafa2afc053c293152605b0e6ae60ff Mon Sep 17 00:00:00 2001 From: Siddharth Agarwal Date: Tue, 3 Sep 2019 18:27:40 +0530 Subject: Xcos examples from textbooks and for blocks --- Working_Examples/154/CH6/EX6.10/ch6_10.sce | 20 ++++++++++++++++++++ Working_Examples/154/CH6/EX6.11/ch6_11.xcos | 1 + Working_Examples/154/CH6/EX6.11/ch6_111.jpeg | Bin 0 -> 31091 bytes Working_Examples/154/CH6/EX6.11/chap6_11.jpeg | Bin 0 -> 19952 bytes Working_Examples/154/CH6/EX6.15/ch6_15.xcos | 1 + Working_Examples/154/CH6/EX6.15/ch6_151.jpeg | Bin 0 -> 32002 bytes Working_Examples/154/CH6/EX6.15/chap6_15.jpeg | Bin 0 -> 24785 bytes Working_Examples/154/CH6/EX6.8/ch6_8.sce | 15 +++++++++++++++ Working_Examples/154/CH6/EX6.9/ch6_9.xcos | 1 + Working_Examples/154/CH6/EX6.9/ch6_91.jpeg | Bin 0 -> 37751 bytes Working_Examples/154/CH6/EX6.9/chap6_9.jpeg | Bin 0 -> 52262 bytes 11 files changed, 38 insertions(+) create mode 100755 Working_Examples/154/CH6/EX6.10/ch6_10.sce create mode 100644 Working_Examples/154/CH6/EX6.11/ch6_11.xcos create mode 100755 Working_Examples/154/CH6/EX6.11/ch6_111.jpeg create mode 100755 Working_Examples/154/CH6/EX6.11/chap6_11.jpeg create mode 100644 Working_Examples/154/CH6/EX6.15/ch6_15.xcos create mode 100755 Working_Examples/154/CH6/EX6.15/ch6_151.jpeg create mode 100755 Working_Examples/154/CH6/EX6.15/chap6_15.jpeg create mode 100755 Working_Examples/154/CH6/EX6.8/ch6_8.sce create mode 100755 Working_Examples/154/CH6/EX6.9/ch6_9.xcos create mode 100755 Working_Examples/154/CH6/EX6.9/ch6_91.jpeg create mode 100755 Working_Examples/154/CH6/EX6.9/chap6_9.jpeg (limited to 'Working_Examples/154/CH6') diff --git a/Working_Examples/154/CH6/EX6.10/ch6_10.sce b/Working_Examples/154/CH6/EX6.10/ch6_10.sce new file mode 100755 index 0000000..663bdca --- /dev/null +++ b/Working_Examples/154/CH6/EX6.10/ch6_10.sce @@ -0,0 +1,20 @@ +clc +printf("Given") +disp("R1=1 ohm;R2=1/2 ohm;R3=1/4 ohm;R4=1/8 ohm") +disp("Rf=1 ohm") +//From figure 6.14 +//THe output of summing circuit can be written as +disp("v0=-((Rf/R1)*v1+(Rf/R2)*v2+(Rf/R3)*v3+......") +//From above equation +disp("v0=-(8v4+4v3+2v2+v1)-----------(1)") +disp("a)") +v1=1;v2=0;v3=0;v4=1; +//Substituting in equation (1) +v0=-(8*v4+4*v3+2*v2+v1) +printf("v0=%dV\n",v0); + +disp("b)") +v1=0;v2=1;v3=1;v4=1; +//Substituting in equation (1) +v0=-(8*v4+4*v3+2*v2+v1) +printf("v0=%dV\n",v0); diff --git a/Working_Examples/154/CH6/EX6.11/ch6_11.xcos b/Working_Examples/154/CH6/EX6.11/ch6_11.xcos new file mode 100644 index 0000000..a391140 --- /dev/null +++ b/Working_Examples/154/CH6/EX6.11/ch6_11.xcos @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Working_Examples/154/CH6/EX6.11/ch6_111.jpeg b/Working_Examples/154/CH6/EX6.11/ch6_111.jpeg new file mode 100755 index 0000000..017d2e2 Binary files /dev/null and b/Working_Examples/154/CH6/EX6.11/ch6_111.jpeg differ diff --git a/Working_Examples/154/CH6/EX6.11/chap6_11.jpeg b/Working_Examples/154/CH6/EX6.11/chap6_11.jpeg new file mode 100755 index 0000000..9fde52a Binary files /dev/null and b/Working_Examples/154/CH6/EX6.11/chap6_11.jpeg differ diff --git a/Working_Examples/154/CH6/EX6.15/ch6_15.xcos b/Working_Examples/154/CH6/EX6.15/ch6_15.xcos new file mode 100644 index 0000000..1c81c81 --- /dev/null +++ b/Working_Examples/154/CH6/EX6.15/ch6_15.xcos @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Working_Examples/154/CH6/EX6.15/ch6_151.jpeg b/Working_Examples/154/CH6/EX6.15/ch6_151.jpeg new file mode 100755 index 0000000..6a066d5 Binary files /dev/null and b/Working_Examples/154/CH6/EX6.15/ch6_151.jpeg differ diff --git a/Working_Examples/154/CH6/EX6.15/chap6_15.jpeg b/Working_Examples/154/CH6/EX6.15/chap6_15.jpeg new file mode 100755 index 0000000..a961737 Binary files /dev/null and b/Working_Examples/154/CH6/EX6.15/chap6_15.jpeg differ diff --git a/Working_Examples/154/CH6/EX6.8/ch6_8.sce b/Working_Examples/154/CH6/EX6.8/ch6_8.sce new file mode 100755 index 0000000..d971edf --- /dev/null +++ b/Working_Examples/154/CH6/EX6.8/ch6_8.sce @@ -0,0 +1,15 @@ +clc +disp("Example 6.8") +printf("Given") +disp("R1= 10kohm R2=50kohm Ri=500kohm R0=0") +disp("Open loop gain (A)=10^5") +A=10^5;R1=10*10^3;R2=50*10^3;Ri=500*10^3; +//From figure 6.11 +//Applying KCL equation at node B +disp("(v1+vd)/10+ (v2+vd)/50+ vd/500=0 (1)") +//Since R0=0 +disp("v2=A*vd") +//Solving for vd +disp("vd=10^-5*v2 (2)") +//Substituting (2) in (1) we get +printf("v2/v1=%d\n",-5) \ No newline at end of file diff --git a/Working_Examples/154/CH6/EX6.9/ch6_9.xcos b/Working_Examples/154/CH6/EX6.9/ch6_9.xcos new file mode 100755 index 0000000..59c29be --- /dev/null +++ b/Working_Examples/154/CH6/EX6.9/ch6_9.xcos @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Working_Examples/154/CH6/EX6.9/ch6_91.jpeg b/Working_Examples/154/CH6/EX6.9/ch6_91.jpeg new file mode 100755 index 0000000..08cc93b Binary files /dev/null and b/Working_Examples/154/CH6/EX6.9/ch6_91.jpeg differ diff --git a/Working_Examples/154/CH6/EX6.9/chap6_9.jpeg b/Working_Examples/154/CH6/EX6.9/chap6_9.jpeg new file mode 100755 index 0000000..7655778 Binary files /dev/null and b/Working_Examples/154/CH6/EX6.9/chap6_9.jpeg differ -- cgit