📄 pvmodel.mdl
字号:
Port "4"
IconDisplay "Port number"
}
Block {
BlockType Sum
Name "Add1"
Ports [2, 1]
Position [640, 128, 660, 192]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^-10"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Constant
Name "Constant"
Position [75, 50, 105, 80]
Value "-1"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Constant
Name "Constant1"
Position [445, 135, 475, 165]
Value "-1"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Product
Name "Divide1"
Ports [2, 1]
Position [225, 186, 255, 219]
Inputs "*/"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^-10"
OutDataTypeStr "Inherit: Inherit via internal rule"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Divide2"
Ports [2, 1]
Position [200, 301, 230, 334]
Inputs "*/"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^-10"
OutDataTypeStr "Inherit: Inherit via internal rule"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Divide3"
Ports [2, 1]
Position [550, 221, 580, 254]
Inputs "*/"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^-10"
OutDataTypeStr "Inherit: Inherit via internal rule"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Divide4"
Ports [2, 1]
Position [205, 81, 235, 114]
Inputs "*/"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^-10"
OutDataTypeStr "Inherit: Inherit via internal rule"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Math
Name "Math\nFunction1"
Ports [1, 1]
Position [295, 304, 325, 336]
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [445, 82, 475, 113]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product3"
Ports [2, 1]
Position [460, 197, 490, 228]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "Rs"
Position [685, 153, 715, 167]
IconDisplay "Port number"
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [70, 0; 0, 45]
DstBlock "Add1"
DstPort 1
}
Line {
SrcBlock "Divide3"
SrcPort 1
Points [25, 0; 0, -65]
DstBlock "Add1"
DstPort 2
}
Line {
SrcBlock "Divide4"
SrcPort 1
Points [20, 0; 0, -10]
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [55, 0]
DstBlock "Divide3"
DstPort 1
}
Line {
SrcBlock "Product3"
SrcPort 1
Points [20, 0; 0, 30]
DstBlock "Divide3"
DstPort 2
}
Line {
SrcBlock "Math\nFunction1"
SrcPort 1
Points [55, 0; 0, -100]
DstBlock "Product3"
DstPort 2
}
Line {
SrcBlock "Divide1"
SrcPort 1
DstBlock "Product3"
DstPort 1
}
Line {
SrcBlock "Divide2"
SrcPort 1
DstBlock "Math\nFunction1"
DstPort 1
}
Line {
SrcBlock "Vt_Tr"
SrcPort 1
Points [15, 0]
Branch {
Points [0, 105]
DstBlock "Divide2"
DstPort 2
}
Branch {
Points [90, 0; 0, -10]
DstBlock "Divide1"
DstPort 2
}
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [35, 0; 0, 25; 15, 0]
Branch {
DstBlock "Divide4"
DstPort 1
}
Branch {
Points [0, 65; 90, 0; 0, -50]
DstBlock "Product1"
DstPort 2
}
}
Line {
SrcBlock "Ns"
SrcPort 1
Points [0, -5]
DstBlock "Divide4"
DstPort 2
}
Line {
SrcBlock "Add1"
SrcPort 1
DstBlock "Rs"
DstPort 1
}
Line {
SrcBlock "Ir_Tr"
SrcPort 1
Points [0, 25]
DstBlock "Divide1"
DstPort 1
}
Line {
SrcBlock "Voc_Tr"
SrcPort 1
Points [0, 20]
DstBlock "Divide2"
DstPort 1
}
Annotation {
Position [27, 29]
}
}
}
Block {
BlockType SubSystem
Name "Subsystem5"
Ports [4, 1]
Position [1120, 631, 1215, 724]
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
MaskHideContents off
System {
Name "Subsystem5"
Location [647, 502, 957, 799]
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 "n"
Position [15, 13, 45, 27]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "K"
Position [15, 53, 45, 67]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Tk"
Position [15, 113, 45, 127]
Port "3"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "q"
Position [145, 93, 175, 107]
Port "4"
IconDisplay "Port number"
}
Block {
BlockType Product
Name "Divide"
Ports [2, 1]
Position [200, 76, 230, 109]
Inputs "*/"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^-10"
OutDataTypeStr "Inherit: Inherit via internal rule"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product3"
Ports [3, 1]
Position [80, 29, 110, 61]
Inputs "3"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "Vt_Tk"
Position [255, 88, 285, 102]
IconDisplay "Port number"
}
Line {
SrcBlock "Product3"
SrcPort 1
Points [35, 0; 0, 40]
DstBlock "Divide"
DstPort 1
}
Line {
SrcBlock "n"
SrcPort 1
Points [0, 15]
DstBlock "Product3"
DstPort 1
}
Line {
SrcBlock "K"
SrcPort 1
Points [0, -15]
DstBlock "Product3"
DstPort 2
}
Line {
SrcBlock "Tk"
SrcPort 1
Points [0, -65]
DstBlock "Product3"
DstPort 3
}
Line {
SrcBlock "Divide"
SrcPort 1
DstBlock "Vt_Tk"
DstPort 1
}
Line {
SrcBlock "q"
SrcPort 1
DstBlock "Divide"
DstPort 2
}
}
}
Block {
BlockType SubSystem
Name "Subsystem6"
Ports [5, 1]
Position [735, 827, 880, 1023]
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
MaskHideContents off
System {
Name "Subsystem6"
Location [185, 160, 1337, 542]
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 "Va"
Position [25, 83, 55, 97]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Ns"
Position [25, 133, 55, 147]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Vt_Tk"
Position [405, 268, 435, 282]
Port "3"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Rs"
Position [135, 263, 165, 277]
Port "4"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Ir"
Position [695, 333, 725, 347]
Port "5"
IconDisplay "Port number"
}
Block {
BlockType Sum
Name "Add1"
Ports [2, 1]
Position [355, 178, 375, 242]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^-10"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Add2"
Ports [2, 1]
Position [685, 243, 705, 307]
Inputs "+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^-10"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Add3"
Ports [3, 1]
Position [955, 108, 975, 172]
Inputs "+++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^-10"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "Algebraic Constraint"
Ports [1, 1]
Position [995, 124, 1095, 156]
ForegroundColor "blue"
SourceBlock "simulink/Math\nOperations/Algebraic Constraint"
SourceType "Algebraic Constraint"
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"
z0 "1"
}
Block {
BlockType Constant
Name "Array volatge1"
Position [530, 310, 560, 340]
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Product
Name "Divide1"
Ports [2, 1]
Position [485, 241, 515, 274]
Inputs "*/"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^-10"
OutDataTypeStr "Inherit: Inherit via internal rule"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Divide4"
Ports
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -