📄 mophong_inverted_pendulum_cfile_p_vitri.mdl
字号:
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "125"
ReportName "simulink-default.rpt"
Block {
BlockType Demux
Name "Demux"
Ports [1, 2]
Position [445, 111, 450, 149]
BackgroundColor "black"
ShowName off
Outputs "2"
}
Block {
BlockType SubSystem
Name "DocBlock"
Ports []
Position [67, 35, 145, 77]
ForegroundColor "red"
ShowName off
List {
ListType RTWdata
document_text01 "Type your documentation here."
}
CopyFcn "docblock('breaklink',gcb);"
DeleteFcn "docblock('close_document',gcb);"
PreSaveFcn "docblock('save_document',gcb);"
OpenFcn "plot_data"
TreatAsAtomicUnit off
MaskType "DocBlock"
MaskDescription "Use this block to save long descriptive text wi"
"th the model. Double-clicking the block will open an editor."
MaskPromptString "E Coder Flag|Document Type"
MaskStyleString "edit,popup(Text|RTF|HTML)"
MaskTunableValueString "off,off"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,off"
MaskToolTipString "on,on"
MaskVarAliasString ","
MaskVariables "ECoderFlag=&1;DocumentType=&2;"
MaskDisplay "plot([.8 0 0 1 1 .8 .8 1],[1 1 0 0 .8 1 .8 .8])"
";\ntext(.5,.5,'Nhan nut de ve','horizontalalignment','center');\n"
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "|Text"
System {
Name "DocBlock"
Location [480, 85, 980, 386]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType SubSystem
Name "EmptySubsystem"
Ports []
Position [115, 50, 145, 80]
TreatAsAtomicUnit off
System {
Name "EmptySubsystem"
Location [146, 180, 902, 673]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
}
}
}
}
Block {
BlockType "S-Function"
Name "Inverted Pendulum \nS-Function C File"
Ports [1, 1]
Position [295, 110, 415, 150]
FunctionName "Pendulum_Sfunc_C"
Parameters "a,b,c,d,x0"
MaskPromptString "A|B|C|D|Initialize Condition"
MaskStyleString "edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on"
MaskCallbackString "||||"
MaskEnableString "on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on"
MaskToolTipString "on,on,on,on,on"
MaskVarAliasString ",,,,"
MaskVariables "a=@1;b=@2;c=@3;d=@4;x0=@5;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "[0,1,0,0;20.6,0,0,0;0,0,0,1;-0.4905,0,0,0]|[0;-"
"1;0;0.5]|[ 1 0 0 0;0 0 1 0]|0|0"
}
Block {
BlockType Gain
Name "Kp"
Position [215, 115, 245, 145]
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [510, 198, 515, 247]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Scope
Name "Scope"
Ports [2]
Position [545, 111, 580, 149]
Location [260, 398, 584, 637]
Open off
NumInputPorts "2"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
}
YMin "0~-5"
YMax "5~5"
SaveToWorkspace on
SaveName "y"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [305, 49, 335, 81]
Location [188, 365, 512, 604]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope2"
Ports [1]
Position [545, 206, 580, 244]
Location [260, 398, 584, 637]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
SaveToWorkspace on
SaveName "y1"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Step
Name "Step"
Position [65, 115, 95, 145]
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [160, 120, 180, 140]
ShowName off
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Line {
SrcBlock "Inverted Pendulum \nS-Function C File"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 1
DstBlock "Scope"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 2
Points [0, 0; 20, 0]
Branch {
DstBlock "Scope"
DstPort 2
}
Branch {
Points [0, 70]
Branch {
Points [-305, 0]
DstBlock "Sum"
DstPort 2
}
Branch {
DstBlock "Mux"
DstPort 1
}
}
}
Line {
SrcBlock "Step"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
DstBlock "Sum"
DstPort 1
}
Branch {
Points [0, 105]
DstBlock "Mux"
DstPort 2
}
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Kp"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Scope2"
DstPort 1
}
Line {
SrcBlock "Kp"
SrcPort 1
Points [10, 0; 25, 0]
Branch {
Points [-15, 0; 0, -65]
DstBlock "Scope1"
DstPort 1
}
Branch {
DstBlock "Inverted Pendulum \nS-Function C File"
DstPort 1
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -