📄 khoudiriaek.mdl
字号:
Ports [2, 1]
Position [170, 280, 190, 300]
Inputs "+-"
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1]
Position [175, 415, 195, 435]
Inputs "+-"
}
Block {
BlockType Sum
Name "Sum4"
Ports [2, 1]
Position [175, 490, 195, 510]
Inputs "+-"
}
Block {
BlockType Sum
Name "Sum5"
Ports [2, 1]
Position [170, 570, 190, 590]
Inputs "+-"
}
Block {
BlockType SubSystem
Name "porteuse1"
Ports [0, 1]
Position [75, 62, 110, 98]
ShowPortLabels off
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskType "Repeating table"
MaskDescription "Repeating table.\nEnter values of time "
"and output for first cycle."
MaskHelp "Repeats cycle given in table. Time valu"
"es should be monotonically increasing."
MaskPromptString "Time values:|Output values:"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskToolTipString "on,on"
MaskVarAliasString ","
MaskInitialization "period = max(@1); t = @1; y = @2;"
MaskDisplay "plot([t,t+period,t+2*period],[y,y,y])"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "[0 4.7619e-4 9.5238e-4]|[-1 1 -1]"
MaskTabNameString ","
System {
Name "porteuse1"
Location [5, 42, 315, 182]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Clock
Name "Clock"
Position [45, 60, 65, 80]
Decimation "10"
}
Block {
BlockType Fcn
Name "Fcn1"
Position [110, 60, 150, 80]
Expr "rem(u[1],period)"
}
Block {
BlockType Lookup
Name "Look-Up Table"
Position [210, 58, 250, 82]
InputValues "t"
OutputValues "y"
}
Block {
BlockType Outport
Name "out_1"
Position [285, 60, 305, 80]
IconDisplay "Port number"
InitialOutput "0"
}
Line {
SrcBlock "Fcn1"
SrcPort 1
DstBlock "Look-Up Table"
DstPort 1
}
Line {
SrcBlock "Clock"
SrcPort 1
DstBlock "Fcn1"
DstPort 1
}
Line {
SrcBlock "Look-Up Table"
SrcPort 1
DstBlock "out_1"
DstPort 1
}
}
}
Block {
BlockType Outport
Name "f1"
Position [335, 125, 355, 145]
IconDisplay "Port number"
InitialOutput "0"
}
Block {
BlockType Outport
Name "f2"
Position [360, 200, 380, 220]
Port "2"
IconDisplay "Port number"
InitialOutput "0"
}
Block {
BlockType Outport
Name "f3"
Position [345, 280, 365, 300]
Port "3"
IconDisplay "Port number"
InitialOutput "0"
}
Block {
BlockType Outport
Name "f4"
Position [335, 420, 355, 440]
Port "4"
IconDisplay "Port number"
InitialOutput "0"
}
Block {
BlockType Outport
Name "f5"
Position [360, 490, 380, 510]
Port "5"
IconDisplay "Port number"
InitialOutput "0"
}
Block {
BlockType Outport
Name "f6"
Position [345, 570, 365, 590]
Port "6"
IconDisplay "Port number"
InitialOutput "0"
}
Line {
SrcBlock "Relay2"
SrcPort 1
DstBlock "f3"
DstPort 1
}
Line {
SrcBlock "e1\n"
SrcPort 1
Points [70, 0]
Branch {
DstBlock "Sum"
DstPort 1
}
Branch {
Points [0, -30]
DstBlock "Mux"
DstPort 2
}
}
Line {
SrcBlock "Relay1"
SrcPort 1
DstBlock "f2"
DstPort 1
}
Line {
SrcBlock "e3"
SrcPort 1
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Relay"
SrcPort 1
DstBlock "f1"
DstPort 1
}
Line {
SrcBlock "e2"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Relay"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Relay1"
DstPort 1
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "Relay2"
DstPort 1
}
Line {
SrcBlock "porteuse1"
SrcPort 1
Points [20, 0; 0, 10]
Branch {
Points [0, 50]
Branch {
Points [0, 75]
Branch {
DstBlock "Sum1"
DstPort 2
}
Branch {
Points [0, 80]
Branch {
DstBlock "Sum2"
DstPort 2
}
Branch {
Points [0, 135]
Branch {
Points [0, 75]
Branch {
Points [0, 80]
DstBlock "Sum5"
DstPort 2
}
Branch {
DstBlock "Sum4"
DstPort 2
}
}
Branch {
DstBlock "Sum3"
DstPort 2
}
}
}
}
Branch {
DstBlock "Sum"
DstPort 2
}
}
Branch {
Points [0, -5]
DstBlock "Mux"
DstPort 1
}
}
Line {
SrcBlock "Relay5"
SrcPort 1
DstBlock "f6"
DstPort 1
}
Line {
SrcBlock "e4\n"
SrcPort 1
DstBlock "Sum3"
DstPort 1
}
Line {
SrcBlock "Relay4"
SrcPort 1
DstBlock "f5"
DstPort 1
}
Line {
SrcBlock "e6"
SrcPort 1
DstBlock "Sum5"
DstPort 1
}
Line {
SrcBlock "Relay3"
SrcPort 1
DstBlock "f4"
DstPort 1
}
Line {
SrcBlock "e5"
SrcPort 1
DstBlock "Sum4"
DstPort 1
}
Line {
SrcBlock "Sum3"
SrcPort 1
Points [30, 0]
DstBlock "Relay3"
DstPort 1
}
Line {
SrcBlock "Sum4"
SrcPort 1
DstBlock "Relay4"
DstPort 1
}
Line {
SrcBlock "Sum5"
SrcPort 1
DstBlock "Relay5"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [15, 0; 0, -15]
DstBlock "Scope"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "ond"
Ports [7, 6]
Position [170, 29, 235, 221]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "ond"
Location [-8, 148, 407, 615]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "va10"
Position [35, 25, 55, 45]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "vb10"
Position [35, 95, 55, 115]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "vc10"
Position [35, 165, 55, 185]
Port "3"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "va20"
Position [35, 230, 55, 250]
Port "4"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "vb20"
Position [35, 300, 55, 320]
Port "5"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "vc20"
Position [35, 370, 55, 390]
Port "6"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "v0"
Position [25, 420, 45, 440]
Port "7"
IconDisplay "Port number"
}
Block {
BlockType Fcn
Name "Fcn"
Position [210, 40, 335, 60]
Expr "(2*u(1)-u(2)-u(3))*u(4)/3"
}
Block {
BlockType Fcn
Name "Fcn1"
Position [210, 100, 335, 120]
Expr "(-u(1)+2*u(2)-u(3))*u(4)/3"
}
Block {
BlockType Fcn
Name "Fcn2"
Position [210, 160, 335, 180]
Expr "(-u(1)-u(2)+2*u(3))*u(4)/3"
}
Block {
BlockType Fcn
Name "Fcn3"
Position [210, 250, 335, 270]
Expr "(2*u(1)-u(2)-u(3))*u(4)/3"
}
Block {
BlockType Fcn
Name "Fcn4"
Position [210, 310, 335, 330]
Expr "(-u(1)+2*u(2)-u(3))*u(4)/3"
}
Block {
BlockType Fcn
Name "Fcn5"
Position [210, 370, 335, 390]
Expr "(-u(1)-u(2)+2*u(3))*u(4)/3"
}
Block {
BlockType Mux
Name "mux1"
Ports [4, 1]
Position [155, 237, 185, 283]
ShowName off
}
Block {
BlockType Mux
Name "mux2"
Ports [4, 1]
Position [155, 297, 185, 343]
ShowName off
}
Block {
BlockType Mux
Name "mux3"
Ports [4, 1]
Position [155, 27, 185, 73]
ShowName off
}
Block {
BlockType Mux
Name "mux4"
Ports [4, 1]
Position [155, 87, 185, 133]
ShowName off
}
Block {
BlockType Mux
Name "mux5"
Ports [4, 1]
Position [155, 147, 185, 193]
ShowName off
}
Block {
BlockType Mux
Name "mux6"
Ports [4, 1]
Position [155, 357, 185, 403]
ShowName off
}
Block {
BlockType Outport
Name "vsa1"
Position [370, 40, 390, 60]
IconDisplay "Port number"
}
Block {
BlockType Outport
Name "vsb1"
Position [370, 100, 390, 120]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Outport
Name "vsc1"
Position [370, 160, 390, 180]
Port "3"
IconDisplay "Port number"
}
Block {
BlockType Outport
Name "vsa2"
Position [370, 245, 390, 265]
Port "4"
IconDisplay "Port number"
}
Block {
BlockType Outport
Name "vsb2"
Position [370, 305, 390, 325]
Port "5"
IconDisplay "Port number"
}
Block {
BlockType Outport
Name "vsc2"
Position [370, 365, 390, 385]
Port "6"
IconDisplay "Port number"
}
Line {
SrcBlock "Fcn2"
SrcPort 1
DstBlock "vsc1"
DstPort 1
}
Line {
SrcBlock "Fcn1"
SrcPort 1
DstBlock "vsb1"
DstPort 1
}
Line {
SrcBlock "Fcn"
SrcPort 1
DstBlock "vsa1"
DstPort 1
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -