?? pv_boost_mpp_iref.mdl
字號:
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [290, 50, 310, 70]
ShowName off
IconShape "round"
Inputs "|-+"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1]
Position [665, 160, 685, 180]
ShowName off
IconShape "round"
Inputs "-+|"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
Port {
PortNumber 1
Name "Iout"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Sum
Name "Sum4"
Ports [2, 1]
Position [565, 60, 585, 80]
ShowName off
IconShape "round"
Inputs "+-|"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
Port {
PortNumber 1
Name "D"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Constant
Name "Switching loss current"
Position [610, 105, 640, 135]
Value "Isw"
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 Saturate
Name "prevent \ndiv by zero"
Position [695, 340, 725, 370]
UpperLimit "inf"
LowerLimit "eps"
}
Block {
BlockType Outport
Name "Iout"
Position [930, 163, 960, 177]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Pout"
Position [930, 248, 960, 262]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "efficiency"
Position [925, 333, 955, 347]
Port "3"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "D"
Position [925, 63, 955, 77]
Port "4"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Efficiency\ncalculation"
SrcPort 1
DstBlock "0 <= eta <= 1"
DstPort 1
}
Line {
SrcBlock "Iref"
SrcPort 1
DstBlock "Iref >= 0"
DstPort 1
}
Line {
SrcBlock "Vout"
SrcPort 1
Points [255, 0]
Branch {
DstBlock "Pout=Vout*Iout"
DstPort 2
}
Branch {
Points [0, -185]
DstBlock "Calculate\n1-D"
DstPort 2
}
}
Line {
SrcBlock "Switching loss current"
SrcPort 1
Points [30, 0]
DstBlock "Sum3"
DstPort 1
}
Line {
Name "Iout"
Labels [0, 0]
SrcBlock "Sum3"
SrcPort 1
Points [35, 0]
Branch {
DstBlock "Iout"
DstPort 1
}
Branch {
Points [0, 30; -150, 0; 0, 45]
DstBlock "Pout=Vout*Iout"
DstPort 1
}
}
Line {
Name "Pout"
Labels [0, 0]
SrcBlock "Pout=Vout*Iout"
SrcPort 1
Points [65, 0]
Branch {
DstBlock "Pout"
DstPort 1
}
Branch {
Labels [1, 0]
Points [0, 70]
DstBlock "Efficiency\ncalculation"
DstPort 1
}
}
Line {
SrcBlock "0 <= eta <= 1"
SrcPort 1
DstBlock "efficiency"
DstPort 1
}
Line {
Name "Ig"
Labels [0, 0]
SrcBlock "Iref >= 0"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "RL"
DstPort 1
}
Branch {
Points [0, 115; 340, 0]
Branch {
DstBlock "(1-D)Ig"
DstPort 2
}
Branch {
Points [0, 170]
DstBlock "Pinput = Vg*Ig"
DstPort 1
}
}
}
Line {
SrcBlock "RL"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
Name "Vg"
Labels [0, 0]
SrcBlock "Vg"
SrcPort 1
Points [225, 0]
Branch {
DstBlock "Sum"
DstPort 2
}
Branch {
Points [0, 240]
DstBlock "Pinput = Vg*Ig"
DstPort 2
}
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Calculate\n1-D"
DstPort 1
}
Line {
SrcBlock "Calculate\n1-D"
SrcPort 1
DstBlock "0 <= D <= 1"
DstPort 1
}
Line {
Name "1-D"
Labels [0, 0]
SrcBlock "0 <= D <= 1"
SrcPort 1
Points [30, 0]
Branch {
DstBlock "Sum4"
DstPort 2
}
Branch {
Points [0, 90]
DstBlock "(1-D)Ig"
DstPort 1
}
}
Line {
SrcBlock "1"
SrcPort 1
Points [30, 0]
DstBlock "Sum4"
DstPort 1
}
Line {
Name "D"
Labels [0, 0]
SrcBlock "Sum4"
SrcPort 1
DstBlock "D"
DstPort 1
}
Line {
SrcBlock "(1-D)Ig"
SrcPort 1
DstBlock "Sum3"
DstPort 2
}
Line {
SrcBlock "prevent \ndiv by zero"
SrcPort 1
DstBlock "Efficiency\ncalculation"
DstPort 2
}
Line {
SrcBlock "Pinput = Vg*Ig"
SrcPort 1
DstBlock "prevent \ndiv by zero"
DstPort 1
}
Annotation {
Name "ECEN2060 Switched-mode Boost (step-up) DC-D"
"C averaged converter model"
Position [269, 14]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "output current"
Position [776, 154]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "output voltage"
Position [59, 240]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "input voltage"
Position [60, 105]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "Reference\ninput current"
Position [53, 37]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "duty cycle"
Position [776, 53]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "output power"
Position [842, 235]
UseDisplayTextAsClickCallback off
}
}
}
Block {
BlockType Display
Name "Boost efficiency"
Ports [1]
Position [825, 84, 910, 116]
Decimation "1"
Lockdown off
}
Block {
BlockType Product
Name "Compute\nPpv"
Ports [2, 1]
Position [405, 282, 435, 313]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
Port {
PortNumber 1
Name "Ppv"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Gain
Name "Convert to\nkWh"
Position [430, 660, 470, 700]
Gain "1/60/1000"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Display
Name "Eideal"
Ports [1]
Position [485, 665, 570, 695]
BackgroundColor "green"
Decimation "1"
Lockdown off
}
Block {
BlockType Display
Name "Eout"
Ports [1]
Position [815, 670, 900, 700]
BackgroundColor "green"
Decimation "1"
Lockdown off
}
Block {
BlockType Display
Name "Epv"
Ports [1]
Position [540, 505, 625, 535]
BackgroundColor "green"
Decimation "1"
Lockdown off
}
Block {
BlockType Integrator
Name "Integrate \nPideal"
Ports [1, 1]
Position [380, 665, 410, 695]
IgnoreLimit off
}
Block {
BlockType Integrator
Name "Integrate \nPout"
Ports [1, 1]
Position [690, 670, 720, 700]
NamePlacement "alternate"
IgnoreLimit off
}
Block {
BlockType Integrator
Name "Integrate \nPpv"
Ports [1, 1]
Position [435, 505, 465, 535]
IgnoreLimit off
}
Block {
BlockType Display
Name "Ipv"
Ports [1]
Position [420, 100, 510, 130]
Decimation "1"
Lockdown off
}
Block {
BlockType Gain
Name "Ipv = Iref"
Position [245, 566, 285, 604]
Orientation "left"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
Port {
PortNumber 1
Name "Ipv"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Constant
Name "Iref\n(constant)"
Position [500, 345, 530, 375]
Value "4"
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 SubSystem
Name "MPP tracking\ncontroller\nMPPtrackIref.m"
Ports [1, 1]
Position [475, 278, 555, 322]
BackgroundColor "yellow"
NamePlacement "alternate"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskPromptString "Sample interval"
MaskStyleString "edit"
MaskTunableValueString "on"
MaskEnableString "on"
MaskVisibilityString "on"
MaskToolTipString "on"
MaskVariables "Tsample=@1;"
MaskInitialization "InitializeMPPtrackIref"
MaskDisplay "text(0.5,0.5,'MPPT','horizontalAlignment', 'cen"
"ter');"
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "normalized"
MaskValueString "0.2"
Port {
PortNumber 1
Name "Iref1"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
System {
Name "MPP tracking\ncontroller\nMPPtrackIref.m"
Location [542, 416, 1144, 643]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "P"
Position [60, 103, 90, 117]
IconDisplay "Port number"
}
Block {
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -