📄 fm_lib.mdl
字号:
}
Block {
BlockType EnablePort
StatesWhenEnabling "held"
ShowOutputPort off
ZeroCross on
}
Block {
BlockType From
IconDisplay "Tag"
}
Block {
BlockType Goto
IconDisplay "Tag"
}
Block {
BlockType Inport
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
Interpolate on
}
Block {
BlockType Outport
Port "1"
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 PMComponent
SubClassName "unknown"
}
Block {
BlockType PMIOPort
}
Block {
BlockType SubSystem
ShowPortLabels on
Permissions "ReadWrite"
PermitHierarchicalResolution "All"
SystemSampleTime "-1"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType Terminator
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "fm_lib"
Location [366, 366, 759, 603]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType SubSystem
Name "Connections"
Tag "PSATfolder"
Description "Connections"
Ports []
Position [47, 17, 109, 76]
ShowName off
FontSize 12
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskInitialization "x = fm_draw('connections');"
MaskDisplay "image(x)"
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Connections"
Location [46, 65, 472, 273]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType PMComponent
Name "Bus1"
Tag "PSATblock"
Description "Connection"
Ports [0, 0, 0, 0, 0, 2, 1]
Position [100, 80, 155, 85]
Orientation "down"
BackgroundColor "black"
PhysicalDomain "psatdomain"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__newl0|__newl1"
RConnTagsString "__newr0"
MaskType "Bus"
MaskDescription "Bus block."
MaskPromptString "Number of inputs:|Number of outputs:|Voltag"
"e Rating [kV]|Voltage initial guess [p.u. rad]|Area number|Region number"
MaskStyleString "edit,edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on,on"
MaskCallbackString "||||fm_block|"
MaskEnableString "on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on"
MaskVarAliasString ",,,,,"
MaskVariables "in=@1;out=@2;p2q=@3;p3_4q=@4;p5q=@5;p6q=@6;"
MaskInitialization "fm_inout\n\n"
MaskDisplay "plot([0 1 1 0 0],[0 0 1 1 0])"
MaskSelfModifiable on
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "port"
MaskIconUnits "autoscale"
MaskValueString "2|1|400|[1.00 0.00]|1|1"
MaskTabNameString ",,,,,"
}
Block {
BlockType PMComponent
Name "Bus2"
Tag "PSATblock"
Description "Connection"
Ports [0, 0, 0, 0, 0, 3, 2]
Position [55, 81, 60, 149]
BackgroundColor "black"
PhysicalDomain "psatdomain"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__newl0|__newl1|__newl2"
RConnTagsString "__newr0|__newr1"
MaskType "Bus"
MaskDescription "Bus block"
MaskPromptString "Number of inputs:|Number of outputs:|Voltag"
"e Rating [kV]|Voltage initial guess [p.u. rad]|Area number|Region number"
MaskStyleString "edit,edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on,on"
MaskCallbackString "||||fm_block|"
MaskEnableString "on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on"
MaskVarAliasString ",,,,,"
MaskVariables "in=@1;out=@2;p2q=@3;p3_4q=@4;p5q=@5;p6q=@6;"
MaskInitialization "fm_inout\n\n"
MaskDisplay "plot([0 1 1 0 0],[0 0 1 1 0])"
MaskSelfModifiable on
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "port"
MaskIconUnits "autoscale"
MaskValueString "3|2|400|[1.00 0.00]|1|1"
MaskTabNameString ",,,,,"
}
Block {
BlockType SubSystem
Name "Bus3"
Tag "PSATblock"
Description "Connection"
Ports [0, 1, 0, 0, 0, 3, 2]
Position [370, 72, 375, 148]
BackgroundColor "black"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "Bus"
MaskDescription "Bus block."
MaskPromptString "Number of inputs:|Number of outputs:|Voltag"
"e Rating [kV]|Voltage initial guess [p.u. rad]|Area number|Region number|Inp"
"ut Signals |Output Signals"
MaskStyleString "edit,edit,edit,edit,edit,edit,popup(0|1|2|3"
"),popup(0|1|2|3)"
MaskTunableValueString "on,on,on,on,on,on,on,on"
MaskCallbackString "|||||||"
MaskEnableString "on,on,on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on,on,on"
MaskVarAliasString ",,,,,,,"
MaskVariables "in=@1;out=@2;p2q=@3;p3_4q=@4;p5q=@5;p6q=@6;"
"ins=@7;ous=@8;"
MaskInitialization "fm_inout"
MaskDisplay "plot([0 1 1 0 0],[0 0 1 1 0])"
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "port"
MaskIconUnits "autoscale"
MaskValueString "3|2|400|[1.00 0.00]|1|1|0|1"
MaskTabNameString ",,,,,,,"
System {
Name "Bus3"
Location [62, 362, 518, 664]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Constant
Name "g1"
Position [130, 20, 155, 50]
}
Block {
BlockType PMComponent
Name "pmc"
Ports [0, 0, 0, 0, 0, 2, 3]
Position [130, 73, 230, 277]
PhysicalDomain "psatdomain"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__newl0|__newl1"
RConnTagsString "__newr0|__newr1|__newr2"
}
Block {
BlockType PMIOPort
Name "pmc_out_0"
Tag "PMCPort"
Position [275, 96, 305, 114]
Orientation "left"
Port "1"
Side "Left"
}
Block {
BlockType PMIOPort
Name "pmc_in_0"
Tag "PMCPort"
Position [65, 116, 95, 134]
Port "2"
Side "Right"
}
Block {
BlockType PMIOPort
Name "pmc_in_1"
Position [65, 216, 95, 234]
Port "3"
Side "Right"
}
Block {
BlockType PMIOPort
Name "pmc_out_1"
Position [275, 166, 305, 184]
Orientation "left"
Port "4"
Side "Left"
}
Block {
BlockType PMIOPort
Name "pmc_out_2"
Position [275, 236, 305, 254]
Orientation "left"
Port "5"
Side "Left"
}
Block {
BlockType Outport
Name "out_1"
Position [185, 25, 205, 45]
IconDisplay "Port number"
}
Line {
LineType "Connection"
SrcBlock "pmc_in_0"
SrcPort RConn1
DstBlock "pmc"
DstPort LConn1
}
Line {
LineType "Connection"
SrcBlock "pmc"
SrcPort RConn1
DstBlock "pmc_out_0"
DstPort RConn1
}
Line {
SrcBlock "g1"
SrcPort 1
DstBlock "out_1"
DstPort 1
}
Line {
LineType "Connection"
SrcBlock "pmc_in_1"
SrcPort RConn1
DstBlock "pmc"
DstPort LConn2
}
Line {
LineType "Connection"
SrcBlock "pmc"
SrcPort RConn2
Points [0, 0]
DstBlock "pmc_out_1"
DstPort RConn1
}
Line {
LineType "Connection"
SrcBlock "pmc"
SrcPort RConn3
DstBlock "pmc_out_2"
DstPort RConn1
}
Annotation {
Name "Tap Changer Under Load "
Position [164, 45]
}
}
}
Block {
BlockType From
Name "From Bus2"
Tag "PSATblock"
Description "Connection"
Position [285, 71, 325, 99]
DialogController "Simulink.DDGSource"
CloseFcn "tagdialog Close"
GotoTag "A"
}
Block {
BlockType Goto
Name "Goto Bus1"
Tag "PSATblock"
Description "Connection"
Position [215, 70, 255, 100]
DialogController "Simulink.DDGSource"
GotoTag "A"
TagVisibility "local"
}
Block {
BlockType SubSystem
Name "Link1"
Tag "PSATblock"
Description "Connection"
Ports [0, 0, 1, 0, 0, 1, 1]
Position [123, 125, 157, 155]
Orientation "down"
ShowName off
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "Link"
MaskDescription "Link block"
MaskInitialization "if strcmp(get_param(gcb,'NamePlacement'),'a"
"lternate')\n rot = 0;\nelse\n rot = 1;\nend\n\n"
MaskDisplay "plot([0.45 0],[0.5 0.5],[1 0.55],[0.5 0.5])"
"\ncolor('green')\nplot([0.45 0.55 0.55 0.45 0.45],[0.45 0.45 0.55 0.55 0.45],"
"[0.5 0.5],rot*0.45+[0.1 0.45])\nplot([0.45 0.55 0.55 0.45 0.45],rot*0.9+[0 0 "
"0.1 0.1 0],1-rot,1-rot)\n"
MaskSelfModifiable on
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "port"
MaskIconUnits "autoscale"
System {
Name "Link1"
Location [716, 243, 980, 409]
Open off
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -