📄 boost.mdl
字号:
LConnTagsString "a"
RConnTagsString "__new0"
BranchType "C"
Resistance "1"
Inductance "1e-3"
SetiL0 off
InitialCurrent "0"
Capacitance "2200e-6"
Setx0 off
InitialVoltage "0"
Measurements "Branch voltage"
}
Block {
BlockType Constant
Name "Constant"
Position [730, 385, 760, 415]
Value "500"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Reference
Name "DC Voltage Source"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [160, 405, 180, 440]
Orientation "up"
DialogController "POWERSYS.PowerSysDialog"
FontName "Verdana"
FontSize 11
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 Demux
Name "Demux"
Ports [1, 4]
Position [640, 170, 645, 235]
ShowName off
DisplayOption "bar"
Port {
PortNumber 1
Name "Uc"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
Port {
PortNumber 2
Name "Il"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
Port {
PortNumber 3
Name "Ir3"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
Port {
PortNumber 4
Name "Ir4"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Reference
Name "Diode"
Ports [0, 1, 0, 0, 0, 1, 1]
Position [410, 310, 465, 350]
DialogController "POWERSYS.PowerSysDialog"
FontName "Verdana"
FontSize 11
SourceBlock "powerlib/Power\nElectronics/Diode"
SourceType "Diode"
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"
Ron "0.0047 "
Lon "0"
Vf "1.8"
IC "0"
UseSnubber off
Rs "500"
Cs "250e-9"
Measurements on
}
Block {
BlockType Reference
Name "Discrete\nPID Controller"
Ports [1, 1]
Position [910, 377, 955, 423]
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib_extras/Discrete \nControl Blocks/Discrete\nPID Controller"
SourceType "Discrete PID Controller"
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"
Kp "1"
Ki "200"
Kd "0"
TcD "1"
Par_Limits "[0.5 -0.5]"
Init "0"
Ts "2.5e-5"
Port {
PortNumber 1
Name "pi"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [820, 80, 910, 110]
Decimation "1"
Lockdown off
}
Block {
BlockType Display
Name "Display1"
Ports [1]
Position [930, 585, 1020, 615]
Decimation "1"
Lockdown off
}
Block {
BlockType Gain
Name "Gain"
Position [835, 385, 865, 415]
Gain "0.001"
ParameterDataTypeMode "Inherit via internal rule"
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
ParamDataTypeStr "Inherit: Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "L"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [195, 304, 250, 356]
AttributesFormatString "\\n"
DialogController "POWERSYS.PowerSysDialog"
FontName "Verdana"
FontSize 11
SourceBlock "powerlib/Elements/Parallel RLC Branch"
SourceType "Parallel RLC Branch"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "a"
RConnTagsString "__new0"
BranchType "L"
Resistance "1"
Inductance "4e-4"
SetiL0 off
InitialCurrent "0"
Capacitance "1e-6"
Setx0 off
InitialVoltage "0"
Measurements "Branch voltage and current"
}
Block {
BlockType Reference
Name "Mean Value"
Ports [1, 1]
Position [730, 69, 780, 121]
DialogController "POWERSYS.PowerSysDialog"
FontName "Arial"
SourceBlock "powerlib_extras/Measurements/Mean Value"
SourceType "Mean value"
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"
Period "25e-6"
}
Block {
BlockType Reference
Name "Mean Value1"
Ports [1, 1]
Position [860, 574, 910, 626]
DialogController "POWERSYS.PowerSysDialog"
FontName "Arial"
SourceBlock "powerlib_extras/Measurements/Mean Value"
SourceType "Mean value"
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"
Period "25e-6"
}
Block {
BlockType Reference
Name "Mosfet"
Ports [1, 1, 0, 0, 0, 1, 1]
Position [348, 450, 392, 505]
Orientation "down"
NamePlacement "alternate"
DialogController "POWERSYS.PowerSysDialog"
FontName "Verdana"
FontSize 11
SourceBlock "powerlib/Power\nElectronics/Mosfet"
SourceType "Mosfet"
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"
Ron "0.11"
Lon "0"
Rd "0.01"
Vfd "0"
IC "0"
Rs "1e5"
Cs "inf "
Measurements on
}
Block {
BlockType Reference
Name "Multimeter"
Ports [0, 1, 0, 0, 0, 1]
Position [480, 186, 520, 224]
FontName "Verdana"
FontSize 11
SourceBlock "powerlib/Measurements/Multimeter"
SourceType "MultimeterPSB"
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"
PhasorSimulation off
OutputType "Complex"
sel "[1 4 5 6]"
L "6"
Gain "[1 1 1 1]"
yselected "{'Ub: C','Ib: L','Ib: R3','Ib: R4'};"
PSBOutputType "1"
PSBequivalent "0"
AxesSetting "[0,0.1,-100,100]"
Display "0"
SavedBlockNames "-11"
}
Block {
BlockType DiscretePulseGenerator
Name "Pulse\nGenerator"
Ports [0, 1]
Position [260, 148, 305, 182]
PulseType "Time based"
Period "25e-6"
PulseWidth "40"
Port {
PortNumber 1
Name "Ug"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Reference
Name "R1"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [614, 430, 666, 485]
Orientation "down"
NamePlacement "alternate"
AttributesFormatString "\\n"
DialogController "POWERSYS.PowerSysDialog"
FontName "Verdana"
FontSize 11
SourceBlock "powerlib/Elements/Parallel RLC Branch"
SourceType "Parallel RLC Branch"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "a"
RConnTagsString "__new0"
BranchType "R"
Resistance "36"
Inductance "1e-3"
SetiL0 off
InitialCurrent "0"
Capacitance "1e-6"
Setx0 off
InitialVoltage "0"
Measurements "Branch voltage"
}
Block {
BlockType Reference
Name "R2"
Ports [0, 1]
Position [1000, 479, 1025, 491]
Orientation "left"
NamePlacement "alternate"
ShowName off
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.25e-5 2.5e-5]"
rep_seq_y "[-0.8 1.2 -0.8]"
}
Block {
BlockType Reference
Name "R3"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [354, 365, 406, 420]
Orientation "down"
NamePlacement "alternate"
AttributesFormatString "\\n"
DialogController "POWERSYS.PowerSysDialog"
FontName "Verdana"
FontSize 11
SourceBlock "powerlib/Elements/Parallel RLC Branch"
SourceType "Parallel RLC Branch"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "a"
RConnTagsString "__new0"
BranchType "R"
Resistance "0.001"
Inductance "1e-3"
SetiL0 off
InitialCurrent "0"
Capacitance "1e-6"
Setx0 off
InitialVoltage "0"
Measurements "Branch current"
}
Block {
BlockType Reference
Name "R4"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [280, 304, 335, 356]
Orientation "left"
NamePlacement "alternate"
AttributesFormatString "\\n"
DialogController "POWERSYS.PowerSysDialog"
FontName "Verdana"
FontSize 11
SourceBlock "powerlib/Elements/Parallel RLC Branch"
SourceType "Parallel RLC Branch"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "a"
RConnTagsString "__new0"
BranchType "R"
Resistance "0.001"
Inductance "1e-3"
SetiL0 off
InitialCurrent "0"
Capacitance "1e-6"
Setx0 off
InitialVoltage "0"
Measurements "Branch current"
}
Block {
BlockType Scope
Name "Scope"
Ports [8]
Position [720, 155, 760, 280]
Floating off
Location [5, 52, 1029, 737]
Open off
NumInputPorts "8"
TickLabels "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
axes5 "%<SignalLabel>"
axes6 "%<SignalLabel>"
axes7 "%<SignalLabel>"
axes8 "%<SignalLabel>"
}
YMin "0~-100~-700~-500~0~-1~0~0"
YMax "1~1000~300~2500~2250~1~2500~1"
DataFormat "StructureWithTime"
SampleTime "0.1"
}
Block {
BlockType Scope
Name "Scope1"
Ports [2]
Position [980, 280, 1020, 335]
Floating off
Location [1, 52, 1025, 737]
Open off
NumInputPorts "2"
TickLabels "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
YMin "531.3~-0.53146"
YMax "531.47~-0.53131"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
SampleTime "0.1"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [785, 390, 805, 410]
ShowName off
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
Port {
PortNumber 1
Name "Vc1"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Reference
Name "V"
Ports [0, 1, 0, 0, 0, 2]
Position [740, 443, 765, 467]
DialogController "POWERSYS.PowerSysDialog"
FontName "Verdana"
FontSize 11
SourceBlock "powerlib/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -