📄 1130921592.mdl
字号:
Name "Gain5"
Position [300, 320, 330, 350]
Gain "3"
}
Block {
BlockType Reference
Name "Ground"
Ports [0, 0, 0, 0, 0, 1]
Position [769, 295, 791, 320]
Orientation "down"
AttributesFormatString "\\n"
SourceBlock "powerlib/Elements/Ground"
SourceType "Ground"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
PortType "p1"
LConnTagsString "a"
}
Block {
BlockType Reference
Name "Ground1"
Ports [0, 0, 0, 0, 0, 1]
Position [349, 205, 371, 230]
Orientation "down"
AttributesFormatString "\\n"
SourceBlock "powerlib/Elements/Ground"
SourceType "Ground"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
PortType "p1"
LConnTagsString "a"
}
Block {
BlockType Reference
Name "Ideal Switch"
Ports [1, 0, 0, 0, 0, 1, 1]
Position [1260, 165, 1315, 205]
Orientation "down"
NamePlacement "alternate"
AttributesFormatString "\\n"
FontSize 10
SourceBlock "powerlib/Power\nElectronics/Ideal Switch"
SourceType "Ideal Switch"
Ron "0.001"
Lon "0"
IC "0"
Rs "1e5"
Cs "inf"
Measurements off
}
Block {
BlockType Reference
Name "Ideal Switch1"
Ports [1, 0, 0, 0, 0, 1, 1]
Position [1135, 135, 1190, 175]
AttributesFormatString "\\n"
FontSize 10
SourceBlock "powerlib/Power\nElectronics/Ideal Switch"
SourceType "Ideal Switch"
Ron "0.001"
Lon "0"
IC "0"
Rs "1e5"
Cs "inf"
Measurements off
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [425, 301, 430, 339]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux1"
Ports [2, 1]
Position [470, 41, 475, 79]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [695, 371, 740, 404]
InputSameDT off
}
Block {
BlockType Saturate
Name "Saturation"
Position [875, 440, 905, 470]
UpperLimit "50"
LowerLimit "-50"
SampleTime "555e-6"
Port {
PortNumber 1
Name "限幅输出"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [525, 42, 555, 78]
Location [1, 49, 1025, 737]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "1"
YMin "-50"
YMax "50"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Scope
Name "Scope5"
Ports [1]
Position [970, 437, 1000, 473]
Location [6, 54, 1020, 719]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
YMin "-45"
YMax "45"
SaveName "ScopeData4"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Scope
Name "Scope7"
Ports [1]
Position [445, 302, 475, 338]
Location [6, 54, 1020, 719]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
YMin "-40"
YMax "40"
SaveName "ScopeData6"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Sum
Name "Sum"
Ports [3, 1]
Position [515, 379, 550, 421]
ShowName off
Inputs "|+--"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [815, 445, 835, 465]
ShowName off
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [875, 495, 895, 515]
Orientation "left"
NamePlacement "alternate"
ShowName off
IconShape "round"
Inputs "|-+"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum3"
Ports [3, 1]
Position [360, 374, 395, 416]
ShowName off
Inputs "|-++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
Port {
PortNumber 1
Name "(K+1)时刻\n参考电压"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType UnitDelay
Name "Unit Delay"
Position [220, 380, 255, 420]
SampleTime "-1"
}
Block {
BlockType UnitDelay
Name "Unit Delay1"
Position [280, 380, 315, 420]
SampleTime "-1"
}
Block {
BlockType SubSystem
Name "V"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [0, 1, 0, 0, 0, 2]
Position [520, 198, 545, 222]
AttributesFormatString "\\n"
AncestorBlock "powerlib/Measurements/Voltage Measurement"
CopyFcn "powericon('psbloadfunction',gcbh,'Measurement B"
"lock','VerifyPhasor');"
LoadFcn "powericon('psbloadfunction',gcbh,'Measurement B"
"lock','');"
PreSaveFcn "powericon('psbloadfunction',gcbh,'ModelCloseFcn"
"','');"
InitFcn "powericon('psbloadfunction',gcbh,'InitFcnOfSPSB"
"locks','Measurement Block');"
CloseFcn "powericon('psbloadfunction',gcbh,'CloseFcn','')"
";"
TreatAsAtomicUnit off
MaskType "Voltage Measurement"
MaskDescription "Ideal voltage measurement."
MaskHelp "web(psbhelp);"
MaskPromptString "Phasor simulation|Output signal :|Equivalent ci"
"rcuit"
MaskStyleString "checkbox,popup(Complex|Real-Imag|Magnitude-Angl"
"e|Magnitude),edit"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "off,off,off"
MaskVisibilityString "off,on,off"
MaskToolTipString "on,on,on"
MaskVarAliasString ",,"
MaskVariables "PhasorSimulation=@1;OutputType=@2;PSBequivalent"
"=@3;"
MaskInitialization "switch OutputType\ncase 1\n OutputSelection "
"= 1;\n NormalMode = 2;\n PhasorMode = 1;\ncase 2\n OutputSelection ="
"[2,3];\n NormalMode = 3;\n PhasorMode = [1,2];\ncase 3\n OutputSelec"
"tion =[4,5];\n NormalMode = 3;\n PhasorMode = [1,2];\ncase 4\n Outpu"
"tSelection =[4];\n NormalMode = 2;\n PhasorMode = 1;\nend\n%\nif Phasor"
"Simulation\n SelectionMode = PhasorMode;\nelse\n SelectionMode = Normal"
"Mode;\nend\n"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "port"
MaskIconUnits "autoscale"
MaskValueString "off|Magnitude|0"
System {
Name "V"
Location [206, 474, 665, 687]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [275, 121, 280, 179]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType SubSystem
Name "Phasor Measurements"
Ports [1, 1, 1]
Position [145, 123, 250, 147]
BackgroundColor "green"
TreatAsAtomicUnit on
System {
Name "Phasor Measurements"
Location [255, 525, 861, 796]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "measure"
Position [70, 28, 100, 42]
}
Block {
BlockType EnablePort
Name "Enable"
Ports []
Position [20, 15, 40, 35]
}
Block {
BlockType Gain
Name "180/pi"
Position [225, 105, 245, 125]
Gain "180/pi"
}
Block {
BlockType ComplexToMagnitudeAngle
Name "Complex to\nMagnitude-Angle"
Ports [1, 2]
Position [140, 85, 195, 125]
ShowName off
Output "Magnitude and angle"
}
Block {
BlockType ComplexToRealImag
Name "Complex to\nReal-Imag"
Ports [1, 2]
Position [140, 45, 195, 85]
ShowName off
Output "Real and imag"
}
Block {
BlockType Mux
Name "Mux2"
Ports [5, 1]
Position [275, 23, 280, 127]
ShowName off
Inputs "5"
DisplayOption "bar"
}
Block {
BlockType Selector
Name "Selector"
Ports [1, 1]
Position [315, 51, 350, 99]
Elements "OutputSelection"
InputPortWidth "5"
}
Block {
BlockType Outport
Name "options"
Position [380, 68, 410, 82]
InitialOutput "0"
}
Line {
SrcBlock "Selector"
SrcPort 1
DstBlock "options"
DstPort 1
}
Line {
SrcBlock "180/pi"
SrcPort 1
DstBlock "Mux2"
DstPort 5
}
Line {
SrcBlock "Complex to\nMagnitude-Angle"
SrcPort 2
DstBlock "180/pi"
DstPort 1
}
Line {
SrcBlock "Complex to\nMagnitude-Angle"
SrcPort 1
DstBlock "Mux2"
DstPort 4
}
Line {
SrcBlock "Complex to\nReal-Imag"
SrcPort 2
DstBlock "Mux2"
DstPort 3
}
Line {
SrcBlock "Complex to\nReal-Imag"
SrcPort 1
DstBlock "Mux2"
DstPort 2
}
Line {
SrcBlock "measure"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
DstBlock "Mux2"
DstPort 1
}
Branch {
Points [0, 30]
Branch {
DstBlock "Complex to\nReal-Imag"
DstPort 1
}
Branch {
Points [0, 40]
DstBlock "Complex to\nMagnitude-Angle"
DstPort 1
}
}
}
Line {
SrcBlock "Mux2"
SrcPort 1
DstBlock "Selector"
DstPort 1
}
}
}
Block {
BlockType Selector
Name "Selector"
Ports [1, 1]
Position [305, 128, 370, 172]
Elements "SelectionMode"
InputPortWidth "length(OutputSelection)+1"
}
Block {
BlockType Constant
Name "Simulation method"
Position [140, 85, 250, 105]
Orientation "down"
BackgroundColor "magenta"
NamePlacement "alternate"
ShowName off
Value "PhasorSimulation"
}
Block {
BlockType PMComponent
Name "VoltageMeasurement"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [80, 21, 145, 49]
PhysicalDomain "powersysdomain"
PortType "p1"
LConnTagsString "+"
RConnTagsString "-"
MaskType "InnerPowersysBlock"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType From
Name "source"
Position [25, 124, 95, 146]
GotoTag "tp012854"
}
Block {
BlockType PMIOPort
Name "+"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -