summaryrefslogtreecommitdiff
path: root/3754/CH21/EX21.6/21_6.sce
diff options
context:
space:
mode:
Diffstat (limited to '3754/CH21/EX21.6/21_6.sce')
-rw-r--r--3754/CH21/EX21.6/21_6.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/3754/CH21/EX21.6/21_6.sce b/3754/CH21/EX21.6/21_6.sce
new file mode 100644
index 000000000..57eea43ae
--- /dev/null
+++ b/3754/CH21/EX21.6/21_6.sce
@@ -0,0 +1,17 @@
+clear//
+
+//Variables
+
+TON = 30.0 //Chopper ON time (in milli-second)
+TOFF = 10.0 //Chopper OFF time (in milli-second)
+Vdc = 200.0 //dc voltage (in volts)
+
+//Calculation
+
+T = TON + TOFF //Total time (in milli-second)
+cdc = TON / T //Chopper duty cycle
+VL = Vdc * cdc //dc output voltage (in volts)
+
+//Result
+
+printf("\n Average valuye of dc voltage is %0.3f V.",VL)