block320.mdl
来自「realize analysis and design for computer」· MDL 代码 · 共 296 行
MDL
296 行
Model { Name "block320" Version 2.00 SimParamPage Solver SampleTimeColors off WideVectorLines on PaperOrientation landscape StartTime "0.0" StopTime "999999" Solver ode45 RelTol "1e-3" AbsTol "1e-6" Refine "10" MaxStep "auto" 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 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 } System { Name "block320" Location [20, 89, 615, 427] Open on ScreenColor white Block { BlockType SubSystem Name "Double\n integrator" Position [260, 132, 290, 183] DropShadow on ShowPortLabels off System { Name "Double\n integrator" Location [425, 467, 618, 623] Open off ScreenColor white Block { BlockType Inport Name "in_1" Position [30, 60, 50, 80] Port "1" PortWidth "-1" SampleTime "-1" } Block { BlockType Integrator Name "x5" Position [125, 60, 145, 80] ExternalReset none InitialConditionSource internal InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Integrator Name "x6" Position [80, 60, 100, 80] ExternalReset none InitialConditionSource internal InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Outport Name "out_1" Position [170, 60, 190, 80] Port "1" OutputWhenDisabled held InitialOutput "0" } Block { BlockType Outport Name "out_2" Position [170, 100, 190, 120] Port "2" OutputWhenDisabled held InitialOutput "0" } Line { SrcBlock "in_1" SrcPort 1 DstBlock "x6" DstPort 1 } Line { SrcBlock "x6" SrcPort 1 Points [0, 0] Branch { DstBlock "x5" DstPort 1 } Branch { Points [0, 40] DstBlock "out_2" DstPort 1 } } Line { SrcBlock "x5" SrcPort 1 DstBlock "out_1" DstPort 1 } } } Block { BlockType DiscreteFilter Name "Huc" Position [75, 131, 135, 169] BackgroundColor magenta DropShadow on ShowName off Numerator "[2]" Denominator "[1 1]" SampleTime "1" } Block { BlockType DiscreteFilter Name "Hy" Position [235, 250, 295, 290] Orientation left BackgroundColor magenta DropShadow on ShowName off Numerator "[4 -2]" Denominator "[1 1]" SampleTime "1" } Block { BlockType Step Name "Step" Position [20, 140, 40, 160] DropShadow on ShowName off Time "0" Before "0" After "1" } Block { BlockType Sum Name "Sum" Position [175, 144, 200, 171] BackgroundColor magenta DropShadow on ShowName off Inputs "+-" } Block { BlockType Terminator Name "Terminator" Position [315, 160, 335, 180] ShowName off } Block { BlockType Outport Name "y" Position [415, 135, 435, 155] Port "1" OutputWhenDisabled held InitialOutput "0" } Block { BlockType Outport Name "uc" Position [155, 85, 175, 105] Port "2" OutputWhenDisabled held InitialOutput "0" } Block { BlockType Outport Name "u" Position [320, 85, 340, 105] Port "3" OutputWhenDisabled held InitialOutput "0" } Line { SrcBlock "Double\n integrator" SrcPort 2 DstBlock "Terminator" DstPort 1 } Line { SrcBlock "Step" SrcPort 1 Points [0, 0] Branch { Points [10, 0; 0, -55] DstBlock "uc" DstPort 1 } Branch { DstBlock "Huc" DstPort 1 } } Line { SrcBlock "Sum" SrcPort 1 Points [0, 0] Branch { Points [25, 0; 0, -65] DstBlock "u" DstPort 1 } Branch { DstBlock "Double\n integrator" DstPort 1 } } Line { SrcBlock "Double\n integrator" SrcPort 1 Points [0, 0] Branch { DstBlock "y" DstPort 1 } Branch { Points [65, 0; 0, 125] DstBlock "Hy" DstPort 1 } } Line { SrcBlock "Hy" SrcPort 1 Points [-80, 0; 0, -105] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Huc" SrcPort 1 DstBlock "Sum" DstPort 1 } }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?