📄 ex6_4.mdl
字号:
Model { Name "ex5_4" Version 2.09 SimParamPage Solver SampleTimeColors off InvariantConstants off WideVectorLines off ShowLineWidths off PaperOrientation landscape PaperType usletter PaperUnits inches StartTime "0.0" StopTime "200" Solver ode5 RelTol "1e-3" AbsTol "1e-6" Refine "1" MaxStep "auto" InitialStep "auto" FixedStep "0.05" MaxOrder 5 OutputOption RefineOutputTimes OutputTimes "[]" LoadExternalInput off ExternalInput "[t, u]" SaveTime on TimeSaveName "tout" SaveState off StateSaveName "xout" SaveOutput on 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_4" Location [145, 274, 477, 557] Open on ScreenColor white Block { BlockType Gain Name "1/m" Position [160, 30, 190, 60] Gain "0.2" } Block { BlockType Abs Name "Abs\nDisplacement" Position [70, 215, 100, 245] } Block { BlockType Abs Name "Abs\nVelicity" Position [70, 150, 100, 180] } Block { BlockType Clock Name "Clock" Position [80, 105, 100, 125] DeleteFcn "simclock BlockIsBeingDestroyed" PostSaveFcn "simclock Save" Location [865, 130, 972, 175] } Block { BlockType Constant Name "Constant" Position [150, 224, 180, 246] Value "0.01" } Block { BlockType Integrator Name "Displacement" Ports [1, 1, 0, 0, 0] Position [270, 30, 300, 60] ExternalReset none InitialConditionSource internal InitialCondition "1" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Display Name "Display" Ports [1, 0, 0, 0, 0] Position [125, 100, 215, 130] Format short Decimation "1" Floating off SampleTime "-1" } Block { BlockType RelationalOperator Name "Relational\nOperator" Position [220, 197, 250, 228] Operator <= } Block { BlockType Signum Name "Sign" Position [110, 30, 140, 60] } Block { BlockType Stop Name "Stop Simulation" Position [275, 197, 310, 233] } Block { BlockType Sum Name "Sum" Ports [2, 1, 0, 0, 0] Position [55, 27, 85, 58] Inputs "--" } Block { BlockType Sum Name "Sum1" Ports [2, 1, 0, 0, 0] Position [150, 172, 180, 203] Inputs "++" } Block { BlockType Integrator Name "Velocity" Ports [1, 1, 0, 0, 0] Position [210, 30, 240, 60] ExternalReset none InitialConditionSource internal InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Reference Name "XY Graph" Ports [2, 0, 0, 0, 0] Position [270, 92, 300, 123] Orientation left SourceBlock "simulink/Sinks/XY Graph" SourceType "XY scope." xmin "-1" xmax "1" ymin "-1" ymax "1" st "-1" } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Sign" DstPort 1 } Line { SrcBlock "Velocity" SrcPort 1 Points [5, 0] Branch { DstBlock "Displacement" DstPort 1 } Branch { Points [0, 40] Branch { Points [0, 60; 70, 0; 0, -30] DstBlock "XY Graph" DstPort 2 } Branch { Points [-215, 0] Branch { Points [0, -35] DstBlock "Sum" DstPort 2 } Branch { Points [0, 80] DstBlock "Abs\nVelicity" DstPort 1 } } } } Line { SrcBlock "Sign" SrcPort 1 DstBlock "1/m" DstPort 1 } Line { SrcBlock "1/m" SrcPort 1 DstBlock "Velocity" DstPort 1 } Line { SrcBlock "Displacement" SrcPort 1 Points [15, 0] Branch { Points [0, 55] DstBlock "XY Graph" DstPort 1 } Branch { Points [0, -35; -285, 0] Branch { Points [0, 25] DstBlock "Sum" DstPort 1 } Branch { Points [-25, 0; 0, 220] DstBlock "Abs\nDisplacement" DstPort 1 } } } Line { SrcBlock "Relational\nOperator" SrcPort 1 DstBlock "Stop Simulation" DstPort 1 } Line { SrcBlock "Abs\nVelicity" SrcPort 1 Points [15, 0; 0, 15] DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Abs\nDisplacement" SrcPort 1 Points [15, 0; 0, -35] DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Clock" SrcPort 1 DstBlock "Display" DstPort 1 } Line { SrcBlock "Sum1" SrcPort 1 Points [20, 0] DstBlock "Relational\nOperator" DstPort 1 } Line { SrcBlock "Constant" SrcPort 1 Points [20, 0] DstBlock "Relational\nOperator" DstPort 2 } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -