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

timerStopFcn(obj,event,hcarGUI,order,dir)
function timerStopFcn(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 = localhideArrow(arrows,parallelArrows(j),parallelArrowsDir(j));
    end
end

setappdata(hcarGUI,'arrows',arrows);
%end function

function arrows = localhideArrow(arrows,arrowID,dir)

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

Contact us