📄 sanjiaobo_gaoping.mdl
字号:
LogicOutDataTypeMode "Boolean"
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator3"
Position [565, 572, 595, 603]
Operator "<="
InputSameDT off
LogicOutDataTypeMode "Boolean"
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator4"
Position [565, 447, 595, 478]
Operator "<="
InputSameDT off
LogicOutDataTypeMode "Boolean"
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator5"
Position [565, 512, 595, 543]
Operator "<="
InputSameDT off
LogicOutDataTypeMode "Boolean"
}
Block {
BlockType Scope
Name "Scope"
Ports [7]
Position [815, 225, 875, 615]
Floating off
Location [1, 44, 1017, 729]
Open off
NumInputPorts "7"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
axes5 "%<SignalLabel>"
axes6 "%<SignalLabel>"
axes7 "%<SignalLabel>"
}
YMin "-5~-5~-5~-5~-5~-5~-5"
YMax "5~5~5~5~5~5~5"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [800, 84, 830, 116]
Floating off
Location [5, 45, 1021, 729]
Open off
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData1"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Reference
Name "Series RLC Branch"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [210, 254, 275, 266]
FontSize 10
SourceBlock "powerlib/Elements/Series RLC Branch"
SourceType "Series RLC Branch"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__new0"
RConnTagsString "__new0"
BranchType "RLC"
Resistance "1"
Inductance "1e-3"
SetiL0 off
InitialCurrent "0"
Capacitance "1e-6"
Setx0 off
InitialVoltage "0"
Measurements "None"
}
Block {
BlockType Reference
Name "Series RLC Branch1"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [210, 284, 275, 296]
FontSize 10
SourceBlock "powerlib/Elements/Series RLC Branch"
SourceType "Series RLC Branch"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__new0"
RConnTagsString "__new0"
BranchType "RLC"
Resistance "1"
Inductance "1e-3"
SetiL0 off
InitialCurrent "0"
Capacitance "1e-6"
Setx0 off
InitialVoltage "0"
Measurements "None"
}
Block {
BlockType Reference
Name "Series RLC Branch2"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [210, 314, 275, 326]
FontSize 10
SourceBlock "powerlib/Elements/Series RLC Branch"
SourceType "Series RLC Branch"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__new0"
RConnTagsString "__new0"
BranchType "RLC"
Resistance "1"
Inductance "1e-3"
SetiL0 off
InitialCurrent "0"
Capacitance "1e-6"
Setx0 off
InitialVoltage "0"
Measurements "None"
}
Block {
BlockType Signum
Name "Sign"
Position [245, 30, 275, 60]
}
Block {
BlockType SignalGenerator
Name "Signal\nGenerator"
Ports [0, 1]
Position [120, 30, 150, 60]
Frequency "300"
}
Block {
BlockType Reference
Name "Three-Phase\nProgrammable\nVoltage Source"
Ports [0, 0, 0, 0, 0, 1, 3]
Position [40, 352, 90, 408]
FontSize 10
SourceBlock "powerlib/Electrical\nSources/Three-Phase\nProgr"
"ammable\nVoltage Source"
SourceType "Three-Phase Programmable Voltage Source"
ShowPortLabels on
PositiveSequence "[100 0 60]"
VariationEntity "Amplitude"
VariationType "Step"
VariationStep "0.5"
VariationRate "10"
VariationMagnitude "0.3"
VariationFrequency "2"
VariationTiming "[1 2]"
VariationPhaseA off
Amplitudes "[1 0.8 1.2 1.0]"
TimeValues "[0 0.1 0.15 0.2]"
HarmonicGeneration off
HarmonicA "[3 0.2 -25 0]"
HarmonicB "[2 0.15 35 2]"
Timing "[0.05 3]"
}
Block {
BlockType Reference
Name "Three-Phase Source"
Ports [0, 0, 0, 0, 0, 0, 3]
Position [35, 242, 125, 338]
FontSize 10
SourceBlock "powerlib/Electrical\nSources/Three-Phase Source"
SourceType "Three-Phase Source"
ShowPortLabels on
Voltage "0.707"
PhaseAngle "0"
Frequency "50"
InternalConnection "Yg"
SpecifyImpedance on
Resistance "0.8929"
Inductance "16.58e-3"
ShortCircuitLevel "100e6"
BaseVoltage "25e3"
XRratio "7"
}
Block {
BlockType Reference
Name "Variable\nFractional Delay"
Ports [2, 1]
Position [405, 70, 490, 110]
SourceBlock "dspsigops/Variable\nFractional Delay"
SourceType "Variable Fractional Delay"
mode "Linear interpolation"
dmax "100"
L "4"
R "10"
alpha "1"
ic "0"
}
Block {
BlockType Reference
Name "Variable\nFractional Delay1"
Ports [2, 1]
Position [635, 80, 720, 120]
SourceBlock "dspsigops/Variable\nFractional Delay"
SourceType "Variable Fractional Delay"
mode "Linear interpolation"
dmax "100"
L "4"
R "10"
alpha "1"
ic "0"
}
Block {
BlockType Reference
Name "Voltage Measurement"
Ports [0, 1, 0, 0, 0, 2]
Position [230, 363, 255, 387]
SourceBlock "powerlib/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
ShowPortLabels on
PhasorSimulation off
OutputType "Complex"
PSBequivalent "0"
}
Block {
BlockType Reference
Name "Voltage Measurement1"
Ports [0, 1, 0, 0, 0, 2]
Position [230, 423, 255, 447]
SourceBlock "powerlib/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
ShowPortLabels on
PhasorSimulation off
OutputType "Complex"
PSBequivalent "0"
}
Block {
BlockType Reference
Name "Voltage Measurement2"
Ports [0, 1, 0, 0, 0, 2]
Position [235, 473, 260, 497]
SourceBlock "powerlib/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
ShowPortLabels on
PhasorSimulation off
OutputType "Complex"
PSBequivalent "0"
}
Block {
BlockType SubSystem
Name "powergui"
Ports []
Position [15, 15, 75, 39]
AncestorBlock "powerlib/powergui"
CopyFcn "powergui('Copy_Callback',gcb,0,[]);"
DeleteFcn "powergui('Copy_Callback',gcb,1,[]);powergui('Cl"
"ose_Callback',gcb,[],[]);\n "
" "
ModelCloseFcn "powergui('Close_Callback',gcb,[],[]);"
PreSaveFcn "try \nclose(get_pa"
"ram(gcbh,'userdata'))\nend "
NameChangeFcn "handles = get_param(gcb,'UserData');if ~isempty"
"(handles);delete(handles.powergui);end"
OpenFcn "if (power_openblockproxy ('secondary'))\npowerg"
"ui(gcb,'PM')\nend;"
FontSize 11
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskType "PSB option menu block"
MaskHelp "web(psbhelp)"
MaskPromptString "General parameter: Simulation Mode |General par"
"ameter: Sample Time|General parameter: Echo Messages|Initial electrical stat"
"es status|Impedance tool: Frequency Range|Impedance tool: Log impedance|Imped"
"ance tool: log Frequency|Impedance tool: grid|Impedance tool: Save Data To Wo"
"rkspace|Impedance tool: Variable Name|Structure Name (PSBFFTSCOPE)|ZoomFFT (P"
"SBFFTSCOPE)|Start Time (PSBFFTSCOPE)|Cycles (PSBFFTSCOPE)|Display style (PSBF"
"FTSCOPE)|Fundamental (PSBFFTSCOPE)|Frequency Axis (PSBFFTSCOPE)|Max Frequency"
" (PSBFFTSCOPE)|Frequency indice (PSBLOADFLOW)|Frequency indice (STEADYSTATE)"
"|RMS display (STEADYSTATE)|Display Results|Sample time (s): |General paramet"
"er: phasor frequency|Phasor simulation"
MaskStyleString "popup(Continuous|Discrete|Phasor),edit,checkbox"
",popup(blocks|steady|zero),edit,checkbox,checkbox,checkbox,checkbox,edit,edit"
",checkbox,edit,edit,edit,edit,checkbox,edit,edit,edit,edit,checkbox,edit,edit"
",checkbox"
MaskTunableValueString "on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on"
",on,on,on,on,on,on,on,on,on"
MaskCallbackString "||||||||||||||||||||||||"
MaskEnableString "on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on"
",on,on,on,on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,off,off,off,off,off,off,off,off,off"
",off,off,off,off,off,off,off,off,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on,on,on,on,on,on,on,on,on,on,on"
",on,on,on,on,on,on,on,on,on"
MaskVarAliasString ",,,,,,,,,,,,,,,,,,,,,,,,"
MaskVariables "SimulationMode=@1;SampleTime=@2;echomessages=@3"
";x0status=@4;Frange=@5;Ylog=@6;Xlog=@7;ShowGrid=@8;save=@9;variable=&10;struc"
"ture=&11;ZoomFFT=@12;StartTime=@13;cycles=@14;DisplayStyle=&15;fundamental=@1"
"6;FreqAxis=@17;MaxFrequency=@18;frequencyindice=@19;frequencyindicesteady=@20"
";RmsSteady=@21;display=@22;Ts=@23;frequency=@24;methode=@25;"
MaskInitialization "powerlibroot = which('powersysdomain');\nPSBroo"
"t = powerlibroot(1:end-16);\n%\nswitch SimulationMode\n case 1\n"
" message=sprintf('Continuous');\n case 2\n messa"
"ge=sprintf('Discrete,\\nTs = %.4g s.',SampleTime);\n case 3\n "
" message=sprintf('Phasors');\nend\nif strcmp(bdroot,'powerlib')\n mes"
"sage='powergui';\nend\npower_initmask();"
MaskDisplay "disp(message)"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "Continuous|0|off|blocks|[0:2:500]|off|on|off|of"
"f|ZData||on|0.0|1|1|60|off|1000|1|1|1|off|0|60|off"
MaskTabNameString ",,,,,,,,,,,,,,,,,,,,,,,,"
System {
Name "powergui"
Location [137, 405, 682, 583]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType SubSystem
Name "EquivalentModel1"
Ports []
Position [15, 70, 143, 105]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskInitialization "SPS = get_param(gcbh,'UserData');\nif isemp"
"ty(SPS)\n A=0;\n B=0;\n C=0;\n D=0;\n x0=0;\nelse\n A=S"
"PS.A;\n B=SPS.B;\n C=SPS.C;\n D=SPS.D;\n x0=SPS.x0;\nend"
MaskDisplay "color('green')\ndisp('EQUIVALENT CIRCUIT')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "EquivalentModel1"
Location [279, 434, 674, 551]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType SubSystem
Name "Sources"
Ports [0, 1]
Position [15, 32, 80, 58]
FontName "Arial"
FontSize 14
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "Sources"
Location [16, 100, 737, 762]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType From
Name "From1"
Position [15, 21, 85, 49]
GotoTag "tp474231"
}
Block {
BlockType Mux
Name "Mux"
Ports [1, 1]
Position [325, 270, 330, 610]
Inputs "1"
DisplayOption "bar"
}
Block {
BlockType Outport
Name "u"
Position [365, 433, 395, 447]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "u"
DstPort 1
}
Line {
SrcBlock "From1"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
}
}
Block {
BlockType "S-Function"
Name "State-Space"
Ports [1, 1]
Position [115, 20, 240, 70]
FontName "Arial"
FontSize 14
FunctionName "sfun_spssw_contc"
Parameters "A, B, C, D, x0"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType SubSystem
Name "Yout"
Ports [1]
Position [275, 33, 340, 57]
FontName "Arial"
FontSize 14
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "Yout"
Location [124, 85, 631, 971]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -