📄 pv1.mdl
字号:
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
BlockParameterDefaults {
Block {
BlockType Clock
DisplayTime off
}
Block {
BlockType Constant
}
Block {
BlockType DataTypeConversion
OutDataTypeMode "Inherit via back propagation"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
ConvertRealWorld "Real World Value (RWV)"
RndMeth "Zero"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Fcn
Expr "sin(u[1])"
SampleTime "-1"
}
Block {
BlockType Gain
Gain "1"
Multiplication "Element-wise(K.*u)"
ParameterDataTypeMode "Same as input"
ParameterDataType "sfix(16)"
ParameterScalingMode "Best Precision: Matrix-wise"
ParameterScaling "2^0"
OutDataTypeMode "Same as input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType SignalConversion
OverrideOpt off
}
Block {
BlockType Inport
Port "1"
UseBusObject off
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
LatchByDelayingOutsideSignal off
LatchByCopyingInsideSignal off
Interpolate on
}
Block {
BlockType Lookup
}
Block {
BlockType Mux
Inputs "4"
DisplayOption "none"
UseBusObject off
BusObject "BusObject"
NonVirtualBus off
}
Block {
BlockType Outport
Port "1"
UseBusObject off
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Product
Inputs "2"
Multiplication "Element-wise(.*)"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Zero"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType "S-Function"
FunctionName "system"
SFunctionModules "''"
PortCounts "[]"
}
Block {
BlockType SubSystem
ShowPortLabels on
Permissions "ReadWrite"
PermitHierarchicalResolution "All"
TreatAsAtomicUnit off
SystemSampleTime "-1"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType Sum
IconShape "rectangular"
Inputs "++"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType ToWorkspace
VariableName "simulink_output"
MaxDataPoints "1000"
Decimation "1"
SampleTime "0"
FixptAsFi off
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Arial"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "Arial"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "pv1"
Location [277, 267, 1104, 700]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "cyan"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name "I-V characteristic"
Ports [2]
Position [620, 175, 650, 210]
SourceBlock "simulink/Sinks/XY Graph"
SourceType "XY scope."
ShowPortLabels on
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
xmin "0"
xmax "0.6"
ymin "0"
ymax "1"
st "-1"
}
Block {
BlockType Constant
Name "Insolation"
Position [25, 290, 55, 320]
Value "1000"
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 Gain
Name "Insolation to \nISC current gain"
Position [240, 289, 330, 321]
Gain "1/1000"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
Port {
PortNumber 1
Name "ISC"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [680, 96, 685, 134]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Fcn
Name "PN-junction characteristic"
Position [235, 203, 390, 237]
Expr "1e-9*(exp(u/26e-3)-1)"
Port {
PortNumber 1
Name "Id"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Reference
Name "PV power"
Ports [2]
Position [620, 25, 650, 60]
SourceBlock "simulink/Sinks/XY Graph"
SourceType "XY scope."
ShowPortLabels on
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
xmin "0"
xmax "0.6"
ymin "0"
ymax "0.5"
st "-1"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [530, 97, 560, 128]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
Port {
PortNumber 1
Name "Ppv"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Sum
Name "Sum4"
Ports [2, 1]
Position [435, 295, 455, 315]
ShowName off
IconShape "round"
Inputs "-+|"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
Port {
PortNumber 1
Name "Ipv"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [725, 100, 785, 130]
VariableName "PV"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Structure With Time"
}
Block {
BlockType Reference
Name "Vpv"
Ports [0, 1]
Position [20, 205, 85, 235]
SourceBlock "simulink/Sources/Repeating\nSequence"
SourceType "Repeating table"
ShowPortLabels on
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 2]"
rep_seq_y "[-0.1 0.6 -0.1]"
Port {
PortNumber 1
Name "Vpv"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Line {
Name "ISC"
Labels [0, 0]
SrcBlock "Insolation to \nISC current gain"
SrcPort 1
DstBlock "Sum4"
DstPort 2
}
Line {
Name "Id"
Labels [2, 0]
SrcBlock "PN-junction characteristic"
SrcPort 1
Points [50, 0]
DstBlock "Sum4"
DstPort 1
}
Line {
SrcBlock "Insolation"
SrcPort 1
DstBlock "Insolation to \nISC current gain"
DstPort 1
}
Line {
Name "Ipv"
Labels [0, 0]
SrcBlock "Sum4"
SrcPort 1
Points [50, 0; 0, -105]
Branch {
Points [0, -80]
DstBlock "Product"
DstPort 2
}
Branch {
Points [90, 0]
Branch {
DstBlock "I-V characteristic"
DstPort 2
}
Branch {
Labels [2, 0]
Points [0, -75]
DstBlock "Mux"
DstPort 3
}
}
}
Line {
Name "Ppv"
Labels [0, 0]
SrcBlock "Product"
SrcPort 1
Points [5, 0]
Branch {
Points [0, -65]
DstBlock "PV power"
DstPort 2
}
Branch {
Labels [1, 0]
DstBlock "Mux"
DstPort 2
}
}
Line {
Name "Vpv"
Labels [0, 0]
SrcBlock "Vpv"
SrcPort 1
Points [10, 0]
Branch {
Points [0, -115; 380, 0]
Branch {
Points [30, 0]
Branch {
DstBlock "Product"
DstPort 1
}
Branch {
Points [0, -70; 90, 0]
Branch {
DstBlock "PV power"
DstPort 1
}
Branch {
Labels [2, 0]
Points [0, 70]
DstBlock "Mux"
DstPort 1
}
}
}
Branch {
Points [0, 80]
DstBlock "I-V characteristic"
DstPort 1
}
}
Branch {
DstBlock "PN-junction characteristic"
DstPort 1
}
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "To Workspace"
DstPort 1
}
Annotation {
Name "ECEN2060\nPV cell characteristics"
Position [265, 62]
UseDisplayTextAsClickCallback off
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -