📄 lc_ladder.mdl
字号:
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskInitialization "Parent = get_param(gcb,'Parent'); "
" "
" \npss = get_param(Parent,'UserData'); "
" \nif isemp"
"ty(pss) "
" \n A=0;B=0;C=0;D=0;x0=0;Rswi"
"tch=0;TypeSwitch=0;Ts=1;YSwitchCurrent=-1; "
" \nelse "
" "
" \n A=pss.A;B=pss.B;C=pss.C;D=pss.D;x0=pss.x0;Rswitch=pss.Rswitch;TypeS"
"witch=pss.TypeSwitch;Ts=0;YSwitchCurrent=pss.YSwitchCurrent;\nend "
" "
" "
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "source"
Location [451, 556, 1091, 812]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Mux
Name "Mux"
Ports [1, 1]
Position [275, 68, 305, 162]
Inputs "1"
}
Block {
BlockType StateSpace
Name "State-Space"
Position [370, 93, 450, 137]
A "A"
B "B"
C "C"
D "D"
X0 "x0"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType SubSystem
Name "electrical sources"
Ports [0, 1]
Position [50, 102, 75, 128]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "electrical sources"
Location [49, 463, 473, 721]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Mux
Name "Mux"
Ports [1, 1]
Position [170, 96, 175, 184]
Inputs "1"
DisplayOption "bar"
}
Block {
BlockType From
Name "from1"
Position [20, 30, 75, 60]
DialogController "Simulink.DDGSource"
GotoTag "tp224145"
}
Block {
BlockType Outport
Name "Out"
Position [200, 128, 225, 152]
IconDisplay "Port number"
BusOutputAsStruct off
InitialOutput "0"
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Out"
DstPort 1
}
Line {
SrcBlock "from1"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "transit"
Ports [1, 1]
Position [495, 104, 555, 126]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "transit"
Location [234, 403, 674, 843]
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]
InputPortWidth "1"
}
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 [580, 103, 605, 127]
IconDisplay "Port number"
BusOutputAsStruct off
InitialOutput "0"
}
Line {
SrcBlock "State-Space"
SrcPort 1
DstBlock "transit"
DstPort 1
}
Line {
SrcBlock "transit"
SrcPort 1
DstBlock "Out"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "State-Space"
DstPort 1
}
Line {
SrcBlock "electrical sources"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
}
}
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
}
}
}
}
Line {
LineType "Connection"
SrcBlock "\nRs"
SrcPort RConn1
Points [10, 0]
Branch {
ConnectType "DEST_SRC"
DstBlock "C1"
DstPort LConn1
}
Branch {
ConnectType "DEST_SRC"
DstBlock "\nL2"
DstPort LConn1
}
}
Line {
LineType "Connection"
SrcBlock "\nL2"
SrcPort RConn1
Points [0, 0]
Branch {
ConnectType "DEST_SRC"
DstBlock "L3,C3"
DstPort LConn1
}
Branch {
ConnectType "DEST_SRC"
DstBlock "\nL4"
DstPort LConn1
}
}
Line {
LineType "Connection"
SrcBlock "\nL4"
SrcPort RConn1
Points [0, 0]
Branch {
ConnectType "DEST_SRC"
DstBlock "L5,C5"
DstPort LConn1
}
Branch {
ConnectType "DEST_SRC"
DstBlock "\nL6"
DstPort LConn1
}
}
Line {
LineType "Connection"
SrcBlock "\nL6"
SrcPort RConn1
Points [0, 0; 5, 0]
Branch {
ConnectType "DEST_SRC"
DstBlock "L7.C7"
DstPort LConn1
}
Branch {
ConnectType "DEST_SRC"
DstBlock "\nL8"
DstPort LConn1
}
}
Line {
LineType "Connection"
SrcBlock "Controlled Voltage Source"
SrcPort RConn1
DstBlock "\nRs"
DstPort LConn1
}
Line {
LineType "Connection"
SrcBlock "\nL8"
SrcPort RConn1
Points [0, 0; 5, 0]
Branch {
ConnectType "DEST_SRC"
Points [30, 0; 0, 50]
DstBlock "Voltage Measurement"
DstPort LConn1
}
Branch {
ConnectType "DEST_SRC"
DstBlock "L9,C9\n"
DstPort LConn1
}
}
Line {
Name "Response"
SrcBlock "Voltage Measurement"
SrcPort 1
Points [25, 0; 0, 240; -785, 0; 0, -45]
DstBlock "Base Band Transfer Function"
DstPort 2
}
Line {
Name "Excitation"
Labels [3, 1]
SrcBlock "Base Band Transfer Function"
SrcPort 1
Points [20, 0; 0, -45; -255, 0]
Branch {
Points [0, -220]
DstBlock "Controlled Voltage Source"
DstPort 1
}
Branch {
Points [0, 30]
DstBlock "Base Band Transfer Function"
DstPort 1
}
}
Line {
LineType "Connection"
Points [380, 240; -105, 0]
Branch {
ConnectType "SRC_DEST"
Points [435, 240; -55, 0]
Branch {
ConnectType "SRC_DEST"
SrcBlock "G"
SrcPort LConn1
Points [0, 0; 0, -5]
}
Branch {
ConnectType "SRC_DEST"
Points [485, 240; -50, 0]
Branch {
ConnectType "SRC_DEST"
Points [590, 240; -105, 0]
Branch {
ConnectType "SRC_DEST"
Points [695, 240; -105, 0]
Branch {
ConnectType "SRC_DEST"
SrcBlock "L9,C9\n"
SrcPort RConn1
Points [0, 0; 0, 40]
}
Branch {
ConnectType "SRC_SRC"
Points [30, 0; 0, -100]
DstBlock "Voltage Measurement"
DstPort LConn2
}
}
Branch {
ConnectType "SRC_DEST"
SrcBlock "L7.C7"
SrcPort RConn1
Points [0, 0; 0, 30]
}
}
Branch {
ConnectType "SRC_DEST"
SrcBlock "L5,C5"
SrcPort RConn1
Points [0, 0; 0, 30]
}
}
}
Branch {
ConnectType "SRC_DEST"
SrcBlock "L3,C3"
SrcPort RConn1
Points [0, 35]
}
Branch {
ConnectType "DEST_SRC"
Points [-210, 0; 0, -165]
DstBlock "Controlled Voltage Source"
DstPort LConn1
}
Branch {
ConnectType "DEST_DEST"
SrcBlock "C1"
SrcPort RConn1
Points [0, 75]
}
}
Annotation {
Name "Singley Terminated LC Elliptic Low Pass Filter"
Position [409, 23]
FontName "Arial"
FontSize 16
FontWeight "bold"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -