📄 a.mdl
字号:
Setx0 off
InitialVoltage "0"
Measurements "Branch current"
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [0, 1]
Position [355, 442, 380, 488]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskPromptString "m(0<m<=1)|f(Hz)|fc(Hz)"
MaskStyleString "edit,edit,edit"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "on,on,on"
MaskVisibilityString "on,on,on"
MaskToolTipString "on,on,on"
MaskVarAliasString ",,"
MaskVariables "m=@1;f=@2;fc=@3;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "1|50|1500"
MaskTabNameString ",,"
System {
Name "Subsystem"
Location [2, 77, 1014, 722]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType DataTypeConversion
Name " "
Position [400, 112, 450, 138]
OutDataTypeMode "boolean"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Constant
Name " "
Position [185, 60, 215, 90]
Value "m"
SamplingMode "Frame based"
}
Block {
BlockType RelationalOperator
Name " "
Position [345, 107, 375, 138]
InputSameDT off
LogicOutDataTypeMode "Boolean"
}
Block {
BlockType Logic
Name " "
Ports [1, 1]
Position [480, 129, 510, 161]
Operator "NOT"
AllPortsSameDT off
OutDataTypeMode "Boolean"
}
Block {
BlockType Product
Name " "
Ports [2, 1]
Position [290, 97, 320, 128]
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name " "
Ports [0, 1]
Position [255, 164, 290, 206]
SourceBlock "simulink/Sources/Repeating\nSequence"
SourceType "Repeating table"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
rep_seq_t "[0 1/fc/4 3/fc/4 1/fc]"
rep_seq_y "[0 -1 1 0]"
}
Block {
BlockType Trigonometry
Name " "
Ports [1, 1]
Position [240, 105, 270, 135]
}
Block {
BlockType Gain
Name " "
Position [170, 104, 225, 136]
Gain "2*pi*f"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType DataTypeConversion
Name " "
" "
Position [620, 152, 665, 178]
OutDataTypeMode "double"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Clock
Name "Clock"
Position [125, 110, 145, 130]
Decimation "10"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [550, 116, 555, 154]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux1"
Ports [2, 1]
Position [550, 181, 555, 219]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux2"
Ports [2, 1]
Position [595, 146, 600, 184]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Outport
Name "PWM"
Position [685, 158, 715, 172]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Clock"
SrcPort 1
DstBlock " "
DstPort 1
}
Line {
SrcBlock " "
SrcPort 1
DstBlock " "
DstPort 1
}
Line {
SrcBlock " "
SrcPort 1
DstBlock " "
DstPort 2
}
Line {
SrcBlock " "
SrcPort 1
Points [55, 0]
DstBlock " "
DstPort 1
}
Line {
SrcBlock " "
SrcPort 1
DstBlock " "
DstPort 1
}
Line {
SrcBlock " "
SrcPort 1
Points [30, 0; 0, -55]
DstBlock " "
DstPort 2
}
Line {
SrcBlock " "
SrcPort 1
DstBlock " "
DstPort 1
}
Line {
SrcBlock " "
SrcPort 1
Points [10, 0]
Branch {
DstBlock " "
DstPort 1
}
Branch {
Points [65, 0]
Branch {
Points [0, 85]
DstBlock "Mux1"
DstPort 2
}
Branch {
DstBlock "Mux"
DstPort 1
}
}
}
Line {
SrcBlock " "
SrcPort 1
Points [5, 0]
Branch {
Points [0, 45]
DstBlock "Mux1"
DstPort 1
}
Branch {
DstBlock "Mux"
DstPort 2
}
}
Line {
Labels [3, 0]
SrcBlock "Mux"
SrcPort 1
Points [15, 0; 0, 20]
DstBlock "Mux2"
DstPort 1
}
Line {
SrcBlock "Mux1"
SrcPort 1
Points [15, 0; 0, -25]
DstBlock "Mux2"
DstPort 2
}
Line {
SrcBlock "Mux2"
SrcPort 1
DstBlock " "
" "
DstPort 1
}
Line {
SrcBlock " "
" "
SrcPort 1
DstBlock "PWM"
DstPort 1
}
Annotation {
Position [300, 143]
}
}
}
Block {
BlockType Reference
Name "Ud 300V"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [160, 300, 180, 335]
Orientation "up"
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Electrical\nSources/DC Voltage Source"
SourceType "DC Voltage Source"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
Amplitude "300"
Measurements "None"
}
Block {
BlockType Reference
Name "Universal Bridge"
Ports [1, 0, 0, 0, 0, 2, 2]
Position [325, 272, 380, 348]
Orientation "left"
NamePlacement "alternate"
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Power\nElectronics/Universal Bridge"
SourceType "Universal Bridge"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
Arms "2"
SnubberResistance "1e5"
SnubberCapacitance "inf"
Device "IGBT / Diodes"
Ron "1e-3"
Lon "0"
ForwardVoltages "[ 0 0 ]"
ForwardVoltage "0"
GTOparameters "[ 10e-6 , 20e-6 ]"
IGBTparameters "[ 1e-6 , 2e-6 ]"
Measurements "All voltages and currents"
converterType "Rectifier"
}
Block {
BlockType Reference
Name "powergui"
Ports []
Position [725, 125, 785, 149]
UserDataPersistent on
UserData "DataTag0"
FontSize 11
SourceBlock "powerlib/powergui"
SourceType "PSB option menu block"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
SimulationMode "Discrete"
SampleTime "1e-5"
echomessages on
RestoreLinks "warning"
x0status "blocks"
Frange "[0:2:500]"
Ylog off
Xlog on
ShowGrid off
save off
variable "ZData"
structure "ScopeData"
ZoomFFT on
StartTime "0.02"
cycles "2"
DisplayStyle "1"
fundamental "50"
FreqAxis off
MaxFrequency "3500"
frequencyindice "0"
frequencyindicesteady "1"
RmsSteady "1"
display off
Ts "0"
frequency "60"
methode off
HookPort off
Interpol off
}
Line {
LineType "Connection"
SrcBlock "Series RLC Branch"
SrcPort LConn1
Points [0, -40; -120, 0; 0, 75]
DstBlock "Universal Bridge"
DstPort LConn1
}
Line {
LineType "Connection"
SrcBlock "Series RLC Branch"
SrcPort RConn1
Points [0, 35; -120, 0; 0, -75]
DstBlock "Universal Bridge"
DstPort LConn2
}
Line {
LineType "Connection"
SrcBlock " "
SrcPort LConn1
Points [-40, 0]
DstBlock "Ud 300V"
DstPort RConn1
}
Line {
LineType "Connection"
SrcBlock " "
SrcPort RConn1
Points [35, 0; 0, 50]
DstBlock "Universal Bridge"
DstPort RConn1
}
Line {
LineType "Connection"
SrcBlock "Ud 300V"
SrcPort LConn1
Points [0, 45; 125, 0; 0, -65]
DstBlock "Universal Bridge"
DstPort RConn2
}
Line {
SrcBlock "Multimeter"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
Name "io"
Labels [0, 0]
SrcBlock "Demux"
SrcPort 2
DstBlock "Scope"
DstPort 2
}
Line {
Name "uo"
Labels [0, 0]
SrcBlock "Demux"
SrcPort 1
DstBlock "Scope"
DstPort 1
}
Line {
Name "id"
Labels [3, 0]
SrcBlock " "
SrcPort 1
Points [355, 0; 0, 55]
DstBlock "Scope"
DstPort 3
}
Line {
SrcBlock "Subsystem"
SrcPort 1
Points [20, 0]
Branch {
Points [5, 0; 0, -180]
DstBlock "Universal Bridge"
DstPort 1
}
Branch {
DstBlock "Scope1"
DstPort 1
}
}
}
}
MatData {
NumRecords 1
DataRecord {
Tag DataTag0
Data " %)30 . Z ( 8 ( @ % "
"\" $ ! 0 % 0 # $ !X <&]W97)G=6D <W1E861Y<W1A"
"=&4 :6YI='-T871E<P ;&]A9&9L;W< ;'1I=FEE=P >FUE=&5R 9F9T=&]O;"
" <F5P;W)T :'ES=&5R97-I<P ;&EN97!A<F%M #@ # & \" "
" 8 !0 @ $ \"0 . , 8 ( !"
"@ % \" 0 ) X P !@ @ & "
" 4 ( ! D #@ # & \" 8 "
" !0 @ $ \"0 . , 8 ( !@ "
" % \" 0 ) X P !@ @ & "
" 4 ( ! D #@ #@ & \" 8 "
" !0 @ ! 0 $ \"0 @ ( (G90 X P !@ @ "
" & 4 ( ! D #@ # & \" "
" 8 !0 @ $ \"0 . , 8 ( !"
"@ % \" 0 ) "
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -