📄 power_pwm.mdl
字号:
BusOutputAsStruct off
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Gain1"
DstPort 1
}
Branch {
Points [0, -60; 190, 0]
DstBlock "Add"
DstPort 1
}
}
Line {
SrcBlock "Gain1"
SrcPort 1
DstBlock "Integrator"
DstPort 1
}
Line {
SrcBlock "Integrator"
SrcPort 1
Points [35, 0]
DstBlock "Add"
DstPort 2
}
Line {
SrcBlock "Add"
SrcPort 1
Points [0, -5]
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [425, 439, 445, 466]
Orientation "left"
NamePlacement "alternate"
ShowName off
CollapseMode "All dimensions"
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [295, 448, 320, 537]
Orientation "left"
NamePlacement "alternate"
ShowName off
CollapseMode "All dimensions"
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [750, 307, 780, 338]
CollapseMode "All dimensions"
InputSameDT off
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product3"
Ports [2, 1]
Position [920, 237, 950, 268]
CollapseMode "All dimensions"
InputSameDT off
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product4"
Ports [2, 1]
Position [750, 477, 780, 508]
CollapseMode "All dimensions"
InputSameDT off
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product5"
Ports [2, 1]
Position [975, 422, 1005, 453]
CollapseMode "All dimensions"
InputSameDT off
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Display
Name "RMS Vab voltage"
Ports [1]
Position [315, 210, 395, 240]
Decimation "100"
Lockdown off
}
Block {
BlockType Relay
Name "RelayA"
Position [165, 440, 195, 460]
Orientation "left"
NamePlacement "alternate"
OnSwitchValue "0"
OffSwitchValue "0"
OnOutputValue "220*sqrt(2/3)"
OffOutputValue "-220*sqrt(2/3)"
}
Block {
BlockType Relay
Name "RelayB"
Position [165, 485, 195, 505]
Orientation "left"
NamePlacement "alternate"
OnSwitchValue "0"
OffSwitchValue "0"
OnOutputValue "220*sqrt(2/3)"
OffOutputValue "-220*sqrt(2/3)"
}
Block {
BlockType Relay
Name "RelayC"
Position [165, 530, 195, 550]
Orientation "left"
NamePlacement "alternate"
OnSwitchValue "0"
OffSwitchValue "0"
OnOutputValue "220*sqrt(2/3)"
OffOutputValue "-220*sqrt(2/3)"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [725, 20, 745, 40]
ShowName off
IconShape "round"
Inputs "|+-"
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [830, 20, 850, 40]
ShowName off
IconShape "round"
Inputs "|+-"
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum10"
Ports [2, 1]
Position [1030, 254, 1055, 376]
ShowName off
Inputs "+-"
CollapseMode "All dimensions"
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [725, 135, 745, 155]
ShowName off
IconShape "round"
Inputs "|+-"
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1]
Position [830, 135, 850, 155]
ShowName off
IconShape "round"
Inputs "|+-"
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum4"
Ports [2, 1]
Position [115, 435, 145, 465]
Orientation "left"
NamePlacement "alternate"
ShowName off
IconShape "round"
Inputs "|+-"
CollapseMode "All dimensions"
}
Block {
BlockType Sum
Name "Sum5"
Ports [2, 1]
Position [115, 525, 145, 555]
Orientation "left"
NamePlacement "alternate"
ShowName off
IconShape "round"
Inputs "+-|"
CollapseMode "All dimensions"
}
Block {
BlockType Sum
Name "Sum6"
Ports [2, 1]
Position [385, 438, 405, 502]
Orientation "left"
ShowName off
CollapseMode "All dimensions"
}
Block {
BlockType Sum
Name "Sum7"
Ports [2, 1]
Position [245, 480, 275, 510]
Orientation "left"
NamePlacement "alternate"
ShowName off
IconShape "round"
Inputs "|+-"
CollapseMode "All dimensions"
}
Block {
BlockType Sum
Name "Sum8"
Ports [3, 1]
Position [820, 315, 840, 335]
ShowName off
IconShape "round"
Inputs "+--"
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum9"
Ports [3, 1]
Position [815, 540, 835, 560]
ShowName off
IconShape "round"
Inputs "++-"
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Terminator
Name "Terminator"
Position [270, 240, 290, 260]
ShowName off
}
Block {
BlockType Constant
Name "Tm"
Position [270, 50, 300, 70]
ShowName off
Value "11.9"
}
Block {
BlockType Trigonometry
Name "Trigonometric\nFunction"
Ports [1, 1]
Position [335, 458, 365, 482]
Orientation "left"
NamePlacement "alternate"
ShowName off
}
Block {
BlockType Reference
Name "Vab"
Description "source block"
Ports [1, 0, 0, 0, 0, 1, 1]
Position [92, 245, 123, 290]
Orientation "up"
AttributesFormatString "\\n"
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Electrical\nSources/Controlled Voltage"
" Source"
SourceType "Controlled Voltage Source"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
Initialize on
Source_Type "AC"
Amplitude "0"
Phase "0"
Frequency "0"
Measurements "None"
}
Block {
BlockType Reference
Name "Vbc"
Description "source block"
Ports [1, 0, 0, 0, 0, 1, 1]
Position [66, 340, 99, 390]
Orientation "up"
AttributesFormatString "\\n"
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Electrical\nSources/Controlled Voltage"
" Source"
SourceType "Controlled Voltage Source"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
Initialize on
Source_Type "AC"
Amplitude "0"
Phase "0"
Frequency "0"
Measurements "None"
}
Block {
BlockType Gain
Name "peak2rms"
Position [255, 213, 285, 237]
NamePlacement "alternate"
Gain "1/(sqrt(2))"
}
Block {
BlockType Reference
Name "powergui"
Ports []
Position [200, 635, 260, 659]
FontSize 11
SourceBlock "powerlib/powergui"
SourceType "PSB option menu block"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
SimulationMode "Continuous"
SampleTime "0"
echomessages off
RestoreLinks "warning"
x0status "blocks"
Frange "[0:2:500]"
Ylog off
Xlog on
ShowGrid off
save off
variable "ZData"
ZoomFFT on
StartTime "0.0"
cycles "1"
DisplayStyle "1"
fundamental "60"
FreqAxis off
MaxFrequency "1000"
frequencyindice "60"
frequencyindicesteady "1"
RmsSteady "1"
display off
Ts "0"
frequency "60"
methode off
HookPort off
Interpol off
}
Block {
BlockType Gain
Name "pu2radpersec"
Position [520, 433, 550, 457]
Orientation "left"
NamePlacement "alternate"
Gain "2*pi*60"
}
Block {
BlockType Reference
Name "vab"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [0, 1, 0, 0, 0, 2]
Position [135, 158, 160, 182]
NamePlacement "alternate"
AttributesFormatString "\\n"
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
PhasorSimulation off
OutputType "Magnitude"
PSBequivalent "0"
}
Block {
BlockType Scope
Name "vab (V)"
Ports [1]
Position [190, 155, 220, 185]
BackgroundColor "green"
NamePlacement "alternate"
Floating off
Location [1, 50, 1153, 839]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -