📄 pwr_amp_1.mdl
字号:
InitialOutput "0"
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Out"
DstPort 1
}
Line {
SrcBlock "From1"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "From2"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
}
}
Block {
BlockType SubSystem
Name "gotos"
Ports [1]
Position [395, 98, 440, 132]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "gotos"
Location [193, 281, 559, 488]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In"
Position [15, 90, 35, 110]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 2]
Position [100, 82, 135, 118]
Outputs "[2 2]"
}
Block {
BlockType Goto
Name "Goto1"
Position [220, 30, 275, 60]
DialogController "Simulink.DDGSource"
GotoTag "tp390682"
TagVisibility "global"
}
Block {
BlockType Goto
Name "Goto2"
Position [220, 65, 275, 95]
DialogController "Simulink.DDGSource"
GotoTag "tp390684"
TagVisibility "global"
}
Block {
BlockType Selector
Name "Selector"
Ports [1, 1]
Position [55, 72, 75, 128]
Elements "[1 3 2 4]"
InputPortWidth "4"
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "Selector"
DstPort 1
}
Line {
SrcBlock "Selector"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 1
DstBlock "Goto1"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 2
DstBlock "Goto2"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "model"
Ports [2, 3]
Position [250, 22, 315, 68]
BackgroundColor "lightBlue"
DropShadow on
SourceBlock "powerlib_models/Continuous/ideal_sw"
"itch"
SourceType "Switch logic model"
ShowPortLabels on
Nsw "2"
Rsw "[0.1 0.1]"
}
Block {
BlockType Outport
Name "Out1"
Position [395, 18, 420, 42]
IconDisplay "Port number"
BusOutputAsStruct off
InitialOutput "0"
}
Block {
BlockType Outport
Name "Out2"
Position [395, 58, 420, 82]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
InitialOutput "0"
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "Selector"
DstPort 1
}
Line {
SrcBlock "Selector"
SrcPort 1
DstBlock "model"
DstPort 1
}
Line {
SrcBlock "model"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "model"
SrcPort 2
DstBlock "Out2"
DstPort 1
}
Line {
SrcBlock "model"
SrcPort 3
DstBlock "gotos"
DstPort 1
}
Line {
SrcBlock "froms"
SrcPort 1
DstBlock "model"
DstPort 2
}
}
}
Block {
BlockType SubSystem
Name "transit"
Ports [1, 1]
Position [520, 106, 575, 144]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "transit"
Location [475, 381, 915, 821]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In"
Position [30, 150, 50, 170]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 1]
Position [145, 62, 180, 258]
Outputs "1"
}
Block {
BlockType Selector
Name "Selector"
Ports [1, 1]
Position [75, 145, 105, 175]
Elements "3"
InputPortWidth "3"
}
Block {
BlockType Outport
Name "Out"
Position [150, 15, 170, 35]
Orientation "left"
IconDisplay "Port number"
BusOutputAsStruct off
InitialOutput "0"
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "Selector"
DstPort 1
}
Line {
SrcBlock "Selector"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 1
DstBlock "Out"
DstPort 1
}
}
}
Block {
BlockType Outport
Name "Out"
Position [595, 113, 620, 137]
IconDisplay "Port number"
BusOutputAsStruct off
InitialOutput "0"
}
Line {
SrcBlock "transit"
SrcPort 1
DstBlock "Out"
DstPort 1
}
Line {
SrcBlock "State-Space"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "transit"
DstPort 1
}
Branch {
DstBlock "ideal_switch"
DstPort 1
}
}
Line {
SrcBlock "MasterMux"
SrcPort 1
DstBlock "State-Space"
DstPort 1
}
Line {
SrcBlock "MuxSwitch"
SrcPort 1
Points [15, 0; 0, -35]
DstBlock "MasterMux"
DstPort 2
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "MasterMux"
DstPort 1
}
Line {
SrcBlock "ideal_switch"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "ideal_switch"
SrcPort 2
DstBlock "MuxSwitch"
DstPort 1
}
Line {
SrcBlock "electrical sources"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
}
}
Block {
BlockType PMIOPort
Name "+"
Position [15, 28, 45, 42]
Port "1"
Side "Left"
}
Block {
BlockType PMIOPort
Name "-"
Position [190, 24, 215, 46]
Orientation "left"
Port "2"
Side "Left"
}
Block {
BlockType Outport
Name "v"
Position [405, 139, 425, 161]
FontSize 16
IconDisplay "Port number"
BusOutputAsStruct off
InitialOutput "0"
}
Line {
LineType "Connection"
SrcBlock "-"
SrcPort RConn1
Points [0, 0]
DstBlock "VoltageMeasurement"
DstPort RConn1
}
Line {
LineType "Connection"
SrcBlock "+"
SrcPort RConn1
Points [0, 0]
DstBlock "VoltageMeasurement"
DstPort LConn1
}
Line {
SrcBlock "Simulation method"
SrcPort 1
DstBlock "Phasor Measurements"
DstPort enable
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Selector"
DstPort 1
}
Line {
SrcBlock "Phasor Measurements"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Selector"
SrcPort 1
DstBlock "v"
DstPort 1
}
Line {
SrcBlock "source"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
DstBlock "Phasor Measurements"
DstPort 1
}
Branch {
Points [0, 30]
DstBlock "Mux"
DstPort 2
}
}
}
}
Block {
BlockType Reference
Name "sw1"
Ports [2, 1]
Position [205, 137, 235, 173]
SourceBlock "simulink/Signal\nRouting/Manual Switch"
SourceType "Manual Switch"
ShowPortLabels on
sw "0"
action "0"
}
Line {
SrcBlock "1 MHz"
SrcPort 1
Points [15, 0; 0, 30]
DstBlock "Variable Duration One Shot"
DstPort 1
}
Line {
Name "pulse duration drive signal"
SrcBlock "Loop Compensator"
SrcPort 1
Points [-105, 0]
Branch {
Points [0, -95]
DstBlock "sw1"
DstPort 2
}
Branch {
Labels [1, 0]
Points [0, 95; 635, 0; 0, -75]
DstBlock "Scope1"
DstPort 3
}
}
Line {
Name "Error"
Labels [0, 0]
SrcBlock "Sum"
SrcPort 1
Points [-30, 0]
Branch {
Labels [2, 0]
Points [0, 85; 370, 0; 0, -75]
DstBlock "Scope1"
DstPort 2
}
Branch {
DstBlock "Loop Compensator"
DstPort 1
}
}
Line {
Name "ton"
Labels [0, 0]
SrcBlock "G"
SrcPort 1
DstBlock "Variable Duration One Shot"
DstPort 2
}
Line {
SrcBlock "Sat"
SrcPort 1
DstBlock "G"
DstPort 1
}
Line {
Name "Vout"
Labels [0, 0]
SrcBlock "Vmeas"
SrcPort 1
Points [10, 0; 0, 135]
Branch {
DstBlock "Scope1"
DstPort 1
}
Branch {
Labels [1, 0]
Points [-335, 0]
Branch {
DstBlock "Sum"
DstPort 1
}
Branch {
Points [0, 35]
DstBlock "Signal Spectrum"
DstPort 1
}
}
}
Line {
SrcBlock "Variable Duration One Shot"
SrcPort 1
Points [35, 0; 0, -90]
DstBlock "Ideal Switch"
DstPort 1
}
Line {
LineType "Connection"
SrcBlock "DC Voltage Source
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -