📄 simrotor1.mdl
字号:
Model {
Name "simrotor1"
Version 3.00
SimParamPage "Solver"
SampleTimeColors off
InvariantConstants off
WideVectorLines on
ShowLineWidths off
ShowPortDataTypes off
StartTime "0.0"
StopTime "10.0"
SolverMode "SingleTasking"
Solver "ode23tb"
RelTol "1e-1"
AbsTol "1e-1"
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 15:46:00 1999"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Fri Jul 30 16:02:07 1999"
ModelVersionFormat "1.%<AutoIncrement:3>"
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 "simrotor1"
Location [101, 80, 738, 406]
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 Demux
Name "Demux"
Ports [1, 2, 0, 0, 0]
Position [455, 197, 490, 233]
Outputs "2"
}
Block {
BlockType SubSystem
Name "LTI_rotor"
Description "Rotor Linear Model"
Ports [1, 1, 0, 0, 0]
Position [145, 16, 415, 74]
ForegroundColor "red"
BackgroundColor "blue"
DropShadow on
ShowPortLabels on
MaskPromptString "Model Template|Speed of Rotation [RPM]"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskVariables "ModelName=&1;W=@2;"
MaskInitialization "Rot=rotfe(ModelName); [ar,br,cr,dr]=rot2ss(Rot,"
"W*2*pi/60);"
MaskDisplay "disp(ModelName)"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "simple2s|2500"
System {
Name "LTI_rotor"
Location [249, 256, 569, 348]
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, 53, 55, 67]
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType StateSpace
Name "State-Space"
Position [125, 28, 185, 62]
A "full(ar)"
B "full(br)"
C "full(cr)"
D "full(dr)"
X0 "0"
}
Block {
BlockType Outport
Name "Out1"
Position [265, 53, 295, 67]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "In1"
SrcPort 1
Points [45, 0; 0, -15]
DstBlock "State-Space"
DstPort 1
}
Line {
SrcBlock "State-Space"
SrcPort 1
Points [0, -20; 60, 0]
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1, 0, 0, 0]
Position [65, 207, 100, 243]
Inputs "2"
DisplayOption "none"
}
Block {
BlockType Sin
Name "Sine Wave"
Position [15, 235, 45, 265]
Amplitude "1000"
Frequency "1"
Phase "0"
SampleTime "0"
}
Block {
BlockType Sin
Name "Sine Wave1"
Position [15, 155, 45, 185]
Amplitude "1000"
Frequency "1"
Phase "pi/2"
SampleTime "0"
}
Block {
BlockType Reference
Name "XY Graph"
Ports [2, 0, 0, 0, 0]
Position [535, 207, 565, 238]
SourceBlock "simulink3/Sinks/XY Graph"
SourceType "XY scope."
xmin "-1"
xmax "1"
ymin "-1"
ymax "1"
st "-1"
}
Line {
SrcBlock "LTI_rotor"
SrcPort 1
Points [20, 0]
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [25, 0]
DstBlock "XY Graph"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 2
Points [25, 0]
DstBlock "XY Graph"
DstPort 2
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [0, -180]
DstBlock "LTI_rotor"
DstPort 1
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Sine Wave1"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -