📄 shiyan.mdl
字号:
Position [1110, 437, 1140, 468]
ShowName off
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Rad2Deg"
Position [695, 590, 725, 620]
Orientation "left"
Gain "180/pi"
}
Block {
BlockType RealImagToComplex
Name "Real-Imag to\nComplex"
Ports [2, 1]
Position [1180, 293, 1210, 322]
}
Block {
BlockType Relay
Name "Relay"
Position [265, 370, 295, 400]
OnSwitchValue "0.01"
OffSwitchValue "-0.01"
OffOutputValue "2"
}
Block {
BlockType Gain
Name "Rs"
Position [855, 215, 885, 245]
Gain "2.875"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Rs1"
Position [885, 335, 915, 365]
Gain "2.875"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Step
Name "Step"
Position [25, 200, 55, 230]
Time "0.1"
Before "1"
SampleTime "0"
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [3, 1]
Position [330, 277, 380, 363]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "Subsystem"
Location [421, 99, 1090, 679]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "H Phi"
Position [25, 83, 55, 97]
NamePlacement "alternate"
FontSize 12
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "H Te"
Position [30, 28, 60, 42]
NamePlacement "alternate"
FontSize 12
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Sector"
Position [25, 128, 55, 142]
FontSize 12
Port "3"
IconDisplay "Port number"
}
Block {
BlockType Constant
Name "Constant1"
Position [205, 145, 220, 165]
ShowName off
FontSize 12
}
Block {
BlockType Lookup2D
Name "Flux = -1"
Position [100, 157, 155, 208]
FontSize 12
RowIndex "[1;2;3]"
ColumnIndex "[1;2;3;4;5;6]"
OutputValues "[3 4 5 6 1 2;7 0 7 0 7 0;5 6 1 2 3 4]"
InputSameDT off
}
Block {
BlockType Lookup2D
Name "Flux = 1"
Position [100, 97, 155, 148]
NamePlacement "alternate"
FontSize 12
RowIndex "[1;2;3]"
ColumnIndex "[1;2;3;4;5;6]"
OutputValues "[2 3 4 5 6 1;0 7 0 7 0 7;6 1 2 3 4 5]"
InputSameDT off
}
Block {
BlockType MultiPortSwitch
Name "Multiport\nSwitch1"
Ports [3, 1]
Position [170, 34, 190, 216]
ShowName off
FontSize 12
Inputs "2"
InputSameDT off
}
Block {
BlockType MultiPortSwitch
Name "Multiport\nSwitch2"
Ports [9, 1]
Position [405, 94, 435, 476]
ShowName off
FontSize 12
Inputs "8"
InputSameDT off
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [220, 110, 250, 140]
ShowName off
FontSize 12
IconShape "round"
Inputs "|++"
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Constant
Name "v0"
Position [240, 153, 350, 177]
FontSize 12
Value "[0 1 0 1 0 1]"
}
Block {
BlockType Constant
Name "v1"
Position [245, 194, 355, 216]
FontSize 12
Value "[1 0 0 1 0 1]"
}
Block {
BlockType Constant
Name "v2"
Position [245, 233, 355, 257]
FontSize 12
Value "[1 0 1 0 0 1]"
}
Block {
BlockType Constant
Name "v3"
Position [235, 273, 345, 297]
FontSize 12
Value "[0 1 1 0 0 1]"
}
Block {
BlockType Constant
Name "v4"
Position [245, 313, 355, 337]
FontSize 12
Value "[0 1 1 0 1 0]"
}
Block {
BlockType Constant
Name "v5"
Position [245, 353, 355, 377]
FontSize 12
Value "[0 1 0 1 1 0]"
}
Block {
BlockType Constant
Name "v6"
Position [245, 394, 355, 416]
FontSize 12
Value "[1 0 0 1 1 0]"
}
Block {
BlockType Constant
Name "v7"
Position [245, 433, 355, 457]
FontSize 12
Value "[1 0 1 0 1 0]"
}
Block {
BlockType Outport
Name "Gates"
Position [585, 298, 615, 312]
FontSize 12
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Multiport\nSwitch2"
SrcPort 1
Points [100, 0; 0, 20]
DstBlock "Gates"
DstPort 1
}
Line {
SrcBlock "v5"
SrcPort 1
DstBlock "Multiport\nSwitch2"
DstPort 7
}
Line {
SrcBlock "v3"
SrcPort 1
DstBlock "Multiport\nSwitch2"
DstPort 5
}
Line {
SrcBlock "v6"
SrcPort 1
DstBlock "Multiport\nSwitch2"
DstPort 8
}
Line {
SrcBlock "v2"
SrcPort 1
DstBlock "Multiport\nSwitch2"
DstPort 4
}
Line {
SrcBlock "Multiport\nSwitch1"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Multiport\nSwitch2"
DstPort 1
}
Line {
SrcBlock "Constant1"
SrcPort 1
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Flux = -1"
SrcPort 1
DstBlock "Multiport\nSwitch1"
DstPort 3
}
Line {
SrcBlock "Flux = 1"
SrcPort 1
DstBlock "Multiport\nSwitch1"
DstPort 2
}
Line {
SrcBlock "H Phi"
SrcPort 1
Points [0, -25]
DstBlock "Multiport\nSwitch1"
DstPort 1
}
Line {
SrcBlock "Sector"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Flux = 1"
DstPort 2
}
Branch {
Points [0, 60]
DstBlock "Flux = -1"
DstPort 2
}
}
Line {
SrcBlock "v7"
SrcPort 1
DstBlock "Multiport\nSwitch2"
DstPort 9
}
Line {
SrcBlock "v4"
SrcPort 1
DstBlock "Multiport\nSwitch2"
DstPort 6
}
Line {
SrcBlock "v1"
SrcPort 1
DstBlock "Multiport\nSwitch2"
DstPort 3
}
Line {
SrcBlock "v0"
SrcPort 1
DstBlock "Multiport\nSwitch2"
DstPort 2
}
Line {
SrcBlock "H Te"
SrcPort 1
Points [0, 75; 15, 0]
Branch {
DstBlock "Flux = 1"
DstPort 1
}
Branch {
Points [0, 60]
DstBlock "Flux = -1"
DstPort 1
}
}
}
}
Block {
BlockType SubSystem
Name "Subsystem1"
Ports [2, 1]
Position [225, 290, 265, 350]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "Subsystem1"
Location [117, 97, 672, 305]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "Torque*"
Position [25, 43, 55, 57]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Torque"
Position [25, 83, 55, 97]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Relay
Name "-dTe/2"
Position [185, 90, 215, 120]
OnSwitchValue "0"
OffSwitchValue "-1"
OnOutputValue "0"
OffOutputValue "3"
}
Block {
BlockType DataTypeConversion
Name "Data Type Conversion5"
Position [345, 141, 380, 169]
NamePlacement "alternate"
ShowName off
}
Block {
BlockType Gain
Name "Gain1"
Position [400, 140, 420, 170]
ShowName off
Gain "2"
}
Block {
BlockType Logic
Name "Logical\nOperator"
Ports [2, 1]
Position [295, 137, 325, 168]
ShowName off
Operator "NOR"
AllPortsSameDT off
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [125, 45, 145, 65]
ShowName off
IconShape "round"
Inputs "|+-"
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum2"
Ports [3, 1]
Position [450, 27, 465, 183]
ShowName off
Inputs "+++"
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Relay
Name "dTe/2"
Position [185, 40, 215, 70]
OnSwitchValue "1"
OffSwitchValue "0"
}
Block {
BlockType Outport
Name "H_Te"
Position [500, 98, 530, 112]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Data Type Conversion5"
SrcPort 1
DstBlock "Gain1"
DstPort 1
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "H_Te"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
DstBlock "Sum2"
DstPort 3
}
Line {
SrcBlock "Logical\nOperator"
SrcPort 1
DstBlock "Data Type Conversion5"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [10, 0]
Branch {
Points [0, 50]
DstBlock "-dTe/2"
DstPort 1
}
Branch {
DstBlock "dTe/2"
DstPort 1
}
}
Line {
SrcBlock "dTe/2"
SrcPort 1
Points [45, 0]
Branch {
DstBlock "Sum2"
DstPort 1
}
Branch {
Points [0, 90]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -