文稿教程分析tutorial1 simulink_第1页
文稿教程分析tutorial1 simulink_第2页
文稿教程分析tutorial1 simulink_第3页
文稿教程分析tutorial1 simulink_第4页
文稿教程分析tutorial1 simulink_第5页
已阅读5页,还剩3页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

®H83BCETutorial(DrM.R.® ®formodellingandisanextensionto thatallowsengineerstorapidlyandaccuraybuildcomputermodelsofdynamicsystems,usingblockdiagramnotation.Amodelcanproducegraphicalanimationsthatshowtheprogressofasimulationvisually,significantlyenhancingunderstandingofthesystem’sbehaviour.The“program”isablockdiagramitself. ®,andclick ®Asyousee,thereis®LibraryBrowser,whereyoucanfindmostoftheitemsyouneedsuchasgains,summationblocksandintegrals.BlockLibraryListofsub-StaticGain(theoutputofthegainblockismultipliedbya Product(multiplyordivide Product,Sum(addorsubtract ,Scope(disysitsinputwithrespecttosimulation To Constant(outputtheconstantspecifiedwiththe‘constantvalue’Step(outputa Linear(outputa SineWave(outputasine SineDynamic1sIntegrator(1/s)-Continuoustimeintegrationoftheinput Derivative(du/dt)-Numericalderivative: DerivaUser-DefinedFunction(f(u))-Generalexpressionblock.Use‘u’astheinputvariableSignalsMultiplexscalarorvector

Ports&Sub-

11ProvideanInputoranOutputportforasub-systemora OutBlockContinuouslinearGainblockrepresentsthefollowingalgebraicequation(y=k*x)ortheoutputofthesystemistheinputmultipliedbyaconstant(k):(i)y= Sumblock–permitstoaddtwoormore()d=a+b+a c(i)c=a–

bDerivativeblockcomputesthetimerateofchangeofitsinput.Theblockrepresentsthefollowingdifferentialequation: Integratorblockcomputesthetimeintegralofitsinputfromthestartingtime.Weuse(.)notationtorepresentthetimederivative,e.g..(iv’)x= x1s ConnectingYoucancommandtoconnectblocksSelectthesourceHolddownCtrlandleft-clickthedestinationblock.connectsthesourceblocktothedestinationblock.lyConnectingallowsyoutodrawlineslybetweenblocksorbetweenlinesandblocks.Positionthecursoroverthefirstblock'soutputPressandholddownthemousebutton.Dragthepointertothesecondblock'sinputReleasethemousebutton.recestheportsymbolsbyaconnectinglinewithanarrowshowingthedirectionofthesignalflow.Youcancreaineseitherfromoutputtoinput,orfrominputtooutput.DrawingaBranchAbranchlineisalhatstartsfromanexistinglineandcarriesitssignaltotheinputportofablock.Boththeexistinglineandthebranchlinerepresentthesamesignal.Usingbranchlinesenablesyoutoconneignaltomorethanoneblock.ToaddabranchPositionthepointeronthelinewhereyouwantthebranch oWhileholdingdowntheCtrlkey,pressandholddowntheleftmouseDragthepointertotheinputportofthetargetblock,thenreleasethemousebuttonandtheCtrlkey.YoucsousetherightmousebuttoninsteadofholdingdowntheleftmousebuttonandtheCtrlkey. ampleconnectstheoutputoftheProductblocktoboththeScopeblockandtheToWorkspaceblock.ModelBuildingElementsofamodel modelconsistsofthreetypesofelements:sources,thesystembeingmodelledandsinks.Thecentralelement,thesystem,istherepresentationofablockdiagramofthedynamicalsystembeingmodeled.Thesourcesaretheinputstothedynamicalsystem.Sources ludeconstants,functiongeneratorssuchassinewavesandstepfunctions,andcustomsignalsyoucreatein .SourceblocksarefoundintheSourcesblocklibrary.Theoutputofthesystemisreceivedbysinks.Examplesofsinksaregraphs,oscilloscopes,andoutputfiles.SinkblocksarefoundintheSinksblocklibrary.\\Let’ssolvethefollowingdifferentialequation.x=Startinenvironmentbyclicking“File,New,Model”,andyoushouldhaveablocktreeontheleftandablankwhiteareaontheright.ClicktheSourcesoptionunderthe ®treeanddraganddropthesinewavefunction.NowintroduceanintegratorandascopefromtheCommonlyUsedBlocks.Connectthesinewaveblockwiththeintegratorblockandwiththescopeasshownbelow.1sSine

ClicktheSimulation:Startbutton,thesimulationwillexecute,thenDouble-clickonScopeandthenAutoscaletoviewtheresultsshownbelow.Start:Openm.file(initialvals.m),whichcontainsinitialvaluesofInitialise:Openmdl.file,whichcontainsblockSimulation:ViewClickonScopewindowAdjustscale(Autoscale)WritePlotinthecommandwindowasfollowsforthebatchfermentationexample:使用。用于建模和仿真是的扩展,允许工程师使用框图表示法快运行。加载,然后单击。图标如您所见,有一个。库浏览器,您可以在其中找到您需要的大部分项目,例如增益、求常数(输出‘constantvalue’参数指定的常数)SineWave(输出正弦波)连续积分器(1/s)(du/dt)Function(f(u“u”系统增益模块表示以下代数方程(y=k*x)或者系统的输出是输入乘以常数(k):我y=k*xx(t)Sum块–允许添加两个或多个输入d=a+b+ci)c=a–b微分块计算其输入的时间变化率。该块代表以下微分方程iv’)xdx/dt连接模块您可以命令自动连接模块按住Ctrl并左键单击目标块。将源模块连接到目标模块。

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论