📄 rec1a.mdl
字号:
BackgroundColor "yellow"
TreatAsAtomicUnit off
MaskDisplay "plot(0,-10,0,10)\nplot([0 20],[0 0])\nplot([20 "
"20],[-3 3])\nplot([20 30 20],[3 0 -3])\nplot([30 50],[0 0])\n"
MaskIconFrame on
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 [170, 200, 573, 371]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "lightBlue"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "120"
Block {
BlockType Inport
Name "vD"
Position [15, 88, 45, 102]
}
Block {
BlockType SubSystem
Name "1/Ron"
Ports [1, 1, 0, 0, 0, 0, 0, 1]
Position [170, 26, 250, 64]
NamePlacement "alternate"
TreatAsAtomicUnit on
System {
Name "1/Ron"
Location [585, 633, 848, 763]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "108"
Block {
BlockType Inport
Name "a"
Position [25, 78, 55, 92]
}
Block {
BlockType ActionPort
Name "Action"
Position [20, 15, 94, 36]
InitializeStates "reset"
ActionType "then"
}
Block {
BlockType Gain
Name "Gon"
Position [90, 70, 130, 100]
Gain "100"
}
Block {
BlockType Outport
Name "b"
Position [175, 78, 205, 92]
OutputWhenDisabled "reset"
InitialOutput "0"
}
Line {
SrcBlock "a"
SrcPort 1
DstBlock "Gon"
DstPort 1
}
Line {
SrcBlock "Gon"
SrcPort 1
DstBlock "b"
DstPort 1
}
}
}
Block {
BlockType If
Name "If"
Ports [1, 1]
Position [75, 77, 150, 113]
IfExpression "u1>=0"
ShowElse off
}
Block {
BlockType Outport
Name "iD"
Position [300, 38, 330, 52]
}
Line {
SrcBlock "vD"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
DstBlock "If"
DstPort 1
}
Branch {
Points [0, -50]
DstBlock "1/Ron"
DstPort 1
}
}
Line {
SrcBlock "1/Ron"
SrcPort 1
DstBlock "iD"
DstPort 1
}
Line {
SrcBlock "If"
SrcPort 1
Points [55, 0]
DstBlock "1/Ron"
DstPort ifaction
}
}
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1]
Position [350, 70, 380, 100]
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [440, 33, 445, 102]
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 "|+-"
}
Block {
BlockType Scope
Name "current"
Ports [2]
Position [470, 196, 515, 269]
NamePlacement "alternate"
Location [583, 400, 1100, 789]
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.012~0.2"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "voltage"
Ports [1]
Position [470, 35, 515, 105]
NamePlacement "alternate"
Location [583, 88, 1106, 343]
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 {
SrcBlock "Integrator"
SrcPort 1
Points [15, 0]
Branch {
Points [0, 70]
Branch {
DstBlock "1/R"
DstPort 1
}
Branch {
Points [0, 40; -280, 0]
DstBlock "Sum"
DstPort 2
}
}
Branch {
DstBlock "Mux"
DstPort 2
}
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "voltage"
DstPort 1
}
Line {
Name "vin"
Labels [0, 1]
SrcBlock "Sine Wave"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "Sum"
DstPort 1
}
Branch {
Labels [-1, 1]
Points [0, -35]
DstBlock "Mux"
DstPort 1
}
}
Line {
Name "iR"
Labels [0, 0]
SrcBlock "1/R"
SrcPort 1
Points [-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 [10, 0]
Branch {
DstBlock "Sum1"
DstPort 1
}
Branch {
Labels [-1, 1]
Points [0, 165]
DstBlock "current"
DstPort 2
}
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "1/C"
DstPort 1
}
Line {
Name "vD"
Labels [0, 0]
SrcBlock "Sum"
SrcPort 1
DstBlock "Diode"
DstPort 1
}
Annotation {
Name "vout"
Position [414, 79]
}
Annotation {
Name "A single-phase rectifier circuit"
Position [115, 263]
ForegroundColor "white"
BackgroundColor "blue"
FontSize 14
FontWeight "bold"
}
Annotation {
Name "iC"
Position [280, 78]
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -