Professional Documents
Culture Documents
INGENIERIA EN ELECTRNICA E
INSTRUMENTACIN
INTEGRANTES:
ALEX AGUIRRE
KAREN HERRERA
SANTIAGO MISSE
JUAN ACATO
BRYAN PILA
JUAN ZAMBRANO
SEXTO A
LATACUNGA 2017
NDICE
OBJETIVOS ................................................................................................................................ 2
INTRODUCCIN: ................................................................................................................. 2
DESARROLLO: ..................................................................................................................... 6
CONCLUSIONES: ............................................................................................................... 20
RECOMENDACIONES:...................................................................................................... 21
FUNCIN DE TRANSFERENCIA MEDIANTE ADQUISICIN DE DATOS
PARA SISTEMAS DE PRIMER Y SEGUNDO ORDEN UTILIZANDO IDENT
MTALB
OBJETIVOS
Objetivo General
Objetivos especficos
INTRODUCCIN:
ABSTRACT:
1) Adquisicin de datos
Para utilizar la herramienta de Matlab lo primero que debemos hacer es obtener
los datos de un sistema ya sea de primer orden o de segundo orden en funcin del
tiempo.
Una vez obtenido los datos graficamos en Matlab para obtener una grfica de la
respuesta con la cual nos vamos a guiar para procesos posteriores.
Esto nos permite realizar cualquier tcnica de control para los modelos que se
requiera ya sea de primer orden o de segundo orden con los datos que se obtendrn
al analizarlos con respecto al tiempo e ir obteniendo nuestros parmetros.
DESARROLLO:
CODIGO DE PROGRAMA
BOTON GRAFICAR
syms s
t=0:0.1:5;
v=get(handles.selector,'Value')
switch v
case 1
cla
set(handles.ec1,'String','Primer Orden');
G2=get(handles.ft,'String')
G=sym(G2)
pretty(G)
g=ilaplace(G);
t=0:0.1:5;
g2=sym(g)
g2=inline(g2)
g1=g2(t)
axes(handles.axes2)
axis off
hold on
Z = ['$$f(s) = ', latex(G), '$$'];
text('Interpreter','latex',...
'String',Z,...
'Position',[0 .4],...
'FontSize',16)
Z1 = ['$$F(t) = ', latex(g), '$$'];
text('Interpreter','latex',...
'String',Z1,...
'Position',[0.5 .4],...
'FontSize',16)
hold off
c=[t',g1'];
r=[1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1]
assignin('base','o1',g1')
assignin('base','i1',r')
set(handles.uitable1,'data',c);
pretty(g)
axes(handles.axes1)
hold on
x=[0 1 2 3 4 5]
y1=[1 1 1 1 1 1]
plot(t,g1)
plot(x,y1)
legend('c(t)','r(t)')
ylabel('c(t)');
xlabel('t')
hold off
ident
case 2
cla
set(handles.ec1,'String','Sobreamortiguado');
G2=get(handles.ft,'String')
G=sym(G2)
pretty(G)
g=ilaplace(G);
t=0:0.1:5;
g2=sym(g)
g2=inline(g2)
g1=g2(t)
axes(handles.axes2)
axis off
hold on
Z = ['$$f(s) = ', latex(G), '$$'];
text('Interpreter','latex',...
'String',Z,...
'Position',[0 .4],...
'FontSize',12)
Z1 = ['$$F(t) = ', latex(g), '$$'];
text('Interpreter','latex',...
'String',Z1,...
'Position',[0.3 .4],...
'FontSize',12)
hold off
c=[t',g1'];
r=[1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1]
assignin('base','o1',g1')
assignin('base','i1',r')
set(handles.uitable1,'data',c);
pretty(g)
axes(handles.axes1)
hold on
x=[0 1 2 3 4 5]
y1=[1 1 1 1 1 1]
plot(t,g1)
plot(x,y1)
legend('c(t)','r(t)')
ylabel('c(t)');
xlabel('t')
hold off
ident
case 3
cla
set(handles.ec1,'String','Criticamenteamortiguado');
G2=get(handles.ft,'String')
G=sym(G2)
pretty(G)
g=ilaplace(G);
t=0:0.1:5;
g2=sym(g)
g2=inline(g2)
g1=g2(t)
axes(handles.axes2)
axis off
hold on
Z = ['$$f(s) = ', latex(G), '$$'];
text('Interpreter','latex',...
'String',Z,...
'Position',[0 .4],...
'FontSize',16)
Z1 = ['$$F(t) = ', latex(g), '$$'];
text('Interpreter','latex',...
'String',Z1,...
'Position',[0.5 .4],...
'FontSize',16)
hold off
c=[t',g1'];
r=[1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1]
assignin('base','o1',g1')
assignin('base','i1',r')
set(handles.uitable1,'data',c);
pretty(g)
axes(handles.axes1)
hold on
x=[0 1 2 3 4 5]
y1=[1 1 1 1 1 1]
plot(t,g1)
plot(x,y1)
legend('c(t)','r(t)')
ylabel('c(t)');
xlabel('t')
hold off
ident
case 4
cla
set(handles.ec1,'String','Subamortiguado');
G2=get(handles.ft,'String')
G=sym(G2)
pretty(G)
g=ilaplace(G);
t=0:0.1:5;
g2=sym(g)
g2=inline(g2)
g1=g2(t)
axes(handles.axes2)
axis off
hold on
Z = ['$$f(s) = ', latex(G), '$$'];
text('Interpreter','latex',...
'String',Z,...
'Position',[0 .4],...
'FontSize',11)
Z1 = ['$$F(t) = ', latex(g), '$$'];
text('Interpreter','latex',...
'String',Z1,...
'Position',[0.3 .4],...
'FontSize',11)
hold off
c=[t',g1'];
r=[1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1]
assignin('base','o1',g1')
assignin('base','i1',r')
set(handles.uitable1,'data',c);
pretty(g)
axes(handles.axes1)
hold on
x=[0 1 2 3 4 5]
y1=[1 1 1 1 1 1]
plot(t,g1)
plot(x,y1)
legend('c(t)','r(t)')
ylabel('c(t)');
xlabel('t')
hold off
ident
case 5
G2=get(handles.ft,'String')
G=sym(G2)
pretty(G)
g=ilaplace(G);
t=0:0.1:5;
g2=sym(g)
g2=inline(g2)
g1=g2(t)
axes(handles.axes2)
axis off
hold on
Z = ['$$f(s) = ', latex(G), '$$'];
text('Interpreter','latex',...
'String',Z,...
'Position',[0 .4],...
'FontSize',16)
Z1 = ['$$F(t) = ', latex(g), '$$'];
text('Interpreter','latex',...
'String',Z1,...
'Position',[0.5 .4],...
'FontSize',16)
hold off
c=[t',g1'];
r=[1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1]
assignin('base','o1',g1')
assignin('base','i1',r')
set(handles.uitable1,'data',c);
pretty(g)
axes(handles.axes1)
hold on
x=[0 1 2 3 4 5]
y1=[1 1 1 1 1 1]
plot(t,g1)
plot(x,y1)
legend('c(t)','r(t)')
ylabel('c(t)');
xlabel('t')
hold off
ident
end
BOTON EJEMPLO
v=get(handles.selector,'Value')
switch v
case 1
set(handles.ft,'String','2/(s*(s+2))');
case 2
set(handles.ft,'String','9/(s*(s^2+9*s+9))');
case 3
set(handles.ft,'String','9/(s*(s^2+6*s+9))');
case 4
set(handles.ft,'String','9/(s*(s^2+2*s+9))');
case 5
set(handles.ft,'String','9/(s*(s^2+9))');
end
BOTON BORRAR
cla(handles.axes1)
cla(handles.axes2)
GUIDE
PROCEDEMIENTO
ECUACIONES
GRAFICA
TABLA DE DATOS
SOBREAMORTIGUADO
CRITICAMENTEAMORTIGUADO
SUBAMORTIGUADO
NO AMORTIGUADO
ANLISIS DE RESULTADOS
Se puede observar que conforme la grfica avanza en el tiempo, los valores de la tabla
concuerdan con la respuesta.
Sistema sobre amortiguado
Sistema No amortiguado
Ahora si lo comparamos con un sistema no amortiguado, se puede apreciar como su
tiempo ha disminuido, pero no llega a un tiempo de establecimiento.
Sistema Subamortiguado
Con este grafico se observa un sistema sub amortiguado representa el lmite de la
estabilidad, oscila un tiempo, pero se estabiliza. As mismo como su tiempo de
establecimiento es menor a los dems sistemas.
CONCLUSIONES:
LINKOGRAFA:
https://de.mathworks.com/products/matlab.html
http://www.lawebdelprogramador.com/foros/Matlab/1607950-Adquisicion-de-
datos-de-arduino-a-matlab.html
https://earchivo.uc3m.es/bitstream/handle/10016/17166/PFC_DelaHorraKollmer
Mario_0513.pdf