Changeset 220

Show
Ignore:
Timestamp:
12/18/08 20:39:47 (15 years ago)
Author:
smidl
Message:

novy experiment

Files:
1 added
2 modified
1 copied

Legend:

Unmodified
Added
Removed
  • matlab/mpf_test_disp.m

    r48 r220  
    1 itload('../tests/pmsm_sim.it') 
     1close all 
     2itload('../mpf_test.it') 
    23figure(1); 
    34for i =1:4 
    45        subplot(4,1,i) 
    5         plot(Dt(i,:)') 
     6        plot(xth(:,i)') 
    67end 
    78 
     
    910for i=1:4 
    1011        subplot(4,1,i) 
    11         plot(xth(i,:)') 
     12        plot(xth(:,i)') 
    1213        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'); 
    1617end 
    1718 
     
    1920for i=1:4 
    2021        subplot(4,1,i) 
    21         plot(xthM(i,:)') 
     22        plot(xthM(:,i)') 
     23    hold on 
     24        plot(Qtr(:,i)','--') 
    2225end 
    2326 
  • matlab/pmsm_sim_disp.m

    r48 r220  
    1 itload('../tests/pmsm_sim.it') 
     1close all 
     2itload('../pmsm_sim.it') 
    23figure(1); 
    34for i =1:4 
    45        subplot(4,1,i) 
    5         plot(Dt(i,:)') 
     6        plot(xth(:,i)') 
    67end 
    78 
     
    910for i=1:4 
    1011        subplot(4,1,i) 
    11         plot(xth(i,:)') 
     12        plot(xth(:,i)') 
    1213        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'); 
    1617end 
    1718 
    1819figure(3) 
    19 for i=1:4 
    20         subplot(4,1,i) 
    21         plot(xthM(i,:)') 
     20for i=1:2 
     21        subplot(2,1,i) 
     22        plot(xthM(:,i)') 
    2223end 
    2324 
  • pmsm/CMakeLists.txt

    r215 r220  
    3737target_link_libraries (pmsm_sim2 ${BdmLibs} pmsmsim ) 
    3838 
     39add_executable (mpf_test mpf_test.cpp) 
     40target_link_libraries (mpf_test ${BdmLibs} pmsmsim) 
    3941add_executable (sim sim.cpp) 
    4042target_link_libraries (sim ${BdmLibs} pmsmsim)