📄 pvmodel.mdl
字号:
axes2 "%<SignalLabel>"
}
TimeRange "2.5"
YMin "145.165~145"
YMax "145.195~145.3"
SaveName "ScopeData9"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Sin
Name "Sine Wave"
Ports [0, 1]
Position [1225, 350, 1255, 380]
SineType "Time based"
Frequency "50"
SampleTime "0"
}
Block {
BlockType Step
Name "Step1"
Position [225, 900, 255, 930]
Time "10"
Before "800"
After "800"
SampleTime "0"
}
Block {
BlockType Step
Name "Step2"
Position [925, 840, 955, 870]
Time "10"
Before "800"
After "800"
SampleTime "0"
}
Block {
BlockType Step
Name "Step4"
Position [90, 75, 120, 105]
Time "20"
Before "800"
After "800"
SampleTime "0"
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [2, 1]
Position [265, 450, 325, 490]
Orientation "up"
NamePlacement "alternate"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "Subsystem"
Location [672, 476, 947, 623]
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 Inport
Name "In1"
Position [220, 38, 250, 52]
Orientation "left"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "In2"
Position [220, 103, 250, 117]
Orientation "left"
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Saturate
Name "Saturation1"
Position [165, 30, 195, 60]
Orientation "left"
NamePlacement "alternate"
UpperLimit "inf"
LowerLimit "1e-19"
}
Block {
BlockType Saturate
Name "Saturation2"
Position [165, 95, 195, 125]
Orientation "left"
NamePlacement "alternate"
UpperLimit "-1e-15"
LowerLimit "-inf"
}
Block {
BlockType Sum
Name "dp1"
Ports [2, 1]
Position [80, 57, 110, 88]
Orientation "left"
NamePlacement "alternate"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "Out1"
Position [25, 68, 55, 82]
Orientation "left"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Saturation1"
SrcPort 1
Points [-15, 0; 0, 20]
DstBlock "dp1"
DstPort 1
}
Line {
SrcBlock "Saturation2"
SrcPort 1
Points [-15, 0; 0, -30]
DstBlock "dp1"
DstPort 2
}
Line {
SrcBlock "In1"
SrcPort 1
Points [0, 0]
DstBlock "Saturation1"
DstPort 1
}
Line {
SrcBlock "dp1"
SrcPort 1
Points [0, 0]
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "In2"
SrcPort 1
Points [0, 0]
DstBlock "Saturation2"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Subsystem1"
Ports [3, 1]
Position [1050, 820, 1090, 880]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskPromptString "Isc|Voc|Im|Vm|Tref|Rref|alfer|beta|Rs"
MaskStyleString "edit,edit,edit,edit,edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on,on,on,on,on"
MaskCallbackString "||||||||"
MaskEnableString "on,on,on,on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on,on,on,on"
MaskVarAliasString ",,,,,,,,"
MaskVariables "Isc=@1;Voc=@2;Im=@3;Vm=@4;Tref=@5;Rref=@6;alfer"
"=@7;beta=@8;Rs=@9;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "10.65|320|10.25|300|25|1000|0.0025|0.5|0.0288"
MaskTabNameString ",,,,,,,,"
System {
Name "Subsystem1"
Location [2, 82, 1270, 977]
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 Inport
Name "Ta"
Position [25, 28, 55, 42]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "r"
Position [25, 68, 55, 82]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "v"
Position [25, 108, 55, 122]
Port "3"
IconDisplay "Port number"
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [80, 17, 130, 133]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType "S-Function"
Name "S-Function1"
Ports [1, 1]
Position [165, 60, 225, 90]
FunctionName "pv_module"
Parameters "Isc, Voc, Im, Vm, Tref, Rref,alfer,beta,Rs"
}
Block {
BlockType Outport
Name "i"
Position [265, 68, 295, 82]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "S-Function1"
DstPort 1
}
Line {
SrcBlock "Ta"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "r"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "S-Function1"
SrcPort 1
DstBlock "i"
DstPort 1
}
Line {
SrcBlock "v"
SrcPort 1
DstBlock "Mux"
DstPort 3
}
}
}
Block {
BlockType SubSystem
Name "Subsystem2"
Ports [3, 1]
Position [650, 885, 690, 945]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskPromptString "Isc|Voc|Im|Vm|Tref|Rref|alfer|beta|Rs"
MaskStyleString "edit,edit,edit,edit,edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on,on,on,on,on"
MaskCallbackString "||||||||"
MaskEnableString "on,on,on,on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on,on,on,on"
MaskVarAliasString ",,,,,,,,"
MaskVariables "Isc=@1;Voc=@2;Im=@3;Vm=@4;Tref=@5;Rref=@6;alfer"
"=@7;beta=@8;Rs=@9;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "10.65|320|10.25|300|25|1000|0.0025|0.5|0.00288"
MaskTabNameString ",,,,,,,,"
System {
Name "Subsystem2"
Location [2, 82, 1270, 977]
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 Inport
Name "Ta"
Position [25, 28, 55, 42]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "r"
Position [25, 68, 55, 82]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "v"
Position [25, 108, 55, 122]
Port "3"
IconDisplay "Port number"
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [80, 17, 130, 133]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType "S-Function"
Name "S-Function1"
Ports [1, 1]
Position [165, 60, 225, 90]
FunctionName "pv_module"
Parameters "Isc, Voc, Im, Vm, Tref, Rref,alfer,beta,Rs"
}
Block {
BlockType Outport
Name "i"
Position [265, 68, 295, 82]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "v"
SrcPort 1
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "S-Function1"
SrcPort 1
DstBlock "i"
DstPort 1
}
Line {
SrcBlock "r"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Ta"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "S-Function1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Subsystem3"
Ports [2, 1]
Position [180, 770, 220, 830]
Orientation "left"
NamePlacement "alternate"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskPromptString "Kp|Ti|Td"
MaskStyleString "edit,edit,edit"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "on,on,on"
MaskVisibilityString "on,on,on"
MaskToolTipString "on,on,on"
MaskVarAliasString ",,"
MaskVariables "Kp=@1;Ti=@2;Td=@3;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "0.0001|0.0008|0.0008"
MaskTabNameString ",,"
System {
Name "Subsystem3"
Location [2, 82, 1270, 977]
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 Inport
Name "e"
Position [20, 223, 50, 237]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Dk_1"
Position [15, 483, 45, 497]
Port "2"
IconDisplay "Port number"
SampleTime "0.001"
}
Block {
BlockType Abs
Name "Abs"
Position [930, 300, 960, 330]
SaturateOnIntegerOverflow off
ZeroCross on
SampleTime "-1"
}
Block {
BlockType Constant
Name "Constant1"
Position [850, 189, 915, 221]
Value "0.0001"
VectorParams1D on
SamplingMode "Sample based"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
FramePeriod "inf"
}
Block {
BlockType Constant
Name "Constant2"
Position [985, 110, 1015, 140]
Value "0"
VectorParams1D on
SamplingMode "Sample based"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
FramePeriod "inf"
}
Block {
BlockType Constant
Name "Constant3"
Position [175, 700, 205, 730]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -