blockest.mdl
来自「realize analysis and design for computer」· MDL 代码 · 共 305 行
MDL
305 行
Model { Name "blockest" Version 2.00 SimParamPage Solver SampleTimeColors off WideVectorLines off PaperOrientation landscape StartTime "0.0" StopTime "999999" Solver VariableStepDiscrete RelTol "1e-3" AbsTol "1e-6" Refine "1" 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 "blockest" Location [36, 161, 536, 461] Open on ScreenColor white Block { BlockType Constant Name "Constant" Position [65, 110, 85, 130] ShowName off Value "k0" } Block { BlockType Constant Name "Constant1" Position [65, 144, 90, 166] ShowName off Value "ifix" } Block { BlockType Constant Name "Constant2" Position [150, 251, 200, 279] BackgroundColor magenta DropShadow on ShowName off Value "sig*sig" } Block { BlockType Constant Name "Constant3" Position [65, 40, 85, 60] ShowName off Value "0" } Block { BlockType Product Name "Product" Position [245, 248, 275, 272] BackgroundColor magenta DropShadow on ShowName off Inputs "2" } Block { BlockType Product Name "Product1" Position [210, 138, 240, 162] BackgroundColor magenta DropShadow on ShowName off Inputs "2" } Block { BlockType RandomNumber Name "Random\nNumber" Position [290, 51, 320, 89] Orientation left BackgroundColor magenta DropShadow on ShowName off Seed "0" } Block { BlockType Sum Name "Sum" Position [215, 85, 235, 105] Orientation left BackgroundColor magenta DropShadow on ShowName off Inputs "+-" } Block { BlockType Sum Name "Sum1" Position [265, 145, 285, 165] BackgroundColor magenta DropShadow on ShowName off Inputs "++" } Block { BlockType Switch Name "Switch" Position [145, 139, 175, 171] BackgroundColor magenta DropShadow on ShowName off Threshold "0.5" } Block { BlockType Fcn Name "k" Position [385, 250, 425, 270] BackgroundColor magenta DropShadow on Expr "u[1]/(sig*sig+u[1])" } Block { BlockType UnitDelay Name "p" Position [300, 252, 350, 268] BackgroundColor magenta DropShadow on X0 "0.5" SampleTime "h" } Block { BlockType UnitDelay Name "xe" Position [310, 147, 360, 163] BackgroundColor magenta DropShadow on X0 "2" SampleTime "h" } Block { BlockType Outport Name "Outport" Position [415, 145, 435, 165] ShowName off Port "1" OutputWhenDisabled held InitialOutput "0" } Block { BlockType Outport Name "Outport1" Position [115, 40, 135, 60] ShowName off Port "2" OutputWhenDisabled held InitialOutput "0" } Line { SrcBlock "Constant3" SrcPort 1 DstBlock "Outport1" DstPort 1 } Line { SrcBlock "xe" SrcPort 1 Points [0, 0] Branch { DstBlock "Outport" DstPort 1 } Branch { Points [15, 0; 0, 40; -135, 0; 0, -35] DstBlock "Sum1" DstPort 2 } Branch { Points [15, 0; 0, -55] DstBlock "Sum" DstPort 2 } } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "xe" DstPort 1 } Line { SrcBlock "Product1" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Sum" SrcPort 1 Points [-25, 0; 0, 50] DstBlock "Product1" DstPort 1 } Line { SrcBlock "Switch" SrcPort 1 DstBlock "Product1" DstPort 2 } Line { SrcBlock "Random\nNumber" SrcPort 1 Points [-15, 0; 0, 20] DstBlock "Sum" DstPort 1 } Line { SrcBlock "Constant1" SrcPort 1 DstBlock "Switch" DstPort 2 } Line { SrcBlock "Constant" SrcPort 1 Points [20, 0; 0, 25] DstBlock "Switch" DstPort 1 } Line { SrcBlock "k" SrcPort 1 Points [0, 0] Branch { Points [10, 0; 0, -35; -315, 0; 0, -60] DstBlock "Switch" DstPort 3 } Branch { Points [10, 0; 0, -35; -215, 0; 0, 30] DstBlock "Product" DstPort 1 } } Line { SrcBlock "Product" SrcPort 1 DstBlock "p" DstPort 1 } Line { SrcBlock "Constant2" SrcPort 1 DstBlock "Product" DstPort 2 } Line { SrcBlock "p" SrcPort 1 DstBlock "k" DstPort 1 } }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?