Code covered by the BSD License  

Highlights from
SAE Paper Demo: Model-Based Design of Hybrid Electric Vehicles

image thumbnail

SAE Paper Demo: Model-Based Design of Hybrid Electric Vehicles

by

 

07 Nov 2010 (Updated )

Demo files to accompany the paper by the same name

timerStartFcn(obj,event,hcarGUI,order,dir)
function timerStartFcn(obj,event,hcarGUI,order,dir)

arrows = getappdata(hcarGUI,'arrows');


for(i=1:1:length(order))
    parallelArrows = order{i};
    parallelArrowsDir = dir{i};
    
    for(j=1:1:length(parallelArrows))
        arrows = localdisplayArrow(arrows,parallelArrows(j),parallelArrowsDir(j));
    end
end

setappdata(hcarGUI,'arrows',arrows);

global index END
index = 1;
END = [];
%end function

function arrows = localdisplayArrow(arrows,arrowID,dir)

switch(arrowID)
    case 1
        arrows.arr_gen_bat = displayArrow(arrows.arr_gen_bat,dir);
    case 2
        arrows.arr_bat_mot = displayArrow(arrows.arr_bat_mot,dir);
    case 3
        arrows.arr_mot_ring = displayArrow(arrows.arr_mot_ring,dir);
    case 4
        arrows.arr_sun_gen = displayArrow(arrows.arr_sun_gen,dir);
    case 5
        arrows.arr_eng_pla = displayArrow(arrows.arr_eng_pla,dir);
    case 6
        arrows.arr_ring_diff = displayArrow(arrows.arr_ring_diff,dir);
    case 7
        arrows.arr_diff_ltir = displayArrow(arrows.arr_diff_ltir,dir);
    case 8
        arrows.arr_diff_rtir = displayArrow(arrows.arr_diff_rtir,dir);
    case 9
        arrows.arr_gen_mot = displayArrow(arrows.arr_gen_mot,dir);
    otherwise
        
end
%end function

Contact us