blob: b02f8d67957a22d574444c158334342719a834fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
//CHAPTER 8- DIRECT CURRENT MACHINES
//Example 1
disp("CHAPTER 8");
disp("EXAMPLE 1");
//VARIABLE INITIALIZATION
v_t=250; //terminal voltage in Volts
I_l=500; //load current in Amperes
r_a=0.04; //armature resistance in Ohms
r_f=50; //shunt field resistance in Ohms
//SOLUTION
I_f=v_t/r_f;
I_a=I_l+I_f;
E_a=v_t+(I_a*r_a); //here E_a=emf of generator
disp(sprintf("The generated emf is %f V",E_a));
//END
|