📄 exm070301.mdl
字号:
BreakerResistance "eps"
InitialState "0"
SnubberResistance "inf"
SnubberCapacitance "inf"
SwitchingTimes "0"
External off
Measurements "None"
MoreParameters off
NoBreakLoop off
}
Block {
BlockType Reference
Name "Mi"
Ports [0, 1, 0, 0, 0, 1, 1]
Position [280, 112, 315, 163]
Orientation "left"
NamePlacement "alternate"
SourceBlock "powerlib/Measurements/Current Measurement"
SourceType "Current Measurement"
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"
PhasorSimulation off
OutputType "Complex"
PSBequivalent "0"
}
Block {
BlockType Reference
Name "Mv"
Ports [0, 1, 0, 0, 0, 2]
Position [555, 128, 590, 177]
SourceBlock "powerlib/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
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"
PhasorSimulation off
OutputType "Complex"
PSBequivalent "0"
}
Block {
BlockType Reference
Name "R1"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [65, 31, 135, 59]
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 "R"
Resistance "0.5"
Inductance "1e-3"
SetiL0 off
InitialCurrent "0"
Capacitance "1e-6"
Setx0 off
InitialVoltage "0"
Measurements "None"
}
Block {
BlockType Reference
Name "R2,L"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [317, 200, 353, 270]
Orientation "down"
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 "RL"
Resistance "1"
Inductance "1"
SetiL0 on
InitialCurrent "1"
Capacitance "1e-6"
Setx0 off
InitialVoltage "0"
Measurements "None"
}
Block {
BlockType Reference
Name "R3,C"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [466, 105, 524, 210]
Orientation "down"
NamePlacement "alternate"
AttributesFormatString "\\n"
FontSize 10
SourceBlock "powerlib/Elements/Parallel RLC Branch"
SourceType "Parallel RLC Branch"
PhysicalDomain "powersysdomain"
SubClassName "unknown"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "a"
RConnTagsString "__new0"
BranchType "RC"
Resistance "1"
Inductance "1e-3"
SetiL0 off
InitialCurrent "0"
Capacitance "1"
Setx0 on
InitialVoltage "-1"
Measurements "None"
}
Block {
BlockType Scope
Name "Si"
Ports [1]
Position [190, 96, 225, 154]
Orientation "left"
Floating off
Location [38, 462, 725, 701]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "0"
YMax "6"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Sv"
Ports [1]
Position [615, 128, 650, 182]
Floating off
Location [14, 292, 698, 531]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "-2"
YMax "6"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Reference
Name "Vs"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [17, 140, 53, 190]
Orientation "up"
SourceBlock "powerlib/Electrical\nSources/DC Voltage Source"
SourceType "DC Voltage Source"
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"
Amplitude "10"
Measurements "None"
}
Block {
BlockType SubSystem
Name "powergui"
Ports []
Position [570, 265, 650, 310]
ShowName off
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 \n%close(g"
"et_param(gcbh,'userdata')) \n%end \n "
" \npowergui('Close_Callback',gcb,[],[]);"
InitFcn "powerguiblock = gcb; "
" \nblk = get_param(powerguiblock,'blocks'); \n"
"NbBlocks = length(blk); \nif NbBlocks>2 "
" \n% clean-up: "
" \nfor m=1:NbBlocks-2 "
" \ndelete_block([powerguiblock,'/EquivalentModel',num2str(m)]);"
"\nend \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
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
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 "Discrete|0.01|off|blocks|[0:2:500]|off|on|off|o"
"ff|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"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType SubSystem
Name "EquivalentModel1"
Ports []
Position [15, 70, 143, 105]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskInitialization "SPS = get_param(gcbh,'UserData');\nif isemp"
"ty(SPS)\n Ts=1;\n A=0;\n B=0;\n C=0;\n D=0;\n x0=0;\n "
" SwitchResistance=1;\n SwitchType=1;\n SwitchGateInitialValue=1;\n "
"OutputsToResetToZero=1;\nelse\n Ts=SPS.fixedstep;\n A=SPS.Adisc"
"rete;\n B=SPS.Bdiscrete;\n C=SPS.Cdiscrete;\n D=SPS.Ddiscrete;\n "
"x0=SPS.x0discrete;\n SwitchResistance=SPS.SwitchResistance;\n SwitchTyp"
"e=SPS.SwitchType;\n SwitchGateInitialValue=SPS.SwitchGateInitialValue;\n "
" OutputsToResetToZero=SPS.YSwitchCurrent;\nend"
MaskDisplay "color('orange')\ndisp('EQUIVALENT CIRCUIT')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "EquivalentModel1"
Location [279, 434, 958, 675]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType SubSystem
Name "Gates"
Ports [0, 1]
Position [15, 112, 80, 138]
FontName "Arial"
FontSize 14
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "Gates"
Location [20, 127, 741, 886]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins "[0.500000, 0.500000, 0.500000, 0.5000"
"00]"
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType From
Name "From1"
Position [15, 21, 85, 49]
GotoTag "tp011470"
}
Block {
BlockType Mux
Name "Mux"
Ports [1, 1]
Position [325, 270, 330, 610]
ShowName off
Inputs "1"
DisplayOption "bar"
}
Block {
BlockType Outport
Name "gates"
Position [390, 433, 420, 447]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "gates"
DstPort 1
}
Line {
SrcBlock "From1"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Sources"
Ports [0, 1]
Position [15, 51, 80, 79]
FontName "Arial"
FontSize 14
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "Sources"
Location [20, 127, 741, 789]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -