block31.mdl
来自「realize analysis and design for computer」· MDL 代码 · 共 143 行
MDL
143 行
Model { Name "block31" Version 2.00 SimParamPage Solver SampleTimeColors off WideVectorLines on 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 "block31" Location [121, 158, 593, 453] Open on ScreenColor white Block { BlockType Gain Name "Gain" Position [90, 122, 115, 148] Gain "-1" } Block { BlockType DiscreteStateSpace Name "Oscillator" Position [170, 113, 285, 157] BackgroundColor magenta DropShadow on A "[cos(0.5), sin(0.5); -sin(0.5), cos(0.5)]" B "[1-cos(0.5); sin(0.5)]" C "[1 0]" D "0" X0 "0" SampleTime "h" } Block { BlockType SignalGenerator Name "Square\nwave" Position [20, 118, 65, 152] DropShadow on WaveForm square Amplitude "0.300000" Frequency "1.000000" Units rad/sec } Block { BlockType Outport Name "ys" Position [365, 125, 385, 145] Port "1" OutputWhenDisabled held InitialOutput "0" } Block { BlockType Outport Name "uc" Position [365, 185, 385, 205] Port "2" OutputWhenDisabled held InitialOutput "0" } Line { SrcBlock "Oscillator" SrcPort 1 DstBlock "ys" DstPort 1 } Line { SrcBlock "Square\nwave" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 Points [0, 0] Branch { DstBlock "Oscillator" DstPort 1 } Branch { Points [10, 0; 0, 60] DstBlock "uc" DstPort 1 } } }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?