📄 sysmdl_a.mdl
字号:
Model { Name "sysmdl_a" Version 2.09 SimParamPage Solver SampleTimeColors off InvariantConstants off WideVectorLines off ShowLineWidths off PaperOrientation landscape PaperType usletter PaperUnits inches StartTime "0.0" StopTime "50" Solver ode45 RelTol "1e-3" AbsTol "1e-6" Refine "3" MaxStep ".3" InitialStep "auto" FixedStep "auto" MaxOrder 5 OutputOption SpecifiedOutputTimes OutputTimes "[0:.2:50]" 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 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 "sysmdl_a" Location [308, 459, 726, 669] Open on ScreenColor white Block { BlockType Integrator Name "Displacement" Ports [1, 1, 0, 0, 0] Position [285, 35, 310, 75] ExternalReset none InitialConditionSource internal InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Scope Name "Scope" Ports [1, 0, 0, 0, 0] Position [365, 40, 395, 70] Floating off Location [188, 365, 512, 604] Open off Grid on TickLabels on ZoomMode on TimeRange "auto" YMin "-5" YMax "5" SaveToWorkspace off SaveName "ScopeData" LimitMaxRows on MaxRows "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Sin Name "Sine Wave" Position [35, 23, 65, 47] Amplitude "1" Frequency "1" Phase "0" SampleTime "-1" } Block { BlockType Sum Name "Sum" Ports [3, 1, 0, 0, 0] Position [135, 23, 160, 87] Inputs "+--" } Block { BlockType Integrator Name "Velocity" Ports [1, 1, 0, 0, 0] Position [200, 35, 225, 75] ExternalReset none InitialConditionSource internal InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Gain Name "c/m" Position [190, 107, 230, 153] Orientation left Gain "0.2" MaskIconFrame on MaskIconOpaque on MaskIconRotate none MaskIconUnits autoscale } Block { BlockType Gain Name "k/m" Position [275, 150, 315, 190] Orientation left Gain "0.4" MaskIconFrame on MaskIconOpaque on MaskIconRotate none MaskIconUnits autoscale } Line { SrcBlock "k/m" SrcPort 1 Points [-185, 0; 0, -115] DstBlock "Sum" DstPort 2 } Line { SrcBlock "c/m" SrcPort 1 Points [-75, 0; 0, -55] DstBlock "Sum" DstPort 3 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Velocity" DstPort 1 } Line { SrcBlock "Velocity" SrcPort 1 Points [20, 0] Branch { DstBlock "Displacement" DstPort 1 } Branch { Points [0, 75] DstBlock "c/m" DstPort 1 } } Line { SrcBlock "Sine Wave" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Displacement" SrcPort 1 Points [25, 0] Branch { Points [0, 115] DstBlock "k/m" DstPort 1 } Branch { DstBlock "Scope" DstPort 1 } } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -