📄 lbq22.mdl
字号:
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Reference
Name "1-phase \nPLL"
Ports [1, 3]
Position [150, 275, 210, 335]
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib_extras/Control \nBlocks/1-phase \nPLL"
SourceType "1-phase PLL"
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"
Par_Init "[0 50]"
ParK "[120 2800]"
}
Block {
BlockType Reference
Name "2nd-Order\nFilter"
Ports [1, 1]
Position [1065, 515, 1120, 565]
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib_extras/Control \nBlocks/2nd-Order\nFilter"
SourceType "2nd-Order Filter"
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"
FilterType "Lowpass"
Fo "10"
Zeta "0.707"
Initialize off
Vac_Init "[1 45 60]"
Vdc_Init "-0.5"
PlotResponse off
param1 "[1 500 1]"
}
Block {
BlockType Constant
Name "Constant"
Position [1105, 625, 1135, 655]
Value "-1"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Constant
Name "Constant1"
Position [1145, 490, 1175, 520]
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 2]
Position [475, 260, 485, 375]
BackgroundColor "black"
ShowName off
Outputs "2"
DisplayOption "bar"
}
Block {
BlockType Demux
Name "Demux1"
Ports [1, 3]
Position [1085, 33, 1090, 117]
BackgroundColor "black"
ShowName off
Outputs "3"
DisplayOption "bar"
}
Block {
BlockType Demux
Name "Demux2"
Ports [1, 3]
Position [765, 736, 770, 774]
BackgroundColor "black"
ShowName off
Outputs "3"
DisplayOption "bar"
}
Block {
BlockType Demux
Name "Demux3"
Ports [1, 3]
Position [840, 696, 845, 734]
BackgroundColor "black"
ShowName off
Outputs "3"
DisplayOption "bar"
}
Block {
BlockType Demux
Name "Demux4"
Ports [1, 3]
Position [1085, 123, 1090, 207]
BackgroundColor "black"
ShowName off
Outputs "3"
DisplayOption "bar"
}
Block {
BlockType Demux
Name "Demux5"
Ports [1, 3]
Position [120, 186, 125, 224]
BackgroundColor "black"
ShowName off
Outputs "3"
DisplayOption "bar"
}
Block {
BlockType Demux
Name "Demux6"
Ports [1, 2]
Position [960, 526, 965, 564]
BackgroundColor "black"
ShowName off
Outputs "2"
DisplayOption "bar"
}
Block {
BlockType Reference
Name "Discrete\nPI Controller"
Ports [1, 1]
Position [385, 17, 430, 63]
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib_extras/Discrete \nControl Blocks/Discrete\nPI Controller"
SourceType "Discrete PI 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 "0.05"
Ki "0.05"
Par_Limits "[1e6 -1e6]"
Init "0"
Ts "50e-6"
}
Block {
BlockType Reference
Name "Discrete \nButterworth Filter\n"
Ports [1, 1]
Position [575, 274, 600, 296]
ForegroundColor "gray"
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib_extras/Discrete \nControl Blocks/Discrete \nButterworth Filter\n"
SourceType "Discrete Butterworth Filter"
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"
FilterType "Lowpass"
N "2"
Fo "40"
Bo "80"
Ts "50e-6"
Initialize on
Vac_Init "[1.2 60 60]"
Vdc_Init "-0.6"
PlotResponse off
param1 "[1 500 0.1]"
}
Block {
BlockType Reference
Name "Discrete \nButterworth Filter\n1"
Ports [1, 1]
Position [575, 389, 600, 411]
ForegroundColor "gray"
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib_extras/Discrete \nControl Blocks/Discrete \nButterworth Filter\n"
SourceType "Discrete Butterworth Filter"
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"
FilterType "Lowpass"
N "2"
Fo "40"
Bo "80"
Ts "50e-6"
Initialize on
Vac_Init "[1.2 60 60]"
Vdc_Init "-0.6"
PlotResponse off
param1 "[1 500 0.1]"
}
Block {
BlockType Gain
Name "Gain1"
Position [275, 150, 305, 180]
Gain "1/3"
ParameterDataTypeMode "Inherit via internal rule"
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain2"
Position [1065, 600, 1095, 630]
Gain "1/60"
ParameterDataTypeMode "Inherit via internal rule"
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain3"
Position [75, 285, 105, 315]
Gain "1/300"
ParameterDataTypeMode "Inherit via internal rule"
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain4"
Position [865, 690, 880, 720]
Gain "-1"
ParameterDataTypeMode "Inherit via internal rule"
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "Multimeter"
Ports [0, 1, 0, 0, 0, 1]
Position [875, 526, 915, 564]
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 2]"
L "5"
Gain "[1 1]"
yselected "{'Ub: Series RLC Branch','Ub: Series RLC Branch1'};"
PSBOutputType "1"
PSBequivalent "0"
AxesSetting "[0,0.1,-100,100]"
Display "0"
SavedBlockNames "-11"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [780, 201, 785, 239]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux1"
Ports [6, 1]
Position [1210, 43, 1215, 202]
ShowName off
Inputs "6"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux2"
Ports [2, 1]
Position [965, 776, 970, 814]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux3"
Ports [3, 1]
Position [510, 131, 515, 169]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux4"
Ports [3, 1]
Position [1310, 619, 1315, 701]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Relay
Name "Relay"
Position [1005, 60, 1035, 90]
OnSwitchValue "0.08"
OffSwitchValue "-0.08"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Relay
Name "Relay1"
Position [1005, 135, 1035, 165]
OnSwitchValue "0.08"
OffSwitchValue "-0.08"
OnOutputValue "0"
OffOutputValue "1"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Scope
Name "Scope"
Ports [3]
Position [1120, 434, 1150, 466]
Floating off
Location [5, 52, 1029, 733]
Open off
NumInputPorts "3"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
}
YMin "-0.9875~-1~-1"
YMax "-0.9625~-0.9775~1"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope1"
Ports [5]
Position [1115, 263, 1190, 347]
Floating off
Location [5, 52, 1029, 733]
Open off
NumInputPorts "5"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
axes5 "%<SignalLabel>"
}
YMin "-5~-50~-40~-50~-25"
YMax "5~50~40~50~25"
SaveName "ScopeData3"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope3"
Ports [4]
Position [1315, 708, 1380, 822]
Floating off
Location [5, 52, 1029, 733]
Open off
NumInputPorts "4"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
}
YMin "-0.5~-5e-012~-5e-014~-50"
YMax "4.5~4e-011~5.5e-013~550"
SaveName "ScopeData5"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [2, 1]
Position [310, 259, 410, 301]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
System {
Name "Subsystem"
Location [2, 82, 1014, 717]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -