📄 diode_3.mdl
字号:
SignalType "auto"
SamplingMode "auto"
Interpolate on
}
Block {
BlockType Integrator
ExternalReset "none"
InitialConditionSource "internal"
InitialCondition "0"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
IgnoreLimit off
ZeroCross on
}
Block {
BlockType Logic
Operator "AND"
Inputs "2"
AllPortsSameDT on
OutDataTypeMode "Logical (see Configuration Parameters: Optimiza"
"tion)"
LogicDataType "uint(8)"
SampleTime "-1"
}
Block {
BlockType Mux
Inputs "4"
DisplayOption "none"
BusObject "BusObject"
NonVirtualBus off
}
Block {
BlockType Outport
Port "1"
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType PMComponent
SubClassName "unknown"
}
Block {
BlockType PMIOPort
}
Block {
BlockType RelationalOperator
Operator ">="
InputSameDT on
LogicOutDataTypeMode "Logical (see Configuration Parameters: Optimiza"
"tion)"
LogicDataType "uint(8)"
ZeroCross on
SampleTime "-1"
}
Block {
BlockType Saturate
UpperLimit "0.5"
LowerLimit "-0.5"
LinearizeAsGain on
ZeroCross on
SampleTime "-1"
}
Block {
BlockType Scope
Floating off
ModelBased off
TickLabels "OneTimeTick"
ZoomMode "on"
Grid "on"
TimeRange "auto"
YMin "-5"
YMax "5"
SaveToWorkspace off
SaveName "ScopeData"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Selector
InputType "Vector"
IndexMode "One-based"
ElementSrc "Internal"
Elements "1"
RowSrc "Internal"
Rows "1"
ColumnSrc "Internal"
Columns "1"
InputPortWidth "-1"
IndexIsStartValue off
OutputPortSize "1"
}
Block {
BlockType "S-Function"
FunctionName "system"
SFunctionModules "''"
PortCounts "[]"
}
Block {
BlockType Sin
SineType "Time based"
TimeSource "Use simulation time"
Amplitude "1"
Bias "0"
Frequency "1"
Phase "0"
Samples "10"
Offset "0"
SampleTime "-1"
VectorParams1D on
}
Block {
BlockType SubSystem
ShowPortLabels on
Permissions "ReadWrite"
PermitHierarchicalResolution "All"
SystemSampleTime "-1"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType Sum
IconShape "rectangular"
Inputs "++"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Switch
Criteria "u2 >= Threshold"
Threshold "0"
InputSameDT on
OutDataTypeMode "Inherit via internal rule"
RndMeth "Floor"
SaturateOnIntegerOverflow on
ZeroCross on
SampleTime "-1"
}
Block {
BlockType Terminator
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "diode_3"
Location [52, 107, 804, 489]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType BusCreator
Name "Bus\nCreator"
Ports [2, 1]
Position [650, 96, 655, 134]
ShowName off
DialogController "Simulink.DDGSource_Bus"
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Reference
Name "Ground"
Ports [0, 0, 0, 0, 0, 1]
Position [154, 305, 176, 330]
Orientation "down"
AttributesFormatString "\\n"
SourceBlock "powerlib/Elements/Ground"
SourceType "Ground"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "a"
}
Block {
BlockType SubSystem
Name "Non Stock Diode"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [360, 146, 405, 184]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskPromptString "Saturation Current"
MaskStyleString "edit"
MaskTunableValueString "on"
MaskEnableString "on"
MaskVisibilityString "on"
MaskToolTipString "on"
MaskVariables "Is=@1;"
MaskDisplay "plot(-140,-140,150,140,2*[30,30,59,30,30,0]-75,"
"(2*[71,50,72,92,71,71]-92),2*[59,59]-75,(2*[50,93]-92),[116,59]-16,(2*[71,71]"
"-90));"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "1e-6"
System {
Name "Non Stock Diode"
Location [350, 253, 1168, 684]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Fcn
Name "Diode Equation"
Position [280, 80, 340, 110]
Expr "Is* (exp(u /.025) -1 ); % ideal diode eq"
"uation @ room temp"
}
Block {
BlockType Reference
Name "Vf\n"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [0, 1, 0, 0, 0, 2]
Position [215, 83, 240, 107]
AttributesFormatString "\\n"
SourceBlock "powerlib/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
ShowPortLabels on
PhasorSimulation off
OutputType "Magnitude"
PSBequivalent "0"
}
Block {
BlockType Reference
Name "ik1"
Description "source block"
Ports [1, 0, 0, 0, 0, 1, 1]
Position [425, 84, 465, 131]
AttributesFormatString "\\n"
FontSize 10
SourceBlock "powerlib/Electrical\nSources/Controlled Cur"
"rent Source"
SourceType "Controlled Current Source"
ShowPortLabels on
Initialize on
SourceType "AC"
Amplitude "0"
Phase "0"
Frequency "0"
Measurements "None"
}
Block {
BlockType PMIOPort
Name "Anode"
Tag "PMCPort"
Position [105, 81, 135, 99]
Port "1"
Side "Left"
}
Block {
BlockType PMIOPort
Name "cathode\n"
Tag "PMCPort"
Position [555, 101, 585, 119]
Orientation "left"
Port "2"
Side "Right"
}
Line {
SrcBlock "Vf\n"
SrcPort 1
DstBlock "Diode Equation"
DstPort 1
}
Line {
SrcBlock "Diode Equation"
SrcPort 1
DstBlock "ik1"
DstPort 1
}
Line {
LineType "Connection"
SrcBlock "Vf\n"
SrcPort LConn1
Points [-40, 0]
Branch {
ConnectType "DEST_SRC"
DstBlock "Anode"
DstPort RConn1
}
Branch {
ConnectType "DEST_SRC"
Points [0, 90; 240, 0; 0, -60]
DstBlock "ik1"
DstPort LConn1
}
}
Line {
LineType "Connection"
SrcBlock "ik1"
SrcPort RConn1
Points [0, 0; 30, 0]
Branch {
ConnectType "DEST_SRC"
DstBlock "cathode\n"
DstPort RConn1
}
Branch {
ConnectType "DEST_SRC"
Points [0, 100; -325, 0; 0, -110]
DstBlock "Vf\n"
DstPort LConn2
}
}
}
}
Block {
BlockType Reference
Name "R1\n"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [255, 36, 325, 64]
FontSize 10
SourceBlock "powerlib/Elements/Series RLC Branch"
SourceType "Series RLC Branch"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__new0"
RConnTagsString "__new0"
Resistance "10"
Inductance "0"
Capacitance "inf"
Measurements "None"
}
Block {
BlockType Reference
Name "R2\n"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [250, 151, 320, 179]
FontSize 10
SourceBlock "powerlib/Elements/Series RLC Branch"
SourceType "Series RLC Branch"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__new0"
RConnTagsString "__new0"
Resistance "10"
Inductance "0"
Capacitance "inf"
Measurements "None"
}
Block {
BlockType Reference
Name "R3\n"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [473, 85, 497, 130]
Orientation "down"
NamePlacement "alternate"
FontSize 10
SourceBlock "powerlib/Elements/Series RLC Branch"
SourceType "Series RLC Branch"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__new0"
RConnTagsString "__new0"
Resistance "10"
Inductance "0"
Capacitance "inf"
Measurements "None"
}
Block {
BlockType Reference
Name "R4"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [443, 200, 467, 245]
Orientation "down"
NamePlacement "alternate"
FontSize 10
SourceBlock "powerlib/Elements/Series RLC Branch"
SourceType "Series RLC Branch"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__new0"
RConnTagsString "__new0"
Resistance "10"
Inductance "0"
Capacitance "inf"
Measurements "None"
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [700, 99, 730, 131]
Location [63, 474, 414, 751]
Open on
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "-0.05"
YMax "0.5"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Sin
Name "Sine Wave"
Ports [0, 1]
Position [65, 155, 95, 185]
SineType "Time based"
SampleTime "0"
}
Block {
BlockType Reference
Name "Stock Diode"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [355, 30, 410, 70]
AttributesFormatString "\\n"
FontSize 10
SourceBlock "powerlib/Power\nElectronics/Diode"
SourceType "Diode"
ShowPortLabels on
Ron "0.1"
Lon "0"
Vf "0.25"
IC "0"
Rs "0"
Cs "0"
Measurements off
}
Block {
BlockType Reference
Name "Vm1"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [0, 1, 0, 0, 0, 2]
Position [575, 93, 600, 117]
AttributesFormatString "\\n"
SourceBlock "powerlib/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
ShowPortLabels on
PhasorSimulation off
OutputType "Magnitude"
PSBequivalent "0"
}
Block {
BlockType SubSystem
Name "Vm2"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [0, 1, 0, 0, 0, 2]
Position [575, 158, 600, 182]
AttributesFormatString "\\n"
AncestorBlock "powerlib/Measurements/Voltage Measurement"
CopyFcn "powericon('psbloadfunction',gcbh,'Measurement B"
"lock','VerifyPhasor');"
LoadFcn "powericon('psbloadfunction',gcbh,'Measurement B"
"lock','');"
PreSaveFcn "powericon('psbloadfunction',gcbh,'ModelCloseFcn"
"','');"
InitFcn "powericon('psbloadfunction',gcbh,'InitFcnOfSPSB"
"locks','Measurement Block');"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -