Advertisement
ClementBen

TP 1 - Contrôle commandes

Sep 29th, 2020
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 1.33 KB | None | 0 0
  1. % Matlab
  2. % QUESTION 1
  3. R = 1.34;
  4. L = 0.12e-3;
  5. Ke = 60/(585*2*pi);
  6. Kc = 16.3e-3;
  7. Jm = 9.19e-7;
  8. Kom = (1.75e-3)/(2*pi/60);
  9. Kth = 0.5/(10*pi/180);
  10. x = 36;
  11.  
  12. %{
  13. f = 0;
  14. Rc = 0;
  15. Cr0 = 1e-3;
  16. %}
  17.  
  18.  
  19. p = tf('p');
  20.  
  21. % QUESTION 2
  22. % Cas A)
  23. %{
  24. for i = 0:20
  25.     f = (i/10e6);
  26.     TuuGT = (Kc*Kom)/((R+L*p)*(2*Jm*p+((1+1/x^2)*f)+Kc*Ke*((1/R+L*p)+(1/R+Rc+L*p))));
  27.     hold on;
  28.     bode(TuuGT);
  29. end
  30. %}
  31.  
  32. % Cas B)
  33. %{
  34. f = 1e-6;
  35. TuuGT = (Kc*Kom)/((R+L*p)*(2*Jm*p+((1+1/x^2)*f)+Kc*Ke*((1/R+L*p)+(1/R+Rc+L*p))));
  36. bode(TuuGT);
  37. for i = 0:3
  38.     Rc = 10^i;
  39.    
  40.     TuuGT = (Kc*Kom)/((R+L*p)*(2*Jm*p+((1+1/x^2)*f)+Kc*Ke*((1/R+L*p)+(1/R+Rc+L*p))));
  41.     hold on;
  42.     bode(TuuGT);
  43. end
  44. %}
  45.  
  46. % QUESTION 3
  47. % Cas A)
  48. %{
  49. Rc = 0;
  50. for i = 0:20
  51.     f = (i/10e6);
  52.     TpuGT = (-Kom)/(2*Jm*p+((1+1/x^2)*f)+Kc*Ke*((1/R+L*p)+(1/R+Rc+L*p)));
  53.     hold on;
  54.     bode(TpuGT);
  55. end
  56. %}
  57.  
  58. % Cas B)
  59. %{
  60. f = 1e-6;
  61. TpuGT = (-Kom)/(2*Jm*p+((1+1/x^2)*f)+Kc*Ke*((1/R+L*p)+(1/R+Rc+L*p)));
  62. bode(TpuGT);
  63. for i = 0:3
  64.     Rc = 10^i;
  65.    
  66.     TpuGT = (-Kom)/(2*Jm*p+((1+1/x^2)*f)+Kc*Ke*((1/R+L*p)+(1/R+Rc+L*p)));
  67.     hold on;
  68.     bode(TpuGT);
  69. end
  70. %}
  71.  
  72. % SIMULINK
  73. f = 1e-6;
  74. Rc = 0;
  75. Cr0 = 1e-3;
  76. TuuGT = (Kc*Kom)/((R+L*p)*(2*Jm*p+((1+1/x^2)*f)+Kc*Ke*((1/(R+L*p))+(1/(R+Rc+L*p)))));
  77. TpuGT = (-Kom)/(2*Jm*p+((1+1/x^2)*f)+Kc*Ke*((1/(R+L*p))+(1/(R+Rc+L*p))));
  78.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement