📄 mfc_mod.mdl
字号:
BlockType Sum
Name "Sum"
Ports [2, 1, 0, 0, 0]
Position [30, 180, 50, 200]
Orientation "up"
NamePlacement "alternate"
ShowName off
IconShape "round"
Inputs "|+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType SubSystem
Name "commands"
Ports [0, 1, 0, 0, 0]
Position [405, 171, 495, 209]
Orientation "left"
DropShadow on
ShowName off
ShowPortLabels on
MaskDisplay "disp('COMMANDS')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "commands"
Location [369, 195, 642, 455]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Outport
Name "YR"
Position [25, 125, 45, 145]
Orientation "left"
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
}
}
Block {
BlockType SubSystem
Name "controller"
Ports [2, 2, 0, 0, 0]
Position [150, 147, 260, 203]
Orientation "left"
BackgroundColor "yellow"
ShowName off
FontSize 14
FontWeight "bold"
ShowPortLabels on
MaskDisplay "disp('CONTROLLER')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "controller"
Location [387, 322, 622, 442]
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 [40, 18, 70, 32]
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Inport
Name "In2"
Position [40, 58, 70, 72]
Port "2"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Outport
Name "Out1"
Position [130, 18, 160, 32]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Outport
Name "Out2"
Position [130, 58, 160, 72]
Port "2"
OutputWhenDisabled "held"
InitialOutput "[]"
}
}
}
Block {
BlockType SubSystem
Name "matrix"
Ports [1, 1, 0, 0, 0]
Position [150, 213, 260, 247]
Orientation "left"
ShowName off
FontSize 14
FontWeight "bold"
ShowPortLabels on
MaskDisplay "disp('Kpf')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "matrix"
Location [452, 365, 613, 445]
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 Outport
Name "Out1"
Position [90, 28, 120, 42]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
}
}
Block {
BlockType SubSystem
Name "outputs"
Ports [2, 0, 0, 0, 0]
Position [405, 101, 495, 139]
DropShadow on
ShowName off
ShowPortLabels off
MaskDisplay "disp('OUTPUTS')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "outputs"
Location [315, 256, 632, 452]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "Y"
Position [25, 100, 45, 120]
Port "1"
PortWidth "-1"
SampleTime "0"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Inport
Name "YR"
Position [25, 145, 45, 165]
Port "2"
PortWidth "-1"
SampleTime "0"
DataType "auto"
SignalType "auto"
Interpolate on
}
}
}
Block {
BlockType Scope
Name "u"
Ports [1, 0, 0, 0, 0]
Position [240, 20, 270, 50]
Orientation "up"
ShowName off
Floating off
Location [188, 235, 512, 474]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "auto"
YMin "-5"
YMax "5"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitMaxRows on
MaxRows "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Scope
Name "x"
Ports [1, 0, 0, 0, 0]
Position [275, 20, 305, 50]
Orientation "up"
ShowName off
Floating off
Location [188, 365, 512, 604]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "auto"
YMin "-5"
YMax "5"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitMaxRows on
MaxRows "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Scope
Name "y"
Ports [1, 0, 0, 0, 0]
Position [310, 20, 340, 50]
Orientation "up"
ShowName off
Floating off
Location [188, 365, 512, 604]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "auto"
YMin "-5"
YMax "5"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitMaxRows on
MaxRows "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Line {
SrcBlock "matrix"
SrcPort 1
Points [-105, 0]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "SubSystem"
SrcPort 1
Points [25, 0]
DstBlock "x"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [0, -75]
Branch {
DstBlock "SubSystem"
DstPort 1
}
Branch {
Points [0, -35]
DstBlock "u"
DstPort 1
}
}
Line {
SrcBlock "SubSystem"
SrcPort 2
Points [60, 0]
Branch {
DstBlock "outputs"
DstPort 1
}
Branch {
DstBlock "y"
DstPort 1
}
Branch {
Points [0, 50]
DstBlock "controller"
DstPort 1
}
}
Line {
SrcBlock "commands"
SrcPort 1
Points [-30, 0]
Branch {
Points [0, 40]
DstBlock "matrix"
DstPort 1
}
Branch {
DstBlock "controller"
DstPort 2
}
}
Line {
SrcBlock "controller"
SrcPort 2
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "controller"
SrcPort 1
Points [-55, 0; 0, -30]
DstBlock "outputs"
DstPort 2
}
Annotation {
Position [52, 102]
VerticalAlignment "top"
ForegroundColor "red"
Text "U"
FontSize 12
FontWeight "bold"
}
Annotation {
Position [312, 92]
VerticalAlignment "top"
ForegroundColor "red"
Text "Y"
FontSize 12
FontWeight "bold"
}
Annotation {
Position [352, 197]
VerticalAlignment "top"
ForegroundColor "red"
Text "YR"
FontSize 12
FontWeight "bold"
}
Annotation {
Position [277, 67]
VerticalAlignment "top"
ForegroundColor "red"
Text "X"
FontSize 12
FontWeight "bold"
}
Annotation {
Position [112, 137]
VerticalAlignment "top"
ForegroundColor "red"
Text "Ym"
FontSize 12
FontWeight "bold"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -