block44.mdl
来自「realize analysis and design for computer」· MDL 代码 · 共 465 行
MDL
465 行
Model { Name "block44" Version 2.00 SimParamPage Solver SampleTimeColors off WideVectorLines on PaperOrientation landscape StartTime "0.0" StopTime "10" Solver ode45 RelTol "1e-3" AbsTol "1e-6" Refine "5" 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 "block44" Location [98, 182, 590, 422] Open on ScreenColor white Block { BlockType SubSystem Name "Double\n integrator" Position [220, 112, 250, 163] DropShadow on ShowPortLabels off System { Name "Double\n integrator" Location [277, 105, 551, 340] Open on ScreenColor white Block { BlockType Inport Name "u" Position [15, 35, 35, 55] Port "1" PortWidth "-1" SampleTime "-1" } Block { BlockType Step Name "Step" Position [15, 126, 35, 144] ShowName off Time "t0" Before "0" After "1" } Block { BlockType Step Name "Step1" Position [15, 81, 35, 99] ShowName off Time "t0" Before "0" After "x20" } Block { BlockType Step Name "Step2" Position [125, 131, 145, 149] ShowName off Time "t0" Before "0" After "x10" } Block { BlockType Integrator Name "x1" Position [165, 64, 195, 116] ExternalReset rising InitialConditionSource external InitialCondition "x10" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Integrator Name "x2" Position [60, 48, 90, 102] ExternalReset rising InitialConditionSource external InitialCondition "x20" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Outport Name "y" Position [225, 80, 245, 100] Port "1" OutputWhenDisabled held InitialOutput "0" } Block { BlockType Outport Name "ydot" Position [145, 20, 165, 40] Port "2" OutputWhenDisabled held InitialOutput "0" } Line { SrcBlock "Step2" SrcPort 1 DstBlock "x1" DstPort 3 } Line { SrcBlock "Step1" SrcPort 1 DstBlock "x2" DstPort 3 } Line { SrcBlock "x1" SrcPort 1 DstBlock "y" DstPort 1 } Line { SrcBlock "x2" SrcPort 1 Points [10, 0] Branch { Points [0, -45] DstBlock "ydot" DstPort 1 } Branch { DstBlock "x1" DstPort 1 } } Line { SrcBlock "u" SrcPort 1 Points [0, 15] DstBlock "x2" DstPort 1 } Line { Labels [0, 0] SrcBlock "Step" SrcPort 1 Points [5, 0] Branch { Points [65, 0; 0, -45] DstBlock "x1" DstPort 2 } Branch { DstBlock "x2" DstPort 2 } } } } Block { BlockType Ground Name "Ground" Position [75, 115, 95, 135] ShowName off } Block { BlockType SubSystem Name "dstfb" Position [130, 114, 160, 166] BackgroundColor magenta DropShadow on ShowPortLabels off System { Name "dstfb" Location [360, 192, 621, 461] Open off ScreenColor magenta Block { BlockType Inport Name "uc" Position [10, 70, 30, 90] Port "1" PortWidth "-1" SampleTime "-1" } Block { BlockType Inport Name "x1" Position [10, 120, 30, 140] Port "2" PortWidth "-1" SampleTime "-1" } Block { BlockType Inport Name "x2" Position [10, 170, 30, 190] Port "3" PortWidth "-1" SampleTime "-1" } Block { BlockType Sum Name "Sum2" Position [200, 112, 220, 148] BackgroundColor magenta DropShadow on ShowName off Inputs "+--" } Block { BlockType ZeroOrderHold Name "ZoH4" Position [60, 65, 100, 95] BackgroundColor magenta DropShadow on SampleTime "h" } Block { BlockType ZeroOrderHold Name "ZoH5" Position [60, 115, 100, 145] BackgroundColor magenta DropShadow on SampleTime "h" } Block { BlockType ZeroOrderHold Name "ZoH6" Position [60, 165, 100, 195] BackgroundColor magenta DropShadow on SampleTime "h" } Block { BlockType Gain Name "l3" Position [120, 115, 150, 145] BackgroundColor magenta DropShadow on ShowName off Gain "l1" } Block { BlockType Gain Name "l4" Position [120, 165, 150, 195] BackgroundColor magenta DropShadow on ShowName off Gain "l2" } Block { BlockType Gain Name "m1" Position [120, 65, 150, 95] BackgroundColor magenta DropShadow on ShowName off Gain "m" } Block { BlockType Outport Name "u" Position [250, 120, 270, 140] Port "1" OutputWhenDisabled held InitialOutput "0" } Line { SrcBlock "l3" SrcPort 1 DstBlock "Sum2" DstPort 2 } Line { SrcBlock "l4" SrcPort 1 Points [20, 0; 0, -40] DstBlock "Sum2" DstPort 3 } Line { SrcBlock "ZoH6" SrcPort 1 DstBlock "l4" DstPort 1 } Line { SrcBlock "ZoH5" SrcPort 1 DstBlock "l3" DstPort 1 } Line { SrcBlock "m1" SrcPort 1 Points [20, 0; 0, 40] DstBlock "Sum2" DstPort 1 } Line { SrcBlock "ZoH4" SrcPort 1 DstBlock "m1" DstPort 1 } Line { SrcBlock "uc" SrcPort 1 DstBlock "ZoH4" DstPort 1 } Line { SrcBlock "Sum2" SrcPort 1 DstBlock "u" DstPort 1 } Line { SrcBlock "x1" SrcPort 1 DstBlock "ZoH5" DstPort 1 } Line { SrcBlock "x2" SrcPort 1 DstBlock "ZoH6" DstPort 1 } } } Block { BlockType Outport Name "y" Position [365, 95, 385, 115] Port "1" OutputWhenDisabled held InitialOutput "0" } Block { BlockType Outport Name "v" Position [365, 140, 385, 160] Port "2" OutputWhenDisabled held InitialOutput "0" } Block { BlockType Outport Name "u" Position [225, 60, 245, 80] Port "3" OutputWhenDisabled held InitialOutput "0" } Line { SrcBlock "dstfb" SrcPort 1 Points [0, 0] Branch { DstBlock "Double\n integrator" DstPort 1 } Branch { Points [20, 0; 0, -70] DstBlock "u" DstPort 1 } } Line { SrcBlock "Double\n integrator" SrcPort 1 Points [0, 0] Branch { Points [60, 0; 0, 105; -215, 0; 0, -90] DstBlock "dstfb" DstPort 2 } Branch { Points [60, 0; 0, -20] DstBlock "y" DstPort 1 } } Line { SrcBlock "Double\n integrator" SrcPort 2 Points [36, 0] Branch { DstBlock "v" DstPort 1 } Branch { Points [0, 59; -180, 0; 0, -54] DstBlock "dstfb" DstPort 3 } } Line { SrcBlock "Ground" SrcPort 1 DstBlock "dstfb" DstPort 1 } }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?