📄 simrotor3a.mdl
字号:
Model {
Name "simrotor3a"
Version 3.00
SimParamPage "Solver"
SampleTimeColors off
InvariantConstants off
WideVectorLines on
ShowLineWidths off
ShowPortDataTypes off
StartTime "0.0"
StopTime "50"
SolverMode "SingleTasking"
Solver "ode23tb"
RelTol "1e-2"
AbsTol "1e-2"
Refine "1"
MaxStep "auto"
InitialStep "auto"
FixedStep "auto"
MaxOrder 5
OutputOption "RefineOutputTimes"
OutputTimes "[]"
LoadExternalInput off
ExternalInput "[t, u]"
SaveTime on
TimeSaveName "tout"
SaveState off
StateSaveName "xout"
SaveOutput on
OutputSaveName "yout"
LoadInitialState off
InitialState "xInitial"
SaveFinalState off
FinalStateName "xFinal"
SaveFormat "Matrix"
LimitMaxRows off
MaxRows "1000"
Decimation "1"
AlgebraicLoopMsg "warning"
MinStepSizeMsg "warning"
UnconnectedInputMsg "warning"
UnconnectedOutputMsg "warning"
UnconnectedLineMsg "warning"
InheritedTsInSrcMsg "warning"
IntegerOverflowMsg "warning"
UnnecessaryDatatypeConvMsg "none"
Int32ToFloatConvMsg "warning"
SignalLabelMismatchMsg "none"
ConsistencyChecking "off"
ZeroCross on
SimulationMode "normal"
BlockDataTips on
BlockParametersDataTip on
BlockAttributesDataTip off
BlockPortWidthsDataTip off
BlockDescriptionStringDataTip off
BlockMaskParametersDataTip off
ToolBar on
StatusBar on
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
OptimizeBlockIOStorage on
BufferReuse on
BooleanDataType off
RTWSystemTargetFile "grt.tlc"
RTWInlineParameters off
RTWRetainRTWFile off
RTWTemplateMakefile "grt_default_tmf"
RTWMakeCommand "make_rtw"
RTWGenerateCodeOnly off
ExtModeMexFile "ext_comm"
ExtModeBatchMode off
ExtModeTrigType "manual"
ExtModeTrigMode "oneshot"
ExtModeTrigPort "1"
ExtModeTrigElement "any"
ExtModeTrigDuration 1000
ExtModeTrigHoldOff 0
ExtModeTrigDelay 0
ExtModeTrigDirection "rising"
ExtModeTrigLevel 0
ExtModeArchiveMode "off"
ExtModeAutoIncOneShot off
ExtModeIncDirWhenArm off
ExtModeAddSuffixToVar off
ExtModeWriteAllDataToWs off
ExtModeArmWhenConnect off
Created "Fri Jul 30 16:06:42 1999"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Fri Jul 30 16:11:14 1999"
ModelVersionFormat "1.%<AutoIncrement:2>"
ConfigurationManager "none"
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 "simrotor3a"
Location [282, 234, 782, 494]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
ReportName "simulink-default.rpt"
Block {
BlockType SubSystem
Name "Blocksets &\nToolboxes"
Ports [0, 0, 0, 0, 0]
Position [170, 16, 372, 90]
ShowName off
OpenFcn "clf,drawrot simple1 "
FontName "Times New Roman"
FontSize 12
FontAngle "italic"
ShowPortLabels on
MaskDisplay "fprintf(' example for simulating a \\n Speed va"
"rying torsionaly stiff rotor\\n')\n "
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Blocksets &\nToolboxes"
Location [45, 306, 507, 792]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
}
}
Block {
BlockType SubSystem
Name "LTI_rotor_Sfunc"
Ports [2, 1, 0, 0, 0]
Position [175, 108, 335, 177]
BackgroundColor "yellow"
DropShadow on
ShowPortLabels on
MaskDescription "Sfunction accepts a template file + speed"
MaskPromptString "Model Template File"
MaskStyleString "edit"
MaskTunableValueString "on"
MaskEnableString "on"
MaskVisibilityString "on"
MaskVariables "Model=&1;"
MaskInitialization "Rot=rotfe(Model);"
MaskDisplay "disp(Model)"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "simple1s"
System {
Name "LTI_rotor_Sfunc"
Location [148, 236, 412, 335]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "In1"
Position [25, 28, 55, 42]
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Inport
Name "In2"
Position [35, 73, 65, 87]
Port "2"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1, 0, 0, 0]
Position [90, 22, 125, 58]
Inputs "2"
DisplayOption "none"
}
Block {
BlockType "S-Function"
Name "S-Function"
Ports [1, 1, 0, 0, 0]
Position [150, 20, 210, 50]
FunctionName "rotsfuncw"
Parameters "Rot"
PortCounts "[]"
SFunctionModules "''"
}
Block {
BlockType Outport
Name "Out1"
Position [225, 53, 255, 67]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "S-Function"
SrcPort 1
Points [0, 25]
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [5, 0]
DstBlock "S-Function"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
Points [15, 0]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "In2"
SrcPort 1
Points [15, 0; 0, -10; -10, 0]
DstBlock "Mux"
DstPort 2
}
}
}
Block {
BlockType Reference
Name "Ramp in speed"
Ports [0, 1, 0, 0, 0]
Position [30, 40, 60, 70]
SourceBlock "simulink3/Sources/Ramp"
SourceType "Ramp"
slope "30*2*pi/60/10"
start "0"
X0 "0"
Port {
PortNumber 1
Name "W"
TestPoint off
RTWStorageClass "Auto"
}
}
Block {
BlockType Scope
Name "Scope"
Ports [1, 0, 0, 0, 0]
Position [400, 75, 430, 105]
Floating off
Location [44, 30, 584, 340]
Open on
NumInputPorts "1"
TickLabels "on"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "auto"
YMin "-0.075"
YMax "0.075"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "Matrix"
LimitMaxRows on
MaxRows "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType SignalGenerator
Name "Signal\nGenerator"
Position [45, 160, 75, 190]
WaveForm "square"
Amplitude "1"
Frequency ".20"
Units "Hertz"
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [350, 210, 410, 240]
Orientation "down"
NamePlacement "alternate"
VariableName "y"
Buffer "inf"
Decimation "1"
SampleTime "1/50"
SaveFormat "Matrix"
}
Line {
SrcBlock "Signal\nGenerator"
SrcPort 1
Points [80, 0]
DstBlock "LTI_rotor_Sfunc"
DstPort 2
}
Line {
SrcBlock "LTI_rotor_Sfunc"
SrcPort 1
Points [35, 0]
Branch {
Points [10, 0]
DstBlock "Scope"
DstPort 1
}
Branch {
Points [5, 0]
DstBlock "To Workspace"
DstPort 1
}
}
Line {
Name "W"
Labels [0, 0]
SrcBlock "Ramp in speed"
SrcPort 1
Points [0, 20; 95, 0]
DstBlock "LTI_rotor_Sfunc"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -