Baixe o app para aproveitar ainda mais
Esta é uma pré-visualização de arquivo. Entre para ver o arquivo original
LAB5_Q1_230340_246796.m % Universidade Federal do Rio Grande do Sul % Escola de Engenharia % Departamento de Engenharia Elétrica % ENG04006 - Sistemas e Sinais % % Aluno: Alisson Claudino de Jesus (00246796) % Aluno: Bernardo Brandão Pandolfo (00230340) % % Turma: C % % Laboratório 5 - Questão 1 % % Considere um sistema representado pela seguinte equação diferencial: % y'''+41*y''+360*y'+900*y=600*x'+1200*x % onde y(0)=2, y'(0)=1 e y''(0)=-0.05. Baseado nesse sistema, pede-se: % % (a) Calcular a solução dessa equação diferencial, ou seja, calcular a % resposta natural, a resposta forçada a um degrau unitário e a resposta % completa, como visto na área 1 da disciplina. % (b) Determinar a transformada de Laplace do sistema (realizar os cálculos % à mão ou usando a função 'laplace'). % (c) Através da transformada de Laplace inversa (função 'residue' para % frações parciais), obter as respostas natural, forçada e completa do % sistema. Simular e comparar com as respostas obtidas no item (a). % (d) Usando a transformada de Laplace, simular as resposta natural, % forçada e completa usando os comandos 'step', 'impulse' ou 'lsim'. % Comparar com as respostas obtidas anteriormente. % (e) Implementar um diagrama de blocos que representa a equação % diferencial dada no simulink (usando blocos somadores, integradores e % ganhos) e simule as respostas natural, forçada e completa. Obtenha as % mesmas respostas usando blocos de funções de transferência. % % Conclusão: analisando os gráficos correspondentes a cada etapa deste % trabalho, temos resultados consistentes com aquilo que se é esperado. %% clear all; %limpa todas as variáveis close all; %fecha todas as janelas t=0:0.01:10; %cria o vetor tempo %(a): yn1=(0.118.*exp(-30.*t)-13.956.*exp(-6.*t)+15.838.*exp(-5.*t)).*(t>=0); %resposta natural calculada yf1=(0.933.*exp(-30.*t)-16.667.*exp(-6.*t)+14.4.*exp(-5.*t)+4/3).*(t>=0); %resposta forçada calculada yc1=yn1+yf1; %resposta completa calculada figure; %abre a janela gráfica 1 subplot(5,1,1); %formata a janela gráfica com 3 linhas e 1 colunas plot(t,yn1,'r','linewidth',2); %plota yn em função de t hold on; %mantém o gráfico anterior afim de plotar os gráficos seguintes plot(t,yf1,'g','linewidth',2); %plota yf em função de t plot(t,yc1,'b','linewidth',2); %plota yc em função de t hold off; axis([0 2 -0.2 3.5]); %determina os limites do gráfico ylabel('y(t)'); %nomeia o eixo y title('Solução calculada'); %nomeia a janela gráfica legend('Resposta natural','Resposta forçada','Resposta completa'); %nomeia os gráficos grid on; %(b): % Y=((2*s^2+83*s+760.95)+(600*s+1200)*X)/(s^3+41*s^2+360*s+900) % cálculo feito à mão %(c): % Resposta natural (x(t)=0, cond. iniciais não-nulas): % Y=(2*s^2+83*s+760.95)/(s^3+41*s^2+360*s+900) yn_lap_num=[2 83 760.95]; %coeficientes do numerador de Yn(s) yn_lap_den=[1 41 360 900]; %coeficientes do denominador de Yn(s) [an,pn]=residue(yn_lap_num,yn_lap_den); %obtém os coeficientes 'an' e os polos 'pn' das frações parciais % Resposta forçada (entrada x(t) não-nula, x(0)=0 e cond. iniciais nulas): % Y=(600*s+1200)/s*(s^3+41*s^2+360*s+900) yf_lap_num=[600 1200]; %coeficientes do numerador de Yf(s) yf_lap_den=[1 41 360 900 0]; %coeficientes do denominador de Yf(s) [af,pf]=residue(yf_lap_num,yf_lap_den); %obtém os coeficientes 'af' e os polos 'pf' das frações parciais % Utilizando os coeficientes encontrados, montamos as respostas natural, % forçada e completa: yn2=(an(1).*exp(pn(1).*t)+an(2).*exp(pn(2).*t)+an(3).*exp(pn(3).*t)).*(t>=0); yf2=(af(1).*exp(pf(1).*t)+af(2).*exp(pf(2).*t)+af(3).*exp(pf(3).*t)+af(4)).*(t>=0); yc2=yn2+yf2; subplot(5,1,2); %formata a janela gráfica com 3 linhas e 1 colunas plot(t,yn2,'r','linewidth',2); %plota yn em função de t hold on; %mantém o gráfico anterior afim de plotar os gráficos seguintes plot(t,yf2,'g','linewidth',2); %plota yf em função de t plot(t,yc2,'b','linewidth',2); %plota yc em função de t hold off; axis([0 2 -0.2 3.5]); %determina os limites do gráfico ylabel('y(t)'); %nomeia o eixo y title('Laplace inversa'); %nomeia a janela gráfica legend('Resposta natural','Resposta forçada','Resposta completa'); %nomeia os gráficos grid on; %(d): % Resposta ao impulso: num_imp=[2 83 760.95]; %coeficientes do numerador den_imp=[1 41 360 900]; %coeficientes do denominador tf1=tf(num_imp,den_imp); %cria uma função de transferência utilizando os coeficientes listados yn3=impulse(tf1,t); %resposta ao impulso da função de transferência criada % Resposta ao degrau: num_deg=[600 1200]; %coeficientes do numerador den_deg=[1 41 360 900]; %coeficientes do denomindador tf2=tf(num_deg,den_deg); %cria uma função de transferência utilizando os coeficientes listados yf3=step(tf2,t); %resposta ao degrau da função de transferência criada yc3=yn3+yf3; %resposta completa utilizando-se os comandos step e impulse subplot(5,1,3); %formata a janela gráfica com 3 linhas e 1 colunas plot(t,yn3,'r','linewidth',2); %plota yn em função de t hold on; %mantém o gráfico anterior afim de plotar os gráficos seguintes plot(t,yf3,'g','linewidth',2); %plota yf em função de t plot(t,yc3,'b','linewidth',2); %plota yc em função de t hold off; axis([0 2 -0.2 3.5]); %determina os limites do gráfico ylabel('y(t)'); %nomeia o eixo y title('Comandos step e impulse'); %nomeia a janela gráfica legend('Resposta natural','Resposta forçada','Resposta completa'); %nomeia os gráficos grid on; %(e): % Diagramas de blocos: sim('simulink_q1'); subplot(5,1,4); plot(tout,yns(:,2),'r','linewidth',2); %tout é o vetor tempo do arquivo simulink hold on; plot(tout,yfs(:,2),'g','linewidth',2); plot(tout,ycs(:,2),'b','linewidth',2); hold off; axis([0 2 -0.2 3.5]); %determina os limites do gráfico ylabel('y(t)'); %nomeia o eixo y title('Diagrama de blocos'); %nomeia a janela gráfica legend('Resposta natural','Resposta forçada','Resposta completa'); %nomeia os gráficos grid on; % Blocos de função de transferência: subplot(5,1,5); plot(tout,yns2(:,2),'r','linewidth',2); hold on; plot(tout,yfs2(:,2),'g','linewidth',2); plot(tout,ycs2(:,2),'b','linewidth',2); hold off; axis([0 2 -0.2 3.5]); %determina os limites do gráfico ylabel('y(t)'); %nomeia o eixo y title('Blocos de função de transferência'); %nomeia a janela gráfica legend('Resposta natural','Resposta forçada','Resposta completa'); %nomeia os gráficos grid on; LAB5_Q2_246796_230340.m % Universidade Federal do Rio Grande do Sul % Escola de Engenharia % Departamento de Engenharia Elétrica % ENG04006 - Sistemas e Sinais % % Aluno: Alisson Claudino de Jesus (00246796) % Aluno: Bernardo Brandão Pandolfo (00230340) % Turma: C % % Laboratório 5 - Questão 2 % % Considere um sistema representado pela seguinte equação de diferenças % (considerar o período de amostragem Ts = 0.1): % y[n] - 1.63y[n - 1] + 0.663y[n - 2] = x[n] - 0.8x[n - 2] % onde y[-1] = 4 e demais condições iniciais são nulas. Baseado neste % sistema, pede-se: % (a) Simular as respostas natural, forçada para um degrau unitário e % completa através da simulação da equação de recorrência. % % (b) Calcular a solução da equação de diferenças, ou seja, calcular a % resposta natural, a resposta forçada para um degrau unitário e a resposta % completa, como visto na área 1 da disciplina. % Comparar as respostas obtidas com as do item anterior. % % (c) Determinar a transformada Z do sistema (realizar os cálculos à mão % ou através da função ztrans). % % (d) Obter a transformada inversa do sistema para uma entrada x[n] = u[n] % e condições iniciais nulas através do método das divisões sucessivas % (também chamado "Série de Potências") e comparar com o resultado obtido % pela função step. Até qual coeficiente deve-se dividir o sistema para % termos uma boa aproximação da resposta? % % (e) Obter a transformada inversa do sistema para entrada nula e condições % iniciais diferentes de zero através do método das divisões sucessivas e % comparar com o resultado obtido pela função impulse. Até qual coeficiente % deve-se dividir o sistema para termos uma boa aproximação da resposta? % % (f) Obter a transformada inversa do sistema para uma entrada x[n] = u[n] % através do método das frações parciais (comando residuez para frações % parciais). Calcule a resposta natural e a resposta forçada do sistema. % Compare com o resultado do item anterior. % % (g) Implementar um diagrama de blocos que representa a equação de % diferenças dada no simulink (usando blocos somadores, de deslocamento e % ganhos) e simule as respostas natural, forçada e completa. Obtenha as % mesmas respostas usando blocos de funções de transferência. % % Conclusões: Através dos diferentes métodos utilizados para a obtenção das % respostas para o sistema, pode-se observar que através de todos % chega-se ao mesmo resultado. Embora alguns métodos sejam muito rápidos e % práticos do que outros. clear all; %limpa todas as variáveis close all; %fecha todas as janelas %a) Ts= 0.1; %definição do tempo de amostragem n= -2:40; %definição do vetor discreto % Resposta natural % y[n]= 1.63*y[n-1] - 0.663*y[n-2] % condição inicial y[-1]=4 yn= 4.*(n==-1); for i=0:length(n) %laço para a equação de recorrência yn(n==i)= (163/100)*yn(n==i-1) - (663/1000)*yn(n==i-2); end % Resposta forçada % y[n]= 1.63*y[n-1] - 0.663*y[n-2] + u[n] - (8/10)u[n-2] % Condições iniciais nulas % x[n]= u[n] yf=0.*(n>=-1); for i=0:length(n) %laço para a equação de recorrência yf(n==i)= (163/100)*yf(n==i-1) - (663/1000)*yf(n==i-2) + 1.*(i>=0) - (8/10).*(i>=2); end yc=yn+yf; %a resposta completa é a soma da natural e da forçada figure(1); %abre janela de figura 1 subplot(3,1,1); %insere mais de um gráfico na mesma janela stem(n,yn); %plota o gráfico discreto title('Respostas calculadas através da equação de recorrência'); %insere título no gráfico legend('Resposta Natural'); %insere legenda no gráfico ylabel('Resposta'); %nomeia o eixo das ordenadas xlabel('n'); %nomeia o eixo das abscissas axis ([0 40 0 10]); %limita os eixos do gráfico a ser plotado grid; %insere grid subplot(3,1,2); %insere mais de um gráfico na mesma janela stem(n,yf,'r'); %plota o gráfico discreto legend('Resposta Forçada'); %insere legenda no gráfico ylabel('Resposta'); %nomeia o eixo das ordenadas xlabel('n'); %nomeia o eixo das abscissas axis ([0 40 0 8]); %limita os eixos do gráfico a ser plotado grid; %insere grid no gráfico subplot(3,1,3); %insere mais de um gráfico na mesma janela stem(n,yc,'g'); %plota o gráfico discreto legend('Resposta Completa'); %insere legenda no gráfico ylabel('Resposta'); %nomeia o eixo das ordenadas xlabel('n'); %nomeia o eixo das abscissas axis ([0 40 0 15]); %limita os eixos do gráfico a ser plotado grid; %insere grid no gráfico %b) % Resposta natural calculada à mão ynm= ((289/7)*(17/20).^(n)+(-6084/175)*(39/50).^(n)).*(n>=0); % Resposta forçada calculada à mão yfm= ((155/21)*(17/20).^(n)+(-958/77)*(39/50).^(n)+ 200/33).*(n>=0); % Resposta completa ycm= ynm + yfm; figure(2); %abre janela de figura 2 subplot(3,1,1); %insere mais de um gráfico na mesma janela stem(n,ynm); %plota o gráfico discreto title('Respostas calculadas como visto na área 1'); %insere título no gráfico legend('Resposta Natural'); %insere legenda no gráfico ylabel('Resposta'); %nomeia o eixo das ordenadas xlabel('n'); %nomeia o eixo das abscissas axis ([0 40 0 10]); %limita os eixos do gráfico a ser plotado grid; %insere grid subplot(3,1,2); %insere mais de um gráfico na mesma janela stem(n,yfm,'r'); %plota o gráfico discreto legend('Resposta Forçada'); %insere legenda no gráfico ylabel('Resposta'); %nomeia o eixo das ordenadas xlabel('n'); %nomeia o eixo das abscissas axis ([0 40 0 8]); %limita os eixos do gráfico a ser plotado grid; %insere grid no gráfico subplot(3,1,3); %insere mais de um gráfico na mesma janela stem(n,ycm,'g'); %plota o gráfico discreto legend('Resposta Completa'); %insere legenda no gráfico ylabel('Resposta'); %nomeia o eixo das ordenadas xlabel('n'); %nomeia o eixo das abscissas axis ([0 40 0 15]); %limita os eixos do gráfico a ser plotado grid; %insere grid no gráfico %c) % Cálculos à mão %d) n=0:40; % Coeficientes do numerador da transformada da resposta forçada numf=[1 0 -8/10 0]; % Coeficientes do denominador da transformada da resposta forçada denf=[1 -263/100 2293/1000 -663/1000]; %Série de potências ndiv=length(n); %número de divisões div=[numf zeros(1,ndiv-1)]; [yforp]=deconv(div,denf); figure(3); %abre janela de figura 3 subplot(2,1,1); %insere mais de um gráfico na mesma janela stem(n,yforp); %plota o gráfico discreto title('Resposta obtida através da série de potências'); %insere título no gráfico legend('Resposta Forçada'); %insere legenda no gráfico ylabel('Resposta'); %nomeia o eixo das ordenadas xlabel('n'); %nomeia o eixo das abscissas axis ([0 40 0 10]); %limita os eixos do gráfico a ser plotado grid; %insere grid no gráfico % Função step % Coeficientes do numerador da transformada da resposta forçada numf=[1 0 -8/10]; % Coeficientes do denominador da transformada da resposta forçada denf=[1 -163/100 663/1000]; Gfor= tf(numf,denf,1,'variable','z^-1'); %tf cria uma função de transferência cuja variável é z^-1 [yfors]= step(Gfor,n); %step calcula a resposta do sistema ao degrau subplot(2,1,2); %insere mais de um gráfico na mesma janela stem(n,yfors,'r') %plota o gráfico discreto title('Resposta obtida pela função step'); %insere título no gráfico legend('Resposta Forçada'); %insere legenda no gráfico ylabel('Resposta'); %nomeia o eixo das ordenadas xlabel('n'); %nomeia o eixo das abscissas axis ([0 40 0 10]); %limita os eixos do gráfico a ser plotado grid; %insere grid no gráfico %e) % Coeficientes do numerador da transformada da resposta natural numn=[163/25 -663/250 0]; % Coeficientes do denominador da transformada da resposta natural denn=[1 -163/100 663/1000]; % Série de potências ndiv=length(n); %número de divisões div=[numn zeros(1,ndiv-1)]; [ynatp]=deconv(div,denn); figure(4); %abre janela de figura 4 subplot(2,1,1); %insere mais de um gráfico na mesma janela stem(n,ynatp); %plota o gráfico discreto title('Resposta obtida através da série de potências'); %insere título no gráfico legend('Resposta Natural'); %insere legenda no gráfico ylabel('Resposta'); %nomeia o eixo das ordenadas xlabel('n'); %nomeia o eixo das abscissas axis ([0 40 0 10]); %limita os eixos do gráfico a ser plotado grid; %insere grid no gráfico %Função impulse % Coeficientes do numerador da transformada da resposta natural numn=[163/25 -663/250]; % Coeficientes do denominador da transformada da resposta natural denn=[1 -163/100 663/1000]; Gnat= tf(numn,denn,1,'variable','z^-1'); %tf cria uma função de transferência cuja variável é z^-1 [ynati]= impulse(Gnat,n); %impulse calcula a resposta do sistema a um impulso unitário subplot(2,1,2); %insere mais de um gráfico na mesma janela stem(n,ynati); %plota o gráfico discreto title('Resposta obtida pela função impulse'); %insere título no gráfico legend('Resposta Natural'); %insere legenda no gráfico ylabel('Resposta'); %nomeia o eixo das ordenadas xlabel('n'); %nomeia o eixo das abscissas axis ([0 40 0 10]); %limita os eixos do gráfico a ser plotado grid; %insere grid no gráfico %f) % Resposta natural syms z %cria a variável simbólica z [rn,pn,kn]=residuez(numn,denn); %retorna os coeficientes da frações parciais %rn são os coeficientes do numerador %pn são as raízes do denominador %kn é uma constante %rn/(x-pn) + kn %ynfp é a resposta natural obtida por frações parciais ynfp=0; for i=1:length(rn) %laço para obtenção da transformada inversa ynfp=ynfp + iztrans(rn(i)/(1-pn(i).*(z^-1))); %iztrans retorna a transformada z inversa end % Resposta forçada % Coeficientes do numerador da transformada da resposta forçada numf=[1 0 -8/10]; % Coeficientes do denominador da transformada da resposta forçada denf=[1 -263/100 2293/1000 -663/1000]; [rf,pf,kf]=residuez(numf,denf); %retorna os coeficientes da frações parciais %yffp é a resposta forçada obtida por frações parciais yffp=0; for i=1:length(rf) %laço para obtenção da transformada inversa yffp=yffp + iztrans(rf(i)/(1-pf(i).*(z^-1))); %iztrans retorna a transformada z inversa end %eval executa uma expressão do matlab como uma string figure(5); %abre janela de figura 5 subplot(2,1,1); %insere mais de um gráfico na mesma janela stem(n,eval(ynfp)); %plota o gráfico discreto title('Resposta obtida através de frações parciais'); %insere título no gráfico legend('Resposta Natural'); %insere legenda no gráfico ylabel('Resposta'); %nomeia o eixo das ordenadas xlabel('n'); %nomeia o eixo das abscissas axis ([0 40 0 10]); %limita os eixos do gráfico a ser plotado grid; subplot(2,1,2); %insere mais de um gráfico na mesma janela stem(n,eval(yffp),'r'); %plota o gráfico discreto legend('Resposta Forçada'); %insere legenda no gráfico ylabel('Resposta'); %nomeia o eixo das ordenadas xlabel('n'); %nomeia o eixo das abscissas axis ([0 40 0 10]); %limita os eixos do gráfico a ser plotado grid; %g) %Diagramas de blocos figure(6); %abre a janela de figura 6 x=[0 1 1]; %define o valor de entrada do vetor x utilizado no simulink y01=[4 0 4]; %define o valor da condiçâo inicial do vetor y quando n=-1 y02=[0 0 0]; %define o valor da condiçâo inicial do vetor y quando n=-2 sim('simulink_q2'); %roda o diagrama de blocos criado no simulink subplot(3,1,1); %insere mais de um gráfico na mesma janela stem(y1(:,1),y1(:,2)); %plota contínuo as colunas 1 e 2 do vetor y title('Resposta obtida através dos diagramas de blocos'); %insere título no gráfico legend('Resposta Natural'); %insere legenda no gráfico ylabel('Resposta'); %nomeia o eixo das ordenadas xlabel('n'); %nomeia o eixo das abscissas axis ([0 40 0 10]); %limita os eixos do gráfico a ser plotado grid; %insere grid subplot(3,1,2); %insere mais de um gráfico na mesma janela stem(y(:,1),y(:,3),'r'); %plota contínuo as colunas 1 e 3 do vetor y legend('Resposta Forçada'); %insere legenda no gráfico ylabel('Resposta'); %nomeia o eixo das ordenadas xlabel('n'); %nomeia o eixo das abscissas axis ([0 40 0 10]); %limita os eixos do gráfico a ser plotado grid; %insere grid subplot(3,1,3); %insere mais de um gráfico na mesma janela stem(y1(:,1),y1(:,4),'g'); %plota contínuo as colunas 1 e 4 do vetor y legend('Resposta Completa'); %insere legenda no gráfico ylabel('Resposta'); %nomeia o eixo das ordenadas xlabel('n'); %nomeia o eixo das abscissas axis ([0 40 0 15]); %limita os eixos do gráfico a ser plotado grid; %insere grid %Blocos de função de transferência figure(7); %abre a janela de figura 7 subplot(3,1,1); %insere mais de um gráfico na mesma janela stem(y2n(:,1),y2n(:,2)); %plota o gráfico das colunas 1 e 2 do vetor y2n title('Respostas obtidas através dos blocos de função de transferência'); %insere título no gráfico legend('Resposta Natural'); %insere legenda no gráfico ylabel('Resposta'); %nomeia o eixo das ordenadas xlabel('t'); %nomeia o eixo das abscissas axis ([0 40 0 10]); %limita os eixos do gráfico a ser plotado grid; %insere grid subplot(3,1,2); %insere mais de um gráfico na mesma janela stem(y2f(:,1),y2f(:,2),'r'); %plota o gráfico das colunas 1 e 2 do vetor y2f legend('Resposta Forçada'); %insere legenda no gráfico ylabel('Resposta'); %nomeia o eixo das ordenadas xlabel('n'); %nomeia o eixo das abscissas axis ([0 40 0 10]); %limita os eixos do gráfico a ser plotado grid; %insere grid subplot(3,1,3); %insere mais de um gráfico na mesma janela stem(y2c(:,1),y2c(:,2),'g') %plota o gráfico das colunas 1 e 2 do vetor y2c legend('Resposta Completa'); %insere legenda no gráfico ylabel('Resposta'); %nomeia o eixo das ordenadas xlabel('n'); %nomeia o eixo das abscissas axis ([0 40 0 15]); %limita os eixos do gráfico a ser plotado grid; %insere grid simulink_q1.mdl Model { Name "simulacoes1" Version 8.7 MdlSubVersion 1 SavedCharacterEncoding "windows-1252" GraphicalInterface { NumRootInports 0 NumRootOutports 0 ParameterArgumentNames "" ComputedModelVersion "1.8" NumModelReferences 0 NumTestPointedSignals 0 NumProvidedFunctions 0 NumRequiredFunctions 0 } ScopeRefreshTime 0.035000 OverrideScopeRefreshTime on DisableAllScopes off DataTypeOverride "UseLocalSettings" DataTypeOverrideAppliesTo "AllNumericTypes" MinMaxOverflowLogging "UseLocalSettings" MinMaxOverflowArchiveMode "Overwrite" FPTRunName "Run 1" MaxMDLFileLineLength 120 LastSavedArchitecture "win64" Object { $PropName "BdWindowsInfo" $ObjectID 1 $ClassName "Simulink.BDWindowsInfo" Object { $PropName "WindowsInfo" $ObjectID 2 $ClassName "Simulink.WindowInfo" IsActive [1] Location [-8.0, 0.0, 1936.0, 1056.0] Object { $PropName "ModelBrowserInfo" $ObjectID 3 $ClassName "Simulink.ModelBrowserInfo" Visible [1] DockPosition "Left" Width [50] Height [50] Filter [9] } Object { $PropName "ExplorerBarInfo" $ObjectID 4 $ClassName "Simulink.ExplorerBarInfo" Visible [1] } Object { $PropName "EditorsInfo" $ObjectID 5 $ClassName "Simulink.EditorInfo" IsActive [1] ViewObjType "SimulinkTopLevel" LoadSaveID "0" Extents [1693.0, 882.0] ZoomFactor [1.25] Offset [8.7586771092894651, 98.096267503957165] } } } Created "Sat Jun 06 07:45:07 2015" Creator "Bruno" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%<Auto>" LastModifiedBy "Aluno" ModifiedDateFormat "%<Auto>" LastModifiedDate "Fri Nov 18 14:39:25 2016" RTWModifiedTimeStamp 355491734 ModelVersionFormat "1.%<AutoIncrement:8>" ConfigurationManager "none" SampleTimeColors off SampleTimeAnnotations off LibraryLinkDisplay "disabled" WideLines off ShowLineDimensions off ShowPortDataTypes off ShowEditTimeErrors on ShowEditTimeWarnings off ShowEditTimeAdvisorChecks off ShowPortUnits off ShowDesignRanges off ShowLoopsOnError on IgnoreBidirectionalLines off ShowStorageClass off ShowTestPointIcons on ShowSignalResolutionIcons on ShowViewerIcons on SortedOrder off VariantCondition off ExecutionContextIcon off ShowLinearizationAnnotations on ShowVisualizeInsertedRTB on ShowMarkup on BlockNameDataTip off BlockParametersDataTip off BlockDescriptionStringDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off FunctionConnectors off BrowserLookUnderMasks off SimulationMode "normal" PauseTimes "5" NumberOfSteps 1 SnapshotBufferSize 10 SnapshotInterval 10 NumberOfLastSnapshots 0 LinearizationMsg "none" Profile off ParamWorkspaceSource "MATLABWorkspace" AccelSystemTargetFile "accel.tlc" AccelTemplateMakefile "accel_default_tmf" AccelMakeCommand "make_rtw" TryForcingSFcnDF off Object { $PropName "DataLoggingOverride" $ObjectID 6 $ClassName "Simulink.SimulationData.ModelLoggingInfo" model_ "simulacoes" overrideMode_ [0U] Array { Type "Cell" Dimension 1 Cell "simulacoes" PropName "logAsSpecifiedByModels_" } Array { Type "Cell" Dimension 1 Cell [] PropName "logAsSpecifiedByModelsSSIDs_" } } ExtModeBatchMode off ExtModeEnableFloating on ExtModeTrigType "manual" ExtModeTrigMode "normal" ExtModeTrigPort "1" ExtModeTrigElement "any" ExtModeTrigDuration 1000 ExtModeTrigDurationFloating "auto" ExtModeTrigHoldOff 0 ExtModeTrigDelay 0 ExtModeTrigDirection "rising" ExtModeTrigLevel 0 ExtModeArchiveMode "off" ExtModeAutoIncOneShot off ExtModeIncDirWhenArm off ExtModeAddSuffixToVar off ExtModeWriteAllDataToWs off ExtModeArmWhenConnect on ExtModeSkipDownloadWhenConnect off ExtModeLogAll on ExtModeAutoUpdateStatusClock on ShowModelReferenceBlockVersion off ShowModelReferenceBlockIO off Array { Type "Handle" Dimension 1 Simulink.ConfigSet { $ObjectID 7 Version "1.16.2" Array { Type "Handle" Dimension 9 Simulink.SolverCC { $ObjectID 8 Version "1.16.2" StartTime "0.0" StopTime "10.0" AbsTol "auto" FixedStep "auto" InitialStep "auto" MaxNumMinSteps "-1" MaxOrder 5 ZcThreshold "auto" ConsecutiveZCsStepRelTol "10*128*eps" MaxConsecutiveZCs "1000" ExtrapolationOrder 4 NumberNewtonIterations 1 MaxStep "auto" MinStep "auto" MaxConsecutiveMinStep "1" RelTol "1e-3" SolverMode "Auto" EnableConcurrentExecution off ConcurrentTasks off Solver "ode45" SolverName "ode45" SolverJacobianMethodControl "auto" ShapePreserveControl "DisableAll" ZeroCrossControl "UseLocalSettings" ZeroCrossAlgorithm "Nonadaptive" AlgebraicLoopSolver "TrustRegion" SolverInfoToggleStatus off IsAutoAppliedInSIP off SolverResetMethod "Fast" PositivePriorityOrder off AutoInsertRateTranBlk off SampleTimeConstraint "Unconstrained" InsertRTBMode "Whenever possible" } Simulink.DataIOCC { $ObjectID 9 Version "1.16.2" Decimation "1" ExternalInput "[t, u]" FinalStateName "xFinal" InitialState "xInitial" LimitDataPoints on MaxDataPoints "1000" LoadExternalInput off LoadInitialState off SaveFinalState off SaveCompleteFinalSimState off SaveFormat "Array" SignalLoggingSaveFormat "Dataset" SaveOutput on SaveState off SignalLogging on DSMLogging on InspectSignalLogs off VisualizeSimOutput on StreamToWorkspace off StreamVariableName "streamout" SaveTime on ReturnWorkspaceOutputs off StateSaveName "xout" TimeSaveName "tout" OutputSaveName "yout" SignalLoggingName "logsout" DSMLoggingName "dsmout" OutputOption "RefineOutputTimes" OutputTimes "[]" ReturnWorkspaceOutputsName "out" Refine "1" LoggingToFile off LoggingFileName "out.mat" LoggingIntervals "[-inf, inf]" } Simulink.OptimizationCC { $ObjectID 10 Version "1.16.2" Array { Type "Cell" Dimension 8 Cell "BooleansAsBitfields" Cell "PassReuseOutputArgsAs" Cell "PassReuseOutputArgsThreshold" Cell "ZeroExternalMemoryAtStartup" Cell "ZeroInternalMemoryAtStartup" Cell "OptimizeModelRefInitCode" Cell "NoFixptDivByZeroProtection" Cell "UseSpecifiedMinMax" PropName "DisabledProps" } BlockReduction on BooleanDataType on ConditionallyExecuteInputs on DefaultParameterBehavior "Tunable" UseDivisionForNetSlopeComputation "off" UseFloatMulNetSlope off DefaultUnderspecifiedDataType "double" UseSpecifiedMinMax off InlineInvariantSignals off OptimizeBlockIOStorage on BufferReuse on EnhancedBackFolding off CachingGlobalReferences off GlobalBufferReuse on StrengthReduction off ExpressionFolding on BooleansAsBitfields off BitfieldContainerType "uint_T" EnableMemcpy on MemcpyThreshold 64 PassReuseOutputArgsAs "Structure reference" PassReuseOutputArgsThreshold 12 ExpressionDepthLimit 2147483647 LocalBlockOutputs on RollThreshold 5 StateBitsets off DataBitsets off ActiveStateOutputEnumStorageType "Native Integer" ZeroExternalMemoryAtStartup on ZeroInternalMemoryAtStartup on InitFltsAndDblsToZero off NoFixptDivByZeroProtection off EfficientFloat2IntCast off EfficientMapNaN2IntZero on OptimizeModelRefInitCode off LifeSpan "inf" MaxStackSize "Inherit from target" BufferReusableBoundary on SimCompilerOptimization "off" AccelVerboseBuild off } Simulink.DebuggingCC { $ObjectID 11 Version "1.16.2" RTPrefix "error" ConsistencyChecking "none" ArrayBoundsChecking "none" SignalInfNanChecking "none" SignalRangeChecking "none" ReadBeforeWriteMsg "UseLocalSettings" WriteAfterWriteMsg "UseLocalSettings" WriteAfterReadMsg "UseLocalSettings" AlgebraicLoopMsg "warning" ArtificialAlgebraicLoopMsg "warning" SaveWithDisabledLinksMsg "warning" SaveWithParameterizedLinksMsg "warning" CheckSSInitialOutputMsg on UnderspecifiedInitializationDetection "Classic" MergeDetectMultiDrivingBlocksExec "none" CheckExecutionContextPreStartOutputMsg off CheckExecutionContextRuntimeOutputMsg off SignalResolutionControl "UseLocalSettings" BlockPriorityViolationMsg "warning" MinStepSizeMsg "warning" TimeAdjustmentMsg "none" MaxConsecutiveZCsMsg "error" MaskedZcDiagnostic "warning" IgnoredZcDiagnostic "warning" SolverPrmCheckMsg "warning" InheritedTsInSrcMsg "warning" MultiTaskDSMMsg "error" MultiTaskCondExecSysMsg "error" MultiTaskRateTransMsg "error" SingleTaskRateTransMsg "none" TasksWithSamePriorityMsg "warning" SigSpecEnsureSampleTimeMsg "warning" CheckMatrixSingularityMsg "none" IntegerOverflowMsg "warning" Int32ToFloatConvMsg "warning" ParameterDowncastMsg "error" ParameterOverflowMsg "error" ParameterUnderflowMsg "none" ParameterPrecisionLossMsg "warning" ParameterTunabilityLossMsg "warning" FixptConstUnderflowMsg "none" FixptConstOverflowMsg "none" FixptConstPrecisionLossMsg "none" UnderSpecifiedDataTypeMsg "none" UnnecessaryDatatypeConvMsg "none" VectorMatrixConversionMsg "none" InvalidFcnCallConnMsg "error" FcnCallInpInsideContextMsg "EnableAllAsError" SignalLabelMismatchMsg "none" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" SFcnCompatibilityMsg "none" FrameProcessingCompatibilityMsg "error" UniqueDataStoreMsg "none" BusObjectLabelMismatch "warning" RootOutportRequireBusObject "warning" AssertControl "UseLocalSettings" AllowSymbolicDim on ModelReferenceIOMsg "none" ModelReferenceMultiInstanceNormalModeStructChecksumCheck "error" ModelReferenceVersionMismatchMessage "none" ModelReferenceIOMismatchMessage "none" UnknownTsInhSupMsg "warning" ModelReferenceDataLoggingMessage "warning" ModelReferenceSymbolNameMessage "warning" ModelReferenceExtraNoncontSigs "error" StateNameClashWarn "warning" SimStateInterfaceChecksumMismatchMsg "warning" SimStateOlderReleaseMsg "error" InitInArrayFormatMsg "warning" StrictBusMsg "ErrorLevel1" BusNameAdapt "WarnAndRepair" NonBusSignalsTreatedAsBus "none" SymbolicDimMinMaxWarning "warning" LossOfSymbolicDimsSimulationWarning "warning" LossOfSymbolicDimsCodeGenerationWarning "error" BlockIODiagnostic "none" SFUnusedDataAndEventsDiag "warning" SFUnexpectedBacktrackingDiag "warning" SFInvalidInputDataAccessInChartInitDiag "warning" SFNoUnconditionalDefaultTransitionDiag "warning" SFTransitionOutsideNaturalParentDiag "warning" SFUnconditionalTransitionShadowingDiag "warning" SFUndirectedBroadcastEventsDiag "warning" SFTransitionActionBeforeConditionDiag "warning" SFOutputUsedAsStateInMooreChartDiag "error" IntegerSaturationMsg "warning" AllowedUnitSystems "all" UnitsInconsistencyMsg "warning" AllowAutomaticUnitConversions on } Simulink.HardwareCC { $ObjectID 12 Version "1.16.2" ProdBitPerChar 8 ProdBitPerShort 16 ProdBitPerInt 32 ProdBitPerLong 32 ProdBitPerLongLong 64 ProdBitPerFloat 32 ProdBitPerDouble 64 ProdBitPerPointer 32 ProdLargestAtomicInteger "Char" ProdLargestAtomicFloat "None" ProdIntDivRoundTo "Undefined" ProdEndianess "Unspecified" ProdWordSize 32 ProdShiftRightIntArith on ProdLongLongMode off ProdHWDeviceType "32-bit Generic" TargetBitPerChar 8 TargetBitPerShort 16 TargetBitPerInt 32 TargetBitPerLong 32 TargetBitPerLongLong 64 TargetBitPerFloat 32 TargetBitPerDouble 64 TargetBitPerPointer 32 TargetLargestAtomicInteger "Char" TargetLargestAtomicFloat "None" TargetShiftRightIntArith on TargetLongLongMode off TargetIntDivRoundTo "Undefined" TargetEndianess "Unspecified" TargetWordSize 32 TargetPreprocMaxBitsSint 32 TargetPreprocMaxBitsUint 32 TargetHWDeviceType "Specified" TargetUnknown off ProdEqTarget on UseEmbeddedCoderFeatures on UseSimulinkCoderFeatures on } Simulink.ModelReferenceCC { $ObjectID 13 Version "1.16.2" UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange" EnableRefExpFcnMdlSchedulingChecks on CheckModelReferenceTargetMessage "error" EnableParallelModelReferenceBuilds off ParallelModelReferenceErrorOnInvalidPool on ParallelModelReferenceMATLABWorkerInit "None" ModelReferenceNumInstancesAllowed "Multi" PropagateVarSize "Infer from blocks in model" ModelReferencePassRootInputsByReference on ModelReferenceMinAlgLoopOccurrences off PropagateSignalLabelsOutOfModel off SupportModelReferenceSimTargetCustomCode off } Simulink.SFSimCC { $ObjectID 14 Version "1.16.2" SFSimEcho on SimCtrlC on SimIntegrity on SimUseLocalCustomCode off SimParseCustomCode on SimBuildMode "sf_incremental_build" SimGenImportedTypeDefs off } Simulink.RTWCC { $BackupClass "Simulink.RTWCC" $ObjectID 15 Version "1.16.2" Array { Type "Cell" Dimension 15 Cell "IncludeHyperlinkInReport" Cell "GenerateTraceInfo" Cell "GenerateTraceReport" Cell "GenerateTraceReportSl" Cell "GenerateTraceReportSf" Cell "GenerateTraceReportEml" Cell "PortableWordSizes" Cell "GenerateWebview" Cell "GenerateCodeMetricsReport" Cell "GenerateCodeReplacementReport" Cell "GenerateErtSFunction" Cell "CreateSILPILBlock" Cell "CodeExecutionProfiling" Cell "CodeProfilingSaveOptions" Cell "CodeProfilingInstrumentation" PropName "DisabledProps" } SystemTargetFile "grt.tlc" HardwareBoard "None" TLCOptions "" GenCodeOnly off MakeCommand "make_rtw" GenerateMakefile on PackageGeneratedCodeAndArtifacts off TemplateMakefile "grt_default_tmf" PostCodeGenCommand "" Description "" GenerateReport off SaveLog off RTWVerbose on RetainRTWFile off ProfileTLC off TLCDebug off TLCCoverage off TLCAssert off RTWUseLocalCustomCode off RTWUseSimCustomCode off Toolchain "Automatically locate an installed toolchain" BuildConfiguration "Faster Builds" IncludeHyperlinkInReport off LaunchReport off PortableWordSizes off CreateSILPILBlock "None" CodeExecutionProfiling off CodeExecutionProfileVariable "executionProfile" CodeProfilingSaveOptions "SummaryOnly" CodeProfilingInstrumentation off SILDebugging off TargetLang "C" IncludeBusHierarchyInRTWFileBlockHierarchyMap off GenerateTraceInfo off GenerateTraceReport off GenerateTraceReportSl off GenerateTraceReportSf off GenerateTraceReportEml off GenerateWebview off GenerateCodeMetricsReport off GenerateCodeReplacementReport off GenerateMissedCodeReplacementReport off RTWCompilerOptimization "off" RTWCustomCompilerOptimizations "" CheckMdlBeforeBuild "Off" SharedConstantsCachingThreshold 1024 Array { Type "Handle" Dimension 2 Simulink.CodeAppCC { $ObjectID 16 Version "1.16.2" Array { Type "Cell" Dimension 22 Cell "IgnoreCustomStorageClasses" Cell "IgnoreTestpoints" Cell "InsertBlockDesc" Cell "InsertPolySpaceComments" Cell "SFDataObjDesc" Cell "MATLABFcnDesc" Cell "SimulinkDataObjDesc" Cell "DefineNamingRule" Cell "SignalNamingRule" Cell "ParamNamingRule" Cell "InternalIdentifier" Cell "InlinedPrmAccess" Cell "CustomSymbolStr" Cell "CustomSymbolStrGlobalVar" Cell "CustomSymbolStrType" Cell "CustomSymbolStrField" Cell "CustomSymbolStrFcn" Cell "CustomSymbolStrFcnArg" Cell "CustomSymbolStrBlkIO" Cell "CustomSymbolStrTmpVar" Cell "CustomSymbolStrMacro" Cell "ReqsInCode" PropName "DisabledProps" } ForceParamTrailComments off GenerateComments on CommentStyle "Auto" IgnoreCustomStorageClasses on IgnoreTestpoints off IncHierarchyInIds off MaxIdLength 31 PreserveName off PreserveNameWithParent off ShowEliminatedStatement off OperatorAnnotations off IncAutoGenComments off SimulinkDataObjDesc off SFDataObjDesc off MATLABFcnDesc off IncDataTypeInIds off MangleLength 1 CustomSymbolStrGlobalVar "$R$N$M" CustomSymbolStrType "$N$R$M_T" CustomSymbolStrField "$N$M" CustomSymbolStrFcn "$R$N$M$F" CustomSymbolStrFcnArg "rt$I$N$M" CustomSymbolStrBlkIO "rtb_$N$M" CustomSymbolStrTmpVar "$N$M" CustomSymbolStrMacro "$R$N$M" CustomSymbolStrUtil "$N$C" DefineNamingRule "None" ParamNamingRule "None" SignalNamingRule "None" InsertBlockDesc off InsertPolySpaceComments off SimulinkBlockComments on MATLABSourceComments off EnableCustomComments off InternalIdentifier "Shortened" InlinedPrmAccess "Literals" ReqsInCode off UseSimReservedNames off } Simulink.GRTTargetCC { $BackupClass "Simulink.TargetCC" $ObjectID 17 Version "1.16.2" Array { Type "Cell" Dimension 14 Cell "GeneratePreprocessorConditionals" Cell "IncludeMdlTerminateFcn" Cell "GenerateAllocFcn" Cell "SuppressErrorStatus" Cell "ERTCustomFileBanners" Cell "GenerateSampleERTMain" Cell "GenerateTestInterfaces" Cell "ModelStepFunctionPrototypeControlCompliant" Cell "CPPClassGenCompliant" Cell "SupportNonInlinedSFcns" Cell "PurelyIntegerCode" Cell "SupportComplex" Cell "SupportAbsoluteTime" Cell "SupportContinuousTime" PropName "DisabledProps" } TargetFcnLib "ansi_tfl_table_tmw.mat" TargetLibSuffix "" GenFloatMathFcnCalls "NOT IN USE" TargetLangStandard "C89/C90 (ANSI)" CodeReplacementLibrary "None" UtilityFuncGeneration "Auto" ERTMultiwordTypeDef "System defined" ERTMultiwordLength 256 MultiwordLength 2048 GenerateFullHeader on InferredTypesCompatibility off GenerateSampleERTMain off GenerateTestInterfaces off ModelReferenceCompliant on ParMdlRefBuildCompliant on CompOptLevelCompliant on ConcurrentExecutionCompliant on IncludeMdlTerminateFcn on GeneratePreprocessorConditionals "Disable all" CombineOutputUpdateFcns on CombineSignalStateStructs off SuppressErrorStatus off ERTFirstTimeCompliant off IncludeFileDelimiter "Auto" ERTCustomFileBanners off SupportAbsoluteTime on LogVarNameModifier "rt_" MatFileLogging on MultiInstanceERTCode off CodeInterfacePackaging "Nonreusable function" SupportNonFinite on SupportComplex on PurelyIntegerCode off SupportContinuousTime on SupportNonInlinedSFcns on SupportVariableSizeSignals off ParenthesesLevel "Nominal" CastingMode "Nominal" MATLABClassNameForMDSCustomization "Simulink.SoftwareTarget.GRTCustomization" ModelStepFunctionPrototypeControlCompliant off CPPClassGenCompliant on AutosarCompliant off GRTInterface off GenerateAllocFcn off UseToolchainInfoCompliant on GenerateSharedConstants on UseMalloc off ExtMode off ExtModeStaticAlloc off ExtModeTesting off ExtModeStaticAllocSize 1000000 ExtModeTransport 0 ExtModeMexFile "ext_comm" ExtModeIntrfLevel "Level1" RTWCAPISignals off RTWCAPIParams off RTWCAPIStates off RTWCAPIRootIO off GenerateASAP2 off MultiInstanceErrorCode "Error" } PropName "Components" } } SlCovCC.ConfigComp { $ObjectID 18 Version "1.16.2" Description "Simulink Coverage Configuration Component" Name "Simulink Coverage" CovEnable off CovScope "EntireSystem" CovIncludeTopModel on RecordCoverage off CovPath "/" CovSaveName "covdata" CovMetricSettings "dw" CovNameIncrementing off CovHtmlReporting on CovForceBlockReductionOff on CovEnableCumulative on CovSaveCumulativeToWorkspaceVar on CovSaveSingleToWorkspaceVar on CovCumulativeVarName "covCumulativeData" CovCumulativeReport off CovSaveOutputData on CovOutputDir "slcov_output/$ModelName$" CovDataFileName "$ModelName$_cvdata" CovReportOnPause on CovModelRefEnable "Off" CovExternalEMLEnable off CovSFcnEnable on CovBoundaryAbsTol 1e-05 CovBoundaryRelTol 0.01 CovUseTimeInterval off CovStartTime 0 CovStopTime 0 } PropName "Components" } Name "Configuration" CurrentDlgPage "Solver" ConfigPrmDlgPosition [ 504, 165, 1416, 871 ] } PropName "ConfigurationSets" } Simulink.ConfigSet { $PropName "ActiveConfigurationSet" $ObjectID 7 } Object { $PropName "DataTransfer" $ObjectID 19 $ClassName "Simulink.GlobalDataTransfer" DefaultTransitionBetweenSyncTasks "Ensure deterministic transfer (maximum delay)" DefaultTransitionBetweenAsyncTasks "Ensure data integrity only" DefaultTransitionBetweenContTasks "Ensure deterministic transfer (minimum delay)" DefaultExtrapolationMethodBetweenContTasks "None" AutoInsertRateTranBlk [0] } ExplicitPartitioning off BlockDefaults { ForegroundColor "black" BackgroundColor "white" DropShadow off NamePlacement "normal" FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" ShowName on BlockRotation 0 BlockMirror off } AnnotationDefaults { HorizontalAlignment "center" VerticalAlignment "middle" ForegroundColor "black" BackgroundColor "white" DropShadow off FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" UseDisplayTextAsClickCallback off } LineDefaults { FontName "Helvetica" FontSize 9 FontWeight "normal" FontAngle "normal" } MaskDefaults { SelfModifiable "off" IconFrame "on" IconOpaque "opaque" RunInitForIconRedraw "off" IconRotate "none" PortRotate "default" IconUnits "autoscale" } MaskParameterDefaults { Evaluate "on" Tunable "on" NeverSave "off" Internal "off" ReadOnly "off" Enabled "on" Visible "on" ToolTip "on" } BlockParameterDefaults { Block { BlockType Gain Gain "1" Multiplication "Element-wise(K.*u)" ParamMin "[]" ParamMax "[]" ParamDataTypeStr "Inherit: Same as input" OutMin "[]" OutMax "[]" OutDataTypeStr "Inherit: Same as input" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType Integrator ExternalReset "none" InitialConditionSource "internal" InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" WrapState off WrappedStateUpperValue "pi" WrappedStateLowerValue "-pi" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" IgnoreLimit off ZeroCross on ContinuousStateAttributes "''" } Block { BlockType Scope DefaultConfigurationName "Simulink.scopes.TimeScopeBlockCfg" NumInputPorts "1" Floating off } Block { BlockType Step Time "1" Before "0" After "1" SampleTime "-1" VectorParams1D on ZeroCross on } Block { BlockType Sum IconShape "rectangular" Inputs "++" CollapseMode "All dimensions" CollapseDim "1" InputSameDT on AccumDataTypeStr "Inherit: Inherit via internal rule" OutMin "[]" OutMax "[]" OutDataTypeStr "Inherit: Same as first input" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType TransferFcn Numerator "[1]" Denominator "[1 2 1]" AbsoluteTolerance "auto" ContinuousStateAttributes "''" Realization "auto" } } System { Name "simulacoes1" Location [-8, 0, 1928, 1056] Open on ModelBrowserVisibility on ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "125" ReportName "simulink-default.rpt" SIDHighWatermark "100" Block { BlockType Gain Name "Gain13" SID "80" Position [335, 623, 390, 677] ZOrder 198 BlockMirror on Gain "-360" ParamDataTypeStr "Inherit: Inherit via internal rule" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain14" SID "81" Position [335, 698, 390, 752] ZOrder 197 BlockMirror on Gain "-900" ParamDataTypeStr "Inherit: Inherit via internal rule" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain15" SID "82" Position [335, 548, 390, 602] ZOrder 196 BlockMirror on Gain "-41" ParamDataTypeStr "Inherit: Inherit via internal rule" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain3" SID "89" Position [205, 113, 260, 167] ZOrder 222 Gain "600" ParamDataTypeStr "Inherit: Inherit via internal rule" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain4" SID "90" Position [150, 188, 205, 242] ZOrder 221 Gain "1200" ParamDataTypeStr "Inherit: Inherit via internal rule" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain5" SID "91" Position [520, 258, 575, 312] ZOrder 220 BlockMirror on Gain "-360" ParamDataTypeStr "Inherit: Inherit via internal rule" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain6" SID "92" Position [630, 308, 685, 362] ZOrder 219 BlockMirror on Gain "-900" ParamDataTypeStr "Inherit: Inherit via internal rule" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain7" SID "93" Position [410, 208, 465, 262] ZOrder 218 BlockMirror on Gain "-41" ParamDataTypeStr "Inherit: Inherit via internal rule" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Integrator Name "Integrator10" SID "84" Ports [1, 1] Position [475, 490, 505, 520] ZOrder 194 InitialCondition "1" } Block { BlockType Integrator Name "Integrator11" SID "85" Ports [1, 1] Position [565, 490, 595, 520] ZOrder 193 InitialCondition "2" } Block { BlockType Integrator Name "Integrator3" SID "94" Ports [1, 1] Position [360, 155, 390, 185] ZOrder 217 } Block { BlockType Integrator Name "Integrator4" SID "95" Ports [1, 1] Position [565, 125, 595, 155] ZOrder 216 } Block { BlockType Integrator Name "Integrator5" SID "96" Ports [1, 1] Position [655, 125, 685, 155] ZOrder 215 } Block { BlockType Integrator Name "Integrator9" SID "83" Ports [1, 1] Position [360, 490, 390, 520] ZOrder 195 InitialCondition "-0.05" } Block { BlockType Scope Name "Scope" SID "100" Ports [1] Position [745, 124, 775, 156] ZOrder 223 ScopeSpecificationString "C++SS(StrPVP('Location','[188, 390, 512, 629]'),StrPVP('Open','off'),MxPVP('AxesTitles" "',24,'struct(''axes1'',''%<SignalLabel>'')'),MxPVP('ScopeGraphics',28,'struct(''FigureColor'',''[0.5 0.5 0.5]''," "''AxesColor'',''[0 0 0]'',''AxesTickColor'',''[1 1 1]'',''LineColors'',''[1 1 0;1 0 1;0 1 1;1 0 0;0 1 0;0 0 1]''" ",''LineStyles'',''-|-|-|-|-|-'',''LineWidths'',''[0.5 0.5 0.5 0.5 0.5 0.5]'',''MarkerStyles'',''none|none|none|n" "one|none|none'')'),StrPVP('ShowLegends','off'),StrPVP('SaveToWorkspace','on'),StrPVP('SaveName','yfs'),StrPVP('B" "lockParamSampleTime','0'),StrPVP('LimitDataPoints','on'),StrPVP('DataFormat','Array'),StrPVP('Decimation','1'),S" "trPVP('BlockParamSampleInput','off'))" } Block { BlockType Scope Name "Scope1" SID "79" Ports [1] Position [655, 589, 685, 621] ZOrder 188 ScopeSpecificationString "Simulink.scopes.TimeScopeBlockCfg('CurrentConfiguration', extmgr.ConfigurationSet(extm" "gr.Configuration('Core','General UI',true),extmgr.Configuration('Core','Source UI',true),extmgr.Configuration('S" "ources','WiredSimulink',true,'DataLogging',true,'DataLoggingVariableName','yns','DataLoggingLimitDataPoints',tru" "e,'DataLoggingSaveFormat','Array','DataLoggingDecimation','1','DataLoggingDecimateData',true),extmgr.Configurati" "on('Visuals','Time Domain',true,'SerializedDisplays',{struct('MinYLimReal','-0.25293','MaxYLimReal','2.27637','Y" "LabelReal','','MinYLimMag','0.00000','MaxYLimMag','2.27637','LegendVisibility','off','XGrid',true,'YGrid',true,'" "PlotMagPhase',false,'AxesColor',[0 0 0],'AxesTickColor',[0.686274509803922 0.686274509803922 0.686274509803922]," "'ColorOrder',[1 1 0.0666666666666667;0.0745098039215686 0.623529411764706 1;1 0.411764705882353 0.16078431372549" ";0.392156862745098 0.831372549019608 0.0745098039215686;0.717647058823529 0.274509803921569 1;0.0588235294117647" " 1 1;1 0.0745098039215686 0.650980392156863],'Title','%<SignalLabel>','LinePropertiesCache',{{}},'UserDefinedCha" "nnelNames',{{}},'NumLines',1,'LineNames',{{'Integrator11'}},'ShowContent',true,'Placement',1)},'DisplayPropertyD" "efaults',struct('MinYLimReal','-0.25293','MaxYLimReal','2.27637','YLabelReal','','MinYLimMag','0.00000','MaxYLim" "Mag','2.27637','LegendVisibility','off','XGrid',true,'YGrid',true,'PlotMagPhase',false,'AxesColor',[0 0 0],'Axes" "TickColor',[0.686274509803922 0.686274509803922 0.686274509803922],'ColorOrder',[1 1 0.0666666666666667;0.074509" "8039215686 0.623529411764706 1;1 0.411764705882353 0.16078431372549;0.392156862745098 0.831372549019608 0.074509" "8039215686;0.717647058823529 0.274509803921569 1;0.0588235294117647 1 1;1 0.0745098039215686 0.650980392156863]," "'Title','%<SignalLabel>','LinePropertiesCache',{{}},'UserDefinedChannelNames',{{}},'NumLines',0,'LineNames',{{[]" "}},'ShowContent',true,'Placement',1)),extmgr.Configuration('Tools','Plot Navigation',true),extmgr.Configuration(" "'Tools','Measurements',true,'Version','2016a')),'Version','2016a','Location',[188 390 512 629])" } Block { BlockType Scope Name "Scope2" SID "52" Ports [1] Position [805, 474, 835, 506] ZOrder 139 ScopeSpecificationString "C++SS(StrPVP('Location','[456, 351, 780, 589]'),StrPVP('Open','off'),MxPVP('AxesTitles" "',24,'struct(''axes1'',''%<SignalLabel>'')'),MxPVP('ScopeGraphics',28,'struct(''FigureColor'',''[0.5019607843137" "25 0.501960784313725 0.501960784313725]'',''AxesColor'',''[0 0 0]'',''AxesTickColor'',''[1 1 1]'',''LineColors''" ",''[1 1 0;1 0 1;0 1 1;1 0 0;0 1 0;0 0 1]'',''LineStyles'',''-|-|-|-|-|-'',''LineWidths'',''[0.5 0.5 0.5 0.5 0.5 " "0.5]'',''MarkerStyles'',''none|none|none|none|none|none'')'),StrPVP('ShowLegends','off'),StrPVP('SaveToWorkspace" "','on'),StrPVP('SaveName','ycs'),StrPVP('LimitDataPoints','off'),StrPVP('BlockParamSampleTime','0'),StrPVP('Data" "Format','Array'),StrPVP('Decimation','1'),StrPVP('BlockParamSampleInput','off'))" } Block { BlockType Scope Name "Scope3" SID "61" Ports [1] Position [1190, 194, 1220, 226] ZOrder 157 ScopeSpecificationString "C++SS(StrPVP('Location','[188, 390, 512, 629]'),StrPVP('Open','off'),MxPVP('AxesTitles" "',24,'struct(''axes1'',''%<SignalLabel>'')'),MxPVP('ScopeGraphics',28,'struct(''FigureColor'',''[0.5 0.5 0.5]''," "''AxesColor'',''[0 0 0]'',''AxesTickColor'',''[1 1 1]'',''LineColors'',''[1 1 0;1 0 1;0 1 1;1 0 0;0 1 0;0 0 1]''" ",''LineStyles'',''-|-|-|-|-|-'',''LineWidths'',''[0.5 0.5 0.5 0.5 0.5 0.5]'',''MarkerStyles'',''none|none|none|n" "one|none|none'')'),StrPVP('ShowLegends','off'),StrPVP('SaveToWorkspace','on'),StrPVP('SaveName','yns2'),StrPVP('" "BlockParamSampleTime','0'),StrPVP('LimitDataPoints','on'),StrPVP('DataFormat','Array'),StrPVP('Decimation','1')," "StrPVP('BlockParamSampleInput','off'))" } Block { BlockType Scope Name "Scope4" SID "64" Ports [1] Position [1190, 339, 1220, 371] ZOrder 160 ScopeSpecificationString "C++SS(StrPVP('Location','[188, 390, 512, 629]'),StrPVP('Open','off'),MxPVP('AxesTitles" "',24,'struct(''axes1'',''%<SignalLabel>'')'),MxPVP('ScopeGraphics',28,'struct(''FigureColor'',''[0.5 0.5 0.5]''," "''AxesColor'',''[0 0 0]'',''AxesTickColor'',''[1 1 1]'',''LineColors'',''[1 1 0;1 0 1;0 1 1;1 0 0;0 1 0;0 0 1]''" ",''LineStyles'',''-|-|-|-|-|-'',''LineWidths'',''[0.5 0.5 0.5 0.5 0.5 0.5]'',''MarkerStyles'',''none|none|none|n" "one|none|none'')'),StrPVP('ShowLegends','off'),StrPVP('SaveToWorkspace','on'),StrPVP('SaveName','yfs2'),StrPVP('" "BlockParamSampleTime','0'),StrPVP('LimitDataPoints','on'),StrPVP('DataFormat','Array'),StrPVP('Decimation','1')," "StrPVP('BlockParamSampleInput','off'))" } Block { BlockType Scope Name "Scope5" SID "65" Ports [1] Position [1305, 264, 1335, 296] ZOrder 161 ScopeSpecificationString "C++SS(StrPVP('Location','[188, 390, 512, 629]'),StrPVP('Open','off'),MxPVP('AxesTitles" "',24,'struct(''axes1'',''%<SignalLabel>'')'),MxPVP('ScopeGraphics',28,'struct(''FigureColor'',''[0.5 0.5 0.5]''," "''AxesColor'',''[0 0 0]'',''AxesTickColor'',''[1 1 1]'',''LineColors'',''[1 1 0;1 0 1;0 1 1;1 0 0;0 1 0;0 0 1]''" ",''LineStyles'',''-|-|-|-|-|-'',''LineWidths'',''[0.5 0.5 0.5 0.5 0.5 0.5]'',''MarkerStyles'',''none|none|none|n" "one|none|none'')'),StrPVP('ShowLegends','off'),StrPVP('SaveToWorkspace','on'),StrPVP('SaveName','ycs2'),StrPVP('" "BlockParamSampleTime','0'),StrPVP('LimitDataPoints','on'),StrPVP('DataFormat','Array'),StrPVP('Decimation','1')," "StrPVP('BlockParamSampleInput','off'))" } Block { BlockType Step Name "Step" SID "97" Position [20, 121, 55, 159] ZOrder 214 Time "0" SampleTime "0" } Block { BlockType Step Name "Step2" SID "60" Position [885, 160, 915, 190] ZOrder 156 Time "0" After "1000000" SampleTime "0" } Block { BlockType Step Name "Step3" SID "62" Position [885, 340, 915, 370] ZOrder 158 Time "0" SampleTime "0" } Block { BlockType Step Name "Step4" SID "67" Position [885, 240, 915, 270] ZOrder 163 Time "0.000001" After "-1000000" SampleTime "0" } Block { BlockType Sum Name "Sum of Elements" SID "69" Ports [2, 1] Position [955, 192, 985, 223] ZOrder 164 InputSameDT off OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum1" SID "98" Ports [4, 1] Position [275, 185, 315, 225] ZOrder 213 ShowName off IconShape "round" Inputs "|++++" InputSameDT off OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum2" SID "99" Ports [2, 1] Position [445, 120, 485, 160] ZOrder 212 ShowName off IconShape "round" Inputs "|++" InputSameDT off OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum5" SID "86" Ports [3, 1] Position [260, 485, 290, 525] ZOrder 192 ShowName off IconShape "round" Inputs "|+++" InputSameDT off OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum6" SID "66" Ports [2, 1] Position [1255, 270, 1275, 290] ZOrder 162 ShowName off IconShape "round" Inputs "|++" InputSameDT off OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum8" SID "54" Ports [2, 1] Position [745, 480, 765, 500] ZOrder 137 ShowName off IconShape "round" Inputs "|++" InputSameDT off OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType TransferFcn Name "Transfer Fcn" SID "59" Position [1010, 182, 1135, 238] ZOrder 155 Numerator "[2 83 760.95]" Denominator "[1 41 360 900]" } Block { BlockType TransferFcn Name "Transfer Fcn1" SID "63" Position [1010, 327, 1135, 383] ZOrder 159 Numerator "[600 1200]" Denominator "[1 41 360 900]" } Line { ZOrder 1 SrcBlock "Step3" SrcPort 1 DstBlock "Transfer Fcn1" DstPort 1 } Line { ZOrder 2 SrcBlock "Transfer Fcn1" SrcPort 1 Points [20, 0] Branch { ZOrder 3 Points [0, -40; 105, 0] DstBlock "Sum6" DstPort 2 } Branch { ZOrder 4 DstBlock "Scope4" DstPort 1 } } Line { ZOrder 5 SrcBlock "Transfer Fcn" SrcPort 1 Points [14, 0] Branch { ZOrder 6 Points [0, 70] DstBlock "Sum6" DstPort 1 } Branch { ZOrder 7 DstBlock "Scope3" DstPort 1 } } Line { ZOrder 8 SrcBlock "Sum6" SrcPort 1 DstBlock "Scope5" DstPort 1 } Line { ZOrder 9 SrcBlock "Step4" SrcPort 1 Points [5, 0; 0, -40] DstBlock "Sum of Elements" DstPort 2 } Line { ZOrder 10 SrcBlock "Step2" SrcPort 1 Points [15, 0; 0, 25] DstBlock "Sum of Elements" DstPort 1 } Line { ZOrder 11 SrcBlock "Sum of Elements" SrcPort 1 DstBlock "Transfer Fcn" DstPort 1 } Line { ZOrder 12 SrcBlock "Sum5" SrcPort 1 DstBlock "Integrator9" DstPort 1 } Line { ZOrder 13 SrcBlock "Integrator9" SrcPort 1 Points [50, 0] Branch { ZOrder 14 DstBlock "Integrator10" DstPort 1 } Branch { ZOrder 15 Points [0, 70] DstBlock "Gain15" DstPort 1 } } Line { ZOrder 16 SrcBlock "Integrator10" SrcPort 1 Points [25, 0] Branch { ZOrder 17 DstBlock "Integrator11" DstPort 1 } Branch { ZOrder 18 Points [0, 145] DstBlock "Gain13" DstPort 1 } } Line { ZOrder 19 SrcBlock "Integrator11" SrcPort 1 Points [17, 0; 0, 39] Branch { ZOrder 20 Points [138, 0] DstBlock "Sum8" DstPort 2 } Branch { ZOrder 21 Points [0, 61] Branch { ZOrder 22 Points [0, 120] DstBlock "Gain14" DstPort 1 } Branch { ZOrder 23 DstBlock "Scope1" DstPort 1 } } } Line { ZOrder 24 SrcBlock "Gain15" SrcPort 1 Points [-55, 0] DstBlock "Sum5" DstPort 3 } Line { ZOrder 25 SrcBlock "Gain13" SrcPort 1 Points [-90, 0; 0, -135; 7, 0] DstBlock "Sum5" DstPort 2 } Line { ZOrder 26 SrcBlock "Gain14" SrcPort 1 Points [-120, 0; 0, -232] DstBlock "Sum5" DstPort 1 } Line { ZOrder 27 SrcBlock "Integrator4" SrcPort 1 Points [19, 0] Branch { ZOrder 28 DstBlock "Integrator5" DstPort 1 } Branch { ZOrder 29 Points [0, 145] DstBlock "Gain5" DstPort 1 } } Line { ZOrder 30 SrcBlock "Integrator5" SrcPort 1 Points [24, 0] Branch { ZOrder 31 Points [16, 0] Branch { ZOrder 32 DstBlock "Sum8" DstPort 1 } Branch { ZOrder 33 DstBlock "Scope" DstPort 1 } } Branch { ZOrder 34 Points [0, 195] DstBlock "Gain6" DstPort 1 } } Line { ZOrder 35 SrcBlock "Sum2" SrcPort 1 Points [40, 0] Branch { ZOrder 36 DstBlock "Integrator4" DstPort 1 } Branch { ZOrder 37 Points [0, 95] DstBlock "Gain7" DstPort 1 } } Line
Compartilhar