📄 inverter.mdl
字号:
Model {
Name "inverter"
Version 3.00
SimParamPage "Solver"
SampleTimeColors off
InvariantConstants off
WideVectorLines off
ShowLineWidths off
ShowPortDataTypes off
StartTime "0.0"
StopTime "0.05"
SolverMode "Auto"
Solver "ode4"
RelTol "auto"
AbsTol "auto"
Refine "3"
MaxStep "1e-4"
InitialStep "auto"
FixedStep "1e-6"
MaxOrder 5
OutputOption "RefineOutputTimes"
OutputTimes "[]"
LoadExternalInput off
ExternalInput "[t, u]"
SaveTime off
TimeSaveName "t"
SaveState off
StateSaveName "xout"
SaveOutput off
OutputSaveName "y"
LoadInitialState off
InitialState "xInitial"
SaveFinalState off
FinalStateName "xFinal"
SaveFormat "Matrix"
LimitMaxRows off
MaxRows "1000"
Decimation "1"
AlgebraicLoopMsg "warning"
MinStepSizeMsg "warning"
UnconnectedInputMsg "warning"
UnconnectedOutputMsg "warning"
UnconnectedLineMsg "warning"
InheritedTsInSrcMsg "warning"
IntegerOverflowMsg "warning"
UnnecessaryDatatypeConvMsg "none"
Int32ToFloatConvMsg "warning"
SignalLabelMismatchMsg "none"
ConsistencyChecking "off"
ZeroCross on
SimulationMode "normal"
BlockDataTips on
BlockParametersDataTip on
BlockAttributesDataTip off
BlockPortWidthsDataTip off
BlockDescriptionStringDataTip off
BlockMaskParametersDataTip off
ToolBar on
StatusBar on
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
OptimizeBlockIOStorage on
BufferReuse on
BooleanDataType off
RTWSystemTargetFile "grt.tlc"
RTWInlineParameters off
RTWRetainRTWFile off
RTWTemplateMakefile "grt_default_tmf"
RTWMakeCommand "make_rtw"
RTWGenerateCodeOnly off
ExtModeMexFile "ext_comm"
ExtModeBatchMode off
ExtModeTrigType "manual"
ExtModeTrigMode "oneshot"
ExtModeTrigPort "1"
ExtModeTrigElement "any"
ExtModeTrigDuration 1000
ExtModeTrigHoldOff 0
ExtModeTrigDelay 0
ExtModeTrigDirection "rising"
ExtModeTrigLevel 0
ExtModeArchiveMode "off"
ExtModeAutoIncOneShot off
ExtModeIncDirWhenArm off
ExtModeAddSuffixToVar off
ExtModeWriteAllDataToWs off
ExtModeArmWhenConnect off
Created "Tue Apr 25 08:49:42 2000"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Mon Dec 31 17:07:00 2001"
ModelVersionFormat "1.%<AutoIncrement:88>"
ConfigurationManager "none"
BlockDefaults {
Orientation "right"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
NamePlacement "normal"
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
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 "inverter"
Location [10, 93, 1030, 748]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
ReportName "simulink-default.rpt"
Block {
BlockType SubSystem
Name "\n"
Ports [1, 1, 0, 0, 0]
Position [220, 138, 325, 192]
ShowName off
FontSize 20
ShowPortLabels on
MaskDisplay "\n\n"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "\n"
Location [14, 93, 1034, 748]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "sine"
Position [190, 87, 235, 103]
FontSize 20
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Gain
Name "Ed"
Position [655, 229, 705, 301]
FontSize 20
Gain "220"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "Gain"
Position [320, 201, 375, 249]
FontSize 20
Gain "-1"
SaturateOnIntegerOverflow on
}
Block {
BlockType RelationalOperator
Name "Relat"
Position [425, 81, 460, 134]
FontSize 20
Operator ">"
}
Block {
BlockType RelationalOperator
Name "Relat1"
Position [420, 252, 455, 308]
FontSize 20
Operator ">"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1, 0, 0, 0]
Position [555, 233, 590, 297]
ShowName off
FontSize 20
IconShape "rectangular"
Inputs "+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType Reference
Name "triangular wave"
Ports [0, 1, 0, 0, 0]
Position [150, 183, 195, 227]
FontSize 20
SourceBlock "simulink3/Sources/Repeating\nSequence"
SourceType "Repeating table"
rep_seq_t "[0 1/48e3 1/16e3 1/12e3]"
rep_seq_y "[0 5 -5 0]"
}
Block {
BlockType Outport
Name "spwm"
Position [760, 257, 805, 273]
FontSize 20
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Ed"
DstPort 1
}
Line {
SrcBlock "sine"
SrcPort 1
Points [45, 0]
Branch {
DstBlock "Relat"
DstPort 1
}
Branch {
Points [0, 130]
DstBlock "Gain"
DstPort 1
}
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [15, 0; 0, 40]
DstBlock "Relat1"
DstPort 1
}
Line {
SrcBlock "triangular wave"
SrcPort 1
Points [55, 0]
Branch {
Points [0, -85]
DstBlock "Relat"
DstPort 2
}
Branch {
Points [0, 90]
DstBlock "Relat1"
DstPort 2
}
}
Line {
SrcBlock "Ed"
SrcPort 1
DstBlock "spwm"
DstPort 1
}
Line {
SrcBlock "Relat"
SrcPort 1
Points [30, 0; 0, 140]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Relat1"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
}
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 2, 0, 0, 0]
Position [710, 156, 715, 194]
BackgroundColor "black"
ShowName off
FontSize 20
Outputs "2"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1, 0, 0, 0]
Position [435, 155, 440, 195]
ShowName off
FontSize 20
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType "S-Function"
Name "S-Function"
Ports [1, 1, 0, 0, 0]
Position [475, 160, 535, 190]
FontSize 20
FunctionName "filt"
Parameters "0.528e-3,300e-6,44e-6,1"
PortCounts "[]"
SFunctionModules "''"
}
Block {
BlockType "S-Function"
Name "S-Function1"
Ports [1, 1, 0, 0, 0]
Position [480, 255, 540, 285]
FontSize 20
FunctionName "rload"
Parameters "50"
PortCounts "[]"
SFunctionModules "''"
}
Block {
BlockType "S-Function"
Name "S-Function2"
Ports [1, 1, 0, 0, 0]
Position [610, 160, 670, 190]
FontSize 20
FunctionName "rect"
Parameters "1,4700e-6,50"
PortCounts "[]"
SFunctionModules "''"
}
Block {
BlockType Scope
Name "SPWM"
Ports [1, 0, 0, 0, 0]
Position [435, 54, 465, 86]
FontSize 20
Floating off
Location [218, 60, 795, 502]
Open on
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "0.05"
YMin "-250"
YMax "250"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitMaxRows off
MaxRows "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Sin
Name "Sine Wave"
Position [140, 150, 170, 180]
FontSize 20
Amplitude "4"
Frequency "800*pi"
Phase "0"
SampleTime "0"
}
Block {
BlockType Scope
Name "Uac"
Ports [1, 0, 0, 0, 0]
Position [600, 54, 630, 86]
FontSize 20
Floating off
Location [218, 60, 795, 502]
Open on
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "0.01"
YMin "-200"
YMax "200"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitMaxRows off
MaxRows "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Scope
Name "Uout"
Ports [1, 0, 0, 0, 0]
Position [815, 169, 845, 201]
FontSize 20
Floating off
Location [319, 181, 862, 576]
Open on
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "0.05"
YMin "-200"
YMax "200"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitMaxRows off
MaxRows "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Scope
Name "i"
Ports [1, 0, 0, 0, 0]
Position [800, 54, 830, 86]
FontSize 20
Floating off
Location [247, 206, 767, 561]
Open on
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "0.05 "
YMin "-60"
YMax "50"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitMaxRows off
MaxRows "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
DstBlock "\n"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "S-Function"
DstPort 1
}
Line {
SrcBlock "S-Function2"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 2
DstBlock "Uout"
DstPort 1
}
Line {
SrcBlock "S-Function"
SrcPort 1
Points [30, 0]
Branch {
Points [0, -105]
DstBlock "Uac"
DstPort 1
}
Branch {
DstBlock "S-Function2"
DstPort 1
}
}
Line {
SrcBlock "\n"
SrcPort 1
Points [30, 0]
Branch {
DstBlock "Mux"
DstPort 1
}
Branch {
Points [0, -95]
DstBlock "SPWM"
DstPort 1
}
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [35, 0]
Branch {
Points [0, -95]
DstBlock "i"
DstPort 1
}
Branch {
Points [0, 65; -355, 0; 0, -45]
DstBlock "Mux"
DstPort 2
}
}
Annotation {
Position [276, 200]
Text "inverter"
FontSize 20
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -