Home

Manual de referencia - e-Archivo Principal

image

Contents

1. Objeto Tipo String Tag Variable asociada Edit text res del Kdel En las En las ruedas Static text ruedas delanteras delanteras Edit text res tra Ktra En las En las ruedas Static text ruedas delanteras delanteras Atr s Push button Atr s atras Men Men ope Push button na Menu ppal Principal Principal C digo inicial scrsz get 0 ScreenSize pos_act get gcf Position xr scrsz 3 pos_act 3 xp round xr 2 yr scrsz 4 pos_act 4 yp round yr 2 set gcf Position xp yp pos act 3 pos_act 4 global Coeficiente global Adherencia global L1 global L2 global H C L2 H Coeficiente Adherencia L1 H Coeficiente Adherencia Ktra 100 1 C Kdel 100 Ktra set handles res_del String Kdel set handles res_tra String Ktra Botones de acci n Atr s close Reparto optimo de la frenada resultados Reparto optimo de la frenada Men Principal close Reparto optimo de la frenada resultados Menu principal 51 Im genes axesl imread frenado017 3pg axes handles axes1 axis off imshow axesl Botones de acci n Atr s close Bloqueo Menu frenado Men Principal close Bloqueo 24 BLOQUEO Tabla 24 Resumen de objetos en Bloqueo Objeto Tipo String Tag Variable asociada Fuerza de Edit text fli
2. if isnan Peso errordlg El valor del peso debe ser num rico ERROR set handles peso String 0 Peso 0 return end if Peso lt 0 errordlg El valor del peso debe ser positivo ERROR set handles peso String 0 Peso 0 return end if isnan Coeficiente errordlg El valor del coeficiente de resistencia a la rodadura debe ser num rico ERROR 44 An lisis din mico de un veh culo autom vil Manual de Referencia set handles coeficiente String 0 Coeficiente 0 return end if Coeficiente 0 errordlg El valor del coeficiente de resistencia a la rodadura debe ser positivo ERROR set handles coeficiente String 0 Coeficiente 0 return end if isnan Batalla errordlg El valor de la batalla debe ser num rico ERROR set handles batalla String 0 Batalla 0 returh end if Batalla lt 0 errordlg El valor de la batalla debe ser positivo ERROR set handles batalla String 0 Batalla 0 return end if isnan Adherencia errordlg El valor de la adherencia debe ser num rico ERROR set handles adherencia String 0 Adherencia 0 ES curn end if Adherencia lt 0 errordlg El valor de la adherencia debe ser positivo ERROR set handles adherencia String 0 Adherencia 0 return end if isnan L1 errordlg El valor de L1 debe ser num rico ERROR set h
3. if isnan Adherencia errordlg El valor de la adherencia debe ser num rico ERROR set handles adherencia String 0 Adherencia 0 EFETUTH end if Adherencia lt 0 errordlg El valor de la adherencia debe ser positivo ERROR set handles adherencia String 0 Adherencia 0 return end if isnan L1 errordlg El valor de L1 debe ser num rico ERROR 49 An lisis din mico de un veh culo autom vil Manual de Referencia Im genes set handles 11 String 0 L1 0 return end if L1 0 errordlg El valor de L1 debe ser positivo ERROR set handles 11 String 0 L1 0 ESCUTA end if isnan L2 errordlg El valor de L2 debe ser num rico ERROR set handles 12 String 0 L2 0 return end if L2 0 errordlg El valor de L2 debe ser positivo ERROR set handles 12 String 0 L2 0 return end if isnan H errordlg El valor de la altura debe ser num rico ERROR set handles h String 0 H 0 return end if H lt 0 errordlg El valor de la altura debe ser positivo ERROR set handles h String 0 H 0 return end close Reparto optimo de la frenada Reparto optimo de la frenada resultados axesl imread frenado001 jpg axes handles axesl axis off imshow axes1 50 23 REPARTO OPTIMO DE LA FRENADA RESULTADOS Tabla 23 Resumen de objetos en Reparto optimo de la frenada resultados
4. pos act 3 pos act 4 32 An lisis din mico de un veh culo autom vil Manual de Referencia set gcf Position xp yp pos act 3 pos act 4 obal Peso obal Coeficiente lobal Cx lobal Af obal Rampa obal Potencia lobal Revoluciones obal Relacion obal I obal Rend_motor lobal Rend_transmision cea Rend_transmision Rend_transmision 0 01 Rend_motor Rend_motor 0 01 P 9 81 Peso Pot Potencia 735 5 Rend motor Rend transmision Vm2 pi Revoluciones 1 I 30 Relacion A 0 5 1 225 Cx Af B 0 C Coeficiente 0 01 Rampa P D Pot E A B C D F roots E if isreal F 1 Vml1 F 1 else if isreal F 2 2 Vml F 2 else Vml F 3 end end V min Vm1 Vm2 Vmax 3 6 V Ra A V 2 Rr Coeficiente P Rg 0 01 Rampa P set set set set handles vmax String Vmax handles ra String Ra handles rr String Rr handles rg String Rg ananasa Botones de acci n e Atr s close Velocidad_maxima_y_resistencias_al_avance_resultados Velocidad_maxima_y_resistencias_al_avance e Men Principal close Velocidad_maxima_y_resistencias_al_avance_resultados Menu_principal 33 Im genes axes v imread velocidad001 jpg axes handles axes v axis off imshow axes v axes ra imread resistencias003 jpg axes handles axes ra axis off imshow axes ra axes rr imread r
5. Botones de acci n Im genes Atr s close Centros balanceo resultados Centros balanceo Men Principal close Centros balanceo resultados Menu principal axes3 imread vuelco002 Jpg axes handles axes3 axis off imshow axes3 89 42 TRANSFERENCIA DE CARGA LATERAL Tabla 42 Resumen de objetos en Transferencia de carga lateral Variable Objeto Tipo String Tag asociada Edit text ms Ms ms Static text ms Edit text msd Msd msd Static text msd Edit text mst Mst mst i Static text mst Edit text mnsd Mnsd mnsd Static text mnsd Edit text mnst Mnst mnst Static text mnst Edit text rl R1 rl Static text rl hd Edit text hd Hd Static text hd Edit text ht Ht ht i Static text ht hl Edit text hl H1 Static text h1 h2 Edit text h2 H2 Static text h2 Bd Edit text bd Bd Static text Bd Bt Edit text bt Bt Static text Bt Aceleraci n Elu ei m ay ay Aceleraci n lateral Static text lateral Kd Edit text kd Kd Static text Kd Kt Edit text kt Kt Static text Kt Atr s Push button Atr s atras Moni Push button Menu M l Principal aiei Principal ind d Calcular Push button Calcular Calcular C digo inicial Scrsz get 0 ScreenSize pos_act get gcf Position 90 An lisis din mico de un veh culo autom vil Manual de Referencia XI SCYISZ xp round
6. set handles peso String 0 Peso 0 return end if Peso lt 0 errordlg El valor del peso debe ser positivo ERROR set handles peso String 0 Peso 0 returh end if isnan Coeficiente errordlg El valor del coeficiente de resistencia a la rodadura debe ser num rico ERROR set handles coeficiente String 0 Coeficiente 0 return end if Coeficiente 0 errordlg El valor del coeficiente de resistencia a la rodadura debe ser positivo ERROR set handles coeficiente String 0 Coeficiente 0 return end if isnan Adherencia errordlg El valor de la adherencia debe ser num rico ERROR 65 An lisis din mico de un veh culo autom vil Manual de Referencia set handles adherencia String 0 Adherencia 0 return end if Adherencia lt 0 errordlg El valor de la adherencia debe ser positivo ERROR set handles adherencia String 0 Adherencia 0 return end if isnan Cx errordlg El valor del coeficiente aerodin mico debe ser num rico ERROR set handles cx String 0 Cx 0 return end if Cx lt 0 errordlg El valor del coeficiente aerodin mico debe ser positivo ERROR set handles cx String 0 Cx 0 return end if isnan Af errordlg El valor del rea frontal debe ser num rico ERROR set handles af String 0 Af 0 ESCUTA end if Af lt 0 errordlg
7. errordlg El valor de la distancia entre suspensiones deb ser positivo ERROR set handles c String 0 C20 return end close Suspension ballestas Suspension ballestas resultados axesl imread suspension ballestas jpg axes handles axesl axis off imshow axesl 83 39 SUSPENSION BALLESTAS RESULTADOS Tabla 39 Resumen de objetos en Suspensi n ballestas resultados Objeto Variable Tipo String Tag asociada Aceleraci n lateral m xima Edit text a_ymax A_ymax Aceleraci n lateral Static text B m xima Atr s Push button Atr s atras Men Principal Push button Men Principal Menu ppal C digo inicial Scrsz get 0 ScreenSize pos act get gcf Position xr scrsz 3 pos act 3 xp round xr 2 yr scrsz 4 pos_act 4 yp round yr 2 set gcf Position xp yp pos act 3 pos act 4 lobal Peso lobal Giro lobal Via lobal H lobal J lobal C P Peso 9 81 Giro Giro J C A ymax Via 2 H Giro 9 81 9000301 A_y 0 0 1 A_ymax 2 M_yv P H 9 81 A_y M yR120 5 P Via M yR P H A ymax 9 81 M yD P H Giro W waitbar 0 5 Calculando pause 1 close W set handles a ymax String A ymax axes handles axesl axis on plot A y M yv hold on plot A y P Via 0 5 ones length A y g xlabel a y ylabel M ey hold on plot A y M yR
8. Im genes 8 ESFUERZO TRACTOR MAXIMO Atr s close Reparto de cargas estaticas resultados Reparto de cargas estaticas Men Principal close Reparto de cargas estaticas resultados Menu Principal axes2 imread reparto001 jpg axes handles axes2 axis off imshow axes2 axesl imread reparto jpg axes handles axesl axis off imshow axesl Tabla 8 Resumen de objetos en Esfuerzo tractor maximo Objeto Tipo String Tag Variable asociada Edit text peso Peso Peso Static text Peso Edit text coeficiente Coeficiente Coeficiente Static text Coeficiente Edit text adherencia Adherencia Adherencia Static text Adherencia Edit text batalla Batalla Batalla Static text Batalla 11 Edit text 11 Ll Static text 11 D Edit text 12 L2 Static text 12 h Edit text h H Static text h Edit text relacion Relacion Relaci n de 22 a Relaci n transmisi n Static text MM transmisi n Edit text par Par Par m ximo Static text Par m ximo 16 da Edit text rend_motor Rend_motor Rendimiento PET Rendimiento del motor Static text motor Rendimiento Edit text rend transmision Rend transmision de la Rendimiento eT Static text MS transmisi n transmisi n Edit text radio Radio Radio bajo Radio bajo carga Static text carga Del
9. Men Push RENE pin Men Principal Menu ppal Principal button C digo inicial Scrsz get 0 ScreenSize pos act get gcf Position xr scrsz 3 pos act 3 xp round xr 2 yr scrsz 4 pos_act 4 yp round yr 2 set gcf Position xp yp pos act 3 pos_act 4 global Peso global Giro global Via global H P Peso 9 81 A ymax Via 9 81 2 H A y 0 0 1 A_ymax 2 M yv P H 9 81 A y M_yR 0 5 P Via M_yD P H Giro W waitbar 0 5 Calculando pause 1 close W set handles a ymax String A ymax 75 An lisis din mico de un veh culo autom vil Manual de Referencia axes handles axesl axis on plot A y M yv hold on plot A y P Via 0 5 ones length A y r xlabel a y ylabel M y hold on A A ymax A ymax I 0 M yR plot A I t kEet hold off grid on xlim A ymax 2 0 ylim 0 P A ymax 2 H 9 81 axes handles axes2 phi 0 0 001 Giro M_yRN M_yR P H phi plot phi M_yRN b hold on plot phi 0 5 P Via ones length phi r xlabel O ylabel hold off grid on xlim 0 Giro ylim 0 P A ymax 2 H 9 81 Botones de acci n Im genes Atr s close Suspension rigida resultados Suspension rigida Men Principal close Suspension rigida resultados Menu principal axes3 imread vuelco003 jpg axes handles axes3 axis off imshow axes3
10. Position xr scrsz 3 pos act 3 xp round xr 2 yr scrsz 4 pos act 4 yp round yr 2 set gcf Position xp yp pos_act 3 pos_act 4 scrsz get 0 ScreenSize 25 An lisis din mico de un veh culo autom vil Manual de Referencia pos act get gcf Position xr scrsz 3 pos act 3 xp round xr 2 yr scrsz 4 pos_act 4 yp round yr 2 set gcf Position xp yp pos act 3 pos_act 4 global Fuerza global Peso global Coeficiente P Peso 9 81 Rampa 100 tan asin Fuerza P Coeficiente P set handles rampa String Rampa Botones de acci n Im genes Atr s close Rampa_maxima_resultados Rampa_maxima Men Principal close Rampa_maxima_resultados Menu_Principal axesl imread rampa002 jpg axes handles axesl axis off imshow axes1 axes2 imread rampa003 jpg axes handles axes2 axis off imshow axes2 26 12 VELOCIDAD MAXIMA Y RESISTENCIAS AL AVANCE Tabla 12 Resumen de objetos en Velocidad maxima y resistencias al avance Objeto Tipo String Tag Variable asociada Edit text peso Peso Peso Static Peso text Edit text coeficiente Coeficiente Coeficiente Static A Coeficiente text Edit text cx Cx Cx Static Cx text Edit text af Af rea frontal Static Area frontal text Edit text rampa Rampa Ram
11. push buttons y edit texts y el c digo relativo a la introducci n de las im genes Las tablas de resumen tienen el valor de hacer referencia principalmente a los cuadros de texto para entrada y salida de datos As si procede se incluye una columna que indica la variable asociada a dicho objeto Como es l gico s lo los cuadros de texto antes mencionados est n asociados a una variable por lo que en las GUIs que no contengan este tipo de objetos se omite dicha columna Para completar la comprensi n de cada GUI en Ref 1 se proporciona informaci n extra de los botones y los edit texts 1 INICIO Tabla 1 Resumen de objetos en Inicio Objeto Tipo String Tag Comenzar Push button Comenzar comenzar C digo inicial Scrsz get 0 ScreenSize pos act get gcf Position xr scrsz 3 pos act 3 xp round xr 2 yr scrsz 4 pos_act 4 yp round yr 2 set gcf Position xp yp pos_act 3 pos_act 4 Botones de acci n e Comenzar close Inicio Menu_principal Im genes axes2 imread logo uc3m jpg axes handles axes2 axis off imshow axes2 Toda GUI tiene un c digo inicial que se ejecuta antes de mostrar en pantalla la figura No se muestra todo este c digo sino aquel que se haya incluido con alg n objetivo como la declaraci n de variables o c lculos entre las mismas MENU PRINCIPAL Tabla 2 Resumen de objetos en Menu p
12. return end if isnan Giro errordlg El valor del giro debe ser num rico ERROR set handles giro String 0 Giro 0 return end if isnan Peso errordlg El valor del peso debe ser num rico ERROR set handles peso String 0 Peso 0 return end if Peso lt 0 errordlg El valor del peso debe ser positivo ERROR set handles peso String 0 Peso 0 return end if isnan H errordlg El valor de la altura debe ser num rico ERROR set handles h String 0 H 0 return end if H lt 0 errordlg El valor de la altura debe ser mayor que 0 ERROR set handles h String 0 H 0 return end close Suspension_elastica Suspension_elastica_resultados 78 Im genes axesl imread suspension rigida jpg axes handles axesl axis off imshow axesl 37 SUSPENSION ELASTICA RESULTADOS Tabla 37 Resumen de objetos en Suspensi n elastica resultados Variable Objeto Tipo Strin Ta J p 8 8 asociada Aceleraci n Edit text a_ymax A_ymax lateral f Aceleraci n lateral EA Static text He maxima maxima Atr s Push button Atr s atras Men zu Qe Push button Men Principal Menu ppal Principal C digo inicial scrsz get 0 ScreenSize pos_act get gcf Position xr scrsz 3 pos_act 3 xp round xr 2 yr scrsz 4 pos_act 4 yp round yr 2 set gcf Posit
13. set handles cx String 0 Cx 0 return end if Cx lt 0 errordlg El valor del coeficiente aerodin mico debe ser positivo ERROR set handles cx String 0 Cx 0 return end if isnan Af errordlg El valor del rea frontal debe ser num rico ERROR set handles af String 0 Af 0 return end if Af 0 errordlg El valor del rea frontal debe ser positivo ERROR set handles af String 0 Af 0 return end if isnan Rampa errordlg El valor de la rampa debe ser num rico ERROR set handles rampa String 0 29 An lisis din mico de un veh culo autom vil Manual de Referencia Rampa 0 return end if Rampa lt 0 errordlg El valor de la rampa debe ser positivo ERROR set handles rampa String 0 Rampa 0 FELUTH end if isnan Potencia errordlg El valor de la potencia debe ser num rico ERROR set handles potencia String 0 Potencia 0 return end if Potencia 0 errordlg El valor de la potencia debe ser positivo ERROR set handles potencia String 0 Potencia 0 return end if isnan Revoluciones errordlg El valor de las revoluciones debe ser num rico ERROR set handles revoluciones String 0 Revoluciones 0 return end if Revoluciones lt 0 errordlg El valor de las revoluciones debe ser positivo ERROR set handles revoluciones String 0 Revoluciones 0 return end i
14. yr scrsz 4 pos_act 4 yp round yr 2 set gcf Position xp yp pos act 3 pos_act 4 3 pos_act 3 xr 2 aa Botones de acci n e Atr s Close Transferencia de carga lateral Menu lateral e Men Principal close Transferencia_de_carga_lateral Menu_principal e Calcular global Ms global Msd global Mst global Mnsd global Mnst global R1 global Hd global Ht global H global H global Bd global Bt global Ay global Kd global Kt M s str2double get handles ms String Msd str2double get handles msd String Mst str2double get handles mst String Mnsd str2double get handles mnsd String Mnst str2double get handles mnst String R1 str2double get handles rl1 String Hd str2double get handles hd String Ht str2double get handles ht String H1 str2double get handles hl String H2 str2double get handles h2 String Bd str2double get handles bd String Bt str2double get handles bt String Ay str2double get handles ay String Kd str2double get handles kd String Kt str2double get handles kt String if isnan Ms errordlg El valor de la masa suspendida debe ser num rico ERROR set handles ms String 0 Ms 0 ESCUTA 91 An lisis din mico de un veh culo autom
15. 0 Relacion 0 ESCU end if isnan Par errordlg El valor del par debe ser num rico ERROR set handles par String 0 Par 0 return end if Par lt 0 errordlg El valor del par debe ser mayor que 0 ERROR set handles par String 0 Par 0 tSLUtA end if isnan Rend_motor errordlg El valor del rendimiento del motor debe ser num rico ERROR set handles rend_motor String 0 Rend_motor 0 return end 20 An lisis din mico de un veh culo autom vil Manual de Referencia if Rend_motor lt 0 errordlg El valor del rendimiento del motor debe ser mayor que 0 ERROR set handles rend motor String 0 Rend_motor 0 return end if isnan Rend transmision errordlg El valor del rendimiento de la transmisi n debe ser num rico ERROR set handles rend transmision String 0 Rend transmision 0 return end if Rend_transmision lt 0 errordlg El valor del rendimiento de la transmisi n debe ser mayor que 0 ERROR set handles rend transmision String 0 Rend transmision 0 ESCUTA end if isnan Radio errordlg El valor del radio bajo carga debe ser num rico ERROR set handles radio String 0 Radio 0 return end if Radio lt 0 errordlg El valor del radio bajo carga debe ser mayor que 0 ERROR set handles radio String 0 Radio 0 return end close Esfuerzo tractor maximo E
16. 0 return end if isnan Batalla errordlg El valor de la batalla debe ser num rico ERROR set handles batalla String 0 Batalla 0 return end if Batalla lt 0 errordlg El valor de la batalla debe ser positivo ERROR set handles batalla String 0 Batalla 0 return end if isnan L1 errordlg El valor de L1 debe ser num rico ERROR set handles 11 String 0 L1 0 return end if L1 lt 0 errordlg El valor de L1 debe ser mayor que 0 ERROR set handles 11 String 0 L1 0 tetur end if isnan L2 errordlg El valor de L2 debe ser num rico ERROR set handles 12 String 0 L2 0 return end if L2 lt 0 19 An lisis din mico de un veh culo autom vil Manual de Referencia errordlg El valor de L2 debe ser mayor que 0 ERROR set handles 12 String 0 L2 0 return end if isnan H errordlg El valor de la altura debe ser num rico ERROR set handles h String 0 H 0 teturh end if H lt 0 errordlg El valor de la altura debe ser mayor que 0 ERROR set handles h String 0 H 0 return end if isnan Relacion errordlg El valor de la relaci n de transmisi n debe ser num rico ERROR set handles relacion String 0 Relacion 0 FrOLurH end if Relacion lt 0 errordlg El valor de la relaci n de transmisi n debe ser mayor que 0 ERROR set handles relacion String
17. 11 String L2 str2double get handles 12 String H str2double get handles h String Relacion str2double get handles relacion String Par str2double get handles par String Rend_motor str2double get handles rend_motor String Rend_transmision str2double get handles rend_transmision String Radio str2double get handles radio String if isnan Peso errordlg El valor del peso debe ser num rico ERROR set handles peso String 0 Peso 0 return end if Peso lt 0 errordlg El valor del peso debe ser positivo ERROR set handles peso String 0 Peso 0 return end if isnan Coeficiente errordlg El valor del coeficiente de resistencia a la rodadura debe ser num rico ERROR set handles coeficiente String 0 Coeficiente 0 return end if Coeficiente lt 0 errordlg El valor del coeficiente de resistencia a la rodadura debe ser positivo ERROR set handles coeficiente String 0 18 An lisis din mico de un veh culo autom vil Manual de Referencia Coeficiente 0 return end if isnan Adherencia errordlg El valor de la adherencia debe ser num rico ERROR set handles adherencia String 0 Adherencia 0 FELUTB end if Adherencia lt 0 errordlg El valor de la adherencia debe ser positivo ERROR set handles adherencia String 0 Adherencia
18. 76 36 SUSPENSION ELASTICA Tabla 36 Resumen de objetos en Suspensi n elastica Variable Objeto Tipo Strin Ta I J p 8 8 asociada Edit text peso Peso Peso A Static text Peso Gito di t text l giro Giro Static text Giro f Edit text via Via V a F Static text V a Edit text h H h Static text h Atr s Push button Atr s atras Men Men apes Push button T Menu ppal Principal Principal Calcular Push button Calcular Calcular C digo inicial Scrsz get 0 ScreenSize pos act get gcf Position xr scrsz 3 pos act 3 xp round xr 2 yr scrsz 4 pos_act 4 yp round yr 2 set gcf Position xp yp pos_act 3 pos_act 4 Botones de acci n Atr s close Suspension elastica Menu lateral Men Principal close Suspension elastica Menu principal Calcular global Peso global Giro global Via global H Peso str2double get handles peso String Giro str2double get handles giro String 77 An lisis din mico de un veh culo autom vil Manual de Referencia Via str2double get handles via String H str2double get handles h String if isnan Via errordlg El valor de la v a debe ser num rico ERROR set handles via String 0 Via 0 return end if Via lt 0 errordlg El valor de la v a debe ser positivo ERROR set handles via String 0 Via 0
19. Edit text 11 L1 Static text 11 D Edit text 12 L2 Static text 12 h Edit text h H Static text h Atr s Push button Atr s atras Men Men n Push button e Menu ppal Principal Principal Calcular Push button Calcular Calcular C digo inicial scrsz get 0 ScreenSize pos_act get gcf Position xr scrsz 3 pos_act 3 xp round xr 2 yr scrsz 4 pos_act 4 yp round yr 2 set gcf Position xp yp pos act 3 pos_act 4 Botones de acci n e Atr s 48 An lisis din mico de un veh culo autom vil Manual de Referencia close Reparto optimo de la frenada Menu frenado Men Principal close Reparto optimo de la frenada Menu principal Calcular global Coeficiente global Adherencia global L1 global L2 global H Coeficiente str2double get handles coeficiente String Adherencia str2double get handles adherencia String L1 str2double get handles 11 String L2 str2double get handles 12 String H str2double get handles h String if isnan Coeficiente errordlg El valor del coeficiente de resistencia a la rodadura debe ser num rico ERROR set handles coeficiente String 0 Coeficiente 0 return end if Coeficiente 0 errordlg El valor del coeficiente de resistencia a la rodadura debe ser positivo ERROR set handles coeficiente String 0 Coeficiente 0 return end
20. El valor del rea frontal debe ser positivo ERROR set handles af String 0 Af 0 return end if isnan V errordlg El valor de la velocidad debe ser num rico ERROR set handles v String 0 V 20 return end if v lt 0 errordlg El valor de la velocidad debe ser positivo ERROR set handles v String 0 V 0 66 An lisis din mico de un veh culo autom vil Manual de Referencia Im genes return end if isnan Rampa errordlg El valor de la rampa debe ser num rico ERROR set handles rampa String 0 Rampa 0 return end if Rampa lt 0 errordlg El valor de la rampa debe ser positivo ERROR set handles rampa String 0 Rampa 0 return end if isnan Rendimiento errordlg El valor del rendimiento debe ser num rico ERROR set handles rendimiento String 0 Rendimiento 0 return end if Rendimiento lt 0 errordlg El valor del rendimiento debe ser positivo ERROR set handles rendimiento String 0 Rendimiento 0 return end if isnan Gamma errordlg El valor del coeficiente de masas rotatorias debe ser num rico ERROR set handles gamma String 0 Gamma 0 return end if Gamma lt 0 errordlg El valor del coeficiente de masas rotatorias debe ser mayor que 0 ERROR set handles gamma String 0 Gamma 0 return end close Distancia y tiempo Distancia y
21. P H Giro2 W waitbar 0 5 Calculando pause 1 close W set handles a ymaxA String A ymaxA 87 An lisis din mico de un veh culo autom vil Manual de Referencia axes handles axesl axis on plot A y M yv hold on plot A y P Via 0 5 ones length A y r xlabel a y ylabel M T 3 hold on A 0 A ymaxA I M yR M yR plot A I b hold on A A ymaxA A ymaxA I 0 M yR plot A I k hold on grid on axes handles axes2 phi 0 0 001 Giro2 14 0 5 M_yRN M_yR1 P H phi plot phi M yRN k hold on plot phi 0 5 P Via ones length phi k Xlabel O ylabel hold on OX 0 0 01 Giro2 plot 0X M_yR ones length 0X 1 b hold on A Giro2 Giro2 I 0 M yR plot A I k grid on xlim 0 Giro2 1 40 5 ylim 0 0 5 P Via 100 A ymaxB Via 2 H 9 81 set handles a ymaxB String A ymaxB A y 0 0 1 A ymaxB 2 M yv P H 9 81 A y M yR 20 5 P Via M yD P H Girol axes handles axesl axis on plot A y M yv k hold on plot A y P Via 0 5 ones length A y xlabel a y ylabel M y hold on A 0 A ymaxB 88 An lisis din mico de un veh culo autom vil Manual de Referencia I M yR M yR plot A 1 b hold on A A_ymaxB A ymaxB I 0 M yR plot Arlt Ee hold on XLIM A ymaxB 2 0 YLIM O 0 5 P Via 100 grid on
22. axesl imread aceleracion001 3jpg axes handles axesl axis off imshow axes1 36 15 ACELERACION RESULTADOS Tabla 15 Resumen de objetos en Aceleraci n resultados Objeto Tipo String Tag Variable asociada Edit text aceleraci n Aceleracion Aceleraci n i m Static text Aceleraci n Atr s Push button Atr s atras Men Men a Push button d Menu ppal Principal Principal C digo inicial Scrsz get 0 ScreenSize pos act get gcf Position xr scrsz 3 pos act 3 xp round xr 2 yr scrsz 4 pos_act 4 yp round yr 2 set gcf Position xp yp pos act 3 pos_act 4 global Peso global Ft global Resistencia global Gamma Aceleracion Ft Resistencia Gamma Peso set handles aceleracion String Aceleracion Botones de acci n Im genes Atr s close Aceleracion_resultados Aceleracion Men Principal close Aceleracion_resultados Menu_principal axesl imread aceleracion002 jpg axes handles axesl axis off imshow axes1 axes2 imread aceleracion003 jpg axes handles axes2 axis off imshow axes2 37 16 ACUAPLANEO Tabla 16 Resumen de objetos en Acuaplaneo Objeto Tipo String Tag Variable asociada T Edit text presion Presion Presi n z Static text Presi n Atr s Push button Atr s atras Men Men nr Push button MR M
23. batalla debe ser num rico ERROR set handles batalla String 0 Batalla 0 FELGTH end if Batalla lt 0 errordlg El valor de la batalla debe ser positivo ERROR set handles batalla String 0 Batalla 0 return end if isnan L1 errordlg El valor de L1 debe ser num rico ERROR set handles 11 String 0 L1 0 return end if L1 0 errordlg El valor de L1 debe ser positivo ERROR set handles 11 String 0 L1 0 return end if isnan L2 errordlg El valor de L2 debe ser num rico ERROR set handles 12 String 0 L2 0 return end if L2 0 errordlg El valor de L2 debe ser positivo ERROR set handles 12 String 0 L2 0 58 An lisis din mico de un veh culo autom vil Manual de Referencia Im genes return end if isnan H errordlg El valor de la altura debe ser num rico ERROR set handles h String 0 H 0 return end if H lt 0 errordlg El valor de la altura debe ser positivo ERROR set handles h String 0 H 0 return end if isnan Kfd errordlg El valor del reparto en el eje delantero debe ser num rico ERROR set handles kfd String 0 Kfd 0 return end if Kfd O0 errordlg El valor del reparto en el eje delantero debe ser positivo ERROR set handles Kzd String 0 Kzd 0 return end if isnan Kft errordlg El valor del reparto en el e
24. handles gamma String 0 Gamma 0 return end if Gamma lt 0 errordlg El valor del coeficiente de masas rotatorias debe ser mayor que 0 ERROR set handles gamma String 0 Gamma 0 return end close Potencia disipada en el frenado Potencia disipada en el frenado resultados axesl imread frenado005 jpg axes handles axesl axis off imshow axesl 71 33 POTENCIA DISIPADA EN EL FRENADO RESULTADOS Tabla 33 Resumen de objetos en Potencia disipada en el frenado resultados Objeto Tipo String Tag Variable asociada Edit text hm1 Hml Frenado f Frenado brusco Static text brusco Edit text hm2 Hm2 Descenso Descenso prolongado Static text prolongado Atr s Push button Atr s atras Men Men aues Push button n Menu ppal Principal Principal C digo inicial SCrSz get 0 ScreenSize pos_act get gcf Position xr scrsz 3 pos_act 3 xp round xr 2 yr scrsz 4 pos_act 4 yp round yr 2 set gcf Position xp yp pos_act 3 pos_act 4 lobal Peso lobal V lobal T lobal Rampa lobal Gamma lfa asin Rampa 100 Vel V 3 6 Hm1 20 001 0 5 Peso Gamma Vel 2 9 81 T Hm2 0 001 V Peso sin Alfa set handles hml String Hml set handles hm2 String Hm2 Paaa Botones de acci n Atr s close Potencia_disipada_en_el_frenado_resultados Potencia_disipada_en_el_frenad
25. tiempo resultados axesl imread distancia002 jpg axes handles axesl axis off imshow axesl 67 31 DISTANCIA Y TIEMPO RESULTADOS Tabla 31 Resumen de objetos en Distancia y tiempo resultados Objeto Tipo String Tag Variable asociada Edit text spt Spt Distancia P P Distancia recorrida Static text recorrida Edit t Tpt Tiempo dit text l tp p Tiempo hasta Static text hasta parada parada Atr s Push button Atr s atras Men Men a Push button De Menu_ppal Principal Principal C digo inicial Scrsz get 0 ScreenSize pos_act get gcf Position xr scrsz 3 pos_act 3 xp round xr 2 yr scrsz 4 pos_act 4 yp round yr 2 set gcf Position xp yp pos act 3 pos_act 4 global Peso global Coeficiente global Adherencia global Cx global Af global V global Rampa global Rendimiento global Gamma P Peso 9 81 Alfa asin Rampa 100 Rendimiento 0 01 Rendimiento V V 3 6 Log 1 0 5 Cx A V 2 Rendimi P Coeficiente Peso Gamma 9 81 V Rendimiento Adherencia P P sin Alfa Sp Peso Gamma 9 81 Cx Af ento Adherencia P P sin Alfa Spt Sp V 1 3 Tp FP Coeficiente Tpt Tp 1 3 set handles spt String Spt set handles tpt String Tpt Botones de acci n Atr s close Distancia y tiempo resultados 68 Im
26. Aceld set handles acelt String Acelt la Botones de acci n Atr s close Maxima deceleracion antes de bloqueo resultados Maxima deceleracion antes de bloqueo 2 Batalla Coeficiente Kf d_uni Kfd_uni 11 Batalla Coeficiente Kft_uni Kfd_uni 60 Im genes Men Principal close Maxima deceleracion antes de bloqueo resultados Menu principal axesl imread frenado003 jpg axes handles axesl axis off imshow axesl 28 RENDIMIENTO DEL FRENADO Tabla 28 Resumen de objetos en Rendimiento del frenado Objeto Tipo String Tag Variable asociada E Edit text adherencia Adherencia Adherencia Static text Adherencia Aceleraci n Edit text amax Amax m xima Static text a maxima Atr s Push button Atr s atras Men Push button Denn Menu ppal Principal Principal i Calcular Push button Calcular Calcular C digo inicial scrsz get 0 ScreenSize pos_act get gcf Position xr scrsz 3 pos_act 3 xp round xr 2 yr scrsz 4 pos_act 4 yp round yr 2 set gcf Position xp yp pos act 3 pos_act 4 Botones de acci n Atr s close Rendimiento del frenado Menu frenado Men Principal close Rendimiento del frenado Menu principal Calcular 61 An lisis din mico de un veh culo autom vil Manual de Referencia Im genes global Adherenci
27. LO AUTOM VIL Prop sito Did ctico Uso docente en la Universidad Carlos III de Madrid Autor Javier Buhigas P rez Caracter sticas del programa fuente Desarrollado con la herramienta GUIDE de MatLab Lenguaje de programaci n Lenguaje M Espacio en disco 12 8 MB N mero de m dulos 86 en total 43 archivos m y 43 archivos fig Modos de ejecuci n Interactivo desde MatLab Fecha Mayo de 2011 Versi n 1 0 Programaci n de cada m dulo En este apartado se documenta independientemente cada GUI de la aplicaci n Cada GUI est formada por un archivo m que contiene el c digo del programa y un entorno gr fico fig asociado a dicho c digo y que permite la interacci n con los objetos Se muestran y comentan por lo tanto s lo las l neas de c digo necesarias para comprender el funcionamiento de cada objeto y las relaciones entre GUIs Las funciones m s utilizadas mostradas a continuaci n est n explicadas en Ref 2 Para conocer m s sobre el uso de las funciones que aparecen en este cap tulo consultar la citada referencia La nomenclatura que sigue es consistente con el nombre de cada GUI del programa N tese que los nombres de cada GUI no incluyen signos de puntuaci n o espacios estos se sustituyen por guiones bajos Para cada GUI se muestra una captura de pantalla de la misma una tabla resumen de objetos el c digo inicial de la GUI si procede el c digo correspondiente a los botones de acci n
28. Position xr scrsz 3 pos act 3 xp round xr 2 yr scrsz 4 pos act 4 yp round yr 2 set gcf Position xp yp pos act 3 pos act 4 Botones de acci n e Modelo de suspensi n r gida close Menu lateral Suspension rigida e Modelo de suspensi n el stica close Menu_lateral Suspension_elastica 10 Im genes Suspensi n de ballestas con juego libre close Menu lateral Suspension ballestas Indicando los centros de balanceo de suspensi n de los neum ticos close Menu lateral Centros balanceo Transferencia de carga lateral debida al balanceo close Menu lateral Transferencia de carga lateral axesl imread vuelco006 3pg axes handles axesl axis off imshow axes1 11 6 REPARTO DE CARGAS ESTATICAS Tabla 6 Resumen de objetos en Reparto de cargas estaticas Objeto Tipo String Tag Variable asociada Edit text peso Peso Peso F 2 Static text Peso Edit text batalla Batalla Batalla Static text Batalla Fzd Edit text fzd Fzd Static text Fzd Edit text fzt Fzt Fzt Static text Fzt Edit text fzd_porcentaje Fzd porcentaje F 20090 Static text Fzt 96 Edit text fzt porcentaje Fzt porcentaje Fzt ZH Static text Fzt 96 Atr s Push button Atr s atr s Volver al Volver al men Push button Men volver_ppal Principal Principal Calcular Push button Calcular calcular C digo inicia
29. Proyecto Fin de Carrera Universidad Carlos Ill de Madrid Departamento de Ingenier a Mec nica Manual de referencia de la aplicaci n An lisis din mico de un veh culo autom vil Javier Buhigas P rez Mayo de 2011 Resumen El objeto de este documento es la descripci n del programa An lisis din mico de un veh culo autom vil Este programa permite realizar un an lisis din mico del comportamiento longitudinal tracci n y frenado y lateral de un veh culo autom vil Este programa es propiedad de la Universidad Carlos III de Madrid y su fin es puramente did ctico Abstract The object of this document is to describe the program An lisis din mico de un veh culo autom vil This program allows to realize a dynamic analysis of the longitudinal traction and braking and lateral vehaviour of the automobile vehicle This program is property of the Universidad Carlos III de Madrid and its purpose is purely didactic Referencias Ref 1 BUHIGAS P REZ Javier Manual de usuario de la aplicaci n An lisis din mico de un veh culo autom vil Madrid Universidad Carlos III de Madrid 2011 Ref 2 BUHIGAS P REZ Javier Proyecto Fin de Carrera Desarrollo de una aplicaci n en interfaz gr fica de MatLab para la determinaci n del comportamiento din mico de un veh culo autom vil Madrid Universidad Carlos III de Madrid Ficha t cnica Programa AN LISIS DIN MICO DE UN VEH CU
30. SUD i Rampa_maxima m xima m xima Velocidad Velocidad m xima y Push button m xima y Velocidad_maxima_y_resistencias resistencias resistencias Aceleraci n Push button Aceleraci n Aceleracion Acuaplaneo Push button Acuaplaneo Acuaplaneo Volver al Volver al Men Push button Men volver_ppal Principal Principal C digo inicial scrsz get 0 ScreenSize pos_act get gcf Position xr scrsz 3 pos_act 3 xp round xr 2 yr scrsz 4 pos_act 4 yp round yr 2 set gcf Position xp yp pos act 3 pos_act 4 Botones de acci n Reparto de cargas est ticas close Menu_traccion Reparto_de_cargas_estaticas Esfuerzo tractor m ximo close Menu_traccion Esfuerzo_tractor_maximo Rampa m xima close Menu_traccion Rampa_maxima Im genes Velocidad m xima y resistencias close Menu traccion Velocidad maxima y resistencias al avance Aceleraci n close Menu traccion Aceleracion Acuaplaneo close Menu traccion Acuaplaneo Men Principal close Menu traccion Menu principal axesl imread traccion003 3pg axes handles axes1 axis off imshow axesl 4 MENU FRENADO Tabla 4 Resumen de objetos en Menu frenado Objeto Tipo String Tag Par resistente Par resistente del motor en Push del motor en Par resistente del motor una determinada button una determinada marcha marcha Reparto de Reparto de Pu
31. a global Amax Adherencia str2double get handles adherencia String Amax str2double get handles amax String if isnan Adherencia errordlg El valor de la adherencia debe ser num rico ERROR set handles adherencia String 0 Adherencia 0 tetur end if Adherencia lt 0 errordlg El valor de la adherencia debe ser positivo ERROR set handles adherencia String 0 Adherencia 0 return end if isnan Amax errordlg El valor de la aceleraci n debe ser num rico ERROR set handles amax String 0 Amaxn 0 return end if Amax lt 0 errordlg El valor de la aceleraci n debe ser positivo ERROR set handles amax String 0 Amax 0 return end if Amax gt 0 3 errordlg Tenga en cuenta el confort de los pasajeros o el desplazamiento de la carga ERROR set handles amax String 0 Amax 0 return end close Rendimiento del frenado Rendimiento del frenado resultados axesl imread frenado010 jpg axes handles axesl axis off imshow axesl axes2 imread frenado012 3pg axes handles axes2 axis off imshow axes2 62 29 RENDIMIENTO DEL FRENADO RESULTADOS Tabla 29 Resumen de objetos en Rendimiento del frenado resultados Objeto Tipo String Tag Variable asociada Edit text rendimiento Rendimiento Rendimiento mE Static text Rendimiento Atr s Push button Atr s a
32. a fuerza l mit debe ser num rico ERROR set handles flimt String 0 Flimt 0 return end if Flimt lt 0 errordlg El valor de la fuerza l mit debe ser positivo ERROR set handles flimt String 0 Flimt 0 TETU end if isnan Fzd errordlg El valor de la fuerza en el n el eje delantero n el eje delantero n el eje trasero n el eje trasero je delantero deb ser num rico ERROR set handles fzd String 0 Fzd 0 return end if Fzd lt 0 53 An lisis din mico de un veh culo autom vil Manual de Referencia Im genes errordlg El valor de la fuerza en el eje delantero deb ser positivo ERROR set handles fzd String 0 Fzd 0 return end if isnan Fzt errordlg El valor de la fuerza en el eje trasero debe ser num rico ERROR set handles fzt String 0 Fzt 0 return end if Fzt lt 0 errordlg El valor de la fuerza en el eje trasero debe ser positivo ERROR set handles fzt String 0 Fzt 0 retur end if isnan Adherencia errordlg El valor de la adherencia debe ser num rico ERROR set handles adherencia String 0 Adherencia 0 return end if Adherencia lt 0 errordlg El valor de la adherencia debe ser positivo ERROR set handles adherencia String 0 Adherencia 0 return end if Flimd Flimt errordlg El valor de la fuerza a la que act a el limitador delante
33. al PP Calcular Push Calcular Calcular button C digo inicial Scrsz get 0 ScreenSize pos act get gcf Position xr scrsz 3 pos act 3 xp round xr 2 yr scrsz 4 pos act 4 yp round yr 2 set gcf Position xp yp pos_act 3 Botones de acci n Atr s close Centros_balanceo Menu_lateral Men Principal close Centros_balanceo Menu_principal pos act 4 86 Im genes axesl imread suspension centros balanceo jpg axes handles axesl axis off imshow axesl 41 CENTROS BALANCEO RESULTADOS Tabla 41 Resumen de objetos en Centros balanceo resultados Variable Objeto Tipo String Tag udaa L mite de Edit text a ymaxA A ymaxA vuelco A Static text L mite de vuelco A L mite de Edit text a ymaxB A ymaxB vuelco B Static text L mite de vuelco B Atr s Push button Atr s atras Ere Push button Men Principal Menu ppal C digo inicial scrsz get 0 ScreenSize pos_act get gcf Position xr scrsz 3 pos_act 3 xp round xr 2 yr scrsz 4 pos_act 4 yp round yr 2 set gcf Position xp yp pos_act 3 pos_act 4 global Peso global Girol global Giro2 global Via global HI global H2 P Peso 9 81 H H1 H2 A ymaxA Via 2 H Giro2 9 81 A_y 0 0 1 A_ymaxA 2 M_yv P H 9 81 A_y M_yR1 0 5 P Via M_yR P H A_ymaxA 9 81 M_yD
34. andles 11 String 0 L1 0 return end if L1 lt 0 errordlg El valor de L1 debe ser positivo ERROR set handles 11 String 0 L1 0 return end 45 An lisis din mico de un veh culo autom vil Manual de Referencia Im genes if isnan L2 errordlg El valor de L2 debe ser num rico ERROR set handles 12 String 0 L2 0 return end if L2 0 errordlg El valor de L2 debe ser positivo ERROR set handles 12 String 0 L2 0 return end if isnan H errordlg El valor de la altura debe ser num rico ERROR set handles h String 0 H 0 return end if H lt 0 errordlg El valor de la altura debe ser positivo ERROR set handles h String 0 H 0 return end close Reparto de cargas en la frenada Reparto de cargas en la frenada resultados axesl imread frenado006 3pg axes handles axesl axis off imshow axes1 46 21 REPARTO DE CARGAS EN LA FRENADA RESULTADOS Tabla 21 Resumen de objetos en Reparto de cargas en la frenada resultados Objeto Tipo String Tag Variable asociada Edit text fuerza del Fd Carga en el Edit text porcentaje del Del eje Carga en el delantero Static text eje delantero Edit text fuerza tra Ft Carga en el Edit text porcentaje tra Tra eje trasero Carga en el Static text eje trasero Atr s Push button Atr s atras Men Men Principal Push button P
35. antera Pop up i Trasera traccion popupmenu Tipo_traccion Tipo de Menu tracci n Tol A Tipo de Static text s tracci n Atr s Push button Atr s atras Volver al Volver al men Push button men volver_ppal Principal Principal Calcular Push button Calcular calcular C digo inicial scrsz get 0 ScreenSize pos_act get gcf Position pos act 3 xp round xr 2 pos act 4 yp round yr 2 xr scrsz 3 yr scrsz 4 set gcf Position xp yp pos_act 3 Botones de acci n Tipo de tracci n pos act 4 Aux get handles traccion popupmenu Value switch Aux case 1 case 2 case 3 end Atr s close Pipo_traccion 1 Pipo_traccion 2 Pipo_traccion 3 Menu_traccion Men Principal Esfuerzo_tractor_maximo 17 An lisis din mico de un veh culo autom vil Manual de Referencia close Esfuerzo tractor maximo Menu principal Calcular global Peso global Coeficiente global Adherencia global Batalla global L1 global L2 global H global Relacion global Par global Rend motor global Rend transmision global Radio global Tipo traccion Peso str2double get handles peso String Coeficiente str2double get handles coeficiente String Adherencia str2double get handles adherencia String Batalla str2double get handles batalla String L1 str2double get handles
36. cia Menu frenado Men Principal close Par resistente del motor Menu Principal Calcular global Par global Relacion global Rendimiento Par str2double get handles par String Relacion str2double get handles relacion String Rendimiento str2double get handles rendimiento String if isnan Relacion errordlg El valor de la relaci n de transmisi n debe ser num rico ERROR set handles relacion String 0 Relacion 0 retur end if Relacion lt 0 errordlg El valor de la relaci n de transmisi n debe ser mayor que 0 ERROR set handles relacion String 0 Relacion 0 return end if isnan Par errordlg El valor del par debe ser num rico ERROR set handles par String 0 Par 0 return end if Par lt 0 errordlg El valor del par debe ser mayor que 0 ERROR set handles par String 0 Par 0 ESCUTA end if isnan Rendimiento errordlg El valor del rendimiento debe ser num rico ERROR set handles rendimiento String 0 Rendimiento 0 return end if Rendimiento lt 0 41 errordlg El valor del rendimiento debe ser mayor que 0 ERROR set handles rendimiento String 0 Rendimientor 0 return end close Par resistente del motor Par resistente del motor resultados Im genes axesl imread par resistente001 jpg axes handles axes1 axis off imshow ax
37. del rendimiento de la transmision debe ser positivo ERROR set handles rend transmision String 0 Rend transmision 0 return end if Rend transmision 100 31 Im genes errordlg El valor d l rendimiento d ser menor set handle Rend_trans return end que 100 mision 100 ERROR la transmision debe s rend transmision String 0 close Velocidad maxima y resistencias al avance Velocidad maxima y resistencias al avance resultados axesl imread velocidad003 3jpg axes handl axis off imshow axe es axesl s1 13 VELOCIDAD MAXIMA Y RESISTENCIAS AL AVANCE RESULTAD OS Tabla 13 Resumen de objetos en Velocidad maxima y resistencias al avance resultados Objeto Tipo String Tag Variable asociada Edit text ra Ra Resistencia AR Resistencia aerodin mica Static text P aerodin mica Edit text IT Rr Resistencia a z Resistencia a la rodadura Static text la rodadura Edit text r R Resistencia A E E Resistencia gravitatoria Static text f gravitatoria Edit text vmax Vmax Velocidad i Velocidad m xima Static text o m xima Atr s Push button Atr s atras Men Men Km Push button in Menu ppal Principal Principal C digo inicial Scrsz get 0 ScreenSize pos_act get gcf Position xr scrsz 3 xp round x yr scrsz 4 yp round y a 1 2
38. eleracion antes de bloqueo Menu principal Calcular global Coeficiente global Adherencia global Batalla global L1 global L2 global H global Kfd global Kft Coeficiente str2double get handles coeficiente String Adherencia str2double get handles adherencia String Batalla str2double get handles batalla String L1 str2double get handles 11 String L2 str2double get handles 12 String H str2double get handles h String Kfd str2double get handles kfd String Kft str2double get handles kft String if isnan Coeficiente errordlg El valor del coeficiente de resistencia a la rodadura debe ser num rico ERROR set handles coeficiente String 0 Coeficiente 0 return end if Coeficiente 0 errordlg El valor del coeficiente de resistencia a la rodadura debe ser positivo ERROR set handles coeficiente String 0 Coeficiente 0 perum end 57 An lisis din mico de un veh culo autom vil Manual de Referencia if isnan Adherencia errordlg El valor de la adherencia debe ser num rico ERROR set handles adherencia String 0 Adherencia 0 return end if Adherencia lt 0 errordlg El valor de la adherencia debe ser positivo ERROR set handles adherencia String 0 Adherencia 0 return end if isnan Batalla errordlg El valor de la
39. enu ppal Principal Principal Calcular Push button Calcular Calcular C digo inicial SCrSz get 0 ScreenSize pos_act get gcf Position xr scrsz 3 pos_act 3 xp round xr 2 yr scrsz 4 pos_act 4 yp round yr 2 set gcf Position xp yp pos act 3 pos_act 4 Botones de acci n Atr s close Acuaplaneo Menu_traccion Men Principal close Acuaplaneo Menu_Principal Calcular global Presion Presion str2double get handles presion String if isnan Presion errordlg El valor de la presi n debe ser num rico ERROR set handles presion String 0 Presion 0 return end if Presion lt 0 errordlg El valor de la presion debe ser positivo ERROR set handles presion String 0 38 Im genes Presion 0 return end close Acuaplaneo Acuaplaneo_resultados axesl imread aquaplaning003 jpg axes handles axes1 axis off imshow axesl 17 ACUAPLANEO RESULTADOS Tabla 17 Resumen de objetos en Acuaplaneo resultados Objeto Tipo String Tag Variable asociada i j val Val Velocidad A tE 2 x m Velocidad de transici n Static text He de transici n Edit text va2 Va2 Velocidad d Velocidad e f f Static text de hidroplaneo hidroplaneo Atr s Push button Atr s atras Men Men ape Push button nep Menu ppal Principal Principal C digo inicial scrsz get 0 ScreenSize
40. erencia_de_carga_lateral Transferencia de carga lateral resultados Im genes axesl imread transferencia001 jpg axes handles axesl axis off imshow axesl 43 TRANSFERENCIA DE CARGA LATERAL RESULTADOS Tabla 43 Resumen de objetos en Transferencia de carga lateral resultados Variable jeto Tipo Strin Ta Obje p 8 asociada Transferencia Edit text trans_del Trans_del de carga Transferencia de Static text delantera carga delantera Transferencia Edit text trans tra Trans tra de carga Transferencia de Static text trasera carga trasera Push j Atr s idi Atr s atras button Men Push n n Men Principal Menu ppal Principal button P EP C digo inicial scrsz get 0 ScreenSize pos_act get gcf Position xr scrsz 3 pos_act 3 xp round xr 2 yr scrsz 4 pos_act 4 93 An lisis din mico de un veh culo autom vil Manual de Referencia yp round yr 2 set gcf Position xp yp pos act 3 pos act 4 global Ms global Msd global Mst global Mnsd global Mnst global R1 global Hd global Ht global H global H global Bd global Bt global Ay global Kd global Kt Fd Ay Bd Kd Ms R1 Kd Kt Ms 9 81 R1 Msd Hd Mnsd H1 Ft Ay Bt Kt Ms R1 Kd Kt Ms 9 81 R1 Mst Ht Mnst H2 Para expresarlo en kg Fd Fd 9 81 Ft Ft 9 81 set handles trans_de
41. es c String if isnan Via errordlg El valor de la v a debe ser num rico ERROR set handles via String 0 Via 0 return end if Via lt 0 errordlg El valor de la v a debe ser positivo ERROR set handles via String 0 Via 0 return end if isnan Giro errordlg El valor del giro debe ser num rico ERROR set handles giro String 0 Giro 0 return end if isnan Peso errordlg El valor del peso debe ser num rico ERROR set handles peso String 0 Peso 0 CEET end if Peso lt 0 errordlg El valor del peso debe ser positivo ERROR set handles peso String 0 Peso 0 return end if isnan H errordlg El valor de la altura debe set handles h String 0 H 0 return end ERROR ser num rico if H lt 0 82 An lisis din mico de un veh culo autom vil Manual de Referencia Im genes errordlg El valor de la altura debe ser mayor que 0 ERROR set handles h String 0 H 0 return end if isnan J errordlg El valor del juego debe ser num rico ERROR set handles j String 0 J 0 Feturn end if J 0 errordlg El valor del juego debe ser positivo ERROR set handles j String 0 J 0 return end if isnan C errordlg El valor de la distancia entre suspensiones deb ser num rico ERROR set handles c String 0 c 0 return end LE C 0
42. es de bloqueo close Menu frenado Maxima deceleracion antes de bloqueo Rendimiento del frenado A An lisis din mico de un veh culo autom vil A JI DL Mon al de Refereneir manual de Referencia Im genes close Menu_frenado Rendimiento_del_frenado Distancia y tiempo en una frenada de emergencia close Menu_frenado Distancia_y_tiempo Potencia disipada en el frenado close Menu_frenado Potencia disipada en el frenado Men Principal close Menu frenado Menu principal axesl imread frenado002 jpg axes handles axesl axis off imshow axesl 5 MENU LATERAL Tabla 5 Resumen de objetos en Menu lateral Objeto Tipo String Tag T Modelo de Suspensi n Push E a die suspensi n Suspension rigida r gida button e r gida Modelo de Suspensi n Push Es a suspensi n Suspension elastica el stica button Am el stica Suspensi n Suspensi n de ballestas Push de ballestas i i Suspension_ballestas con juego button con juego libre libre Indicando los Indicando los centros de centros de balanceo de Push balanceo de Centros balanceo suspensi n button suspensi n de los de los neum ticos neum ticos Transferencia Transferencia de carga Push de carga y lateral debida button lateral debida Tranaferencia_de_carga_lateral al balanceo al balanceo C digo inicial scrsz get 0 ScreenSize pos_act get gcf
43. es m Y X General MAT Files Preferences Confirmation Dialogs MAT file save format Source Control Save MAT files that can be loaded in Multithreading O MATLAB Version 7 3 or later save v7 3 p npo Files can exceed 2GB and format is HDFS based si Fonts Colors O MATLAB Version 7 or later save v7 M Lint Files are compressed and use Unicode Toolbars 2 MATLAB Version 5 or later save v6 Command Window E i y Command History Note also applies to FIG files you create by saving plots and GUls Editor Debugger Help Web Current Directory Variable Editor Workspace GUIDE Time Series Tools Figure Copy Template Report Generator SystemT est Database Toolbox Instrument Control Virtual Reality Simulink Simscape E E OK Cancel Apply Help Figura 1 Captura de pantalla del men de preferencias de GUIDE Detalle de las preferencias del formato de los archivos 95 Todas las im genes figures y m files deben estar en la misma carpeta no se pueden incluir subcarpetas que a su vez debe ser la carpeta de trabajo especificada a trav s del Current directory browser MatLab puede confundir f cilmente los nombres de los tags de los de las variables ya que diferencia entre may sculas y min sculas Se recomienda para seguir con el mismo criterio nombrar a todos los tags s lo en min sculas y las variables correspondientes comenzando en may scula Para seguir c
44. es1l axes2 imread par_resistente004 3jpg axes handles axes2 axis off imshow axes2 19 PAR RESISTENTE DEL MOTOR RESULTADOS Tabla 19 Resumen de objetos en Par resistente del motor resultados Objeto Tipo String Tag Variable asociada Edit text par resultado Res Par Par resistente Static text resistente del motor del motor Atr s Push button Atr s atras Menu Push button Men menu ppal Principal Principal PP C digo inicial scrsz get 0 ScreenSize pos_act get gcf Position xr scrsz 3 pos_act 3 xp round xr 2 yr scrsz 4 pos_act 4 yp round yr 2 set gcf Position xp yp pos act 3 pos_act 4 global Par global Relacion global Rendimiento Res Par Relacion Rendimiento set handles par_resultado String Res 42 Botones de acci n Im genes Atr s close Par resistente del motor resultados Par resistente del motor Men Principal close Par resistente del motor resultados Menu Principal axesl imread motor002 3pg axes handles axesl axis off imshow axesl axes2 imread par resistente002 jpg axes handles axes2 axis off imshow axes2 20 REPARTO DE CARGAS EN LA FRENADA Tabla 20 Resumen de objetos en Reparto de cargas en la frenada Objeto Tipo String Tag Variable asociada Edit text peso Pes
45. esistencias008 3pg axes handles axes rr axis off imshow axes rr axes rg imread resistencias006 3jpg axes handles axes rg axis off imshow axes rg 14 ACELERACION Tabla 14 Resumen de objetos en Aceleraci n Objeto Tipo String Tag Variable asociada Edit text peso Peso Peso Static text Peso Edit text ft Ft Ft Static text Ft i Edit text resistencia Resistencia Resistencia i 7 Static text Resistencia Edit text gamma Gamma Masas Masas rotativas Static text rotativas Atr s Push button Atr s atras Men Men E Push button il Menu ppal Principal Principal Calcular Push button Calcular Calcular C digo inicial Scrsz get 0 ScreenSize pos act get gcf Position xr scrsz 3 pos act 3 xp round xr 2 yr scrsz 4 pos_act 4 yp round yr 2 set gcf Position xp yp pos_act 3 pos_act 4 An lisis din mico de un veh culo autom vil Manual de Referencia Botones de acci n Atr s close Aceleracion Menu traccion Men Principal close Aceleracion Menu principal Calcular global Peso global Ft global Resistencia global Gamma Peso str2double get handles peso String Ft str2double get handles ft String Resistencia str2double get handles resistencia String Gamma str2double get handles gamma String if isnan Peso errordlg El va
46. eso String 0 Peso 0 return end if Peso lt 0 errordlg El valor del peso debe ser positivo ERROR set handles peso String 0 Peso 0 return end if isnan Fuerza errordlg El valor del esfuerzo tractor debe ser num rico ERROR set handles fuerza String 0 Fuerza 0 return end if Fuerza lt 0 errordlg El valor del esfuerzo tractor debe ser positivo ERROR set handles fuerza String 0 Fuerza 0 ESCUTA 24 Im genes end if isnan Coeficiente errordlg El valor del coeficiente de resistencia a la rodadura debe ser num rico ERROR set handles coeficiente String 0 Coeficiente 0 return end if Coeficiente 0 errordlg El valor del coeficiente de resistencia a la rodadura debe ser positivo ERROR set handles coeficiente String 0 Coeficiente 0 return end close Rampa maxima Rampa maxima resultados axesl imread rampa001 jpg axes handles axesl axis off imshow axes1 11 RAMPA MAXIMA RESULTADOS Tabla 11 Resumen de objetos en Rampa maxima resultados Objeto Tipo String Tag Variable asociada Edit text rampa Rampa Rampa P P rs E Rampa m xima Static text ro m xima Atr s Push button Atr s atras Men Men o Push button ur Menu ppal Principal Principal C digo inicial SCrSz get 0 ScreenSize pos act get gcf
47. f isnan Relacion errordlg El valor de la relaci n de transmisi n debe ser num rico ERROR set handles relacion String 0 Relacion 0 FELuUTH end if Relacion lt 0 errordlg El valor de la relaci n de transmisi n debe ser positivo ERROR set handles relacion String 0 Relacion 0 return end 30 An lisis din mico de un veh culo autom vil Manual de Referencia if isnan I errordlg El valor del deslizamiento debe ser num rico ERROR set handles i String 0 I 0 return end if I lt 0 errordlg El valor del deslizamiento debe ser positivo ERROR set handles i String 0 I 0 return end if isnan Rend motor errordlg El valor del rendimiento del motor debe ser num rico ERROR set handles rend_motor String 0 Rend_motor 0 ESCUT end if Rend motor 0 errordlg El valor del rendimiento del motor debe ser positivo ERROR set handles rend motor String 0 Rend_motor 0 return end if Rend_motor gt 100 errordlg El valor del rendimiento del motor debe ser menor que 100 ERROR set handles rend motor String 0 Rend motor 100 return end if isnan Rend transmision errordlg El valor del rendimiento de la transmisi n debe ser num rico ERROR set handles rend transmision String 0 Rend transmision 0 return end if Rend_transmision lt 0 errordlg El valor
48. genes Distancia y tiempo Men Principal close Distancia y tiempo resultados Menu principal axesl imread distancia004 3pg axes handles axes1 axis off imshow axesl 32 POTENCIA DISIPADA EN EL FRENADO Tabla 32 Resumen de objetos en Potencia disipada en el frenado Objeto Tipo String Tag Variable asociada Edit text peso Peso Peso Static text Peso Edit text V V Yelocidad Static text Velocidad Edit text t T Tiempo z h Tiempo asta Static text hasta parada parada Coeficiente Edit text gamma Gamma de masas Masas Static text rotativas rotativas Rampa Edit text rampa Rampa Static text Rampa Atr s Push button Atr s atras Men Men Principal Push button Principal Menu ppal Calcular Push button Calcular Calcular C digo inicial Scrsz get 0 ScreenSize pos act get gcf Position xr scrsz 3 pos act 3 xp round xr 2 yr scrsz 4 pos act 4 yp round yr 2 set gcf Position xp yp pos act 3 pos act 4 69 An lisis din mico de un veh culo autom vil Manual de Referencia Botones de acci n Atr s close Potencia disipada en el frenado Menu frenado Men Principal close Potencia disipada en el frenado Menu principal Calcular global Peso global V global T global Rampa global Gamma Peso str2double get handles peso String V str2double ge
49. ia errordlg El valor de la v a set handles via String 0 Via 0 return end if Via lt 0 errordlg El valor de la v a set handles via String 0 Via 0 return end if isnan Giro errordlg El valor del giro debe ser set handles giro String 0 Giro 0 return end if isnan Peso errordlg El valor del p debe ser num rico ERROR debe ser positivo ERROR num rico ERROR so debe ser num rico ERROR set handles peso String 0 Peso 0 return end if Peso lt 0 errordlg El valor del p so debe ser positivo ERROR set handles peso String 0 Peso 0 return end if isnan H errordlg El valor de la altura debe ser num rico set handles h String 0 H 0 return end if H lt 0 errordlg El valor de la altura debe ser mayor que 0 ERROR set handles h String 0 H 0 return end ERROR 74 Im genes close Suspension rigida Suspension rigida resultados axesl imread suspension rigida jpg axes handles axesl axis off imshow axesl 35 SUSPENSION RIGIDA RESULTADOS Tabla 35 Resumen de objetos en Suspensi n rigida resultados Variable Objeto Tipo Strin Ta J p 8 8 asociada Aceleraci n Edit text a_ymax A ymax lateral Aceleraci n lateral zo Static text NE maxima maxima d Push Atr s Atr s atras button
50. iento EE Rendimiento del frenado Static text frenado Coeficiente Edit text gamma Gamma de masas Masas Static text i rotat vas rotat vas Atr s Push button Atr s atras Men Men Wn Push button M Menu ppal Principal Principal Calcular Push button Calcular Calcular C digo inicial scrsz get 0 ScreenSize pos_act get gcf Position xr scrsz 3 pos_act 3 xp round xr 2 yr scrsz 4 pos_act 4 yp round yr 2 set gcf Position xp yp pos_act 3 pos_act 4 Botones de acci n Atr s close Distancia_y_tiempo Menu_frenado Men Principal 64 An lisis din mico de un veh culo autom vil Manual de Referencia close Distancia y tiempo Menu principal Calcular global Peso global Coeficiente global Adherencia global Cx global Af global V global Rampa global Rendimiento global Gamma Peso str2double get handles peso String Coeficiente str2double get handles coeficiente String Adherencia str2double get handles adherencia String Cx str2double get handles cx String Af str2double get handles af String V str2double get handles v String Rampa str2double get handles rampa String Rendimiento str2double get handles rendimiento String Gamma str2double get handles gamma String if isnan Peso errordlg El valor del peso debe ser num rico ERROR
51. ion xp yp pos act 3 pos_act 4 global Peso global Giro global Via global H P Peso 9 81 A ymax Via 2 H Giro 9 81 set handles a ymax String A ymax A y 0 0 1 A ymax 2 M yv P H 9 81 A y M yR1 20 5 P Via M yR P H A ymax 9 81 M yD P H Giro W waitbar 0 5 Calculando pause 1 close W axes handles axesl axis on plot A y M yv 79 An lisis din mico de un veh culo autom vil M lo Roforo T Manual de Referencia hold on plot A y P Via 0 5 ones length A y r xlabel a y ylabel M yt hold en plot A y M yR ones length A y r hold on A A ymax A ymax I 0 M yR plot A E ke hold off grid on xlim A_ymax 2 01 ylim 0 0 5 P Via 100 axes handles axes2 phi 0 0 001 Giro 14 0 5 M_yRN M_yR P H phi plot phi M_yRN b hold on plot phi 0 5 P Via ones length phi r Xlabel O ylabel hold on OX 0 0 01 Giro plot OX M_yR ones length 0X 1 rx hold off grid on xlim 0 Giro 1 0 5 1 ylim 0 0 5 P Via 100 Botones de acci n e Atr s close Suspension elastica resultados Suspension elastica e Men Principal close Suspension elastica resultados Menu_principal Im genes axes3 imread vuelco001 jpg axes handles axes3 axis off imshow axes3 80 38 SUSPENSION BALLESTAS Tabla 38 Resumen de objetos en Suspensi n ba
52. je trasero debe ser num rico ERROR set handles Kft String 0 Kft 0 return end if Kft lt 0 errordlg El valor del reparto en el eje trasero debe ser positivo ERROR set handles kft String 0 Kft 0 return end close Maxima deceleracion antes de bloqueo Maxima deceleracion antes de bloqueo resultados axesl imread frenado007 3pg axes handles axesl axis off imshow axesl 59 27 MAXIMA DECELERACION ANTES DE BLOQUEO RESULTADOS Tabla 27 Resumen de objetos en Maxima deceleracion antes de bloqueo resultados Objeto Tipo String Tag Variable asociada Edit text aceld Aceld En las En las ruedas Static text ruedas delanteras delanteras Edit text acelt Acelt En las En las ruedas Static text ruedas delanteras delanteras Atr s Push button Atr s atras Men Men os Push button UE Menu ppal Principal Principal C digo inicial Scrsz get 0 ScreenSize pos_act get gcf Position xr scrsz 3 pos_act 3 xp round xr 2 yr scrsz 4 pos_act 4 yp round yr 2 set gcf Position xp yp pos_act 3 pos_act 4 global Coeficiente global Adherencia global Batalla global L1 global L2 global H global Kfd global Kft Kkfd_uni 0 01 Kfd Kft_uni 0 01 Kft Aceld Adherencia Adherencia H Batal Acelt Adherencia Adherencia H Batalla set handles aceld String
53. l scrsz get 0 ScreenSize pos_act get gcf Position xr scrsz 3 pos_act 3 xp round xr 2 yr scrsz 4 pos_act 4 yp round yr 2 set gcf Position xp yp pos_act 3 pos_act 4 Botones de acci n e Atr s close Reparto de cargas estaticas Menu traccion e Men Principal Aunque todos los objetos tienen un tag asociado al no ser relevante se omite indicar el de los textos est ticos como este En general tienen una etiqueta de la forma text donde es un n mero entero 12 An lisis din mico de un veh culo autom vil Manual de Referencia close Reparto de cargas estaticas Menu Principal Calcular global Peso global Batalla global Fzd global Fzt global Fzd porcentaje global Fzt porcentaje Peso str2double get handles peso String Batalla str2double get handles batalla String Fzd str2double get handles fzd String Fzt str2double get handles fzt String Fzd_porcentaje str2double get handles fzd_porcentaje Stri ng Fzt_porcentaje str2double get handles fzt_porcentaje Stri maT yy if isnan Peso errordlg El valor del peso debe ser num rico ERROR set handles peso String 0 Peso 0 return end if Peso lt 0 errordlg El valor del peso debe ser positivo ERROR set handles peso String 0 Peso 0 return end if isnan Batalla errordlg El val
54. l String Fd set handles trans_tra String Ft Botones de acci n Im genes Atr s close Transferencia de carga lateral resultados Transferencia de carga lateral Men Principal close Transferencia de carga lateral resultados Menu principal axesl imread vuelco007 3jpg axes handles axesl axis off imshow axesl axes4 imread transferencia002 jpg axes handles axes4 axis off imshow axes4 94 Consideraciones sobre la programaci n Para modificar la aplicaci n An lisis din mico de un veh culo autom vil t nganse en cuenta las siguientes consideraciones e Todas las GUIs han sido dise adas con el mismo tama o 520 45 1152 845 Al crear una nueva GUI establecer estos mismos par metros e Los tags de los objetos se guardan en el handles de cada GUI por lo tanto pueden repetirse en diferentes GUIs pero no en una misma As objetos comunes en todas las GUIs como los botones de Men principal o Atr s pueden compartir el mismo tag aunque su callback sea distinto e Para recuperar el valor de una variable establecida en una GUI y usarlo en una segunda en ambas GUIs se deben declarar las variables como globales pues la memoria del handles se borra al cerrar cada GUI e Para conseguir m xima compatibilidad establecer en las opciones de preferencias de cada GUI compatibilidad con MatLab 5 Ver Figura 1 Preferenc
55. llestas Variable Objeto Tipo Strin Ta i J p 8 8 asociada Edit text peso Peso Peso Static text Peso Edit t ir lr Giro d ext l giro Giro Static text Giro Edit text via Via V a 7 Static text V a Edit text h H h Static text h Edit text j J Juego libre J Static text Juego libre Distancia Edit text c C entre Distancia B Static text suspensiones suspensiones Push Atr s Atr s atras button Men Push Men i pe Menu ppal Principal button Principal Push Calcular Calcular Calcular button C digo inicial scrsz get 0 ScreenSize pos_act get gcf Position xr scrsz 3 pos_act 3 xp round xr 2 yr scrsz 4 pos_act 4 yp round yr 2 set gcf Position xp yp pos_act 3 pos_act 4 Botones de acci n e Atr s close Suspension ballestas Menu_lateral e Men Principal close Suspension ballestas Menu_principal 81 An lisis din mico de un veh culo autom vil Manual de Referencia Calcular global Peso global Giro global Via global H global J global C Peso str2doubl Giro str2doub Le get handles peso String le get handles giro String Via str2double get handles via String H str2doubl J str2doubl C str2doubl le get hand l Le get handl Le get handl les h String les 3 String l
56. lor del peso debe ser num rico ERROR set handles peso String 0 Peso 0 return end if Peso lt 0 errordlg El valor del peso debe ser positivo ERROR set handles peso String 0 Peso 0 return end if isnan Ft errordlg El valor del esfuerzo tractor debe ser num rico ERROR set handles ft String 0 Ft 0 return end At FU D0 errordlg El valor del esfuerzo tractor debe ser positivo ERROR set handles ft String 0 Ft 0 return end if isnan Resistencia errordlg El valor de la resistencia debe ser num rico ERROR 35 An lisis din mico de un veh culo autom vil Manual de Referencia Im genes set handles resistencia String 0 Resistencia 0 return end if Resistencia 0 errordlg El valor de la resistencia debe ser positivo ERROR set handles resistencia String 0 Resistencia 0 return end if isnan Gamma errordlg El valor del coeficiente de masas rotatorias debe ser num rico ERROR set handles gamma String 0 Gamma 0 return end if Gamma lt 0 errordlg El valor del coeficiente de masas rotatorias debe ser mayor que 0 ERROR set handles gamma String 0 Gamma 0 return end if Ft Resistencia errordlg El esfuerzo tractor debe ser mayor que las resistencias al avance ERROR return end close Aceleracion Aceleracion resultados
57. md Flimd frenado Static text Flim d impuesta Edit text flimt Flimt por el limitador de Static text Flim t presi n Remide Edit text fzd Fzd pii seda Static text Ezd 5 Edit text fzt Fzt frenada Static text Fzt Edit text adherencia Adherencia Adherencia Static text Adherencia Atr s Push button Atr s atras Men Men ae Push button as Menu ppal Principal Principal Calcular Push button Calcular Calcular C digo inicial scrsz get 0 ScreenSize pos_act get gcf Position xr scrsz 3 pos_act 3 xp round xr 2 yr scrsz 4 pos_act 4 yp round yr 2 set gcf Position xp yp pos act 3 pos_act 4 52 An lisis din mico de un veh culo autom vil Manual de Referencia Menu principal global Flimd global Flimt global Fzd g g F lobal Fzt lobal Adherencia limd str2double get handles flimd String Flimt str2double get handles flimt String Fzd str2double get handles fzd String Fzt str2double get handles fzt String Adherencia str2double get handles adherencia String if isnan Flimd errordlg El valor de la fuerza l mit debe ser num rico ERROR set handles flimd String 0 Flimd 0 return end if Flimd lt 0 errordlg El valor de la fuerza l mit debe ser positivo ERROR set handles flimd String 0 Flimd 0 return end if isnan Flimt errordlg El valor de l
58. o Men Principal close Potencia_disipada_en_el_frenado_resultados Menu_principal 72 Im genes axesl imread frenado009 3jpg axes handles axes1 axis off imshow axesl 34 SUSPENSION RIGIDA Tabla 34 Resumen de objetos en Suspensi n rigida n A Variable Objeto Tipo Strin Ta J P 8 8 asociada Edit text peso Peso Peso Static text Peso Edit text i i Giro di ex giro Giro Static text Giro Edit text via Via V a 7 Static text V a Edit text h H h Static text h Atr s Push button Atr s atras Men Men e Push button n Menu ppal Principal Principal Calcular Push button Calcular Calcular C digo inicial scrsz get 0 ScreenSize pos_act get gcf Position xr scrsz 3 pos_act 3 xp round xr 2 yr scrsz 4 pos_act 4 yp round yr 2 set gcf Position xp yp pos_act 3 Botones de acci n e Atr s close Suspension_rigida Menu_lateral e Men Principal close Suspension_rigida Menu_principal e Calcular pos_act 4 73 An lisis din mico de un veh culo autom vil Manual de Referencia global Peso global Giro global Via global H Peso str2doubl Giro str2doub Le get handl les peso String Le get handl les giro String Via str2double get handles via String H str2double get handles h String if isnan V
59. o Peso Static text Peso v Edit text coeficiente Coeficiente Coeficiente Static text Coeficiente Edit text batalla Batalla Batalla Static text Batalla Edit text adherencia Adherencia Adherencia Static text Adherencia 11 Edit text 11 L1 Static text 11 D Edit text 12 L2 Static text 12 h Edit text h H Static text h Atr s Push button Atr s atras Men Push button Men menu_ppal Principal cited Principal PP Calcular Push button Calcular Calcular An lisis din mico de un veh culo autom vil Manual de Referencia C digo inicial Scrsz get 0 ScreenSize pos act get gcf Position xr scrsz 3 pos act 3 xp round xr 2 yr scrsz 4 pos_act 4 yp round yr 2 set gcf Position xp yp pos act 3 pos act 4 Botones de acci n Atr s close Reparto de cargas en la frenada Menu frenado Men Principal close Reparto de cargas en la frenada Menu Principal Calcular global Peso global Coeficiente global Batalla global Adherencia global L1 global L2 global H Peso str2double get handles peso String Coeficiente str2double get handles coeficiente String Batalla str2double get handles batalla String Adherencia str2double get handles adherencia String L1 str2double get handles 11 String L2 str2double get handles 12 String H str2double get handles h String
60. on el mismo criterio siempre que se vaya a programar una prestaci n nueva crear una GUI donde se introducen los datos de entrada y una segunda GUI donde se muestren los resultados En esta segunda GUI es donde se realizan las operaciones necesarias Todas las GUIs creadas tienen fondo blanco El fondo de una GUI se modifica haciendo doble clic sobre el mismo al editar la figura abri ndose el editor inspector del objeto que es el fondo Tratar de mantener una coherencia est tica Por ejemplo se han diferenciado los tres an lisis de tracci n frenado y din mica lateral por colores Si se incluye un an lisis de din mica vertical establecer otro color De igual modo tratar de mantener el criterio de cuadros de t tulos establecido 96
61. ones length A y r 84 An lisis din mico de un veh culo autom vil Manual de Referencia hold on A A ymax A ymax I 0 M yR plot A I k hold off grid on xlim A ymax 2 0 ylim 0 0 5 P Via 100 axes handles axes2 phi 0 0 001 Giro 1 0 5 M_yRN M_yR P H phi plot phi M_yRN b hold on plot phi 0 5 P Via ones length phi 9 xlabel O ylabel hold on OX 0 0 0001 Giro plot OX M_yR ones length 0X 1 r hold on A Giro Giro I 0 M_yR plot A I E hold off grid on xlim 0 Giro 1 40 5 ylim 0 0 5 P Via 100 Botones de acci n Im genes Atr s close Suspension ballestas resultados Suspension ballestas Men Principal close Suspension ballestas resultados Menu_principal axes3 imread vuelco005 Jpg axes handles axes3 axis off imshow axes3 85 40 CENTROS BALANCEO Tabla 40 Resumen de objetos en Centros balanceo Variable Objeto Tipo String Tag asociada Edit text peso Peso Peso Static text Peso Girol Edi t text l girol Girol Static text Girol Edit text giro2 Giro2 2 d Static text Giro2 V a Edit text via Via Static text V a hl Edit text hl H1 Static text h1 h2 Edit text h2 H2 Static text h2 Atr s Push Atr s atras button Men Push Men NENNT Principal button Princip
62. or de la batalla debe ser num rico ERROR set handles batalla String 0 Batalla 0 return end if Batalla lt 0 errordlg El valor de la batalla debe ser positivo ERROR set handles batalla String 0 Batalla 0 return end if isnan Fzd errordlg El valor de la fuerza en el eje delantero deb ser num rico ERROR set handles fzd String 0 Fzd 0 Ferre end 13 An lisis din mico de un veh culo autom vil Manual de Referencia if Fzd lt 0 errordlg El valor de la fuerza en el eje delantero deb ser positivo ERROR set handles fzd String 0 Fzd 0 return end if isnan Fzt errordlg El valor de la fuerza en el eje trasero debe ser num rico ERROR set handles fzt String 0 Fzt 0 return end if Fzt lt 0 errordlg El valor de la fuerza en el eje trasero debe ser positivo ERROR set handles fzt String 0 Fzt 0 retur end if isnan Fzd porcentaje errordlg El valor del reparto en el eje delantero debe ser num rico ERROR set handles fzd_porcentaje String 0 Fzd_porcentaje 0 return end if Fzd_porcentaje lt 0 errordlg El valor del reparto en el eje delantero debe ser positivo ERROR set handles fzd_porcentaje String 0 Fzd_porcentaje 0 return end if isnan Fzt porcentaje errordlg El valor del reparto en el eje trasero debe ser num rico ERROR set handles fzt_po
63. ose Bloqueo_resultados loqueo w Men Principal close Bloqueo_resultados Menu_principal axes1 imread bloqueo002 3pg axes handles axes1 axis off imshow axesl axes2 imread frenado011 jpg axes handles axes2 axis off imshow axes2 26 MAXIMA DECELERACION ANTES DE BLOQUEO Tabla 26 Resumen de objetos en Maxima deceleracion antes de bloqueo Objeto Tipo String Tag Variable asociada Edit text coeficiente Coeficiente Coeficiente Static text Coeficiente Edit text adherencia Adherencia Adherencia Static text Adherencia Edit text batalla Batalla Batalla Static text Batalla 11 Edit text 11 L1 Static text 11 D Edit text 12 L2 Static text 12 h Edit text h H Static text h Edit text kfd Kfd Rid Static text Kfd Edit text kft Kft Ki Static text Kft Atr s Push button Atr s atras Men Men Principal Push button Principal Menu ppal Calcular Push button Calcular Calcular 56 An lisis din mico de un veh culo autom vil Manual de Referencia C digo inicial Scrsz get 0 ScreenSize pos act get gcf Position xr scrsz 3 pos act 3 xp round xr 2 yr scrsz 4 pos_act 4 yp round yr 2 set gcf Position xp yp pos act 3 pos act 4 Botones de acci n Atr s close Maxima deceleracion antes de bloqueo Menu frenado Men Principal close Maxima dec
64. pa Static P Rampa text Edit text potencia Potencia Potencia E Static Potencia m xima m text m xima Edit text revoluciones Revoluciones Revoluciones 2 Static Revoluciones m ximas A text m ximas 2 Edit text relacion Relacion Relaci n de NT Static Relaci n transmisi n ny text transmisi n Edit text 1 I Deslizamiento Static Deslizamiento text mE Edit text rend motor Rend motor Rendimiento RE Static Rendimiento del motor text del motor Rendimiento Edit text rend transmision Rend transmision de la Static Rend de la transmisi n text transmisi n Push Atr s Atr s atras button Men Push Men m M Menu ppal Principal button Principal Push Calcular Calcular Calcular button 27 An lisis din mico de un veh culo autom vil Manual de Referencia C digo inicial scrsz get 0 ScreenSize pos_act get gcf Position xr scrsz 3 pos_act 3 xp round xr 2 yr scrsz 4 pos_act 4 yp round yr 2 set gcf Position xp yp pos act 3 pos act 4 Botones de acci n Atr s close Velocidad maxima y resistencias al avance Menu traccion Men Principal close Velocidad maxima y resistencias al avance Menu principal Calcular global Peso global Coeficiente global Cx global Af global Rampa global Potencia global Revoluciones global Relacion global I global Rend motor global Rend transmision Peso st
65. pos_act get gcf Position xr scrsz 3 pos_act 3 xp round xr 2 yr scrsz 4 pos_act 4 yp round yr 2 set gcf Position xp yp pos_act 3 pos_act 4 global presion P 100 presion VA1 3 94 realsqrt P VA2 6 34 realsqrt P set handles val String VA1 set handles va2 String VA2 39 Botones de acci n Im genes Atr s close Acuaplaneo resultados Acuaplaneo Men Principal close Acuaplaneo_resultados Menu_Principal axesl imread aquaplaning001 axes handles axesl axis off imshow axesl Jeg 18 PAR RESISTENTE DEL MOTOR Tabla 18 Resumen de objetos en Par resistente del motor Objeto Tipo String Tag Variable asociada Edit text par Par M e Static text Mc y Edit text relacion Relacion Relaci n zz Static text Relaci n ue Edit text rendimiento Rendimiento Rendimiento i Static text Rendimiento Atr s Push button Atr s atras Men Men Principal Push button Principal Menu_ppal Calcular Push button Calcular Calcular C digo inicial scrsz get 0 ScreenSize pos_act get gcf Position xr scrsz 3 pos_act 3 xp round xr 2 yr scrsz 4 pos_act 4 yp round yr 2 set gcf Position xp yp pos act 3 pos_act 4 Botones de acci n Atr s close Par resistente del motor 40 An lisis din mico de un veh culo autom vil Manual de Referen
66. r2double get handles peso String Coeficiente str2double get handles coeficiente String Cx str2double get handles cx String Af str2double get handles af String Rampa str2double get handles rampa String Potencia str2double get handles potencia String Revoluciones str2double get handles revoluciones String Relacion str2double get handles relacion String I str2double get handles i String Rend_motor str2double get handles rend_motor String Rend transmision str2double get handles rend transmision tring if isnan Peso errordlg El valor del peso debe ser num rico ERROR set handles peso String 0 Peso 0 return end 28 An lisis din mico de un veh culo autom vil Manual de Referencia if Peso lt 0 errordlg El valor del peso debe ser positivo ERROR set handles peso String 0 Peso 0 return end if isnan Coeficiente errordlg El valor del coeficiente de resistencia a la rodadura debe ser num rico ERROR set handles coeficiente String 0 Coeficiente 0 return end if Coeficiente 0 errordlg El valor del coeficiente de resistencia a la rodadura debe ser positivo ERROR set handles coeficiente String 0 Coeficiente 0 ESCUTA end if isnan Cx errordlg El valor del coeficiente aerodin mico debe ser num rico ERROR
67. rcentaje String 0 Fzt_porcentaje 0 return end if Fzt porcentaje O0 errordlg El valor del reparto en el eje trasero debe ser positivo ERROR set handles fzt_porcentaje String 0 Fzt_porcentaje 0 return end close Reparto de cargas estaticas 14 Reparto de cargas estaticas resultados Im genes axesl imread reparto jpg axes handles axesl axis off imshow axesl 7 REPARTO DE CARGAS ESTATICAS RESULTADOS Tabla 7 Resumen de objetos en Reparto de cargas estaticas resultados Objeto Tipo String Tag Variable asociada 11 Edit text 11 Ll Static text 11 D Edit text 12 L2 Static text 12 Atr s Push button Atr s atras Volver al Volver al men Push button men volver_ppal Principal Principal C digo inicial scrsz get 0 ScreenSize pos_act get gcf Position xr scrsz 3 pos_act 3 xp round xr 2 yr scrsz 4 pos_act 4 yp round yr 2 set gcf Position xp yp pos act 3 pos act 4 obal Peso obal Batalla obal Fzd obal Fzt obal Fzd porcentaje obal Fzt porcentaje P Peso 9 81 if Fzd porcentaje L1 Fzt Batalla P L2 Fzd Batalla P elseif Fzd L1 0 01 Fzt_porcentaje Batalla L2 0 01 Fzd_porcentaje Batalla QOO oO oO end set handles 11 String L1 set handles 12 String L2 15 Botones de acci n
68. rincipal Objeto Tipo String Tag Din mica longitudinal Din mica longitudinal m Push button D traccion Tracci n Tracci n Din mica longitudinal Din mica longitudinal 8 Push button 8 frenado Frenado Frenado Din mica lateral Push button Din mica lateral lateral C digo inicial scrsz get 0 ScreenSize pos_act get gcf Position xr scrsz 3 pos_act 3 xp round xr 2 yr scrsz 4 pos_act 4 yp round yr 2 set gcf Position xp yp pos_act 3 pos_act 4 Botones de acci n Din mica Longitudinal Tracci n close Menu_principal Menu_traccion Din mica Longitudinal Frenado close Menu_principal Menu_frenado Din mica Lateral close Menu_principal Menu_lateral Im genes axes_traccion imread traccion006 3pg axes handles axes traccion axis off imshow axes traccion axes frenado imread frenado008 3pg axes handles axes frenado axis off imshow axes frenado axes lateral imread derrape005 3pg axes handles axes lateral axis off imshow axes lateral 3 MENU TRACCION Tabla 3 Resumen de objetos en Menu traccion Objeto Tipo String Tag Reparto de Reparto de cargas Push button cargas Reparto de cargas estaticas est ticas est ticas Esfuerzo Esfuerzo tractor Push button tractor Esfuerzo tractor maximo m ximo m ximo eis E Push button
69. rincipal Menu_ppal C digo inicial scrsz get 0 ScreenSize pos_act get gcf Position xr scrsz 3 xp round xr 2 yr scrsz 4 yp round yr 2 pos_act 3 pos act 4 set gcf Position xp yp pos act 3 P Peso 9 81 Fd Ft global Peso global Coeficiente global Batalla global Adherencia global L1 global L2 global H pos act 4 P L2 H P Adherencia Coeficient P L1 H P Adherencia Del 100 EFd Fd Ft Tra 100 Ft Fd Ft set set set set Botones de acci n Atr s Coeficient handles fuerza_del String Fd handles fuerza_tra String Ft handles porcentaje del String Del handles porcentaje tra String Tra Batall Batall a 47 close Reparto de cargas en la frenada resultados Reparto de cargas en la frenada e Men Principal close Reparto de cargas en la frenada resultados Menu Principal Im genes axesl imread repartofrenada001 jpg axes handles axes1 axis off imshow axesl 22 REPARTO OPTIMO DE LA FRENADA Tabla 22 Resumen de objetos en Reparto optimo de la frenada Objeto Tipo String Tag Variable asociada Edit text coeficiente Coeficiente Coeficiente Static text Coeficiente Edit text adherencia Adherencia Adherencia Static text Adherencia T
70. ro debe ser mayor que el del trasero ERROR return end close Bloqueo Bloqueo resultados axesl imread bloqueo001 jpg axes handles axesl axis off imshow axes1 54 25 BLOQUEO RESULTADOS Tabla 25 Resumen de objetos en Bloqueo resultados Variable Objeto Tipo String Tag asociada Bloquean las ruedas delanteras Static text No Bloquean lasauedas delantero delanteras Bloquean las ruedas Static text uu trasero No bloquean las ruedas traseras Atr s Push button Atr s atras Menu Push button Men Principal Menu ppal Principal E C digo inicial scrsz get 0 pos act get gcf Position xr scrsz 3 pos act 3 xp round xr 2 yr scrsz 4 pos_act 4 yp round yr 2 ScreenSize set gcf Position xp yp pos_act 3 global Flimd global Flimt global Fzd global Fzt global Adherencia Fadhd Adherencia Fzd Fadht Adherencia Fzt if Fadhd Flimd pos act 4 set handles delantero String Bloquean las ruedas delanteras elseif Fadhd Flimd set handles delantero String No bloquean las ruedas delanteras end if Fadht Flimt set handles trasero String Bloquean las ruedas traseras elseif Fadht Flimt set handles trasero String No bloquean las ruedas traseras end Botones de acci n 55 Im genes Atr s Q l
71. sfuerzo tractor maximo resultados 21 9 ESFUERZO TRACTOR MAXIMO RESULTADOS Tabla 9 Resumen de objetos en Esfuerzo tractor maximo resultados Objeto Tipo String Tag Variable asociada Edit text ft L1 Ft Static text Ft Atr s Push button Atr s atras Men Men En Push button RE Menu ppal Principal Principal C digo inicial scrsz get 0 ScreenSize pos act get gcf Position xr scrsz 3 pos act 3 xp round xr 2 yr scrsz 4 pos act 4 yp round yr 2 set gcf Position xp yp pos act 3 pos act 4 lobal Radio lobal Tipo traccion global Peso global Coeficiente global Adherencia global Batalla global L1 global L2 global H global Relacion global Par global Rend motor global Rend transmision g g Peso Peso 9 81 Rend motor Rend motor 0 01 Rend transmision Rend transmision 0 01 Fmotriz Relacion Par Rend motor Rend transmision Radio if Tipo traccion Fadh Adherencia Peso L2 H Coeficiente Batalla Adherencia H else if Tipo traccion 2 Fadh Adherencia Peso L1 H Coeficiente Batalla Adherencia H else Fadh Adherencia Peso end end Fmotriz Fadh Ft min Fmotriz Fadh set handles ft String Ft Botones de acci n Im genes Atr s close Esfuerzo tractor maximo resultados Esfuerzo tractor maximo Men Principal close Esf
72. sh cargas en la cargas en la Reparto de cargas en la frenada button frenada frenada Reparto ptimo Push Reparto ptimo p en la frenada button en la frenada Reparto_optimo_de_la_frenada Bloqueo de las Push Bloqueo de las Bloqueo ruedas button ruedas M xima M xima deceleraci n Push deceleraci n M xima_deceleraci n_antes_de_bloqueo sufrida antes de button sufrida antes de m n eu bloqueo bloqueo Rendimiento del Push Rendimiento del un Rendimiento del frenado frenado button frenado Distancia y Distancia y tiempo en una Push tiempo en una Wenn dunes frenada de button frenada de P emergencia emergencia Potencia Push Potencia disipada en el disipada en el Potencia disipada en el frenado button frenado frenado Volver al men Push Volver al Men pin s volver ppal Principal button Principal C digo inicial scrsz get 0 ScreenSize pos_act get gcf Position xr scrsz 3 pos_act 3 xp round xr 2 yr scrsz 4 pos_act 4 yp round yr 2 set gcf Position xp yp pos act 3 pos_act 4 Botones de acci n Par resistente del motor en una determinada marcha close Menu_frenado Par resistente del motor Reparto de cargas en la frenada close Menu frenado Reparto de cargas en la frenada Reparto ptimo en la frenada close Menu frenado Reparto optimo de la frenada Bloqueo de las ruedas close Menu frenado Bloqueo M xima deceleraci n sufrida ant
73. t handles v String T str2double get handles t String Rampa str2double get handles rampa String Gamma str2double get handles gamma String el el if isnan Peso errordlg El valor del peso debe ser num rico ERROR set handles peso String 0 Peso 0 return end if Peso lt 0 errordlg El valor del peso debe ser positivo ERROR set handles peso String 0 Peso 0 returu end if isnan V errordlg El valor de la velocidad debe ser num rico ERROR set handles v String 0 V 20 ESCUTA end if v lt 0 errordlg El valor de la velocidad debe ser positivo ERROR set handles v String 0 V 20 return end 70 An lisis din mico de un veh culo autom vil Manual de Referencia Im genes if isnan T errordlg El valor del tiempo debe ser num rico ERROR set handles t String 0 T 0 return end if T 0 errordlg El valor del tiempo debe ser positivo ERROR set handles t String 0 T 0 return end if isnan Rampa errordlg El valor de la rampa debe ser num rico ERROR set handles rampa String 0 Rampa 0 return end if Rampa lt 0 errordlg El valor de la rampa debe ser positivo ERROR set handles rampa String 0 Rampa 0 return end if isnan Gamma errordlg El valor del coeficiente de masas rotatorias debe ser num rico ERROR set
74. tras Men Men Principal PUT PA Principal MEDIE ppal C digo inicial Scrsz get 0 ScreenSize pos act get gcf Position xr scrsz 3 pos act 3 xp round xr 2 yr scrsz 4 pos_act 4 yp round yr 2 set gcf Position xp yp pos act 3 pos_act 4 global Adherencia global Amax Rendimiento 100 Amax Adherencia set handles rendimiento String Rendimiento Botones de acci n e Atr s close Rendimiento del frenado resultados Rendimiento del frenado e Men Principal close Rendimiento_del_frenado_resultados Menu_principal Im genes axesl imread frenado015 3pg axes handles axesl axis off imshow axesl axes2 imread frenado013 jpg axes handles axes2 axis off imshow axes2 63 30 DISTA NCIA Y TIEMPO Tabla 30 Resumen de objetos en Distancia y tiempo Objeto Tipo String Tag Variable asociada Edit text peso Peso Peso i Static text Peso m Edit text coeficiente Coeficiente Coeficiente T Static text Coeficiente Edit text adherencia Adherencia Adherencia Static text Adherencia Edit text Cx Cx Cx Static text Cx rea frontal Edit TE 7 af Af Static text Area frontal Edit text v V Velocidad Static text Velocidad Edit text rampa Rampa Rampa P P Static text Rampa Edit text rendimiento Rendimiento Rendim
75. uerzo_tractor_maximo_resultados Menu_principal axesl imread traccion008 3pg axes handles axesl axis off imshow axesl axes2 imread traccion007 3pg axes handles axes2 axis off imshow axes2 10 RAMPA MAXIMA Tabla 10 Resumen de objetos en Rampa maxima Objeto Tipo String Tag Variable asociada Edit text fuerza Fuerza Ft Static text Ft Edit text peso Peso P Static text P fr Edit text coeficiente Coeficiente Static text fr Atr s Push button Atr s atras Men Men Principal Push button Principal Menu_ppal Calcular Push button Calcular Calcular C digo inicial scrsz get 0 ScreenSize pos_act get gcf Position xr scrsz 3 pos_act 3 23 An lisis din mico de un veh culo autom vil Manual de Referencia xp round xr 2 yr scrsz 4 pos_act 4 yp round yr 2 set gcf Position xp yp pos_act 3 pos_act 4 Botones de acci n Atr s close Rampa_maxima Menu_traccion Men Principal close Rampa_maxima Menu_principal Calcular global fuerza global peso global coeficiente fuerza str2double get handles fuerza String peso str2double get handles peso String coeficiente str2double get handles coeficiente String close Rampa_maxima Rampa_maxima_resultados if isnan Peso errordlg El valor del peso debe ser num rico ERROR set handles p
76. vil Manual de Referencia end if Ms 0 errordlg El valor de la masa suspendida debe ser mayor que 0 ERROR set handles ms String 0 Ms 0 reluru end if isnan Msd errordlg El valor de la masa suspendida delantera debe ser num rico ERROR set handles msd String 0 Msd 0 return end if Msd lt 0 errordlg El valor de la masa suspendida delantera debe ser mayor que 0 ERROR set handles msd String 0 Msd 0 return end if isnan Mst errordlg El valor de la masa suspendida trasera debe ser num rico ERROR set handles mst String 0 Mst 0 return end if Mst lt 0 errordlg El valor de la masa suspendida trasera debe ser mayor que 0 ERROR set handles mst String 0 Mst 0 return end if isnan Mnsd errordlg El valor de la masa no suspendida delantera deb ser num rico ERROR set handles mnsd String 0 Mnsd 0 recur end if Mnsd lt 0 errordlg El valor de la masa no suspendida delantera deb ser mayor que 0 ERROR set handles mnsd String 0 Mnsd 0 febturn end 92 if isnan Mnst errordlg El valor de la masa no suspendida trasera debe ser num rico ERROR set handles mnst String 0 Mnst 0 return end if Mst lt 0 errordlg El valor de la masa suspendida trasera debe ser mayor que 0 ERROR set handles mst String 0 Mst 0 return end close Transf

Download Pdf Manuals

image

Related Search

Related Contents

Magnum P62F User Guide - Pdfstream.manualsonline.com    009-074-001_rE User Guide, Powerchip.indd  Digitus DN-96009  Manuel d`utilisation  Istruzioni per l`Uso - Certificazione Energetica  Samsung 선풍기  Operating instructions for the probe PH MASDVT850W6 BL3.2 X/Y  平成24年3月23 日 消 費 者 庁 消費者安全法の重大事故等に係る公表  guide d`accompagnement du tuteur de professeur stagiaire en eps  

Copyright © All rights reserved.
Failed to retrieve file