ex6_5.mdl
来自「线性调频信号通过匹配滤波器的程序 还有一些simulink仿真模型」· MDL 代码 · 共 417 行
MDL
417 行
Model { Name "ex5_5" Version 2.09 SimParamPage Solver SampleTimeColors off InvariantConstants off WideVectorLines off ShowLineWidths off PaperOrientation landscape PaperType usletter PaperUnits inches StartTime "0.0" StopTime "1000" Solver ode45 RelTol "1e-3" AbsTol "1e-6" Refine "1" MaxStep "10" InitialStep "auto" FixedStep "auto" MaxOrder 5 OutputOption RefineOutputTimes OutputTimes "[]" LoadExternalInput off ExternalInput "[t, u]" SaveTime off TimeSaveName "tout" SaveState off StateSaveName "xout" SaveOutput off OutputSaveName "yout" LoadInitialState off InitialState "xInitial" SaveFinalState off FinalStateName "xFinal" LimitMaxRows off MaxRows "1000" Decimation "1" AlgebraicLoopMsg warning MinStepSizeMsg warning UnconnectedInputMsg warning UnconnectedOutputMsg warning UnconnectedLineMsg warning ConsistencyChecking off ZeroCross on SimulationMode normal RTWSystemTargetFile "grt.tlc" RTWInlineParameters off RTWRetainRTWFile off RTWTemplateMakefile "grt_vc.tmf" RTWMakeCommand "make_rtw" RTWGenerateCodeOnly off ExtModeMexFile "ext_comm" ExtModeBatchMode off BlockDefaults { Orientation right ForegroundColor black BackgroundColor white DropShadow off NamePlacement normal FontName "Helvetica" FontSize 10 FontWeight normal FontAngle normal ShowName on } AnnotationDefaults { HorizontalAlignment center VerticalAlignment middle ForegroundColor black BackgroundColor white DropShadow off FontName "Helvetica" FontSize 10 FontWeight normal FontAngle normal } LineDefaults { FontName "Helvetica" FontSize 9 FontWeight normal FontAngle normal } System { Name "ex5_5" Location [397, 282, 943, 560] Open on ScreenColor white Block { BlockType Gain Name "1/mass" Position [385, 94, 420, 126] Gain "0.01" } Block { BlockType Fcn Name "Aero\nForce" Position [335, 180, 375, 200] Orientation left Expr "0.001*(u[1]+20*sin(0.01*u[2]))^2" MaskIconFrame on MaskIconOpaque on MaskIconRotate none MaskIconUnits autoscale } Block { BlockType Clock Name "Clock" Position [455, 184, 475, 206] Orientation left DeleteFcn "simclock BlockIsBeingDestroyed" PostSaveFcn "simclock Save" Location [30, 40, 140, 75] MaskIconFrame on MaskIconOpaque on MaskIconRotate none MaskIconUnits autoscale } Block { BlockType Constant Name "Constant" Position [15, 80, 35, 100] Value "1" } Block { BlockType Display Name "Display" Ports [1, 0, 0, 0, 0] Position [95, 182, 180, 208] Orientation left Format short Decimation "1" Floating off SampleTime "-1" MaskIconFrame on MaskIconOpaque on MaskIconRotate none MaskIconUnits autoscale } Block { BlockType Integrator Name "Distance" Ports [1, 1, 0, 0, 0] Position [495, 92, 520, 128] ExternalReset none InitialConditionSource internal InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Fcn Name "Hill\nForce" Position [450, 225, 490, 245] Orientation left Expr "30*sin(0.0001*u[1])" MaskIconFrame on MaskIconOpaque on MaskIconRotate none MaskIconUnits autoscale } Block { BlockType Gain Name "Ke" Position [185, 84, 210, 116] Gain "50" } Block { BlockType MinMax Name "Lower\nlimit" Ports [2, 1, 0, 0, 0] Position [275, 81, 300, 119] Function max Inputs "2" } Block { BlockType Constant Name "Max\nBrake" Position [215, 14, 245, 36] Value "-2000" } Block { BlockType Constant Name "Max\nthrust" Position [160, 14, 190, 36] Value "1000" } Block { BlockType Mux Name "Mux" Ports [2, 1, 0, 0, 0] Position [395, 172, 420, 203] Orientation left Inputs "2" MaskIconFrame on MaskIconOpaque on MaskIconRotate none MaskIconUnits autoscale } Block { BlockType Scope Name "Scope" Ports [1, 0, 0, 0, 0] Position [245, 180, 275, 210] Floating off Location [58, 189, 382, 428] Open off Grid on TickLabels on ZoomMode on TimeRange "auto" YMin "-5" YMax "5" SaveToWorkspace off SaveName "ScopeData" LimitMaxRows on MaxRows "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Gain Name "Slider\nGain" Position [60, 80, 110, 100] CopyFcn "slideg Copy" DeleteFcn "slideg DeleteBlock" LoadFcn "slideg Load" NameChangeFcn "slideg NameChange" OpenFcn "slideg Open" ParentCloseFcn "slideg ParentClose" Gain "70" MaskType "Slider Gain" MaskPromptString "Low|Gain|High" MaskStyleString "edit,edit,edit" MaskDisplay "disp('70')" MaskIconFrame on MaskIconOpaque on MaskIconRotate none MaskIconUnits autoscale MaskValueString "0|70|100" } Block { BlockType Integrator Name "Speed" Ports [1, 1, 0, 0, 0] Position [440, 92, 465, 128] ExternalReset none InitialConditionSource internal InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Sum Name "Sum" Ports [2, 1, 0, 0, 0] Position [140, 80, 160, 115] Inputs "+-" } Block { BlockType Sum Name "Sum1" Ports [3, 1, 0, 0, 0] Position [340, 92, 360, 128] Inputs "+--" } Block { BlockType MinMax Name "Upper\nlimit" Ports [2, 1, 0, 0, 0] Position [225, 71, 250, 109] Function min Inputs "2" } Line { SrcBlock "Speed" SrcPort 1 Points [5, 0] Branch { DstBlock "Distance" DstPort 1 } Branch { Points [0, 45; -40, 0] Branch { DstBlock "Mux" DstPort 1 } Branch { Points [-220, 0] Branch { Points [0, 40] Branch { DstBlock "Scope" DstPort 1 } Branch { DstBlock "Display" DstPort 1 } } Branch { Points [-90, 0] DstBlock "Sum" DstPort 2 } } } } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Ke" DstPort 1 } Line { SrcBlock "Slider\nGain" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Constant" SrcPort 1 DstBlock "Slider\nGain" DstPort 1 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Aero\nForce" DstPort 1 } Line { SrcBlock "Aero\nForce" SrcPort 1 Points [-15, 0; 0, -70] DstBlock "Sum1" DstPort 3 } Line { SrcBlock "Hill\nForce" SrcPort 1 Points [-140, 0; 0, -125] DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Distance" SrcPort 1 Points [5, 0; 0, 125] DstBlock "Hill\nForce" DstPort 1 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "1/mass" DstPort 1 } Line { SrcBlock "1/mass" SrcPort 1 DstBlock "Speed" DstPort 1 } Line { SrcBlock "Ke" SrcPort 1 DstBlock "Upper\nlimit" DstPort 2 } Line { SrcBlock "Upper\nlimit" SrcPort 1 Points [0, 20] DstBlock "Lower\nlimit" DstPort 2 } Line { SrcBlock "Max\nthrust" SrcPort 1 Points [10, 0; 0, 55] DstBlock "Upper\nlimit" DstPort 1 } Line { SrcBlock "Max\nBrake" SrcPort 1 Points [10, 0] DstBlock "Lower\nlimit" DstPort 1 } Line { SrcBlock "Lower\nlimit" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Clock" SrcPort 1 DstBlock "Mux" DstPort 2 } }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?