summaryrefslogtreecommitdiff
path: root/3554/CH13/EX13.1/Ex13_1.sce
blob: eeb9f7f5ce7a9b97ca14faba5c4c8229c022ff2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Exa 13.1

clc;
clear all;

// Given data
// Refer circuit given in Fig no.13.2(b) given on page no.381

Shaft=3; // Shaft stroke in inches
Wiper=0.9;// in inches
R=5; // Total resistance(R1+R2) in K ohms
Vt=5; // Applied voltage in volts

// Solution

R2=Wiper/Shaft * R ;// in k Ohms
// Since Vo/Vt=R2/(R1+R2);
// Therefore
Vo=R2/(R) *Vt; // Output Voltage(R1+R2)
printf(' The output voltage = %.1f V \n',Vo);