Model { Name "Unbalanced" Version 6.3 MdlSubVersion 0 GraphicalInterface { NumRootInports 0 NumRootOutports 0 ParameterArgumentNames "" ComputedModelVersion "1.435" NumModelReferences 0 NumTestPointedSignals 0 } SavedCharacterEncoding "ibm-1386_P100-2002" SaveDefaultBlockParams on SampleTimeColors off LibraryLinkDisplay "none" WideLines off ShowLineDimensions off ShowPortDataTypes off ShowLoopsOnError on IgnoreBidirectionalLines off ShowStorageClass off ShowTestPointIcons on ShowViewerIcons on SortedOrder off ExecutionContextIcon off ShowLinearizationAnnotations on RecordCoverage off CovPath "/" CovSaveName "covdata" CovMetricSettings "dw" CovNameIncrementing off CovHtmlReporting on covSaveCumulativeToWorkspaceVar on CovSaveSingleToWorkspaceVar on CovCumulativeVarName "covCumulativeData" CovCumulativeReport off CovReportOnPause on ScopeRefreshTime 0.035000 OverrideScopeRefreshTime on DisableAllScopes off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" MinMaxOverflowArchiveMode "Overwrite" BlockNameDataTip off BlockParametersDataTip off BlockDescriptionStringDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off Created "Mon Apr 03 05:58:52 2006" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "Administrator" ModifiedDateFormat "%" LastModifiedDate "Fri Apr 14 13:07:52 2006" ModelVersionFormat "1.%" ConfigurationManager "None" LinearizationMsg "none" Profile off ParamWorkspaceSource "MATLABWorkspace" AccelSystemTargetFile "accel.tlc" AccelTemplateMakefile "accel_default_tmf" AccelMakeCommand "make_rtw" TryForcingSFcnDF off ExtModeBatchMode off ExtModeEnableFloating on ExtModeTrigType "manual" ExtModeTrigMode "normal" ExtModeTrigPort "1" ExtModeTrigElement "any" ExtModeTrigDuration 1000 ExtModeTrigDurationFloating "auto" ExtModeTrigHoldOff 0 ExtModeTrigDelay 0 ExtModeTrigDirection "rising" ExtModeTrigLevel 0 ExtModeArchiveMode "off" ExtModeAutoIncOneShot off ExtModeIncDirWhenArm off ExtModeAddSuffixToVar off ExtModeWriteAllDataToWs off ExtModeArmWhenConnect on ExtModeSkipDownloadWhenConnect off ExtModeLogAll on ExtModeAutoUpdateStatusClock on BufferReuse on StrictBusMsg "None" ProdHWDeviceType "32-bit Generic" ShowModelReferenceBlockVersion off ShowModelReferenceBlockIO off Array { Type "Handle" Dimension 1 Simulink.ConfigSet { $ObjectID 1 Version "1.1.0" Array { Type "Handle" Dimension 7 Simulink.SolverCC { $ObjectID 2 Version "1.1.0" StartTime "0.0" StopTime "0.4" AbsTol "auto" FixedStep "auto" InitialStep "auto" MaxNumMinSteps "-1" MaxOrder 5 ExtrapolationOrder 4 NumberNewtonIterations 1 MaxStep "auto" MinStep "auto" RelTol "1e-3" SolverMode "Auto" Solver "ode23tb" SolverName "ode23tb" ZeroCrossControl "UseLocalSettings" AlgebraicLoopSolver "TrustRegion" SolverResetMethod "Fast" PositivePriorityOrder off AutoInsertRateTranBlk off SampleTimeConstraint "Unconstrained" RateTranMode "Deterministic" } Simulink.DataIOCC { $ObjectID 3 Version "1.1.0" Decimation "1" ExternalInput "[t, u]" FinalStateName "xFinal" InitialState "xInitial" LimitDataPoints on MaxDataPoints "1000" LoadExternalInput off LoadInitialState off SaveFinalState off SaveFormat "Array" SaveOutput on SaveState off SignalLogging on InspectSignalLogs off SaveTime on StateSaveName "xout" TimeSaveName "tout" OutputSaveName "yout" SignalLoggingName "logsout" OutputOption "RefineOutputTimes" OutputTimes "[]" Refine "1" } Simulink.OptimizationCC { $ObjectID 4 Array { Type "Cell" Dimension 5 Cell "ZeroExternalMemoryAtStartup" Cell "ZeroInternalMemoryAtStartup" Cell "InitFltsAndDblsToZero" Cell "OptimizeModelRefInitCode" Cell "NoFixptDivByZeroProtection" PropName "DisabledProps" } Version "1.1.0" BlockReduction on BooleanDataType on ConditionallyExecuteInputs on InlineParams off InlineInvariantSignals on OptimizeBlockIOStorage on BufferReuse on EnforceIntegerDowncast on ExpressionFolding on FoldNonRolledExpr on LocalBlockOutputs on ParameterPooling on RollThreshold 5 SystemCodeInlineAuto off StateBitsets off DataBitsets off UseTempVars off ZeroExternalMemoryAtStartup on ZeroInternalMemoryAtStartup on InitFltsAndDblsToZero on NoFixptDivByZeroProtection off EfficientFloat2IntCast off OptimizeModelRefInitCode off LifeSpan "inf" BufferReusableBoundary on } Simulink.DebuggingCC { $ObjectID 5 Version "1.1.0" RTPrefix "error" ConsistencyChecking "none" ArrayBoundsChecking "none" SignalInfNanChecking "none" ReadBeforeWriteMsg "UseLocalSettings" WriteAfterWriteMsg "UseLocalSettings" WriteAfterReadMsg "UseLocalSettings" AlgebraicLoopMsg "warning" ArtificialAlgebraicLoopMsg "warning" CheckSSInitialOutputMsg on CheckExecutionContextPreStartOutputMsg off CheckExecutionContextRuntimeOutputMsg off SignalResolutionControl "TryResolveAllWithWarning" BlockPriorityViolationMsg "warning" MinStepSizeMsg "warning" SolverPrmCheckMsg "warning" InheritedTsInSrcMsg "warning" DiscreteInheritContinuousMsg "warning" MultiTaskDSMMsg "warning" MultiTaskRateTransMsg "error" SingleTaskRateTransMsg "none" TasksWithSamePriorityMsg "warning" SigSpecEnsureSampleTimeMsg "warning" CheckMatrixSingularityMsg "none" IntegerOverflowMsg "warning" Int32ToFloatConvMsg "warning" ParameterDowncastMsg "error" ParameterOverflowMsg "error" ParameterUnderflowMsg "none" ParameterPrecisionLossMsg "warning" UnderSpecifiedDataTypeMsg "none" UnnecessaryDatatypeConvMsg "none" VectorMatrixConversionMsg "none" InvalidFcnCallConnMsg "error" FcnCallInpInsideContextMsg "Use local settings" SignalLabelMismatchMsg "none" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" SFcnCompatibilityMsg "none" UniqueDataStoreMsg "none" BusObjectLabelMismatch "warning" RootOutportRequireBusObject "warning" AssertControl "UseLocalSettings" EnableOverflowDetection off ModelReferenceIOMsg "none" ModelReferenceVersionMismatchMessage "none" ModelReferenceIOMismatchMessage "none" ModelReferenceCSMismatchMessage "none" ModelReferenceSimTargetVerbose off UnknownTsInhSupMsg "warning" ModelReferenceDataLoggingMessage "warning" ModelReferenceSymbolNameMessage "warning" ModelReferenceExtraNoncontSigs "error" } Simulink.HardwareCC { $ObjectID 6 Version "1.1.0" ProdBitPerChar 8 ProdBitPerShort 16 ProdBitPerInt 32 ProdBitPerLong 32 ProdIntDivRoundTo "Undefined" ProdEndianess "Unspecified" ProdWordSize 32 ProdShiftRightIntArith on ProdHWDeviceType "32-bit Generic" TargetBitPerChar 8 TargetBitPerShort 16 TargetBitPerInt 32 TargetBitPerLong 32 TargetShiftRightIntArith on TargetIntDivRoundTo "Undefined" TargetEndianess "Unspecified" TargetWordSize 32 TargetTypeEmulationWarnSuppressLevel 0 TargetPreprocMaxBitsSint 32 TargetPreprocMaxBitsUint 32 TargetHWDeviceType "Specified" TargetUnknown off ProdEqTarget on } Simulink.ModelReferenceCC { $ObjectID 7 Version "1.1.0" UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange" CheckModelReferenceTargetMessage "error" ModelReferenceNumInstancesAllowed "Multi" ModelReferencePassRootInputsByReference on ModelReferenceMinAlgLoopOccurrences off } Simulink.RTWCC { $BackupClass "Simulink.RTWCC" $ObjectID 8 Array { Type "Cell" Dimension 1 Cell "IncludeHyperlinkInReport" PropName "DisabledProps" } Version "1.1.0" SystemTargetFile "grt.tlc" GenCodeOnly off MakeCommand "make_rtw" TemplateMakefile "grt_default_tmf" GenerateReport off SaveLog off RTWVerbose on RetainRTWFile off ProfileTLC off TLCDebug off TLCCoverage off TLCAssert off ProcessScriptMode "Default" ConfigurationMode "Optimized" ConfigAtBuild off IncludeHyperlinkInReport off LaunchReport off TargetLang "C" Array { Type "Handle" Dimension 2 Simulink.CodeAppCC { $ObjectID 9 Array { Type "Cell" Dimension 9 Cell "IgnoreCustomStorageClasses" Cell "InsertBlockDesc" Cell "SFDataObjDesc" Cell "SimulinkDataObjDesc" Cell "DefineNamingRule" Cell "SignalNamingRule" Cell "ParamNamingRule" Cell "InlinedPrmAccess" Cell "CustomSymbolStr" PropName "DisabledProps" } Version "1.1.0" ForceParamTrailComments off GenerateComments on IgnoreCustomStorageClasses on IncHierarchyInIds off MaxIdLength 31 PreserveName off PreserveNameWithParent off ShowEliminatedStatement off IncAutoGenComments off SimulinkDataObjDesc off SFDataObjDesc off IncDataTypeInIds off PrefixModelToSubsysFcnNames on CustomSymbolStr "$R$N$M" MangleLength 1 DefineNamingRule "None" ParamNamingRule "None" SignalNamingRule "None" InsertBlockDesc off SimulinkBlockComments on EnableCustomComments off InlinedPrmAccess "Literals" ReqsInCode off } Simulink.GRTTargetCC { $BackupClass "Simulink.TargetCC" $ObjectID 10 Array { Type "Cell" Dimension 12 Cell "IncludeMdlTerminateFcn" Cell "CombineOutputUpdateFcns" Cell "SuppressErrorStatus" Cell "ERTCustomFileBanners" Cell "GenerateSampleERTMain" Cell "MultiInstanceERTCode" Cell "PurelyIntegerCode" Cell "SupportNonFinite" Cell "SupportComplex" Cell "SupportAbsoluteTime" Cell "SupportContinuousTime" Cell "SupportNonInlinedSFcns" PropName "DisabledProps" } Version "1.1.0" TargetFcnLib "ansi_tfl_tmw.mat" TargetLibSuffix "" TargetPreCompLibLocation "" GenFloatMathFcnCalls "ANSI_C" UtilityFuncGeneration "Auto" GenerateFullHeader on GenerateSampleERTMain off IsPILTarget off ModelReferenceCompliant on IncludeMdlTerminateFcn on CombineOutputUpdateFcns off SuppressErrorStatus off IncludeFileDelimiter "Auto" ERTCustomFileBanners off SupportAbsoluteTime on LogVarNameModifier "rt_" MatFileLogging on MultiInstanceERTCode off SupportNonFinite on SupportComplex on PurelyIntegerCode off SupportContinuousTime on SupportNonInlinedSFcns on ExtMode off ExtModeStaticAlloc off ExtModeTesting off ExtModeStaticAllocSize 1000000 ExtModeTransport 0 ExtModeMexFile "ext_comm" RTWCAPISignals off RTWCAPIParams off RTWCAPIStates off GenerateASAP2 off } PropName "Components" } } PropName "Components" } Name "Configuration" SimulationMode "accelerator" CurrentDlgPage "Solver" } PropName "ConfigurationSets" } Simulink.ConfigSet { $PropName "ActiveConfigurationSet" $ObjectID 1 } BlockDefaults { Orientation "right" ForegroundColor "black" BackgroundColor "white" DropShadow off NamePlacement "normal" FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" ShowName on } BlockParameterDefaults { Block { BlockType Abs SaturateOnIntegerOverflow on ZeroCross on SampleTime "-1" } Block { BlockType Constant Value "1" VectorParams1D on OutDataTypeMode "Inherit from 'Constant value'" OutDataType "sfix(16)" ConRadixGroup "Use specified scaling" OutScaling "2^0" SampleTime "inf" } Block { BlockType Demux Outputs "4" DisplayOption "none" BusSelectionMode off } Block { BlockType Display Format "short" Decimation "10" Floating off SampleTime "-1" } Block { BlockType From IconDisplay "Tag" } Block { BlockType Fcn Expr "sin(u[1])" SampleTime "-1" } Block { BlockType Gain Gain "1" Multiplication "Element-wise(K.*u)" ParameterDataTypeMode "Same as input" ParameterDataType "sfix(16)" ParameterScalingMode "Best Precision: Matrix-wise" ParameterScaling "2^0" OutDataTypeMode "Same as input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType Goto IconDisplay "Tag" } Block { BlockType Ground } Block { BlockType Inport Port "1" UseBusObject off BusObject "BusObject" BusOutputAsStruct off PortDimensions "-1" SampleTime "-1" DataType "auto" OutDataType "sfix(16)" OutScaling "2^0" SignalType "auto" SamplingMode "auto" LatchByDelayingOutsideSignal off LatchByCopyingInsideSignal off Interpolate on } Block { BlockType Mux Inputs "4" DisplayOption "none" UseBusObject off BusObject "BusObject" NonVirtualBus off } Block { BlockType Outport Port "1" UseBusObject off 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 Reference } Block { BlockType Saturate UpperLimit "0.5" LowerLimit "-0.5" LinearizeAsGain on ZeroCross on SampleTime "-1" } Block { BlockType Scope ModelBased off TickLabels "OneTimeTick" ZoomMode "on" Grid "on" TimeRange "auto" YMin "-5" YMax "5" SaveToWorkspace off SaveName "ScopeData" LimitDataPoints on MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "-1" } Block { BlockType Selector InputType "Vector" IndexMode "One-based" ElementSrc "Internal" Elements "1" RowSrc "Internal" Rows "1" ColumnSrc "Internal" Columns "1" InputPortWidth "-1" IndexIsStartValue off OutputPortSize "1" } Block { BlockType "S-Function" FunctionName "system" SFunctionModules "''" PortCounts "[]" } Block { BlockType Sin SineType "Time based" TimeSource "Use simulation time" Amplitude "1" Bias "0" Frequency "1" Phase "0" Samples "10" Offset "0" SampleTime "-1" VectorParams1D on } Block { BlockType SubSystem ShowPortLabels on Permissions "ReadWrite" PermitHierarchicalResolution "All" SystemSampleTime "-1" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" SimViewingDevice off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" } Block { BlockType Sum IconShape "rectangular" Inputs "++" InputSameDT on OutDataTypeMode "Same as first input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType Terminator } Block { BlockType TransferFcn Numerator "[1]" Denominator "[1 2 1]" AbsoluteTolerance "auto" Realization "auto" } Block { BlockType TransportDelay DelayTime "1" InitialOutput "0" BufferSize "1024" FixedBuffer off TransDelayFeedthrough off PadeOrder "0" } } 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 "Unbalanced" Location [9, 76, 1021, 738] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" ReportName "simulink-default.rpt" Block { BlockType Reference Name "1 km Feeder" Ports [0, 0, 0, 0, 0, 3, 3] Position [365, 77, 435, 123] AttributesFormatString "\\n" SourceBlock "powerlib/Elements/Three-Phase\nSeries RLC Branc" "h" SourceType "Three-Phase Series RLC Branch" PhysicalDomain "powersysdomain" SubClassName "unknown" LeftPortType "p1" RightPortType "p1" LConnTagsString "A|B|C" RConnTagsString "A|B|C" BranchType "RL" Resistance "0.35" Inductance "1.1e-3" Capacitance "[]" Measurements "None" } Block { BlockType Reference Name "25 KV AC source" Ports [0, 0, 0, 0, 0, 0, 3] Position [106, 170, 164, 255] Orientation "up" NamePlacement "alternate" SourceBlock "powerlib/Electrical\nSources/Three-Phase Source" SourceType "Three-Phase Source" ShowPortLabels on Voltage "25e3" PhaseAngle "0" Frequency "60" InternalConnection "Yg" SpecifyImpedance off Resistance "0.95" Inductance "16.58e-3" ShortCircuitLevel "300e3" BaseVoltage "25e3" XRratio "7" } Block { BlockType Reference Name "25kv/600v \n400kVA" Ports [0, 0, 0, 0, 0, 3, 4] Position [215, 76, 260, 129] SourceBlock "powerlib/Elements/Three-Phase\nTransformer\n(Tw" "o Windings)" SourceType "Three-Phase Transformer (Two Windings)" ShowPortLabels on NominalPower "[ 400e3 , 60 ]" Winding1Connection "Yg" Winding1 "[ 25e3, 0.002 , 0.08 ]" Winding2Connection "Yn" Winding2 "[ 600 , 0.002 , 0.08 ]" SetSaturation off Rm "500" Lm "500" Saturation "[ 0,0 ; 0.0024,1.2 ; 1.0,1.52 ]" Hysteresis off DataFile "'hysteresis'" SetInitialFlux off InitialFluxes "[ 0.8 , -0.8 , 0.7 ]" Measurements "None" TransfoNumber "0" MoreParameters off BreakLoop off } Block { BlockType SubSystem Name "Controller" Ports [1, 2] Position [375, 188, 480, 272] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskHideContents off System { Name "Controller" Location [2, 82, 1014, 730] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "In" Position [20, 168, 50, 182] IconDisplay "Port number" } Block { BlockType Abs Name "Abs" Position [385, 380, 415, 410] SaturateOnIntegerOverflow off } Block { BlockType TransportDelay Name "Delay1" Position [260, 205, 290, 235] DelayTime "0.001" TransDelayFeedthrough on } Block { BlockType Demux Name "Demux1" Ports [1, 2] Position [770, 226, 775, 264] BackgroundColor "black" ShowName off Outputs "2" DisplayOption "bar" } Block { BlockType Reference Name "Discrete\nPID Controller" Ports [1, 1] Position [575, 222, 620, 268] ShowName off SourceBlock "powerlib_extras/Discrete \nControl Blocks/D" "iscrete\nPID Controller" SourceType "Discrete PID Controller" ShowPortLabels "on" Kp "5" Ki "1" Kd "0" TcD "0.5e-3" Par_Limits "[1e6 -1e6]" Init "0" Ts "50e-6" } Block { BlockType Scope Name "Ei" Ports [1] Position [485, 124, 515, 156] Floating off Location [206, 299, 722, 588] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } SaveName "ScopeData3" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "En" Ports [1] Position [510, 309, 540, 341] Floating off Location [149, 269, 694, 589] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "rEn" } SaveToWorkspace on SaveName "En" DataFormat "Array" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "Et" Ports [1] Position [580, 149, 610, 181] Floating off Location [111, 146, 998, 703] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "Total Error (Et)" } YMin "0.29775" YMax "0.301" SaveToWorkspace on SaveName "Et" DataFormat "Array" LimitDataPoints off SampleTime "0" } Block { BlockType Gain Name "Gama I" Position [415, 160, 445, 190] Gain "0.8" ParameterDataTypeMode "Inherit via internal rule" OutDataTypeMode "Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gama h" Position [455, 380, 485, 410] Gain "1.2" ParameterDataTypeMode "Inherit via internal rule" OutDataTypeMode "Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gama n" Position [430, 240, 460, 270] Gain "1.8" ParameterDataTypeMode "Inherit via internal rule" OutDataTypeMode "Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Constant Name "I1 ref" Position [305, 240, 335, 270] Value "0.15" } Block { BlockType Reference Name "Irms" Ports [1, 1] Position [105, 157, 150, 193] SourceBlock "powerlib_extras/Measurements/RMS" SourceType "RMS" ShowPortLabels "on" f1 "60" } Block { BlockType Scope Name "PWM" Ports [1] Position [825, 159, 855, 191] Floating off Location [284, 456, 612, 641] Open off NumInputPorts "1" ZoomMode "yonly" List { ListType AxesTitles axes1 "PWM Pulses" } YMin "-1" YMax "2" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Reference Name "PWM Generator" Ports [1, 1] Position [690, 214, 755, 276] SourceBlock "powerlib_extras/Control \nBlocks/PWM Genera" "tor" SourceType "PWM Generator" ShowPortLabels "on" GeneratorMode "1-arm bridge (2 pulses)" Fc "180" Internal "off" mIndex "0.8" Freq "60" Phase "0" } Block { BlockType Saturate Name "Saturation" Position [640, 230, 670, 260] UpperLimit "2" LowerLimit "0" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [330, 165, 350, 185] ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [325, 385, 345, 405] NamePlacement "alternate" ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum2" Ports [2, 1] Position [390, 245, 410, 265] ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum3" Ports [3, 1] Position [520, 207, 540, 283] ShowName off Inputs "|+++" InputSameDT off OutDataTypeMode "Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType TransferFcn Name "Transfer Fcn2" Position [225, 378, 270, 412] Denominator "[0.001 1]" } Block { BlockType Scope Name "rEh" Ports [1] Position [555, 364, 585, 396] Floating off Location [59, 105, 996, 680] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } SaveToWorkspace on SaveName "rEp" DataFormat "Array" LimitDataPoints off SampleTime "0" } Block { BlockType Outport Name "s1" Position [835, 218, 865, 232] IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "s2" Position [835, 248, 865, 262] Port "2" IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "In" SrcPort 1 Points [0, 0; 25, 0] Branch { DstBlock "Irms" DstPort 1 } Branch { Points [0, 220] DstBlock "Transfer Fcn2" DstPort 1 } } Line { SrcBlock "Sum3" SrcPort 1 Points [5, 0] Branch { DstBlock "Discrete\nPID Controller" DstPort 1 } Branch { Points [0, -80] DstBlock "Et" DstPort 1 } } Line { SrcBlock "PWM Generator" SrcPort 1 DstBlock "Demux1" DstPort 1 } Line { SrcBlock "Saturation" SrcPort 1 DstBlock "PWM Generator" DstPort 1 } Line { SrcBlock "Discrete\nPID Controller" SrcPort 1 DstBlock "Saturation" DstPort 1 } Line { SrcBlock "Sum2" SrcPort 1 DstBlock "Gama n" DstPort 1 } Line { SrcBlock "Gama I" SrcPort 1 Points [10, 0] Branch { Points [15, 0; 0, 60] DstBlock "Sum3" DstPort 1 } Branch { Points [0, -35] DstBlock "Ei" DstPort 1 } } Line { SrcBlock "I1 ref" SrcPort 1 DstBlock "Sum2" DstPort 1 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Gama I" DstPort 1 } Line { SrcBlock "Delay1" SrcPort 1 Points [45, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Irms" SrcPort 1 Points [5, 0] Branch { Points [30, 0; 10, 0] Branch { Points [35, 0] Branch { DstBlock "Sum" DstPort 1 } Branch { Points [0, 45] DstBlock "Delay1" DstPort 1 } } Branch { Points [0, 135; 200, 0] DstBlock "Sum2" DstPort 2 } } Branch { Points [0, 285; 175, 0] DstBlock "Sum1" DstPort 2 } } Line { SrcBlock "Demux1" SrcPort 1 Points [20, 0; 0, -10; 5, 0] Branch { DstBlock "s1" DstPort 1 } Branch { Points [0, -50] DstBlock "PWM" DstPort 1 } } Line { SrcBlock "Demux1" SrcPort 2 DstBlock "s2" DstPort 1 } Line { SrcBlock "Gama n" SrcPort 1 Points [10, 0] Branch { DstBlock "Sum3" DstPort 2 } Branch { Points [0, 70] DstBlock "En" DstPort 1 } } Line { SrcBlock "Transfer Fcn2" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Abs" DstPort 1 } Line { SrcBlock "Abs" SrcPort 1 DstBlock "Gama h" DstPort 1 } Line { SrcBlock "Gama h" SrcPort 1 Points [10, 0; 0, -15] Branch { Points [0, -105] DstBlock "Sum3" DstPort 3 } Branch { DstBlock "rEh" DstPort 1 } } } } Block { BlockType Reference Name "Current Measurement" Ports [0, 1, 0, 0, 0, 1, 1] Position [520, 333, 545, 357] Orientation "left" SourceBlock "powerlib/Measurements/Current Measurement" SourceType "Current Measurement" ShowPortLabels on PhasorSimulation off OutputType "Complex" PSBequivalent "0" } Block { BlockType From Name "From" Position [605, 451, 645, 479] ShowName off CloseFcn "tagdialog Close" GotoTag "VL" } Block { BlockType From Name "From1" Position [605, 481, 645, 509] ShowName off CloseFcn "tagdialog Close" GotoTag "IL" } Block { BlockType From Name "From2" Position [400, 486, 440, 514] CloseFcn "tagdialog Close" GotoTag "In" } Block { BlockType From Name "From3" Position [400, 451, 440, 479] CloseFcn "tagdialog Close" GotoTag "Vn" } Block { BlockType From Name "From8" Position [295, 220, 320, 240] ShowName off CloseFcn "tagdialog Close" GotoTag "In" } Block { BlockType Gain Name "Gain1" Position [335, 217, 355, 243] ShowName off Gain "1/666.7" ParameterDataTypeMode "Inherit via internal rule" OutDataTypeMode "Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Goto Name "Goto" Position [400, 290, 440, 320] Orientation "left" GotoTag "In" TagVisibility "local" } Block { BlockType Goto Name "Goto1" Position [735, 360, 775, 390] ShowName off GotoTag "Vn" TagVisibility "local" } Block { BlockType Reference Name "Ground" Ports [0, 0, 0, 0, 0, 1] Position [264, 445, 286, 470] Orientation "down" ShowName off SourceBlock "powerlib/Elements/Ground" SourceType "Ground" PhysicalDomain "powersysdomain" SubClassName "unknown" LeftPortType "p1" RightPortType "p1" LConnTagsString "a" } Block { BlockType Reference Name "Ground1" Ports [0, 0, 0, 0, 0, 1] Position [604, 425, 626, 450] Orientation "down" ShowName off SourceBlock "powerlib/Elements/Ground" SourceType "Ground" PhysicalDomain "powersysdomain" SubClassName "unknown" LeftPortType "p1" RightPortType "p1" LConnTagsString "a" } Block { BlockType Reference Name "Ground2" Ports [0, 0, 0, 0, 0, 1] Position [549, 275, 571, 300] Orientation "down" ShowName off SourceBlock "powerlib/Elements/Ground" SourceType "Ground" PhysicalDomain "powersysdomain" SubClassName "unknown" LeftPortType "p1" RightPortType "p1" LConnTagsString "a" } Block { BlockType Reference Name "Linear Load" Ports [0, 0, 0, 0, 0, 3, 1] Position [727, 190, 783, 255] Orientation "down" AttributesFormatString "\\n" SourceBlock "powerlib/Elements/Three-Phase\nSeries RLC Load" SourceType "Three-Phase Series RLC Load" PhysicalDomain "powersysdomain" SubClassName "unknown" LeftPortType "p1" RightPortType "p1" LConnTagsString "A|B|C" RConnTagsString "N" Configuration "Y (neutral)" NominalVoltage "600" NominalFrequency "60" ActivePower "180e3" InductivePower "88e3" CapacitivePower "0" Measurements "None" } Block { BlockType SubSystem Name "Load " Ports [2] Position [700, 450, 740, 510] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskHideContents off System { Name "Load " Location [2, 82, 1014, 730] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "V" Position [25, 43, 55, 57] IconDisplay "Port number" } Block { BlockType Inport Name "I" Position [25, 88, 55, 102] Port "2" IconDisplay "Port number" } Block { BlockType Demux Name "Demux" Ports [1, 3] Position [80, 31, 85, 69] BackgroundColor "black" ShowName off Outputs "3" DisplayOption "bar" } Block { BlockType Demux Name "Demux1" Ports [1, 3] Position [80, 76, 85, 114] BackgroundColor "black" ShowName off Outputs "3" DisplayOption "bar" } Block { BlockType SubSystem Name "Measurement Center1" Ports [2, 4] Position [150, 37, 190, 98] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskHideContents off System { Name "Measurement Center1" Location [404, 291, 869, 547] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "V" Position [15, 113, 45, 127] IconDisplay "Port number" } Block { BlockType Inport Name "I" Position [35, 58, 65, 72] Port "2" IconDisplay "Port number" } Block { BlockType Reference Name "Active & Reactive\nPower" Ports [2, 1] Position [145, 153, 195, 202] SourceBlock "powerlib_extras/Measurements/Active & R" "eactive\nPower" SourceType "Active & Reactive Power " ShowPortLabels "on" f1 "60" } Block { BlockType Demux Name "Demux1" Ports [1, 2] Position [230, 161, 235, 199] BackgroundColor "black" ShowName off Outputs "2" DisplayOption "bar" } Block { BlockType Fcn Name "Fcn" Position [325, 165, 385, 195] NamePlacement "alternate" Expr "u(1)/sqrt(u(1)^2+u(2)^2)" } Block { BlockType Gain Name "Gain" Position [65, 135, 85, 155] Orientation "down" ShowName off Gain "1/sqrt(3)" ParameterDataTypeMode "Inherit via internal rule" OutDataTypeMode "Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Reference Name "Irms" Ports [1, 1] Position [150, 47, 195, 83] NamePlacement "alternate" SourceBlock "powerlib_extras/Measurements/RMS" SourceType "RMS" ShowPortLabels "on" f1 "60" } Block { BlockType Mux Name "Mux" Ports [2, 1] Position [290, 148, 305, 217] NamePlacement "alternate" ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Reference Name "Vrms" Ports [1, 1] Position [150, 102, 195, 138] NamePlacement "alternate" SourceBlock "powerlib_extras/Measurements/RMS" SourceType "RMS" ShowPortLabels "on" f1 "60" } Block { BlockType Outport Name "P.F." Position [405, 173, 435, 187] NamePlacement "alternate" IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "I_rms" Position [385, 28, 415, 42] NamePlacement "alternate" Port "2" IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "V_rms" Position [410, 68, 440, 82] NamePlacement "alternate" Port "3" IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "Power" Position [325, 223, 355, 237] NamePlacement "alternate" Port "4" IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "Irms" SrcPort 1 Points [10, 0; 0, 35; 30, 0; 0, -65] DstBlock "I_rms" DstPort 1 } Line { SrcBlock "Vrms" SrcPort 1 Points [60, 0; 0, -45] DstBlock "V_rms" DstPort 1 } Line { SrcBlock "Active & Reactive\nPower" SrcPort 1 Points [5, 0] Branch { Points [0, 50] DstBlock "Power" DstPort 1 } Branch { DstBlock "Demux1" DstPort 1 } } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Fcn" DstPort 1 } Line { SrcBlock "Fcn" SrcPort 1 DstBlock "P.F." DstPort 1 } Line { SrcBlock "I" SrcPort 1 Points [0, 0; 40, 0] Branch { Points [0, 125] DstBlock "Active & Reactive\nPower" DstPort 2 } Branch { DstBlock "Irms" DstPort 1 } } Line { SrcBlock "V" SrcPort 1 Points [25, 0] Branch { DstBlock "Vrms" DstPort 1 } Branch { DstBlock "Gain" DstPort 1 } } Line { SrcBlock "Gain" SrcPort 1 Points [0, 5] DstBlock "Active & Reactive\nPower" DstPort 1 } Line { SrcBlock "Demux1" SrcPort 2 Points [15, 0; 0, 10] DstBlock "Mux" DstPort 2 } Line { SrcBlock "Demux1" SrcPort 1 Points [15, 0; 0, -5] DstBlock "Mux" DstPort 1 } } } Block { BlockType SubSystem Name "Measurement Center2" Ports [2, 4] Position [155, 132, 195, 193] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskHideContents off System { Name "Measurement Center2" Location [404, 291, 869, 547] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "V" Position [15, 113, 45, 127] IconDisplay "Port number" } Block { BlockType Inport Name "I" Position [35, 58, 65, 72] Port "2" IconDisplay "Port number" } Block { BlockType Reference Name "Active & Reactive\nPower" Ports [2, 1] Position [145, 153, 195, 202] SourceBlock "powerlib_extras/Measurements/Active & R" "eactive\nPower" SourceType "Active & Reactive Power " ShowPortLabels "on" f1 "60" } Block { BlockType Demux Name "Demux1" Ports [1, 2] Position [230, 161, 235, 199] BackgroundColor "black" ShowName off Outputs "2" DisplayOption "bar" } Block { BlockType Fcn Name "Fcn" Position [325, 165, 385, 195] NamePlacement "alternate" Expr "u(1)/sqrt(u(1)^2+u(2)^2)" } Block { BlockType Gain Name "Gain" Position [65, 135, 85, 155] Orientation "down" ShowName off Gain "1/sqrt(3)" ParameterDataTypeMode "Inherit via internal rule" OutDataTypeMode "Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Reference Name "Irms" Ports [1, 1] Position [150, 47, 195, 83] NamePlacement "alternate" SourceBlock "powerlib_extras/Measurements/RMS" SourceType "RMS" ShowPortLabels "on" f1 "60" } Block { BlockType Mux Name "Mux" Ports [2, 1] Position [290, 148, 305, 217] NamePlacement "alternate" ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Reference Name "Vrms" Ports [1, 1] Position [150, 102, 195, 138] NamePlacement "alternate" SourceBlock "powerlib_extras/Measurements/RMS" SourceType "RMS" ShowPortLabels "on" f1 "60" } Block { BlockType Outport Name "P.F." Position [405, 173, 435, 187] NamePlacement "alternate" IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "I_rms" Position [385, 28, 415, 42] NamePlacement "alternate" Port "2" IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "V_rms" Position [410, 68, 440, 82] NamePlacement "alternate" Port "3" IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "Power" Position [325, 223, 355, 237] NamePlacement "alternate" Port "4" IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "Irms" SrcPort 1 Points [10, 0; 0, 35; 30, 0; 0, -65] DstBlock "I_rms" DstPort 1 } Line { SrcBlock "Vrms" SrcPort 1 Points [60, 0; 0, -45] DstBlock "V_rms" DstPort 1 } Line { SrcBlock "Active & Reactive\nPower" SrcPort 1 Points [5, 0] Branch { Points [0, 50] DstBlock "Power" DstPort 1 } Branch { DstBlock "Demux1" DstPort 1 } } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Fcn" DstPort 1 } Line { SrcBlock "Fcn" SrcPort 1 DstBlock "P.F." DstPort 1 } Line { SrcBlock "I" SrcPort 1 Points [0, 0; 40, 0] Branch { Points [0, 125] DstBlock "Active & Reactive\nPower" DstPort 2 } Branch { DstBlock "Irms" DstPort 1 } } Line { SrcBlock "V" SrcPort 1 Points [25, 0] Branch { DstBlock "Vrms" DstPort 1 } Branch { DstBlock "Gain" DstPort 1 } } Line { SrcBlock "Gain" SrcPort 1 Points [0, 5] DstBlock "Active & Reactive\nPower" DstPort 1 } Line { SrcBlock "Demux1" SrcPort 2 Points [15, 0; 0, 10] DstBlock "Mux" DstPort 2 } Line { SrcBlock "Demux1" SrcPort 1 Points [15, 0; 0, -5] DstBlock "Mux" DstPort 1 } } } Block { BlockType SubSystem Name "Measurement Center3" Ports [2, 4] Position [150, 232, 190, 293] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskHideContents off System { Name "Measurement Center3" Location [404, 291, 869, 547] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "V" Position [15, 113, 45, 127] IconDisplay "Port number" } Block { BlockType Inport Name "I" Position [35, 58, 65, 72] Port "2" IconDisplay "Port number" } Block { BlockType Reference Name "Active & Reactive\nPower" Ports [2, 1] Position [145, 153, 195, 202] SourceBlock "powerlib_extras/Measurements/Active & R" "eactive\nPower" SourceType "Active & Reactive Power " ShowPortLabels "on" f1 "60" } Block { BlockType Demux Name "Demux1" Ports [1, 2] Position [230, 161, 235, 199] BackgroundColor "black" ShowName off Outputs "2" DisplayOption "bar" } Block { BlockType Fcn Name "Fcn" Position [325, 165, 385, 195] NamePlacement "alternate" Expr "u(1)/sqrt(u(1)^2+u(2)^2)" } Block { BlockType Gain Name "Gain" Position [65, 135, 85, 155] Orientation "down" ShowName off Gain "1/sqrt(3)" ParameterDataTypeMode "Inherit via internal rule" OutDataTypeMode "Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Reference Name "Irms" Ports [1, 1] Position [150, 47, 195, 83] NamePlacement "alternate" SourceBlock "powerlib_extras/Measurements/RMS" SourceType "RMS" ShowPortLabels "on" f1 "60" } Block { BlockType Mux Name "Mux" Ports [2, 1] Position [290, 148, 305, 217] NamePlacement "alternate" ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Reference Name "Vrms" Ports [1, 1] Position [150, 102, 195, 138] NamePlacement "alternate" SourceBlock "powerlib_extras/Measurements/RMS" SourceType "RMS" ShowPortLabels "on" f1 "60" } Block { BlockType Outport Name "P.F." Position [405, 173, 435, 187] NamePlacement "alternate" IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "I_rms" Position [385, 28, 415, 42] NamePlacement "alternate" Port "2" IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "V_rms" Position [410, 68, 440, 82] NamePlacement "alternate" Port "3" IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "Power" Position [325, 223, 355, 237] NamePlacement "alternate" Port "4" IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "Irms" SrcPort 1 Points [10, 0; 0, 35; 30, 0; 0, -65] DstBlock "I_rms" DstPort 1 } Line { SrcBlock "Vrms" SrcPort 1 Points [60, 0; 0, -45] DstBlock "V_rms" DstPort 1 } Line { SrcBlock "Active & Reactive\nPower" SrcPort 1 Points [5, 0] Branch { Points [0, 50] DstBlock "Power" DstPort 1 } Branch { DstBlock "Demux1" DstPort 1 } } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Fcn" DstPort 1 } Line { SrcBlock "Fcn" SrcPort 1 DstBlock "P.F." DstPort 1 } Line { SrcBlock "I" SrcPort 1 Points [0, 0; 40, 0] Branch { Points [0, 125] DstBlock "Active & Reactive\nPower" DstPort 2 } Branch { DstBlock "Irms" DstPort 1 } } Line { SrcBlock "V" SrcPort 1 Points [25, 0] Branch { DstBlock "Vrms" DstPort 1 } Branch { DstBlock "Gain" DstPort 1 } } Line { SrcBlock "Gain" SrcPort 1 Points [0, 5] DstBlock "Active & Reactive\nPower" DstPort 1 } Line { SrcBlock "Demux1" SrcPort 2 Points [15, 0; 0, 10] DstBlock "Mux" DstPort 2 } Line { SrcBlock "Demux1" SrcPort 1 Points [15, 0; 0, -5] DstBlock "Mux" DstPort 1 } } } Block { BlockType Scope Name "Phase A" Ports [4] Position [240, 27, 280, 103] NamePlacement "alternate" Floating off Location [5, 52, 1021, 729] Open off NumInputPorts "4" ZoomMode "yonly" List { ListType AxesTitles axes1 "Power Factor" axes2 "Current (rms)/p.u." axes3 "Voltage (L-L rms)/p.u." axes4 "Power (p.u.)" } TimeRange "0.4" YMin "0.805~0.32~0.91625~0.09" YMax "0.818~0.333~0.919~0.15" SaveToWorkspace on SaveName "LAFC" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "Phase B" Ports [4] Position [240, 132, 280, 208] NamePlacement "alternate" Floating off Location [5, 52, 1021, 729] Open off NumInputPorts "4" ZoomMode "yonly" List { ListType AxesTitles axes1 "Power Factor" axes2 "Current (rms)/p.u." axes3 "Voltage (L-L rms)/p.u." axes4 "Power (p.u.)" } TimeRange "0.4" YMin "-0.3~0~5.55112e-017~-0.05" YMax "1~1.25~1.1~0.25" SaveToWorkspace on SaveName "LBFC" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "Phase C" Ports [4] Position [245, 232, 285, 308] NamePlacement "alternate" Floating off Location [1, 52, 1017, 729] Open off NumInputPorts "4" ZoomMode "yonly" List { ListType AxesTitles axes1 "Power Factor" axes2 "Current (rms)/p.u." axes3 "Voltage (L-L rms)/p.u." axes4 "Power (p.u.)" } TimeRange "0.4" YMin "0.79~0.3245~0.918~0.1" YMax "0.797~0.328~0.923~0.14" SaveToWorkspace on SaveName "LCFC" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Line { SrcBlock "Measurement Center1" SrcPort 1 Points [30, 0] DstBlock "Phase A" DstPort 1 } Line { SrcBlock "Measurement Center1" SrcPort 2 Points [25, 0; 0, -5] DstBlock "Phase A" DstPort 2 } Line { SrcBlock "Measurement Center1" SrcPort 3 DstBlock "Phase A" DstPort 3 } Line { SrcBlock "Measurement Center1" SrcPort 4 Points [0, 5] DstBlock "Phase A" DstPort 4 } Line { SrcBlock "Demux" SrcPort 1 Points [40, 0; 0, 15] DstBlock "Measurement Center1" DstPort 1 } Line { SrcBlock "Demux1" SrcPort 1 DstBlock "Measurement Center1" DstPort 2 } Line { SrcBlock "Measurement Center2" SrcPort 1 DstBlock "Phase B" DstPort 1 } Line { SrcBlock "Measurement Center2" SrcPort 2 Points [25, 0] DstBlock "Phase B" DstPort 2 } Line { SrcBlock "Measurement Center2" SrcPort 3 Points [0, 10] DstBlock "Phase B" DstPort 3 } Line { SrcBlock "Measurement Center2" SrcPort 4 Points [0, 15] DstBlock "Phase B" DstPort 4 } Line { SrcBlock "Demux" SrcPort 2 Points [35, 0; 0, 100] DstBlock "Measurement Center2" DstPort 1 } Line { SrcBlock "Demux1" SrcPort 2 Points [25, 0; 0, 85] DstBlock "Measurement Center2" DstPort 2 } Line { SrcBlock "Measurement Center3" SrcPort 1 DstBlock "Phase C" DstPort 1 } Line { SrcBlock "Measurement Center3" SrcPort 2 Points [0, 5] DstBlock "Phase C" DstPort 2 } Line { SrcBlock "Measurement Center3" SrcPort 3 Points [35, 0] DstBlock "Phase C" DstPort 3 } Line { SrcBlock "Measurement Center3" SrcPort 4 Points [35, 0] DstBlock "Phase C" DstPort 4 } Line { SrcBlock "Demux" SrcPort 3 Points [20, 0; 0, 190] DstBlock "Measurement Center3" DstPort 1 } Line { SrcBlock "Demux1" SrcPort 3 Points [10, 0; 0, 175] DstBlock "Measurement Center3" DstPort 2 } Line { SrcBlock "V" SrcPort 1 DstBlock "Demux" DstPort 1 } Line { SrcBlock "I" SrcPort 1 DstBlock "Demux1" DstPort 1 } } } Block { BlockType Reference Name "Load Bus" Ports [0, 0, 0, 0, 0, 3, 3] Position [475, 65, 480, 135] SourceBlock "powerlib/Measurements/Three-Phase\nV-I Measurem" "ent" SourceType "Three-Phase VI Measurement" ShowPortLabels on VoltageMeasurement "phase-to-phase" SetLabelV on LabelV "VL" Vpu on CurrentMeasurement "yes" SetLabelI on LabelI "IL" Ipu on Pbase "400e3" Vbase "600" OutputType "Complex" PhasorSimulation off PSBequivalent "0" } Block { BlockType SubSystem Name "Load Harmonic " Ports [1] Position [700, 530, 735, 580] ForegroundColor "white" TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskHideContents off System { Name "Load Harmonic " Location [0, 82, 1012, 743] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "In" Position [85, 63, 115, 77] IconDisplay "Port number" } Block { BlockType Display Name "Display In1" Ports [1] Position [280, 42, 360, 68] Decimation "1" Lockdown off } Block { BlockType Display Name "Display In2" Ports [1] Position [285, 492, 365, 518] Decimation "1" Lockdown off } Block { BlockType Display Name "Display In3" Ports [1] Position [285, 127, 365, 153] Decimation "1" Lockdown off } Block { BlockType Display Name "Display In5" Ports [1] Position [285, 212, 365, 238] Decimation "1" Lockdown off } Block { BlockType Display Name "Display In7" Ports [1] Position [280, 297, 360, 323] Decimation "1" Lockdown off } Block { BlockType Display Name "Display In9" Ports [1] Position [285, 392, 365, 418] Decimation "1" Lockdown off } Block { BlockType Reference Name "Fourier" Ports [1, 2] Position [160, 42, 210, 98] SourceBlock "powerlib_extras/Measurements/Fourier" SourceType "Fourier analyser" ShowPortLabels "on" f1 "60" n "1" } Block { BlockType Reference Name "Fourier1" Ports [1, 2] Position [160, 127, 210, 183] SourceBlock "powerlib_extras/Measurements/Fourier" SourceType "Fourier analyser" ShowPortLabels "on" f1 "60" n "3" } Block { BlockType Reference Name "Fourier2" Ports [1, 2] Position [160, 212, 210, 268] SourceBlock "powerlib_extras/Measurements/Fourier" SourceType "Fourier analyser" ShowPortLabels "on" f1 "60" n "5" } Block { BlockType Reference Name "Fourier3" Ports [1, 2] Position [160, 297, 210, 353] SourceBlock "powerlib_extras/Measurements/Fourier" SourceType "Fourier analyser" ShowPortLabels "on" f1 "60" n "7" } Block { BlockType Reference Name "Fourier4" Ports [1, 2] Position [165, 392, 215, 448] SourceBlock "powerlib_extras/Measurements/Fourier" SourceType "Fourier analyser" ShowPortLabels "on" f1 "60" n "9" } Block { BlockType Terminator Name "Terminator" Position [235, 75, 255, 95] ShowName off } Block { BlockType Terminator Name "Terminator1" Position [235, 160, 255, 180] ShowName off } Block { BlockType Terminator Name "Terminator2" Position [235, 245, 255, 265] ShowName off } Block { BlockType Terminator Name "Terminator3" Position [235, 330, 255, 350] ShowName off } Block { BlockType Terminator Name "Terminator4" Position [235, 425, 255, 445] ShowName off } Block { BlockType Reference Name "Total Harmonic\nDistorsion" Ports [1, 1] Position [165, 477, 215, 533] SourceBlock "powerlib_extras/Measurements/Total Harmonic" "\nDistorsion" SourceType "Total Harmonic Distortion" ShowPortLabels "on" f1 "60" } Line { SrcBlock "In" SrcPort 1 Points [0, 0; 15, 0] Branch { DstBlock "Fourier" DstPort 1 } Branch { Points [0, 85] Branch { DstBlock "Fourier1" DstPort 1 } Branch { Points [0, 85] Branch { DstBlock "Fourier2" DstPort 1 } Branch { Points [0, 85] Branch { DstBlock "Fourier3" DstPort 1 } Branch { Points [0, 95] Branch { DstBlock "Fourier4" DstPort 1 } Branch { Points [0, 85] DstBlock "Total Harmonic\nDistorsion" DstPort 1 } } } } } } Line { SrcBlock "Fourier" SrcPort 2 DstBlock "Terminator" DstPort 1 } Line { SrcBlock "Fourier" SrcPort 1 DstBlock "Display In1" DstPort 1 } Line { SrcBlock "Fourier1" SrcPort 1 DstBlock "Display In3" DstPort 1 } Line { SrcBlock "Fourier1" SrcPort 2 DstBlock "Terminator1" DstPort 1 } Line { SrcBlock "Fourier2" SrcPort 2 DstBlock "Terminator2" DstPort 1 } Line { SrcBlock "Fourier2" SrcPort 1 DstBlock "Display In5" DstPort 1 } Line { SrcBlock "Fourier3" SrcPort 2 DstBlock "Terminator3" DstPort 1 } Line { SrcBlock "Fourier3" SrcPort 1 DstBlock "Display In7" DstPort 1 } Line { SrcBlock "Fourier4" SrcPort 1 DstBlock "Display In9" DstPort 1 } Line { SrcBlock "Fourier4" SrcPort 2 DstBlock "Terminator4" DstPort 1 } Line { SrcBlock "Total Harmonic\nDistorsion" SrcPort 1 DstBlock "Display In2" DstPort 1 } } } Block { BlockType SubSystem Name "MPFC" Ports [2, 0, 0, 0, 0, 1, 3] Position [507, 155, 573, 195] Orientation "up" TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskHideContents off System { Name "MPFC" Location [0, 82, 1012, 744] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "s1" Position [280, 323, 310, 337] IconDisplay "Port number" } Block { BlockType Inport Name "s2" Position [280, 418, 310, 432] Port "2" IconDisplay "Port number" } Block { BlockType Reference Name "Cf" Ports [0, 0, 0, 0, 0, 3, 3] Position [356, 130, 414, 175] Orientation "down" NamePlacement "alternate" AttributesFormatString "\\n" SourceBlock "powerlib/Elements/Three-Phase\nSeries RLC B" "ranch" SourceType "Three-Phase Series RLC Branch" PhysicalDomain "powersysdomain" SubClassName "unknown" LeftPortType "p1" RightPortType "p1" LConnTagsString "A|B|C" RConnTagsString "A|B|C" BranchType "C" Resistance "[]" Inductance "[]" Capacitance "0.885e-3" Measurements "None" } Block { BlockType Reference Name "Rf\n\n\nLf" Ports [0, 0, 0, 0, 0, 1, 1] Position [419, 350, 441, 415] Orientation "down" 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 "0.003" Inductance "0.11e-3" SetiL0 "off" InitialCurrent "0" Capacitance "[]" Setx0 "off" InitialVoltage "0" Measurements "None" } Block { BlockType Reference Name "S 2" Ports [1, 1, 0, 0, 0, 1, 1] Position [350, 430, 405, 470] SourceBlock "powerlib/Power\nElectronics/Ideal Switch" SourceType "Ideal Switch" ShowPortLabels "on" Ron "0.01" Lon "0" IC "0" Rs "1e6" Cs "inf" Measurements "off" } Block { BlockType Reference Name "S1" Ports [1, 1, 0, 0, 0, 1, 1] Position [355, 320, 410, 360] SourceBlock "powerlib/Power\nElectronics/Ideal Switch" SourceType "Ideal Switch" ShowPortLabels "on" Ron "0.01" Lon "0" IC "0" Rs "1e6" Cs "inf" Measurements "off" } Block { BlockType Reference Name "Universal Bridge" Ports [0, 0, 0, 0, 0, 3, 2] Position [347, 210, 423, 265] Orientation "down" ShowName off SourceBlock "powerlib/Power\nElectronics/Universal Bridg" "e" SourceType "Universal Bridge" ShowPortLabels "on" Arms "3" SnubberResistance "1e5" SnubberCapacitance "inf" Device "Diodes" Ron "1e-3" Lon "0" ForwardVoltages "[ 0 0 ]" ForwardVoltage "0" GTOparameters "[ 10e-6 , 20e-6 ]" IGBTparameters "[ 1e-6 , 2e-6 ]" Measurements "None" converterType "Rectifier" } Block { BlockType PMIOPort Name "A" Position [285, 75, 315, 90] Orientation "down" Port "1" Side "Right" } Block { BlockType PMIOPort Name "B" Position [370, 40, 400, 55] Orientation "down" Port "2" Side "Right" } Block { BlockType PMIOPort Name "C" Position [450, 75, 480, 90] Orientation "down" Port "3" Side "Right" } Block { BlockType PMIOPort Name "Cn" Position [405, 505, 435, 520] Orientation "up" Port "4" Side "Left" } Line { LineType "Connection" SrcBlock "Universal Bridge" SrcPort LConn1 Points [0, -5] DstBlock "Cf" DstPort RConn1 } Line { LineType "Connection" SrcBlock "Cf" SrcPort RConn2 DstBlock "Universal Bridge" DstPort LConn2 } Line { LineType "Connection" SrcBlock "Cf" SrcPort RConn3 Points [5, 0] DstBlock "Universal Bridge" DstPort LConn3 } Line { LineType "Connection" Points [430, 340; 0, -5] DstBlock "Rf\n\n\nLf" DstPort LConn1 Branch { ConnectType "SRC_DEST" SrcBlock "S1" SrcPort RConn1 Points [0, -10; 5, 0] } Branch { ConnectType "SRC_SRC" Points [0, -55; -25, 0] DstBlock "Universal Bridge" DstPort RConn2 } } Line { LineType "Connection" Points [330, 345; 0, 115; 5, 0] DstBlock "S 2" DstPort LConn1 Branch { ConnectType "SRC_DEST" SrcBlock "Universal Bridge" SrcPort RConn1 Points [-35, 0; 0, 65] } Branch { ConnectType "SRC_SRC" Points [10, 0] DstBlock "S1" DstPort LConn1 } } Line { LineType "Connection" SrcBlock "A" SrcPort RConn1 Points [0, 5; 65, 0] DstBlock "Cf" DstPort LConn1 } Line { LineType "Connection" SrcBlock "B" SrcPort RConn1 DstBlock "Cf" DstPort LConn2 } Line { LineType "Connection" SrcBlock "C" SrcPort RConn1 Points [-60, 0] DstBlock "Cf" DstPort LConn3 } Line { SrcBlock "s1" SrcPort 1 DstBlock "S1" DstPort 1 } Line { SrcBlock "s2" SrcPort 1 Points [20, 0] DstBlock "S 2" DstPort 1 } Line { LineType "Connection" SrcBlock "S 2" SrcPort RConn1 Points [0, -10; 10, 0] Branch { ConnectType "DEST_SRC" DstBlock "Rf\n\n\nLf" DstPort RConn1 } Branch { ConnectType "DEST_SRC" Points [-10, 0] DstBlock "Cn" DstPort RConn1 } } } } Block { BlockType SubSystem Name "NLL_A" Ports [0, 0, 0, 0, 0, 1, 1] Position [875, 47, 910, 83] NamePlacement "alternate" TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskHideContents off System { Name "NLL_A" Location [-73, 153, 939, 815] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Reference Name "PWM Generator" Ports [1, 1] Position [240, 57, 305, 103] SourceBlock "powerlib_extras/Control \nBlocks/PWM Genera" "tor" SourceType "PWM Generator" ShowPortLabels "on" GeneratorMode "2-arm bridge (4 pulses)" Fc "720" Internal "on" mIndex "0.7" Freq "60" Phase "0" } Block { BlockType Reference Name "Series RLC Load2" Ports [0, 0, 0, 0, 0, 1, 1] Position [461, 160, 479, 215] Orientation "down" NamePlacement "alternate" ShowName off AttributesFormatString "\\n" SourceBlock "powerlib/Elements/Series RLC Load" SourceType "Series RLC Load" PhysicalDomain "powersysdomain" SubClassName "unknown" LeftPortType "p1" RightPortType "p1" LConnTagsString "a" RConnTagsString "__new0" NominalVoltage "600" NominalFrequency "60" ActivePower "54e3" InductivePower "26e3" CapacitivePower "0" Setx0 "off" InitialVoltage "0" SetiL0 "off" InitialCurrent "0" Measurements "None" } Block { BlockType Reference Name "Universal Bridge" Ports [1, 0, 0, 0, 0, 2, 2] Position [340, 102, 395, 178] SourceBlock "powerlib/Power\nElectronics/Universal Bridg" "e" SourceType "Universal Bridge" ShowPortLabels "on" Arms "2" SnubberResistance "1e5" SnubberCapacitance "inf" Device "Thyristors" Ron "1e-3" Lon "0" ForwardVoltages "[ 0 0 ]" ForwardVoltage "0" GTOparameters "[ 10e-6 , 20e-6 ]" IGBTparameters "[ 1e-6 , 2e-6 ]" Measurements "None" converterType "Rectifier" } Block { BlockType PMIOPort Name "In" Tag "PMCPort" Position [200, 131, 230, 149] Port "1" Side "Left" } Block { BlockType PMIOPort Name "N" Tag "PMCPort" Position [205, 191, 235, 209] Port "2" Side "Right" } Line { LineType "Connection" SrcBlock "N" SrcPort RConn1 Points [70, 0; 0, -35] DstBlock "Universal Bridge" DstPort LConn2 } Line { LineType "Connection" SrcBlock "Universal Bridge" SrcPort RConn1 Points [0, 5; 59, 0; 0, 10; 1, 0] DstBlock "Series RLC Load2" DstPort LConn1 } Line { LineType "Connection" SrcBlock "Series RLC Load2" SrcPort RConn1 Points [0, 20; -30, 0; 0, -90] DstBlock "Universal Bridge" DstPort RConn2 } Line { SrcBlock "PWM Generator" SrcPort 1 Points [15, 0] DstBlock "Universal Bridge" DstPort 1 } Line { LineType "Connection" SrcBlock "In" SrcPort RConn1 DstBlock "Universal Bridge" DstPort LConn1 } } } Block { BlockType SubSystem Name "NLL_B" Ports [0, 0, 0, 0, 0, 1, 1] Position [875, 102, 910, 138] NamePlacement "alternate" TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskHideContents off System { Name "NLL_B" Location [0, 82, 1012, 744] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Reference Name "PWM Generator" Ports [1, 1] Position [240, 57, 305, 103] SourceBlock "powerlib_extras/Control \nBlocks/PWM Genera" "tor" SourceType "PWM Generator" ShowPortLabels "on" GeneratorMode "2-arm bridge (4 pulses)" Fc "720" Internal "on" mIndex "0.7" Freq "60" Phase "0" } Block { BlockType Reference Name "Series RLC Load2" Ports [0, 0, 0, 0, 0, 1, 1] Position [461, 220, 479, 275] Orientation "down" NamePlacement "alternate" ShowName off AttributesFormatString "\\n" SourceBlock "powerlib/Elements/Series RLC Load" SourceType "Series RLC Load" PhysicalDomain "powersysdomain" SubClassName "unknown" LeftPortType "p1" RightPortType "p1" LConnTagsString "a" RConnTagsString "__new0" NominalVoltage "600" NominalFrequency "60" ActivePower "54e3" InductivePower "26e3" CapacitivePower "0" Setx0 "off" InitialVoltage "0" SetiL0 "off" InitialCurrent "0" Measurements "None" } Block { BlockType Reference Name "Universal Bridge" Ports [1, 0, 0, 0, 0, 2, 2] Position [340, 102, 395, 178] SourceBlock "powerlib/Power\nElectronics/Universal Bridg" "e" SourceType "Universal Bridge" ShowPortLabels "on" Arms "2" SnubberResistance "1e5" SnubberCapacitance "inf" Device "Thyristors" Ron "1e-3" Lon "0" ForwardVoltages "[ 0 0 ]" ForwardVoltage "0" GTOparameters "[ 10e-6 , 20e-6 ]" IGBTparameters "[ 1e-6 , 2e-6 ]" Measurements "None" converterType "Rectifier" } Block { BlockType PMIOPort Name "In" Tag "PMCPort" Position [40, 121, 70, 139] Port "1" Side "Left" } Block { BlockType PMIOPort Name "N" Tag "PMCPort" Position [50, 291, 80, 309] Port "2" Side "Right" } Line { LineType "Connection" SrcBlock "N" SrcPort RConn1 Points [225, 0; 0, -135] DstBlock "Universal Bridge" DstPort LConn2 } Line { LineType "Connection" SrcBlock "In" SrcPort RConn1 Points [49, 0; 0, 10] DstBlock "Universal Bridge" DstPort LConn1 } Line { LineType "Connection" SrcBlock "Universal Bridge" SrcPort RConn1 Points [0, 5; 59, 0; 0, 10; 1, 0] DstBlock "Series RLC Load2" DstPort LConn1 } Line { LineType "Connection" SrcBlock "Series RLC Load2" SrcPort RConn1 Points [0, 10; -30, 0; 0, -140] DstBlock "Universal Bridge" DstPort RConn2 } Line { SrcBlock "PWM Generator" SrcPort 1 Points [15, 0] DstBlock "Universal Bridge" DstPort 1 } } } Block { BlockType SubSystem Name "NLL_C" Ports [0, 0, 0, 0, 0, 1, 1] Position [875, 162, 910, 198] NamePlacement "alternate" TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskHideContents off System { Name "NLL_C" Location [0, 82, 1012, 744] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Reference Name "PWM Generator" Ports [1, 1] Position [240, 57, 305, 103] SourceBlock "powerlib_extras/Control \nBlocks/PWM Genera" "tor" SourceType "PWM Generator" ShowPortLabels "on" GeneratorMode "2-arm bridge (4 pulses)" Fc "720" Internal "on" mIndex "0.7" Freq "60" Phase "0" } Block { BlockType Reference Name "Series RLC Load2" Ports [0, 0, 0, 0, 0, 1, 1] Position [461, 220, 479, 275] Orientation "down" NamePlacement "alternate" ShowName off AttributesFormatString "\\n" SourceBlock "powerlib/Elements/Series RLC Load" SourceType "Series RLC Load" PhysicalDomain "powersysdomain" SubClassName "unknown" LeftPortType "p1" RightPortType "p1" LConnTagsString "a" RConnTagsString "__new0" NominalVoltage "600" NominalFrequency "60" ActivePower "72e3" InductivePower "35e3" CapacitivePower "0" Setx0 "off" InitialVoltage "0" SetiL0 "off" InitialCurrent "0" Measurements "None" } Block { BlockType Reference Name "Universal Bridge" Ports [1, 0, 0, 0, 0, 2, 2] Position [340, 102, 395, 178] SourceBlock "powerlib/Power\nElectronics/Universal Bridg" "e" SourceType "Universal Bridge" ShowPortLabels "on" Arms "2" SnubberResistance "1e5" SnubberCapacitance "inf" Device "Thyristors" Ron "1e-3" Lon "0" ForwardVoltages "[ 0 0 ]" ForwardVoltage "0" GTOparameters "[ 10e-6 , 20e-6 ]" IGBTparameters "[ 1e-6 , 2e-6 ]" Measurements "None" converterType "Rectifier" } Block { BlockType PMIOPort Name "In" Tag "PMCPort" Position [40, 121, 70, 139] Port "1" Side "Left" } Block { BlockType PMIOPort Name "N" Tag "PMCPort" Position [50, 291, 80, 309] Port "2" Side "Right" } Line { LineType "Connection" SrcBlock "N" SrcPort RConn1 Points [225, 0; 0, -135] DstBlock "Universal Bridge" DstPort LConn2 } Line { LineType "Connection" SrcBlock "In" SrcPort RConn1 Points [49, 0; 0, 10] DstBlock "Universal Bridge" DstPort LConn1 } Line { LineType "Connection" SrcBlock "Universal Bridge" SrcPort RConn1 Points [0, 5; 59, 0; 0, 10; 1, 0] DstBlock "Series RLC Load2" DstPort LConn1 } Line { LineType "Connection" SrcBlock "Series RLC Load2" SrcPort RConn1 Points [0, 10; -30, 0; 0, -140] DstBlock "Universal Bridge" DstPort RConn2 } Line { SrcBlock "PWM Generator" SrcPort 1 Points [15, 0] DstBlock "Universal Bridge" DstPort 1 } } } Block { BlockType SubSystem Name "Neutral Harmonic " Ports [1] Position [490, 531, 520, 579] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskHideContents off System { Name "Neutral Harmonic " Location [0, 82, 1012, 743] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "In" Position [85, 63, 115, 77] IconDisplay "Port number" } Block { BlockType Display Name "Display In1" Ports [1] Position [280, 42, 360, 68] Decimation "1" Lockdown off } Block { BlockType Display Name "Display In2" Ports [1] Position [285, 492, 365, 518] Decimation "1" Lockdown off } Block { BlockType Display Name "Display In3" Ports [1] Position [285, 127, 365, 153] Decimation "1" Lockdown off } Block { BlockType Display Name "Display In5" Ports [1] Position [285, 212, 365, 238] Decimation "1" Lockdown off } Block { BlockType Display Name "Display In7" Ports [1] Position [280, 297, 360, 323] Decimation "1" Lockdown off } Block { BlockType Display Name "Display In9" Ports [1] Position [285, 392, 365, 418] Decimation "1" Lockdown off } Block { BlockType Reference Name "Fourier" Ports [1, 2] Position [160, 42, 210, 98] SourceBlock "powerlib_extras/Measurements/Fourier" SourceType "Fourier analyser" ShowPortLabels "on" f1 "60" n "1" } Block { BlockType Reference Name "Fourier1" Ports [1, 2] Position [160, 127, 210, 183] SourceBlock "powerlib_extras/Measurements/Fourier" SourceType "Fourier analyser" ShowPortLabels "on" f1 "60" n "3" } Block { BlockType Reference Name "Fourier2" Ports [1, 2] Position [160, 212, 210, 268] SourceBlock "powerlib_extras/Measurements/Fourier" SourceType "Fourier analyser" ShowPortLabels "on" f1 "60" n "5" } Block { BlockType Reference Name "Fourier3" Ports [1, 2] Position [160, 297, 210, 353] SourceBlock "powerlib_extras/Measurements/Fourier" SourceType "Fourier analyser" ShowPortLabels "on" f1 "60" n "7" } Block { BlockType Reference Name "Fourier4" Ports [1, 2] Position [165, 392, 215, 448] SourceBlock "powerlib_extras/Measurements/Fourier" SourceType "Fourier analyser" ShowPortLabels "on" f1 "60" n "9" } Block { BlockType Terminator Name "Terminator" Position [235, 75, 255, 95] ShowName off } Block { BlockType Terminator Name "Terminator1" Position [235, 160, 255, 180] ShowName off } Block { BlockType Terminator Name "Terminator2" Position [235, 245, 255, 265] ShowName off } Block { BlockType Terminator Name "Terminator3" Position [235, 330, 255, 350] ShowName off } Block { BlockType Terminator Name "Terminator4" Position [235, 425, 255, 445] ShowName off } Block { BlockType Reference Name "Total Harmonic\nDistorsion" Ports [1, 1] Position [165, 477, 215, 533] SourceBlock "powerlib_extras/Measurements/Total Harmonic" "\nDistorsion" SourceType "Total Harmonic Distortion" ShowPortLabels "on" f1 "60" } Line { SrcBlock "In" SrcPort 1 Points [0, 0; 15, 0] Branch { DstBlock "Fourier" DstPort 1 } Branch { Points [0, 85] Branch { DstBlock "Fourier1" DstPort 1 } Branch { Points [0, 85] Branch { DstBlock "Fourier2" DstPort 1 } Branch { Points [0, 85] Branch { DstBlock "Fourier3" DstPort 1 } Branch { Points [0, 95] Branch { DstBlock "Fourier4" DstPort 1 } Branch { Points [0, 85] DstBlock "Total Harmonic\nDistorsion" DstPort 1 } } } } } } Line { SrcBlock "Fourier" SrcPort 2 DstBlock "Terminator" DstPort 1 } Line { SrcBlock "Fourier" SrcPort 1 DstBlock "Display In1" DstPort 1 } Line { SrcBlock "Fourier1" SrcPort 1 DstBlock "Display In3" DstPort 1 } Line { SrcBlock "Fourier1" SrcPort 2 DstBlock "Terminator1" DstPort 1 } Line { SrcBlock "Fourier2" SrcPort 2 DstBlock "Terminator2" DstPort 1 } Line { SrcBlock "Fourier2" SrcPort 1 DstBlock "Display In5" DstPort 1 } Line { SrcBlock "Fourier3" SrcPort 2 DstBlock "Terminator3" DstPort 1 } Line { SrcBlock "Fourier3" SrcPort 1 DstBlock "Display In7" DstPort 1 } Line { SrcBlock "Fourier4" SrcPort 1 DstBlock "Display In9" DstPort 1 } Line { SrcBlock "Fourier4" SrcPort 2 DstBlock "Terminator4" DstPort 1 } Line { SrcBlock "Total Harmonic\nDistorsion" SrcPort 1 DstBlock "Display In2" DstPort 1 } } } Block { BlockType Reference Name "Rg" Ports [0, 0, 0, 0, 0, 1, 1] Position [263, 370, 287, 420] Orientation "down" NamePlacement "alternate" 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 "[]" SetiL0 off InitialCurrent "0" Capacitance "[]" Setx0 off InitialVoltage "0" Measurements "None" } Block { BlockType Scope Name "Scope2" Ports [2] Position [490, 452, 530, 503] Floating off Location [1, 52, 1017, 729] Open off NumInputPorts "2" ZoomMode "yonly" List { ListType AxesTitles axes1 "Vn(Volt)" axes2 "In(Ampere)" } YMin "0.13~0.0143" YMax "0.15~0.014475" SaveToWorkspace on SaveName "NFC" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Reference Name "Transformer Bus" Ports [0, 0, 0, 0, 0, 3, 3] Position [305, 64, 310, 136] SourceBlock "powerlib/Measurements/Three-Phase\nV-I Measurem" "ent" SourceType "Three-Phase VI Measurement" ShowPortLabels on VoltageMeasurement "phase-to-phase" SetLabelV on LabelV "Vs" Vpu on CurrentMeasurement "yes" SetLabelI on LabelI "Is" Ipu on Pbase "400e3" Vbase "600" OutputType "Complex" PhasorSimulation off PSBequivalent "0" } Block { BlockType Reference Name "Voltage Measurement" Ports [0, 1, 0, 0, 0, 2] Position [660, 363, 685, 387] ShowName off SourceBlock "powerlib/Measurements/Voltage Measurement" SourceType "Voltage Measurement" ShowPortLabels on PhasorSimulation off OutputType "Complex" PSBequivalent "0" } Block { BlockType Reference Name "Zn" Ports [0, 0, 0, 0, 0, 1, 1] Position [390, 336, 460, 364] 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 "0.1" Inductance "0.5e-3" SetiL0 off InitialCurrent "0" Capacitance "[]" Setx0 off InitialVoltage "0" Measurements "None" } Block { BlockType SubSystem Name "powergui" Ports [] Position [95, 305, 186, 334] DropShadow on Priority "2" 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 12 FontWeight "bold" 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|logspace(0,3,50)|off|of" "f|off|off|ZData||on|0.0|2|off|60|off|1000|60|1|2|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 "usletter" PaperUnits "inches" 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;\n SwitchResista" "nce=1;\n SwitchType=1;\n SwitchGateInitialValue=1;\n OutputsToResetT" "oZero=1;\nelse\n A=SPS.A;\n B=SPS.B;\n C=SPS.C;\n D=SPS.D;\n " " x0=SPS.x0;\n SwitchResistance=SPS.SwitchResistance;\n SwitchType=SPS" ".SwitchType;\n SwitchGateInitialValue=SPS.SwitchGateInitialValue;\n Out" "putsToResetToZero=SPS.YSwitchCurrent;\nend" MaskDisplay "color('blue')\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 "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType SubSystem Name "Gates" Ports [0, 1] Position [15, 112, 80, 138] FontName "Arial" FontSize 14 TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskHideContents off System { Name "Gates" Location [20, 127, 741, 886] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType From Name "From1" Position [15, 21, 85, 49] GotoTag "tp383685" } Block { BlockType From Name "From2" Position [15, 66, 85, 94] GotoTag "tp383690" } Block { BlockType From Name "From3" Position [15, 111, 85, 139] GotoTag "tp383857" } Block { BlockType From Name "From4" Position [15, 156, 85, 184] GotoTag "tp383864" } Block { BlockType From Name "From5" Position [15, 201, 85, 229] GotoTag "tp383870" } Block { BlockType From Name "From6" Position [15, 246, 85, 274] GotoTag "tp383876" } Block { BlockType Mux Name "Mux" Ports [6, 1] Position [325, 272, 330, 613] ShowName off Inputs "[1 1 6 4 4 4]" DisplayOption "bar" } Block { BlockType Outport Name "gates" Position [390, 433, 420, 447] IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "Mux" SrcPort 1 Points [0, -5] DstBlock "gates" DstPort 1 } Line { SrcBlock "From1" SrcPort 1 DstBlock "Mux" DstPort 1 } Line { SrcBlock "From2" SrcPort 1 DstBlock "Mux" DstPort 2 } Line { SrcBlock "From3" SrcPort 1 DstBlock "Mux" DstPort 3 } Line { SrcBlock "From4" SrcPort 1 DstBlock "Mux" DstPort 4 } Line { SrcBlock "From5" SrcPort 1 DstBlock "Mux" DstPort 5 } Line { SrcBlock "From6" SrcPort 1 DstBlock "Mux" DstPort 6 } } } Block { BlockType SubSystem Name "Sources" Ports [0, 1] Position [15, 52, 80, 78] 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 "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType From Name "From1" Position [15, 21, 85, 49] GotoTag "tp383653" } Block { BlockType Mux Name "Mux" Ports [1, 1] Position [325, 270, 330, 610] Inputs "1" DisplayOption "bar" } Block { BlockType Mux Name "Mux_u" Ports [2, 1] Position [465, 374, 470, 461] Inputs "[20 3]" DisplayOption "bar" } Block { BlockType Constant Name "SwitchCurrents" Position [350, 379, 430, 411] NamePlacement "alternate" Value "zeros(20,1)" } Block { BlockType Outport Name "u" Position [505, 413, 535, 427] IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Mux_u" DstPort 2 } Line { SrcBlock "SwitchCurrents" SrcPort 1 DstBlock "Mux_u" DstPort 1 } Line { SrcBlock "Mux_u" SrcPort 1 DstBlock "u" DstPort 1 } Line { SrcBlock "From1" SrcPort 1 DstBlock "Mux" DstPort 1 } } } Block { BlockType "S-Function" Name "State-Space" Ports [2, 2] Position [115, 35, 245, 155] FontName "Arial" FontSize 14 FunctionName "sfun_spssw_contc" Parameters "A, B, C, D, x0, SwitchResistance ,Switc" "hType, SwitchGateInitialValue, OutputsToResetToZero " MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" } Block { BlockType SubSystem Name "Status" Ports [1] Position [280, 113, 345, 137] FontName "Arial" FontSize 14 TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskHideContents off System { Name "Status" Location [124, 85, 631, 971] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "status" Position [15, 373, 45, 387] IconDisplay "Port number" } Block { BlockType Demux Name "Demux" Ports [1, 6] Position [100, 193, 105, 572] BackgroundColor "black" ShowName off Outputs "[1 1 6 4 4 4]" DisplayOption "bar" } Block { BlockType Goto Name "Goto1" Position [325, 21, 395, 49] GotoTag "tp383687" TagVisibility "global" } Block { BlockType Goto Name "Goto2" Position [325, 66, 395, 94] GotoTag "tp383692" TagVisibility "global" } Block { BlockType Goto Name "Goto3" Position [325, 111, 395, 139] GotoTag "tp383859" TagVisibility "global" } Block { BlockType Goto Name "Goto4" Position [325, 156, 395, 184] GotoTag "tp383865" TagVisibility "global" } Block { BlockType Goto Name "Goto5" Position [325, 201, 395, 229] GotoTag "tp383871" TagVisibility "global" } Block { BlockType Goto Name "Goto6" Position [325, 246, 395, 274] GotoTag "tp383878" TagVisibility "global" } Line { SrcBlock "status" SrcPort 1 Points [35, 0] DstBlock "Demux" DstPort 1 } Line { SrcBlock "Demux" SrcPort 1 DstBlock "Goto1" DstPort 1 } Line { SrcBlock "Demux" SrcPort 2 DstBlock "Goto2" DstPort 1 } Line { SrcBlock "Demux" SrcPort 3 DstBlock "Goto3" DstPort 1 } Line { SrcBlock "Demux" SrcPort 4 DstBlock "Goto4" DstPort 1 } Line { SrcBlock "Demux" SrcPort 5 DstBlock "Goto5" DstPort 1 } Line { SrcBlock "Demux" SrcPort 6 DstBlock "Goto6" DstPort 1 } } } Block { BlockType SubSystem Name "Yout" Ports [1] Position [280, 53, 345, 77] 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 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "v,i" Position [15, 373, 45, 387] IconDisplay "Port number" } Block { BlockType Demux Name "Demux" Ports [1, 20] Position [100, 190, 105, 570] BackgroundColor "black" ShowName off Outputs "[1 1 6 4 4 4 1 1 1 1 1 1 1 1 1 1 1 " "1 1 1]" DisplayOption "bar" } Block { BlockType Goto Name "Goto1" Position [325, 21, 395, 49] GotoTag "tp383684" TagVisibility "global" } Block { BlockType Goto Name "Goto10" Position [325, 426, 395, 454] GotoTag "tp383562" TagVisibility "global" } Block { BlockType Goto Name "Goto11" Position [325, 471, 395, 499] GotoTag "tp383670" TagVisibility "global" } Block { BlockType Goto Name "Goto12" Position [325, 516, 395, 544] GotoTag "tp383671" TagVisibility "global" } Block { BlockType Goto Name "Goto13" Position [325, 561, 395, 589] GotoTag "tp383673" TagVisibility "global" } Block { BlockType Goto Name "Goto14" Position [325, 606, 395, 634] GotoTag "tp383564" TagVisibility "global" } Block { BlockType Goto Name "Goto15" Position [325, 651, 395, 679] GotoTag "tp383565" TagVisibility "global" } Block { BlockType Goto Name "Goto16" Position [325, 696, 395, 724] GotoTag "tp383567" TagVisibility "global" } Block { BlockType Goto Name "Goto17" Position [325, 741, 395, 769] GotoTag "tp383675" TagVisibility "global" } Block { BlockType Goto Name "Goto18" Position [325, 786, 395, 814] GotoTag "tp383676" TagVisibility "global" } Block { BlockType Goto Name "Goto19" Position [325, 831, 395, 859] GotoTag "tp383678" TagVisibility "global" } Block { BlockType Goto Name "Goto2" Position [325, 66, 395, 94] GotoTag "tp383689" TagVisibility "global" } Block { BlockType Goto Name "Goto20" Position [325, 876, 395, 904] GotoTag "tp383659" TagVisibility "global" } Block { BlockType Goto Name "Goto3" Position [325, 111, 395, 139] GotoTag "tp383856" TagVisibility "global" } Block { BlockType Goto Name "Goto4" Position [325, 156, 395, 184] GotoTag "tp383862" TagVisibility "global" } Block { BlockType Goto Name "Goto5" Position [325, 201, 395, 229] GotoTag "tp383868" TagVisibility "global" } Block { BlockType Goto Name "Goto6" Position [325, 246, 395, 274] GotoTag "tp383875" TagVisibility "global" } Block { BlockType Goto Name "Goto7" Position [325, 291, 395, 319] GotoTag "tp383507" TagVisibility "global" } Block { BlockType Goto Name "Goto8" Position [325, 336, 395, 364] GotoTag "tp383559" TagVisibility "global" } Block { BlockType Goto Name "Goto9" Position [325, 381, 395, 409] GotoTag "tp383560" TagVisibility "global" } Line { SrcBlock "v,i" SrcPort 1 DstBlock "Demux" DstPort 1 } Line { SrcBlock "Demux" SrcPort 1 DstBlock "Goto1" DstPort 1 } Line { SrcBlock "Demux" SrcPort 2 DstBlock "Goto2" DstPort 1 } Line { SrcBlock "Demux" SrcPort 3 DstBlock "Goto3" DstPort 1 } Line { SrcBlock "Demux" SrcPort 4 DstBlock "Goto4" DstPort 1 } Line { SrcBlock "Demux" SrcPort 5 DstBlock "Goto5" DstPort 1 } Line { SrcBlock "Demux" SrcPort 6 DstBlock "Goto6" DstPort 1 } Line { SrcBlock "Demux" SrcPort 7 DstBlock "Goto7" DstPort 1 } Line { SrcBlock "Demux" SrcPort 8 DstBlock "Goto8" DstPort 1 } Line { SrcBlock "Demux" SrcPort 9 DstBlock "Goto9" DstPort 1 } Line { SrcBlock "Demux" SrcPort 10 DstBlock "Goto10" DstPort 1 } Line { SrcBlock "Demux" SrcPort 11 DstBlock "Goto11" DstPort 1 } Line { SrcBlock "Demux" SrcPort 12 DstBlock "Goto12" DstPort 1 } Line { SrcBlock "Demux" SrcPort 13 DstBlock "Goto13" DstPort 1 } Line { SrcBlock "Demux" SrcPort 14 DstBlock "Goto14" DstPort 1 } Line { SrcBlock "Demux" SrcPort 15 DstBlock "Goto15" DstPort 1 } Line { SrcBlock "Demux" SrcPort 16 DstBlock "Goto16" DstPort 1 } Line { SrcBlock "Demux" SrcPort 17 DstBlock "Goto17" DstPort 1 } Line { SrcBlock "Demux" SrcPort 18 DstBlock "Goto18" DstPort 1 } Line { SrcBlock "Demux" SrcPort 19 DstBlock "Goto19" DstPort 1 } Line { SrcBlock "Demux" SrcPort 20 DstBlock "Goto20" DstPort 1 } } } Line { SrcBlock "Gates" SrcPort 1 DstBlock "State-Space" DstPort 2 } Line { SrcBlock "Sources" SrcPort 1 DstBlock "State-Space" DstPort 1 } Line { SrcBlock "State-Space" SrcPort 2 DstBlock "Status" DstPort 1 } Line { SrcBlock "State-Space" SrcPort 1 DstBlock "Yout" DstPort 1 } } } Block { BlockType Ground Name "Ground" Position [315, 40, 335, 60] ShowName off } Block { BlockType Terminator Name "Terminator" Position [355, 40, 375, 60] ShowName off } Line { SrcBlock "Ground" SrcPort 1 DstBlock "Terminator" DstPort 1 } Annotation { Name "Graphical user interface for the analysis o" "f SimPowerSystems circuits. \nPlace the Powergui block in the top-level of y" "our model and double-click\non it to open the GUI." Position [14, 29] HorizontalAlignment "left" ForegroundColor "blue" UseDisplayTextAsClickCallback off FontName "Arial" FontSize 12 } } } Line { LineType "Connection" SrcBlock "1 km Feeder" SrcPort RConn1 Points [10, 0] DstBlock "Load Bus" DstPort LConn1 } Line { LineType "Connection" SrcBlock "1 km Feeder" SrcPort RConn2 DstBlock "Load Bus" DstPort LConn2 } Line { LineType "Connection" SrcBlock "1 km Feeder" SrcPort RConn3 Points [10, 0] DstBlock "Load Bus" DstPort LConn3 } Line { SrcBlock "Voltage Measurement" SrcPort 1 DstBlock "Goto1" DstPort 1 } Line { SrcBlock "From3" SrcPort 1 DstBlock "Scope2" DstPort 1 } Line { SrcBlock "From2" SrcPort 1 Points [0, 0; 5, 0] Branch { Points [25, 0] DstBlock "Scope2" DstPort 2 } Branch { Points [0, 55] DstBlock "Neutral Harmonic " DstPort 1 } } Line { SrcBlock "Current Measurement" SrcPort 1 Points [-30, 0; 0, -35] DstBlock "Goto" DstPort 1 } Line { LineType "Connection" SrcBlock "Current Measurement" SrcPort RConn1 DstBlock "Zn" DstPort RConn1 } Line { LineType "Connection" Points [735, 65; -50, 0; 0, 10; -190, 0] DstBlock "Load Bus" DstPort RConn1 Branch { ConnectType "SRC_SRC" DstBlock "NLL_A" DstPort LConn1 } Branch { ConnectType "SRC_SRC" DstBlock "Linear Load" DstPort LConn1 } } Line { LineType "Connection" Points [755, 100; -215, 0; -45, 0] DstBlock "Load Bus" DstPort RConn2 Branch { ConnectType "SRC_SRC" Points [55, 0; 0, 10; 45, 0; 0, 10] DstBlock "NLL_B" DstPort LConn1 } Branch { ConnectType "SRC_SRC" DstBlock "Linear Load" DstPort LConn2 } } Line { LineType "Connection" SrcBlock "Ground1" SrcPort LConn1 Points [0, -30] DstBlock "Voltage Measurement" DstPort LConn2 } Line { LineType "Connection" Points [775, 125; -215, 0; -65, 0] DstBlock "Load Bus" DstPort RConn3 Branch { ConnectType "SRC_SRC" Points [40, 0; 0, 35; 40, 0; 0, 20] DstBlock "NLL_C" DstPort LConn1 } Branch { ConnectType "SRC_SRC" DstBlock "Linear Load" DstPort LConn3 } } Line { LineType "Connection" SrcBlock "Transformer Bus" SrcPort RConn3 Points [0, -10] DstBlock "1 km Feeder" DstPort LConn3 } Line { SrcBlock "From" SrcPort 1 Points [0, 0] DstBlock "Load " DstPort 1 } Line { SrcBlock "From1" SrcPort 1 Points [0, 0] Branch { DstBlock "Load " DstPort 2 } Branch { Points [0, 60] DstBlock "Load Harmonic " DstPort 1 } } Line { LineType "Connection" SrcBlock "Transformer Bus" SrcPort RConn1 Points [0, 10] DstBlock "1 km Feeder" DstPort LConn1 } Line { LineType "Connection" SrcBlock "Transformer Bus" SrcPort RConn2 DstBlock "1 km Feeder" DstPort LConn2 } Line { LineType "Connection" SrcBlock "Rg" SrcPort RConn1 DstBlock "Ground" DstPort LConn1 } Line { LineType "Connection" SrcBlock "25kv/600v \n400kVA" SrcPort RConn1 Points [5, 0; 0, -5] DstBlock "Transformer Bus" DstPort LConn1 } Line { LineType "Connection" SrcBlock "25kv/600v \n400kVA" SrcPort RConn2 Points [5, 0; 0, 5] DstBlock "Transformer Bus" DstPort LConn2 } Line { LineType "Connection" SrcBlock "25kv/600v \n400kVA" SrcPort RConn3 Points [5, 0; 0, 15] DstBlock "Transformer Bus" DstPort LConn3 } Line { LineType "Connection" SrcBlock "25 KV AC source" SrcPort RConn1 Points [0, -65] DstBlock "25kv/600v \n400kVA" DstPort LConn1 } Line { LineType "Connection" SrcBlock "25 KV AC source" SrcPort RConn2 Points [0, -50] DstBlock "25kv/600v \n400kVA" DstPort LConn2 } Line { LineType "Connection" SrcBlock "25 KV AC source" SrcPort RConn3 Points [0, -35] DstBlock "25kv/600v \n400kVA" DstPort LConn3 } Line { LineType "Connection" SrcBlock "25kv/600v \n400kVA" SrcPort RConn4 Points [0, 0; 0, 225] Branch { ConnectType "DEST_SRC" DstBlock "Zn" DstPort LConn1 } Branch { ConnectType "DEST_SRC" DstBlock "Rg" DstPort LConn1 } } Line { LineType "Connection" Points [930, 180; 0, 165; -175, 0] Branch { ConnectType "SRC_DEST" SrcBlock "NLL_C" SrcPort RConn1 Points [0, 0; 5, 0] } Branch { ConnectType "SRC_DEST" Points [930, 120; 0, 60] Branch { ConnectType "SRC_DEST" SrcBlock "NLL_B" SrcPort RConn1 Points [0, 0; 5, 0] } Branch { ConnectType "SRC_DEST" SrcBlock "NLL_A" SrcPort RConn1 Points [5, 0; 0, 55] } } Branch { ConnectType "DEST_SRC" Points [-140, 0] Branch { ConnectType "DEST_SRC" DstBlock "Current Measurement" DstPort LConn1 } Branch { ConnectType "DEST_SRC" Points [0, 0; 0, 25] DstBlock "Voltage Measurement" DstPort LConn1 } } Branch { ConnectType "DEST_DEST" SrcBlock "Linear Load" SrcPort RConn1 Points [0, 75] } } Line { LineType "Connection" SrcBlock "MPFC" SrcPort LConn1 DstBlock "Ground2" DstPort LConn1 } Line { SrcBlock "From8" SrcPort 1 DstBlock "Gain1" DstPort 1 } Line { SrcBlock "Gain1" SrcPort 1 DstBlock "Controller" DstPort 1 } Line { SrcBlock "Controller" SrcPort 1 DstBlock "MPFC" DstPort 1 } Line { SrcBlock "Controller" SrcPort 2 Points [55, 0] DstBlock "MPFC" DstPort 2 } Annotation { Name "EE6633 Project 3 The Model of Low Voltage Distr" "ibution Systems under Unbalanced Condition " Position [472, 27] UseDisplayTextAsClickCallback off FontName "Arial" FontSize 14 FontWeight "bold" } } }