📄 rec1.mdl
字号:
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
Port {
PortNumber 1
Name "iD"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
System {
Name "Diode"
Location [622, 551, 955, 764]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "115"
Block {
BlockType Inport
Name "vD"
Position [20, 23, 50, 37]
}
Block {
BlockType Gain
Name "1/Roff"
Position [100, 124, 150, 156]
Gain "1e-7"
}
Block {
BlockType Gain
Name "1/Ron"
Position [105, 15, 145, 45]
Gain "100"
}
Block {
BlockType Ground
Name "Ground"
Position [35, 75, 55, 95]
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator"
Position [110, 62, 140, 93]
}
Block {
BlockType Switch
Name "select"
Position [175, 46, 215, 114]
Threshold "0.5"
}
Block {
BlockType Outport
Name "iD"
Position [245, 73, 275, 87]
}
Line {
SrcBlock "Ground"
SrcPort 1
DstBlock "Relational\nOperator"
DstPort 2
}
Line {
SrcBlock "Relational\nOperator"
SrcPort 1
DstBlock "select"
DstPort 2
}
Line {
SrcBlock "1/Ron"
SrcPort 1
Points [10, 0]
DstBlock "select"
DstPort 1
}
Line {
SrcBlock "1/Roff"
SrcPort 1
Points [5, 0]
DstBlock "select"
DstPort 3
}
Line {
SrcBlock "select"
SrcPort 1
DstBlock "iD"
DstPort 1
}
Line {
SrcBlock "vD"
SrcPort 1
Points [30, 0]
Branch {
DstBlock "1/Ron"
DstPort 1
}
Branch {
Points [0, 40]
Branch {
DstBlock "Relational\nOperator"
DstPort 1
}
Branch {
DstBlock "1/Roff"
DstPort 1
}
}
}
}
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1]
Position [350, 70, 380, 100]
Port {
PortNumber 1
Name "vout"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [440, 24, 445, 111]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Sin
Name "Sine Wave"
Position [35, 70, 65, 100]
NamePlacement "alternate"
SineType "Time based"
Amplitude "24"
Frequency "2*pi*60"
SampleTime "0"
Port {
PortNumber 1
Name "vin"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [110, 75, 130, 95]
ShowName off
IconShape "round"
Inputs "|+-"
Port {
PortNumber 1
Name "vD"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [250, 75, 270, 95]
ShowName off
IconShape "round"
Inputs "|+-"
Port {
PortNumber 1
Name "iC"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Scope
Name "current"
Ports [2]
Position [470, 196, 515, 269]
NamePlacement "alternate"
Location [615, 133, 1132, 790]
Open on
NumInputPorts "2"
List {
ListType AxesTitles
axes1 "iR"
axes2 "diode current"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
}
TimeRange "0.05"
YMin "0~0"
YMax "0.0025~0.2"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "voltage"
Ports [1]
Position [470, 30, 515, 100]
NamePlacement "alternate"
Location [84, 135, 607, 420]
Open on
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "vin&vout"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "0.05"
YMin "-30"
YMax "30"
DataFormat "StructureWithTime"
}
Line {
SrcBlock "1/C"
SrcPort 1
DstBlock "Integrator"
DstPort 1
}
Line {
Name "vout"
SrcBlock "Integrator"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
Labels [-1, 1]
DstBlock "Mux"
DstPort 2
}
Branch {
Points [0, 70]
Branch {
DstBlock "1/R"
DstPort 1
}
Branch {
Points [0, 35; -285, 0]
DstBlock "Sum"
DstPort 2
}
}
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "voltage"
DstPort 1
}
Line {
Name "vin"
Labels [0, 1]
SrcBlock "Sine Wave"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
DstBlock "Sum"
DstPort 1
}
Branch {
Labels [-1, 1]
Points [0, -40]
DstBlock "Mux"
DstPort 1
}
}
Line {
Name "vD"
Labels [1, 0]
SrcBlock "Sum"
SrcPort 1
DstBlock "Diode"
DstPort 1
}
Line {
Name "iR"
Labels [0, 0]
SrcBlock "1/R"
SrcPort 1
Points [0, 0; -30, 0]
Branch {
DstBlock "Sum1"
DstPort 2
}
Branch {
Labels [-1, 1]
Points [0, 60]
DstBlock "current"
DstPort 1
}
}
Line {
Name "iD"
Labels [0, 1]
SrcBlock "Diode"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
DstBlock "Sum1"
DstPort 1
}
Branch {
Labels [-1, 1]
Points [0, 165]
DstBlock "current"
DstPort 2
}
}
Line {
Name "iC"
Labels [1, 0]
SrcBlock "Sum1"
SrcPort 1
DstBlock "1/C"
DstPort 1
}
Annotation {
Name "A single-phase rectifier circuit"
Position [115, 263]
ForegroundColor "white"
BackgroundColor "blue"
FontSize 14
FontWeight "bold"
}
Annotation {
Name "filter"
Position [310, 58]
ForegroundColor "orange"
}
Annotation {
Name "load"
Position [311, 128]
ForegroundColor "orange"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -