📄 vectorcontrolpmsm.mdl
字号:
Block {
BlockType Memory
Name "Memory2"
Position [750, 395, 780, 425]
Orientation "left"
NamePlacement "alternate"
}
Block {
BlockType Memory
Name "Memory3"
Position [855, 435, 885, 465]
Orientation "left"
NamePlacement "alternate"
}
Block {
BlockType Gain
Name "Pm"
Position [920, 210, 940, 230]
NamePlacement "alternate"
Gain "4"
}
Block {
BlockType Scope
Name "Scope1"
Ports [2]
Position [665, 488, 705, 532]
Orientation "left"
BackgroundColor "green"
NamePlacement "alternate"
Location [73, 136, 509, 626]
Open off
NumInputPorts "2"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
}
YMin "0~-0.2"
YMax "9~0.6"
SaveName "ScopeData13"
DataFormat "StructureWithTime"
MaxDataPoints "5000000"
}
Block {
BlockType Scope
Name "Scope2"
Ports [3]
Position [970, 170, 995, 270]
BackgroundColor "green"
Location [176, 50, 861, 645]
Open on
NumInputPorts "3"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
axes3 ""
}
TimeRange "0.1"
YMin "-10~175~-1"
YMax "12.5~450~12"
DataFormat "StructureWithTime"
MaxDataPoints "5000000"
}
Block {
BlockType Step
Name "Step"
Position [185, 415, 215, 445]
Time "0.05"
Before "400"
After "200"
SampleTime "0"
}
Block {
BlockType Step
Name "Step1"
Position [610, 225, 640, 255]
Time "0.05"
Before "1"
After "3"
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [250, 425, 270, 445]
ShowName off
Inputs "+-"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [340, 385, 360, 405]
ShowName off
Inputs "+-"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [355, 430, 375, 450]
ShowName off
Inputs "+-"
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1]
Position [555, 406, 575, 439]
Orientation "left"
ShowName off
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Constant
Name "Tpwm"
Position [465, 430, 495, 460]
FontName "Arial"
FontSize 12
Value "Tpwm"
}
Block {
BlockType Reference
Name "Universal Bridge"
Tag "PoWeRsYsTeMbLoCk"
Ports [3, 3]
Position [490, 150, 545, 240]
SourceBlock "powerlib2/Power\nElectronics/Universal Bridge"
SourceType "Universal Bridge"
arms "3"
confi "ABC as output terminals"
injcc "1e5"
cf "inf"
device "IGBT / Diodes"
Ron "1e-3"
Lon "0"
VFs "[ 0 0 ]"
Vf "0"
gtoparameters "[ 10e-6 , 20e-6 ]"
igbtparameters "[ 1e-6 , 2e-6 ]"
mesure "UAB UBC UCA UDC voltages"
PSBOutputType "111"
}
Block {
BlockType Constant
Name "Vdc"
Position [465, 485, 495, 515]
FontName "Arial"
FontSize 12
Value "150"
}
Block {
BlockType SubSystem
Name "dq-ab"
Ports [3, 2]
Position [475, 315, 515, 375]
TreatAsAtomicUnit off
System {
Name "dq-ab"
Location [283, 339, 731, 588]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "d"
Position [85, 28, 115, 42]
}
Block {
BlockType Inport
Name "q"
Position [85, 63, 115, 77]
Port "2"
}
Block {
BlockType Inport
Name "Teta"
Position [25, 123, 55, 137]
Port "3"
}
Block {
BlockType Fcn
Name "Fcn"
Position [85, 96, 115, 114]
ShowName off
Expr "sin(u)"
}
Block {
BlockType Fcn
Name "Fcn1"
Position [85, 129, 115, 151]
ShowName off
Expr "cos(u)"
}
Block {
BlockType Mux
Name "Mux"
Ports [4, 1]
Position [175, 30, 180, 150]
ShowName off
}
Block {
BlockType Mux
Name "Mux1"
Ports [2, 1]
Position [305, 126, 310, 164]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Scope
Name "Scope5"
Ports [1]
Position [340, 129, 370, 161]
BackgroundColor "green"
Location [184, 216, 620, 706]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "0.1"
YMin "-200"
YMax "200"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
MaxDataPoints "5000000"
}
Block {
BlockType Fcn
Name "ia"
Position [215, 55, 240, 75]
NamePlacement "alternate"
Expr "u(1)*u(4)-u(2)*u(3)"
}
Block {
BlockType Fcn
Name "ib"
Position [215, 86, 240, 104]
Expr "u(1)*u(3)+u(2)*u(4)"
}
Block {
BlockType Outport
Name "a"
Position [295, 58, 325, 72]
InitialOutput "0"
}
Block {
BlockType Outport
Name "b"
Position [300, 88, 330, 102]
Port "2"
InitialOutput "0"
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
Points [0, 5]
DstBlock "ib"
DstPort 1
}
Branch {
Points [0, -25]
DstBlock "ia"
DstPort 1
}
}
Line {
SrcBlock "Teta"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
Points [0, 0]
DstBlock "Fcn"
DstPort 1
}
Branch {
DstBlock "Fcn1"
DstPort 1
}
}
Line {
SrcBlock "d"
SrcPort 1
Points [20, 0; 0, 10]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "q"
SrcPort 1
Points [20, 0; 0, 5]
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Fcn"
SrcPort 1
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "Fcn1"
SrcPort 1
Points [20, 0; 0, -5]
DstBlock "Mux"
DstPort 4
}
Line {
SrcBlock "ia"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "a"
DstPort 1
}
Branch {
Points [0, 90]
DstBlock "Mux1"
DstPort 2
}
}
Line {
SrcBlock "ib"
SrcPort 1
Points [30, 0]
Branch {
DstBlock "b"
DstPort 1
}
Branch {
Points [0, 40]
DstBlock "Mux1"
DstPort 1
}
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "Scope5"
DstPort 1
}
}
}
Block {
BlockType Constant
Name "id"
Position [265, 379, 290, 401]
Value "0"
}
Block {
BlockType Reference
Name "powergui"
Ports []
Position [185, 276, 286, 325]
DropShadow on
ShowName off
FontSize 12
SourceBlock "powerlib2/powergui"
SourceType "PSB option menu block"
Frange "[0:2:500]"
Ylog off
Xlog off
save off
variable "ZData"
structure "Data2"
ZoomFFT off
StartTime "0"
cycles "0.06"
DisplayStyle "3"
fundamental "50"
FreqAxis on
MaxFrequency "2500"
frequencyindice "1"
frequencyindicesteady "0"
RmsSteady "2"
display off
Ts "1e-6"
methode off
frequency "60"
echomessages off
}
Block {
BlockType SubSystem
Name "pulse"
Ports [4, 1]
Position [575, 320, 615, 385]
TreatAsAtomicUnit off
System {
Name "pulse"
Location [0, 74, 1012, 728]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "alpha"
Position [30, 90, 50, 110]
}
Block {
BlockType Inport
Name "beta"
Position [30, 130, 50, 150]
Port "2"
}
Block {
BlockType Inport
Name "T"
Position [25, 200, 45, 220]
Port "3"
}
Block {
BlockType Inport
Name "Vdc"
Position [25, 245, 45, 265]
Port "4"
}
Block {
BlockType Constant
Name "Constant1"
Position [545, 325, 590, 355]
Value "Tpwm/4"
}
Block {
BlockType Constant
Name "Constant2"
Position [550, 460, 595, 490]
Value "Tpwm/4"
}
Block {
BlockType Constant
Name "Constant3"
Position [545, 180, 590, 210]
Value "Tpwm/4"
}
Block {
BlockType Constant
Name "Constant5"
Position [1210, 20, 1240, 50]
}
Block {
BlockType Gain
Name "Gain1"
Position [670, 411, 740, 449]
Gain "4/Tpwm"
}
Block {
BlockType Gain
Name "Gain3"
Position [665, 136, 735, 174]
Gain "4/Tpwm"
}
Block {
BlockType Gain
Name "Gain5"
Position [665, 276, 735, 314]
Gain "4/Tpwm"
}
Block {
BlockType Logic
Name "Logical\nOperator1"
Ports [1, 1]
Position [1300, 79, 1330, 111]
Operator "NOT"
Inputs "1"
AllPortsSameDT off
}
Block {
BlockType Logic
Name "Logical\nOperator2"
Ports [1, 1]
Position [1300, 189, 1330, 221]
Operator "NOT"
Inputs "1"
AllPortsSameDT off
}
Block {
BlockType Logic
Name "Logical\nOperator3"
Ports [1, 1]
Position [1300, 299, 1330, 331]
Operator "NOT"
Inputs "1"
AllPortsSameDT off
}
Block {
BlockType Logic
Name "Logical\nOperator4"
Ports [2, 1]
Position [1300, 26, 1330, 59]
AllPortsSameDT off
}
Block {
BlockType Logic
Name "Logical\nOperator5"
Ports [2, 1]
Position [1300, 136, 1330, 169]
AllPortsSameDT off
}
Block {
BlockType Logic
Name "Logical\nOperator6"
Ports [2, 1]
Position [1290, 246, 1320, 279]
AllPortsSameDT off
}
Block {
BlockType MultiPortSwitch
Name "Multiport\nSwitch"
Ports [7, 1]
Position [465, 97, 495, 203]
Inputs "6"
}
Block {
BlockType MultiPortSwitch
Name "Multiport\nSwitch1"
Ports [7, 1]
Position [465, 239, 495, 351]
Inputs "6"
}
Block {
BlockType MultiPortSwitch
Name "Multiport\nSwitch2"
Ports [7, 1]
Position [465, 379, 495, 481]
Inputs "6"
}
Block {
BlockType Mux
Name "Mux"
Ports [6, 1]
Position [1420, 23, 1425, 342]
ShowName off
Inputs "6"
DisplayOption "bar"
}
Block {
BlockType Scope
Name "Scope2"
Ports [1]
Position [1180, 38, 1220, 92]
Location [5, 53, 1029, 741]
Open off
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -