📄 pwm_igbt.mdl
字号:
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "GAIN3"
Position [500, 102, 545, 128]
Gain "KIP"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "GAIN4"
Position [530, 149, 570, 181]
Gain "KII"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain"
Position [1535, 162, 1560, 188]
ShowName off
Gain "2"
}
Block {
BlockType Gain
Name "Gain1"
Position [1530, 207, 1555, 233]
ShowName off
Gain "2"
}
Block {
BlockType Integrator
Name "Integrator1"
Ports [1, 1]
Position [470, 150, 500, 180]
IgnoreLimit off
}
Block {
BlockType Integrator
Name "Integrator2"
Ports [1, 1]
Position [135, 150, 165, 180]
IgnoreLimit off
}
Block {
BlockType Integrator
Name "Integrator3"
Ports [1, 1]
Position [440, 260, 470, 290]
IgnoreLimit off
}
Block {
BlockType Gain
Name "KVI3"
Position [470, 212, 515, 238]
Gain "KIP"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "KVI4"
Position [500, 259, 540, 291]
Gain "KII"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "LF2407 eZdsp"
Tag "C2000 TARGET PREFERENCES BLOCK"
Ports []
Position [825, 80, 890, 135]
UserDataPersistent on
UserData "DataTag0"
FontName "Arial"
SourceBlock "c2000tgtpreflib/LF2407 eZdsp"
SourceType "c2000 Target Preferences"
ShowPortLabels on
}
Block {
BlockType Reference
Name "Machines\nMeasurement\nDemux"
Ports [1, 5]
Position [1410, 127, 1475, 223]
SourceBlock "powerlib/Machines/Machines\nMeasurement\nDemux"
SourceType "Machine measurements"
ShowPortLabels on
machType "Permanent magnet synchronous"
ssm1 on
ssm2 on
ssm3 on
ssm4 on
ssm5 on
ssm6 on
sm1 on
sm2 on
sm3 on
sm4 on
sm5 on
sm6 on
sm7 on
sm8 on
sm9 on
sm10 on
sm11 on
sm115 off
sm12 off
sm13 off
sm14 off
asm1 on
asm2 on
asm3 on
asm4 on
asm5 on
asm6 on
asm7 on
asm8 on
asm9 on
asm10 on
asm11 on
pmsm1 off
pmsm2 on
pmsm3 on
pmsm4 on
pmsm5 on
pmsm6 on
lastType "4"
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [655, 164, 665, 236]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux1"
Ports [2, 1]
Position [1615, 109, 1620, 196]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux2"
Ports [6, 1]
Position [1065, 202, 1070, 293]
ShowName off
Inputs "6"
DisplayOption "bar"
}
Block {
BlockType Reference
Name "PWM \nIGBT Inverter1"
Ports [1, 0, 0, 0, 0, 3, 2]
Position [1089, 85, 1196, 150]
Orientation "up"
BackgroundColor "lightBlue"
DropShadow on
NamePlacement "alternate"
AttributesFormatString "\\n"
SourceBlock "powerlib/Power\nElectronics/Universal Bridge"
SourceType "Universal Bridge"
ShowPortLabels on
Arms "3"
SnubberResistance "10000"
SnubberCapacitance "inf"
Device "IGBT / Diodes"
Ron "1e-3"
Lon "0"
ForwardVoltages "[ 1.9 2.5 ]"
ForwardVoltage ".8"
GTOparameters "[ 1e-6 ,1e-6 ]"
IGBTparameters "[ 1e-6 , 2e-6 ]"
Measurements "Device currents"
}
Block {
BlockType Reference
Name "Permanent Magnet\nSynchronous Machine"
Ports [1, 1, 0, 0, 0, 3]
Position [1265, 138, 1360, 212]
AttributesFormatString "\\n"
SourceBlock "powerlib/Machines/Permanent Magnet\nSynchronous"
" Machine"
SourceType "Permanent Magnet Synchronous Machine"
ShowPortLabels on
PresetModel "No"
ShowDetailedParameters on
Resistance "2.875"
Inductances "[28.5e-3, 28.5e-3]"
Flux "0.42335"
Mechanical "[ 1.792e-3, 0, 2 ]"
}
Block {
BlockType Constant
Name "Speed Ref"
Position [25, 153, 55, 177]
Value "1000"
}
Block {
BlockType Step
Name "Step"
Position [1235, 106, 1250, 124]
NamePlacement "alternate"
Time "0.04"
Before "3"
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [80, 155, 100, 175]
ShowName off
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [405, 155, 425, 175]
ShowName off
IconShape "round"
Inputs "-+|"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1]
Position [595, 155, 615, 175]
ShowName off
IconShape "round"
Inputs "++|"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum4"
Ports [2, 1]
Position [565, 265, 585, 285]
ShowName off
IconShape "round"
Inputs "++|"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum5"
Ports [2, 1]
Position [365, 265, 385, 285]
ShowName off
IconShape "round"
Inputs "-+|"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum8"
Ports [2, 1]
Position [290, 155, 310, 175]
ShowName off
IconShape "round"
Inputs "++|"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "Vdc"
Description "source block"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [1115, 35, 1150, 55]
Orientation "left"
NamePlacement "alternate"
AttributesFormatString "\\n"
SourceBlock "powerlib/Electrical\nSources/DC Voltage Source"
SourceType "DC Voltage Source"
ShowPortLabels on
Amplitude "325"
Measurements "None"
}
Block {
BlockType Scope
Name "id,q"
Ports [1]
Position [1540, 55, 1570, 85]
BackgroundColor "green"
Location [5, 49, 1029, 743]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "0.06"
YMin "-30"
YMax "35"
DataFormat "Structure"
LimitDataPoints off
}
Block {
BlockType Constant
Name "ioref"
Position [295, 265, 315, 285]
ShowName off
Value "0"
}
Block {
BlockType Scope
Name "scope"
Ports [1]
Position [885, 305, 915, 335]
BackgroundColor "green"
Location [5, 49, 1029, 743]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "0.06"
YMin "-30"
YMax "35"
SaveName "ScopeData2"
DataFormat "Structure"
LimitDataPoints off
}
Block {
BlockType Scope
Name "we (rad/s)"
Ports [1]
Position [1645, 140, 1675, 170]
BackgroundColor "green"
Location [477, 443, 797, 674]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "0.35"
YMin "0"
YMax "700"
SaveName "ScopeData1"
DataFormat "Structure"
LimitDataPoints off
}
Line {
SrcBlock "Permanent Magnet\nSynchronous Machine"
SrcPort 1
DstBlock "Machines\nMeasurement\nDemux"
DstPort 1
}
Line {
SrcBlock "Step"
SrcPort 1
Points [0, 30]
DstBlock "Permanent Magnet\nSynchronous Machine"
DstPort 1
}
Line {
SrcBlock "Machines\nMeasurement\nDemux"
SrcPort 3
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Machines\nMeasurement\nDemux"
SrcPort 4
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -