Changeset 220
- Timestamp:
- 12/18/08 20:39:47 (16 years ago)
- Files:
-
- 1 added
- 2 modified
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
matlab/mpf_test_disp.m
r48 r220 1 itload('../tests/pmsm_sim.it') 1 close all 2 itload('../mpf_test.it') 2 3 figure(1); 3 4 for i =1:4 4 5 subplot(4,1,i) 5 plot( Dt(i,:)')6 plot(xth(:,i)') 6 7 end 7 8 … … 9 10 for i=1:4 10 11 subplot(4,1,i) 11 plot(xth( i,:)')12 plot(xth(:,i)') 12 13 hold on; 13 plot(xthE( i,:)','r')14 plot(xthM( i+4,:)','g')15 plot(xthV(i,:)','m');14 plot(xthE(:,i)','r') 15 plot(xthM(:,i+4)','g') 16 % plot(xthV(i,:)','m'); 16 17 end 17 18 … … 19 20 for i=1:4 20 21 subplot(4,1,i) 21 plot(xthM(i,:)') 22 plot(xthM(:,i)') 23 hold on 24 plot(Qtr(:,i)','--') 22 25 end 23 26 -
matlab/pmsm_sim_disp.m
r48 r220 1 itload('../tests/pmsm_sim.it') 1 close all 2 itload('../pmsm_sim.it') 2 3 figure(1); 3 4 for i =1:4 4 5 subplot(4,1,i) 5 plot( Dt(i,:)')6 plot(xth(:,i)') 6 7 end 7 8 … … 9 10 for i=1:4 10 11 subplot(4,1,i) 11 plot(xth( i,:)')12 plot(xth(:,i)') 12 13 hold on; 13 plot(xthE( i,:)','r')14 plot(xthM( i+4,:)','g')15 plot(xthV(i,:)','m');14 plot(xthE(:,i)','r') 15 plot(xthM(:,i+2)','g') 16 % plot(xthV(i,:)','m'); 16 17 end 17 18 18 19 figure(3) 19 for i=1: 420 subplot( 4,1,i)21 plot(xthM( i,:)')20 for i=1:2 21 subplot(2,1,i) 22 plot(xthM(:,i)') 22 23 end 23 24 -
pmsm/CMakeLists.txt
r215 r220 37 37 target_link_libraries (pmsm_sim2 ${BdmLibs} pmsmsim ) 38 38 39 add_executable (mpf_test mpf_test.cpp) 40 target_link_libraries (mpf_test ${BdmLibs} pmsmsim) 39 41 add_executable (sim sim.cpp) 40 42 target_link_libraries (sim ${BdmLibs} pmsmsim)