📄 powerwindowlib.mdl
字号:
SourceType "Voltage Measurement"
PSBOutputType "0"
PSBequivalent "0"
}
Block {
BlockType Reference
Name "output Ground1"
Tag "PoWeRsYsTeMbLoCk"
Ports [0, 1]
Position [414, 80, 446, 110]
Orientation "up"
ShowName off
SourceBlock "powerlib2/Connectors/Ground (output)"
SourceType "Ground"
PSBOutputType "1"
}
Block {
BlockType Reference
Name "output Ground3"
Tag "PoWeRsYsTeMbLoCk"
Ports [0, 1]
Position [64, 75, 96, 105]
Orientation "up"
ShowName off
SourceBlock "powerlib2/Connectors/Ground (output)"
SourceType "Ground"
PSBOutputType "1"
}
Block {
BlockType Outport
Name "Ia"
Position [190, 278, 220, 292]
Orientation "left"
ForegroundColor "red"
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Outport
Name "wL"
Position [40, 253, 70, 267]
Orientation "left"
ForegroundColor "red"
Port "2"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "A+"
SrcPort 1
Points [0, 0; 160, 0]
Branch {
DstBlock "DC Machine"
DstPort 2
}
Branch {
Points [-160, 0; 0, -125]
DstBlock "Vd"
DstPort 1
}
}
Line {
SrcBlock "Demux"
SrcPort 4
DstBlock "Terminator3"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 3
DstBlock "Terminator2"
DstPort 1
}
Line {
SrcBlock "DC Machine"
SrcPort 3
Points [10, 0; 0, 105]
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [0, 0; -155, 0]
Branch {
Points [-5, 0]
DstBlock "Sign"
DstPort 1
}
Branch {
DstBlock "wL"
DstPort 1
}
}
Line {
SrcBlock "Sign"
SrcPort 1
DstBlock "Product2"
DstPort 2
}
Line {
SrcBlock "Product2"
SrcPort 1
Points [0, -20]
DstBlock "DC Machine"
DstPort 3
}
Line {
SrcBlock "tL"
SrcPort 1
DstBlock "Product2"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 2
DstBlock "Ia"
DstPort 1
}
Line {
SrcBlock "DC Machine"
SrcPort 1
DstBlock "Ground"
DstPort 1
}
Line {
SrcBlock "Vcc"
SrcPort 1
DstBlock "DC Machine"
DstPort 1
}
Line {
SrcBlock "A-"
SrcPort 1
Points [0, 0; -10, 0]
Branch {
Points [0, -170]
DstBlock "Vd1"
DstPort 1
}
Branch {
DstBlock "L connector"
DstPort 1
}
}
Line {
SrcBlock "DC Machine"
SrcPort 2
Points [65, 0]
DstBlock "L connector"
DstPort enable
}
Line {
SrcBlock "output Ground3"
SrcPort 1
Points [0, -15]
DstBlock "Vd"
DstPort 2
}
Line {
SrcBlock "Vd"
SrcPort 1
DstBlock "A+\nmeasurement"
DstPort 1
}
Line {
SrcBlock "output Ground1"
SrcPort 1
Points [0, -15]
DstBlock "Vd1"
DstPort 2
}
Line {
SrcBlock "Vd1"
SrcPort 1
DstBlock "A-\nmeasurement"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "amplification"
Ports [2, 1]
Position [50, 25, 90, 85]
ForegroundColor "darkGreen"
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "amplification"
Location [545, 58, 985, 300]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "Vcc"
Position [25, 25, 45, 45]
ForegroundColor "orange"
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "on"
Position [50, 48, 80, 62]
ForegroundColor "magenta"
Port "2"
LatchInput off
Interpolate on
}
Block {
BlockType Logic
Name "Logical\nOperator"
Ports [1, 1]
Position [105, 124, 135, 156]
ForegroundColor "magenta"
Operator "NOT"
Inputs "2"
}
Block {
BlockType Terminator
Name "Terminator1"
Position [275, 47, 290, 63]
ForegroundColor "darkGreen"
ShowName off
}
Block {
BlockType Terminator
Name "Terminator2"
Position [280, 132, 295, 148]
ForegroundColor "darkGreen"
ShowName off
}
Block {
BlockType Reference
Name "connector"
Tag "PoWeRsYsTeMbLoCk"
Ports [1, 1, 1]
Position [340, 25, 360, 45]
ForegroundColor "darkGreen"
NamePlacement "alternate"
ShowName off
SourceBlock "powerlib2/Connectors/T connector"
SourceType "Bus Bar"
PSBOutputType "1"
}
Block {
BlockType Reference
Name "output Ground1"
Tag "PoWeRsYsTeMbLoCk"
Ports [0, 1]
Position [134, 185, 166, 215]
Orientation "up"
ForegroundColor "orange"
ShowName off
SourceBlock "powerlib2/Connectors/Ground (output)"
SourceType "Ground"
PSBOutputType "1"
}
Block {
BlockType Reference
Name "up switch"
Tag "PoWeRsYsTeMbLoCk"
Ports [2, 2]
Position [195, 25, 250, 65]
ForegroundColor "darkGreen"
NamePlacement "alternate"
SourceBlock "powerlib2/Power\nElectronics/Ideal Switch"
SourceType "Ideal Switch"
Ron "0.01"
Lon "0"
IC "0"
Rs "1000000"
Cs "inf"
PSBOutputType "10"
}
Block {
BlockType Reference
Name "up switch1"
Tag "PoWeRsYsTeMbLoCk"
Ports [2, 2]
Position [195, 110, 250, 150]
ForegroundColor "darkGreen"
NamePlacement "alternate"
SourceBlock "powerlib2/Power\nElectronics/Ideal Switch"
SourceType "Ideal Switch"
Ron "0.01"
Lon "0"
IC "0"
Rs "1000000"
Cs "inf"
PSBOutputType "10"
}
Block {
BlockType Outport
Name "pin"
Position [395, 25, 415, 45]
ForegroundColor "darkGreen"
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
}
Line {
SrcBlock "Logical\nOperator"
SrcPort 1
DstBlock "up switch1"
DstPort 2
}
Line {
SrcBlock "up switch1"
SrcPort 1
Points [95, 0]
DstBlock "connector"
DstPort enable
}
Line {
SrcBlock "connector"
SrcPort 1
DstBlock "pin"
DstPort 1
}
Line {
SrcBlock "up switch"
SrcPort 1
DstBlock "connector"
DstPort 1
}
Line {
SrcBlock "up switch1"
SrcPort 2
DstBlock "Terminator2"
DstPort 1
}
Line {
SrcBlock "output Ground1"
SrcPort 1
Points [0, -60]
DstBlock "up switch1"
DstPort 1
}
Line {
SrcBlock "up switch"
SrcPort 2
DstBlock "Terminator1"
DstPort 1
}
Line {
SrcBlock "Vcc"
SrcPort 1
DstBlock "up switch"
DstPort 1
}
Line {
SrcBlock "on"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
DstBlock "up switch"
DstPort 2
}
Branch {
DstBlock "Logical\nOperator"
DstPort 1
}
}
}
}
Block {
BlockType SubSystem
Name "measurement\nconditioning"
Ports [1, 2]
Position [55, 192, 95, 228]
ForegroundColor "darkGreen"
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "measurement\nconditioning"
Location [635, 481, 860, 677]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "Vin"
Position [40, 125, 60, 145]
ForegroundColor "darkGreen"
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Reference
Name "R1"
Tag "PoWeRsYsTeMbLoCk"
Ports [1, 1]
Position [90, 120, 140, 150]
ForegroundColor "darkGreen"
NamePlacement "alternate"
SourceBlock "powerlib2/Elements/Series RLC Branch"
SourceType "Series RLC Branch"
a "0.18"
b "0"
c "inf"
mesure "None"
PSBOutputType "1"
}
Block {
BlockType Reference
Name "measure1"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [2, 1]
Position [90, 65, 125, 85]
Orientation "up"
SourceBlock "powerlib2/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
PSBOutputType "0"
PSBequivalent "0"
}
Block {
BlockType Outport
Name "Vmeas"
Position [95, 25, 125, 40]
Orientation "up"
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Outport
Name "Vout"
Position [170, 125, 190, 145]
ForegroundColor "darkGreen"
Port "2"
OutputWhenDisabled "held"
InitialOutput "0"
}
Line {
SrcBlock "measure1"
SrcPort 1
DstBlock "Vmeas"
DstPort 1
}
Line {
SrcBlock "R1"
SrcPort 1
Points [5, 0]
Branch {
Points [0, -35]
DstBlock "measure1"
DstPort 2
}
Branch {
DstBlock "Vout"
DstPort 1
}
}
Line {
SrcBlock "Vin"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "R1"
DstPort 1
}
Branch {
Points [0, -35]
DstBlock "measure1"
DstPort 1
}
}
}
}
Block {
BlockType SubSystem
Name "plant"
Ports [1, 3]
Position [175, 325, 215, 385]
ForegroundColor "red"
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "plant"
Location [194, 486, 542, 709]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "wi"
Position [110, 43, 140, 57]
ForegroundColor "red"
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Demux
Name "Demux1"
Ports [1, 7]
Position [305, 29, 310, 101]
BackgroundColor "black"
ShowName off
Outputs "7"
BusSelectionMode off
}
Block {
BlockType SubSystem
Name "object"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -