📄 zz1.mdl
字号:
ShowName off
Inputs "2"
}
Block {
BlockType Outport
Name "Isq*"
Position [275, 53, 305, 67]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Fcn"
SrcPort 1
DstBlock "Isq*"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Fcn"
DstPort 1
}
Line {
SrcBlock "frd*"
SrcPort 1
Points [5, 0; 0, -10]
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Te*"
SrcPort 1
Points [5, 0; 0, 10]
DstBlock "Mux"
DstPort 1
}
}
}
Block {
BlockType Product
Name "Prouct"
Ports [2, 1]
Position [342, 460, 373, 490]
Orientation "up"
ShowName off
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType SubSystem
Name "Pulses Geneartor"
Ports [2, 1]
Position [715, 159, 765, 226]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskPromptString "K|T"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskToolTipString "on,on"
MaskVarAliasString ","
MaskVariables "K=@1;T=@2;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "115|0.005"
MaskTabNameString ","
System {
Name "Pulses Geneartor"
Location [2, 82, 1270, 960]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "125"
Block {
BlockType Inport
Name "iabc"
Position [60, 83, 90, 97]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "iabc*"
Position [60, 248, 90, 262]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 3]
Position [160, 58, 165, 122]
BackgroundColor "black"
ShowName off
Outputs "3"
DisplayOption "bar"
}
Block {
BlockType Demux
Name "Demux1"
Ports [1, 3]
Position [160, 220, 165, 290]
BackgroundColor "black"
ShowName off
Outputs "3"
DisplayOption "bar"
}
Block {
BlockType Demux
Name "Demux2"
Ports [1, 6]
Position [820, 349, 835, 446]
BackgroundColor "black"
ShowName off
Outputs "6"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [810, 119, 815, 201]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux1"
Ports [3, 1]
Position [1000, 349, 1005, 431]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Reference
Name "PWM Generator"
Ports [1, 1]
Position [690, 370, 755, 430]
SourceBlock "powerlib_extras/Control \nBlocks/PWM Genera"
"tor"
SourceType "PWM Generator"
ShowPortLabels on
GeneratorMode "Double 3-arm bridges (12 pulses)"
Fc "1080"
Internal on
mIndex "0.8"
Freq "50"
Phase "0"
}
Block {
BlockType Relay
Name "Relay4"
Position [395, 145, 425, 175]
OnSwitchValue "0.01"
OffSwitchValue "-0.01"
OffOutputValue "-1"
}
Block {
BlockType Relay
Name "Relay5"
Position [400, 235, 430, 265]
OnSwitchValue "0.01"
OffSwitchValue "-0.01"
OffOutputValue "-1"
}
Block {
BlockType Relay
Name "Relay6"
Position [390, 65, 420, 95]
OnSwitchValue "0.01"
OffSwitchValue "-0.01"
OffOutputValue "-1"
}
Block {
BlockType Saturate
Name "Saturation2"
Position [535, 410, 565, 440]
UpperLimit "300"
LowerLimit "-300"
}
Block {
BlockType Scope
Name "Scope"
Ports [2]
Position [315, 396, 340, 509]
Location [1, 52, 1281, 993]
Open off
NumInputPorts "2"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
YMin "-22.5~-3500"
YMax "22.5~4000"
SaveName "ScopeData2"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [255, 63, 275, 92]
ShowName off
Inputs "-+"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [260, 143, 280, 172]
ShowName off
Inputs "-+"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [260, 233, 280, 262]
ShowName off
Inputs "-+"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType TransferFcn
Name "Transfer Fcn2"
Position [420, 407, 480, 443]
Numerator "[K]"
Denominator "[T 1]"
}
Block {
BlockType Outport
Name "pulses"
Position [1045, 153, 1075, 167]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "iabc"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "iabc*"
SrcPort 1
DstBlock "Demux1"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "Sum"
DstPort 1
}
Branch {
Points [0, 355]
DstBlock "Scope"
DstPort 1
}
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Relay6"
DstPort 1
}
Line {
SrcBlock "Demux1"
SrcPort 1
Points [10, 0]
Branch {
Points [25, 0; 0, -145]
DstBlock "Sum"
DstPort 2
}
Branch {
Points [0, 250]
DstBlock "Scope"
DstPort 2
}
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Relay4"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 2
Points [50, 0; 0, 60]
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Demux1"
SrcPort 2
Points [50, 0; 0, -90]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Demux"
SrcPort 3
Points [75, 0]
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Demux1"
SrcPort 3
Points [75, 0]
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "Relay5"
DstPort 1
}
Line {
SrcBlock "Transfer Fcn2"
SrcPort 1
DstBlock "Saturation2"
DstPort 1
}
Line {
SrcBlock "PWM Generator"
SrcPort 1
DstBlock "Demux2"
DstPort 1
}
Line {
SrcBlock "Demux2"
SrcPort 1
Points [100, 0; 0, 5]
DstBlock "Mux1"
DstPort 1
}
Line {
SrcBlock "Demux2"
SrcPort 3
DstBlock "Mux1"
DstPort 2
}
Line {
SrcBlock "Demux2"
SrcPort 5
Points [100, 0; 0, -5]
DstBlock "Mux1"
DstPort 3
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "pulses"
DstPort 1
}
Line {
SrcBlock "Relay6"
SrcPort 1
Points [370, 0]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Relay4"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Relay5"
SrcPort 1
Points [360, 0]
DstBlock "Mux"
DstPort 3
}
}
}
Block {
BlockType Scope
Name "Scope"
Ports [4]
Position [1215, 285, 1255, 470]
Location [5, 56, 1285, 997]
Open off
NumInputPorts "4"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
}
YMin "-25~-9000~-3500~9"
YMax "30~2000~3500~21"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Scope
Name "Scope1"
Ports [4]
Position [1160, 15, 1200, 200]
Location [5, 56, 1285, 997]
Open off
NumInputPorts "4"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
}
YMin "-500~-1~-1~-1"
YMax "500~1~1~1"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [350, 315, 370, 335]
ShowName off
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Step
Name "TL"
Position [905, 420, 935, 450]
FontSize 12
Time "0"
After "10"
SampleTime "0"
}
Block {
BlockType SubSystem
Name "abc/ab"
Ports [1, 2]
Position [1000, 563, 1050, 612]
Orientation "left"
FontSize 12
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "abc/ab"
Location [2, 82, 1270, 977]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "195"
Block {
BlockType Inport
Name "Iabc"
Position [35, 73, 65, 87]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Fcn
Name "Fcn"
Position [125, 31, 405, 59]
NamePlacement "alternate"
ShowName off
Expr "u[1]-0.5*u[2]-0.5*u[3]"
}
Block {
BlockType Fcn
Name "Fcn1"
Position [120, 101, 440, 129]
NamePlacement "alternate"
ShowName off
Expr "(3^0.5)*u[2]/2-(3^0.5)*u[3]/2"
}
Block {
BlockType Gain
Name "Gain1"
Position [460, 95, 520, 135]
ShowName off
Gain "(2/3)^0.5"
}
Block {
BlockType Gain
Name "Gain2"
Position [460, 21, 520, 69]
ShowName off
Gain "(2/3)^0.5"
}
Block {
BlockType Outport
Name "Ia"
Position [540, 38, 570, 52]
IconD
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -