📄 power_pwm.mdl
字号:
Position [115, 20, 240, 70]
FontName "Arial"
FontSize 14
FunctionName "sfun_spssw_contc"
Parameters "A, B, C, D, x0"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType SubSystem
Name "Yout"
Ports [1]
Position [275, 33, 340, 57]
FontName "Arial"
FontSize 14
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "Yout"
Location [124, 85, 631, 971]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "v,i"
Position [15, 373, 45, 387]
IconDisplay "Port number"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 2]
Position [100, 191, 105, 569]
BackgroundColor "black"
ShowName off
Outputs "[2 1]"
DisplayOption "bar"
}
Block {
BlockType Goto
Name "Goto1"
Position [325, 21, 395, 49]
GotoTag "tp514350"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto2"
Position [325, 66, 395, 94]
GotoTag "tp514223"
TagVisibility "global"
}
Line {
SrcBlock "v,i"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 1
DstBlock "Goto1"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 2
DstBlock "Goto2"
DstPort 1
}
}
}
Line {
SrcBlock "State-Space"
SrcPort 1
DstBlock "Yout"
DstPort 1
}
Line {
SrcBlock "Sources"
SrcPort 1
DstBlock "State-Space"
DstPort 1
}
}
}
Block {
BlockType Ground
Name "Ground"
Position [315, 40, 335, 60]
ShowName off
}
Block {
BlockType Terminator
Name "Terminator"
Position [355, 40, 375, 60]
ShowName off
}
Line {
SrcBlock "Ground"
SrcPort 1
DstBlock "Terminator"
DstPort 1
}
Annotation {
Name "Graphical user interface for the analysis o"
"f SimPowerSystems circuits. \nPlace the Powergui block in the top-level of y"
"our model and double-click\non it to open the GUI."
Position [14, 29]
HorizontalAlignment "left"
ForegroundColor "blue"
UseDisplayTextAsClickCallback off
FontName "Arial"
FontSize 12
}
}
}
Block {
BlockType Gain
Name "pu2radpersec"
Position [570, 298, 600, 322]
Orientation "left"
NamePlacement "alternate"
Gain "2*pi*60"
}
Block {
BlockType Gain
Name "rpm"
Position [560, 113, 590, 137]
Gain "30/pi"
}
Block {
BlockType Reference
Name "vab"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [0, 1, 0, 0, 0, 2]
Position [135, 158, 160, 182]
NamePlacement "alternate"
AttributesFormatString "\\n"
SourceBlock "powerlib/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
ShowPortLabels on
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 [744, 67, 1122, 387]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "0.1"
YMin "-400"
YMax "400"
DataFormat "Structure"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Step
Name "wm* Step\n(p.u.)"
Position [660, 300, 680, 320]
Orientation "left"
Time "0"
SampleTime "0"
Port {
PortNumber 1
Name " "
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Line {
SrcBlock "RelayA"
SrcPort 1
DstBlock "Sum4"
DstPort 1
}
Line {
SrcBlock "RelayC"
SrcPort 1
DstBlock "Sum5"
DstPort 2
}
Line {
SrcBlock "RelayB"
SrcPort 1
Points [0, 0; -30, 0]
Branch {
DstBlock "Sum5"
DstPort 1
}
Branch {
DstBlock "Sum4"
DstPort 2
}
}
Line {
SrcBlock "Demux"
SrcPort 2
DstBlock "RelayB"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 3
DstBlock "RelayC"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 1
DstBlock "RelayA"
DstPort 1
}
Line {
SrcBlock "Sum7"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "pu2radpersec"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Sum6"
SrcPort 1
DstBlock "Trigonometric\nFunction"
DstPort 1
}
Line {
SrcBlock "Trigonometric\nFunction"
SrcPort 1
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
DstBlock "Sum7"
DstPort 1
}
Line {
Name " "
Labels [0, 0]
SrcBlock "wm* Step\n(p.u.)"
SrcPort 1
Points [-20, 0; -20, 0]
Branch {
DstBlock "pu2radpersec"
DstPort 1
}
Branch {
Points [0, 70]
DstBlock "Product1"
DstPort 2
}
}
Line {
SrcBlock "Look-Up\nTable"
SrcPort 1
Points [-75, 0]
DstBlock "Sum7"
DstPort 2
}
Line {
SrcBlock "Clock"
SrcPort 1
Points [35, 0; -65, 0]
Branch {
Points [0, -80]
DstBlock "Product"
DstPort 2
}
Branch {
DstBlock "Math\nFunction"
DstPort 1
}
}
Line {
SrcBlock "Math\nFunction"
SrcPort 1
DstBlock "Look-Up\nTable"
DstPort 1
}
Line {
SrcBlock "Constant1"
SrcPort 1
DstBlock "Math\nFunction"
DstPort 2
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Sum6"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Sum6"
DstPort 2
}
Line {
SrcBlock "Fourier"
SrcPort 1
DstBlock "peak2rms"
DstPort 1
}
Line {
SrcBlock "peak2rms"
SrcPort 1
DstBlock "RMS Vab voltage"
DstPort 1
}
Line {
SrcBlock "Fourier"
SrcPort 2
DstBlock "Terminator"
DstPort 1
}
Line {
Name "<Electromagnetic torque Te (N*m)>"
Labels [-1, 1]
SrcBlock "Bus\nSelector"
SrcPort 4
Points [0, 40]
DstBlock "Te (N.m)"
DstPort 1
}
Line {
SrcBlock "rpm"
SrcPort 1
DstBlock "N (rpm)"
DstPort 1
}
Line {
SrcBlock "Tm"
SrcPort 1
DstBlock "3 HP - 220 V\n60 Hz - 1725 rpm"
DstPort 1
}
Line {
SrcBlock "Sum4"
SrcPort 1
Points [-60, 0]
DstBlock "Vab"
DstPort 1
}
Line {
SrcBlock "Sum5"
SrcPort 1
DstBlock "Vbc"
DstPort 1
}
Line {
LineType "Connection"
SrcBlock "Vbc"
SrcPort LConn1
Points [0, 20; -30, 0; 0, -290]
DstBlock "3 HP - 220 V\n60 Hz - 1725 rpm"
DstPort LConn3
}
Line {
LineType "Connection"
SrcBlock "Vab"
SrcPort RConn1
Points [0, 0; 0, -65]
Branch {
ConnectType "DEST_SRC"
Points [0, -80]
DstBlock "3 HP - 220 V\n60 Hz - 1725 rpm"
DstPort LConn1
}
Branch {
ConnectType "DEST_SRC"
DstBlock "vab"
DstPort LConn1
}
}
Line {
LineType "Connection"
SrcBlock "3 HP - 220 V\n60 Hz - 1725 rpm"
SrcPort LConn2
Points [-235, 0; 0, 65]
Branch {
ConnectType "DEST_SRC"
Points [0, 150]
Branch {
ConnectType "DEST_DEST"
SrcBlock "Vbc"
SrcPort RConn1
Points [0, 0]
}
Branch {
ConnectType "DEST_SRC"
Points [30, 0]
DstBlock "Vab"
DstPort LConn1
}
}
Branch {
ConnectType "DEST_SRC"
DstBlock "vab"
DstPort LConn2
}
}
Line {
SrcBlock "vab"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
DstBlock "vab (V)"
DstPort 1
}
Branch {
DstBlock "Fourier"
DstPort 1
}
}
Line {
Name "<Rotor current ir_a (A)>"
Labels [0, 1]
SrcBlock "Bus\nSelector"
SrcPort 1
DstBlock "ir,is (A)"
DstPort 1
}
Line {
SrcBlock "3 HP - 220 V\n60 Hz - 1725 rpm"
SrcPort 1
DstBlock "Bus\nSelector"
DstPort 1
}
Line {
Name "<Stator current is_a (A)>"
Labels [0, 1]
SrcBlock "Bus\nSelector"
SrcPort 2
DstBlock "ir,is (A)"
DstPort 2
}
Line {
Name "<Rotor speed (wm)>"
Labels [0, 1]
SrcBlock "Bus\nSelector"
SrcPort 3
Points [90, 0]
DstBlock "rpm"
DstPort 1
}
Annotation {
Name "Asynchronous machine fed by PWM inverter"
Position [166, 15]
UseDisplayTextAsClickCallback off
FontSize 14
FontWeight "bold"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -