Model { Name "power_tcsc_9bus_PS2_Fault_260KM" Version 7.5 MdlSubVersion 0 GraphicalInterface { NumRootInports 0 NumRootOutports 0 ParameterArgumentNames "" ComputedModelVersion "1.945" NumModelReferences 0 NumTestPointedSignals 0 } Description "\n\n\nCopyright 2008 The MathWorks(TM), Inc.\n" SavedCharacterEncoding "US-ASCII" PreLoadFcn "Ts=50e-6; " SaveDefaultBlockParams on ScopeRefreshTime 0.035000 OverrideScopeRefreshTime on DisableAllScopes off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" MinMaxOverflowArchiveMode "Overwrite" MaxMDLFileLineLength 120 InitFcn "epsilon=0.18;\nh=0.25;" Created "Thu Apr 27 20:01:17 2000" Creator "hyp01" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "Niloofar" ModifiedDateFormat "%" LastModifiedDate "Mon Jun 30 05:30:16 2014" RTWModifiedTimeStamp 326006405 ModelVersionFormat "1.%" ConfigurationManager "none" SampleTimeColors off SampleTimeAnnotations off LibraryLinkDisplay "none" WideLines off ShowLineDimensions on ShowPortDataTypes off ShowLoopsOnError on IgnoreBidirectionalLines off ShowStorageClass off ShowTestPointIcons on ShowSignalResolutionIcons on ShowViewerIcons on SortedOrder off ExecutionContextIcon off ShowLinearizationAnnotations on BlockNameDataTip off BlockParametersDataTip on BlockDescriptionStringDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off SimulationMode "normal" LinearizationMsg "none" Profile off ParamWorkspaceSource "MATLABWorkspace" AccelSystemTargetFile "accel.tlc" AccelTemplateMakefile "accel_default_tmf" AccelMakeCommand "make_rtw" TryForcingSFcnDF off RecordCoverage off CovPath "/" CovSaveName "covdata" CovMetricSettings "dw" CovNameIncrementing off CovHtmlReporting on CovForceBlockReductionOff on covSaveCumulativeToWorkspaceVar on CovSaveSingleToWorkspaceVar on CovCumulativeVarName "covCumulativeData" CovCumulativeReport off CovReportOnPause on CovModelRefEnable "Off" CovExternalEMLEnable off ExtModeBatchMode off ExtModeEnableFloating on ExtModeTrigType "manual" ExtModeTrigMode "oneshot" 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 off ExtModeSkipDownloadWhenConnect off ExtModeLogAll on ExtModeAutoUpdateStatusClock off BufferReuse on ShowModelReferenceBlockVersion off ShowModelReferenceBlockIO off Array { Type "Handle" Dimension 1 Simulink.ConfigSet { $ObjectID 1 Version "1.10.0" Array { Type "Handle" Dimension 8 Simulink.SolverCC { $ObjectID 2 Version "1.10.0" StartTime "0.0" StopTime "5.7" AbsTol "1e-4" FixedStep "0.0001" InitialStep "auto" MaxNumMinSteps "-1" MaxOrder 5 ZcThreshold "auto" ConsecutiveZCsStepRelTol "10*128*eps" MaxConsecutiveZCs "1000" ExtrapolationOrder 4 NumberNewtonIterations 1 MaxStep "0.04" MinStep "auto" MaxConsecutiveMinStep "1" RelTol "1e-4" SolverMode "SingleTasking" Solver "ode23tb" SolverName "ode23tb" SolverJacobianMethodControl "auto" ShapePreserveControl "DisableAll" ZeroCrossControl "UseLocalSettings" ZeroCrossAlgorithm "Nonadaptive" AlgebraicLoopSolver "TrustRegion" SolverResetMethod "Fast" PositivePriorityOrder off AutoInsertRateTranBlk off SampleTimeConstraint "Unconstrained" InsertRTBMode "Whenever possible" } Simulink.DataIOCC { $ObjectID 3 Version "1.10.0" Decimation "1" ExternalInput "[t, u]" FinalStateName "xFinal" InitialState "xInitial" LimitDataPoints off MaxDataPoints "1000" LoadExternalInput off LoadInitialState off SaveFinalState on SaveCompleteFinalSimState off SaveFormat "StructureWithTime" SaveOutput off SaveState off SignalLogging on DSMLogging on InspectSignalLogs off SaveTime off ReturnWorkspaceOutputs off StateSaveName "xout" TimeSaveName "tout" OutputSaveName "yout" SignalLoggingName "sigsOut" DSMLoggingName "dsmout" OutputOption "RefineOutputTimes" OutputTimes "[]" ReturnWorkspaceOutputsName "out" Refine "1" } Simulink.OptimizationCC { $ObjectID 4 Version "1.10.0" Array { Type "Cell" Dimension 4 Cell "ZeroExternalMemoryAtStartup" Cell "ZeroInternalMemoryAtStartup" Cell "NoFixptDivByZeroProtection" Cell "OptimizeModelRefInitCode" PropName "DisabledProps" } BlockReduction on BooleanDataType off ConditionallyExecuteInputs on InlineParams off UseIntDivNetSlope off InlineInvariantSignals on OptimizeBlockIOStorage on BufferReuse on EnhancedBackFolding off StrengthReduction off EnforceIntegerDowncast on ExpressionFolding on BooleansAsBitfields off BitfieldContainerType "uint_T" EnableMemcpy on MemcpyThreshold 64 PassReuseOutputArgsAs "Structure reference" ExpressionDepthLimit 2147483647 FoldNonRolledExpr on LocalBlockOutputs on RollThreshold 5 SystemCodeInlineAuto off StateBitsets off DataBitsets off UseTempVars off ZeroExternalMemoryAtStartup on ZeroInternalMemoryAtStartup on InitFltsAndDblsToZero on NoFixptDivByZeroProtection off EfficientFloat2IntCast off EfficientMapNaN2IntZero off OptimizeModelRefInitCode off LifeSpan "inf" MaxStackSize "Inherit from target" BufferReusableBoundary on SimCompilerOptimization "Off" AccelVerboseBuild off } Simulink.DebuggingCC { $ObjectID 5 Version "1.10.0" RTPrefix "error" ConsistencyChecking "none" ArrayBoundsChecking "none" SignalInfNanChecking "none" SignalRangeChecking "none" ReadBeforeWriteMsg "UseLocalSettings" WriteAfterWriteMsg "UseLocalSettings" WriteAfterReadMsg "UseLocalSettings" AlgebraicLoopMsg "warning" ArtificialAlgebraicLoopMsg "warning" SaveWithDisabledLinksMsg "warning" SaveWithParameterizedLinksMsg "none" CheckSSInitialOutputMsg on UnderspecifiedInitializationDetection "Classic" MergeDetectMultiDrivingBlocksExec "none" CheckExecutionContextPreStartOutputMsg on CheckExecutionContextRuntimeOutputMsg on SignalResolutionControl "TryResolveAllWithWarning" BlockPriorityViolationMsg "warning" MinStepSizeMsg "warning" TimeAdjustmentMsg "none" MaxConsecutiveZCsMsg "error" SolverPrmCheckMsg "none" InheritedTsInSrcMsg "warning" DiscreteInheritContinuousMsg "warning" MultiTaskDSMMsg "warning" MultiTaskCondExecSysMsg "none" MultiTaskRateTransMsg "error" SingleTaskRateTransMsg "none" TasksWithSamePriorityMsg "warning" SigSpecEnsureSampleTimeMsg "warning" CheckMatrixSingularityMsg "none" IntegerOverflowMsg "warning" Int32ToFloatConvMsg "warning" ParameterDowncastMsg "error" ParameterOverflowMsg "error" ParameterUnderflowMsg "none" ParameterPrecisionLossMsg "warning" ParameterTunabilityLossMsg "warning" FixptConstUnderflowMsg "none" FixptConstOverflowMsg "none" FixptConstPrecisionLossMsg "none" UnderSpecifiedDataTypeMsg "none" UnnecessaryDatatypeConvMsg "none" VectorMatrixConversionMsg "none" InvalidFcnCallConnMsg "error" FcnCallInpInsideContextMsg "Use local settings" SignalLabelMismatchMsg "none" UnconnectedInputMsg "none" UnconnectedOutputMsg "none" UnconnectedLineMsg "none" SFcnCompatibilityMsg "none" UniqueDataStoreMsg "none" BusObjectLabelMismatch "warning" RootOutportRequireBusObject "warning" AssertControl "UseLocalSettings" EnableOverflowDetection off ModelReferenceIOMsg "none" ModelReferenceVersionMismatchMessage "none" ModelReferenceIOMismatchMessage "none" ModelReferenceCSMismatchMessage "none" UnknownTsInhSupMsg "warning" ModelReferenceDataLoggingMessage "warning" ModelReferenceSymbolNameMessage "warning" ModelReferenceExtraNoncontSigs "error" StateNameClashWarn "warning" SimStateInterfaceChecksumMismatchMsg "warning" StrictBusMsg "None" BusNameAdapt "WarnAndRepair" NonBusSignalsTreatedAsBus "none" LoggingUnavailableSignals "error" BlockIODiagnostic "none" } Simulink.HardwareCC { $ObjectID 6 Version "1.10.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 on ProdEqTarget on } Simulink.ModelReferenceCC { $ObjectID 7 Version "1.10.0" UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange" CheckModelReferenceTargetMessage "error" EnableParallelModelReferenceBuilds off ParallelModelReferenceMATLABWorkerInit "None" ModelReferenceNumInstancesAllowed "Multi" PropagateVarSize "Infer from blocks in model" ModelReferencePassRootInputsByReference on ModelReferenceMinAlgLoopOccurrences off PropagateSignalLabelsOutOfModel off SupportModelReferenceSimTargetCustomCode off } Simulink.SFSimCC { $ObjectID 8 Version "1.10.0" SFSimEnableDebug on SFSimOverflowDetection on SFSimEcho on SimBlas on SimCtrlC on SimExtrinsic on SimIntegrity on SimUseLocalCustomCode off SimBuildMode "sf_incremental_build" } Simulink.RTWCC { $BackupClass "Simulink.RTWCC" $ObjectID 9 Version "1.10.0" Array { Type "Cell" Dimension 1 Cell "IncludeHyperlinkInReport" PropName "DisabledProps" } SystemTargetFile "grt.tlc" GenCodeOnly off MakeCommand "make_rtw" GenerateMakefile on 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 RTWUseLocalCustomCode off RTWUseSimCustomCode off IncludeHyperlinkInReport off LaunchReport off TargetLang "C" IncludeBusHierarchyInRTWFileBlockHierarchyMap off IncludeERTFirstTime on GenerateTraceInfo off GenerateTraceReport off GenerateTraceReportSl off GenerateTraceReportSf off GenerateTraceReportEml off GenerateCodeInfo off RTWCompilerOptimization "Off" CheckMdlBeforeBuild "Off" CustomRebuildMode "OnUpdate" Array { Type "Handle" Dimension 2 Simulink.CodeAppCC { $ObjectID 10 Version "1.10.0" 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" } ForceParamTrailComments off GenerateComments on IgnoreCustomStorageClasses on IgnoreTestpoints off IncHierarchyInIds off MaxIdLength 31 PreserveName off PreserveNameWithParent off ShowEliminatedStatement off IncAutoGenComments off SimulinkDataObjDesc off SFDataObjDesc off IncDataTypeInIds off MangleLength 1 CustomSymbolStrGlobalVar "$R$N$M" CustomSymbolStrType "$N$R$M" CustomSymbolStrField "$N$M" CustomSymbolStrFcn "$R$N$M$F" CustomSymbolStrFcnArg "rt$I$N$M" CustomSymbolStrBlkIO "rtb_$N$M" CustomSymbolStrTmpVar "$N$M" CustomSymbolStrMacro "$R$N$M" DefineNamingRule "None" ParamNamingRule "None" SignalNamingRule "None" InsertBlockDesc off SimulinkBlockComments on EnableCustomComments off InlinedPrmAccess "Literals" ReqsInCode off UseSimReservedNames off } Simulink.GRTTargetCC { $BackupClass "Simulink.TargetCC" $ObjectID 11 Version "1.10.0" 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" } TargetFcnLib "ansi_tfl_tmw.mat" TargetLibSuffix "" TargetPreCompLibLocation "" TargetFunctionLibrary "ANSI_C" UtilityFuncGeneration "Auto" ERTMultiwordTypeDef "System defined" ERTCodeCoverageTool "None" ERTMultiwordLength 256 MultiwordLength 2048 GenerateFullHeader on GenerateSampleERTMain off GenerateTestInterfaces off IsPILTarget off ModelReferenceCompliant on ParMdlRefBuildCompliant on CompOptLevelCompliant on IncludeMdlTerminateFcn on GeneratePreprocessorConditionals "Disable all" CombineOutputUpdateFcns off SuppressErrorStatus off ERTFirstTimeCompliant off IncludeFileDelimiter "Auto" ERTCustomFileBanners off SupportAbsoluteTime on LogVarNameModifier "rt_" MatFileLogging on MultiInstanceERTCode off SupportNonFinite on SupportComplex on PurelyIntegerCode off SupportContinuousTime on SupportNonInlinedSFcns on SupportVariableSizeSignals off EnableShiftOperators on ParenthesesLevel "Nominal" PortableWordSizes off ModelStepFunctionPrototypeControlCompliant off CPPClassGenCompliant off AutosarCompliant off UseMalloc off ExtMode off ExtModeStaticAlloc off ExtModeTesting off ExtModeStaticAllocSize 1000000 ExtModeTransport 0 ExtModeMexFile "ext_comm" ExtModeIntrfLevel "Level1" RTWCAPISignals off RTWCAPIParams off RTWCAPIStates off GenerateASAP2 off } PropName "Components" } } PropName "Components" } Name "Configuration" CurrentDlgPage "Solver" ConfigPrmDlgPosition " [ 200, 197, 1080, 827 ] " } PropName "ConfigurationSets" } Simulink.ConfigSet { $PropName "ActiveConfigurationSet" $ObjectID 1 } BlockDefaults { ForegroundColor "black" BackgroundColor "white" DropShadow off NamePlacement "normal" FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" ShowName on BlockRotation 0 BlockMirror off } AnnotationDefaults { HorizontalAlignment "center" VerticalAlignment "middle" ForegroundColor "black" BackgroundColor "white" DropShadow off FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" UseDisplayTextAsClickCallback off } LineDefaults { FontName "Helvetica" FontSize 9 FontWeight "normal" FontAngle "normal" } BlockParameterDefaults { Block { BlockType Abs ZeroCross on SampleTime "-1" OutMax "[]" OutDataTypeMode "Same as input" OutDataType "fixdt(1,16,0)" OutScaling "[]" OutDataTypeStr "Inherit: Same as input" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on } Block { BlockType BusSelector OutputAsBus off } Block { BlockType Clock DisplayTime off } Block { BlockType CombinatorialLogic TruthTable "[0 0;0 1;0 1;1 0;0 1;1 0;1 0;1 1]" SampleTime "-1" } Block { BlockType Constant Value "1" VectorParams1D on SamplingMode "Sample based" OutMin "[]" OutMax "[]" OutDataTypeMode "Inherit from 'Constant value'" OutDataType "fixdt(1,16,0)" ConRadixGroup "Use specified scaling" OutScaling "[]" OutDataTypeStr "Inherit: Inherit from 'Constant value'" LockScale off SampleTime "inf" FramePeriod "inf" PreserveConstantTs off } Block { BlockType Demux Outputs "4" DisplayOption "none" BusSelectionMode off } Block { BlockType DiscreteFilter Numerator "[1]" Denominator "[1 0.5]" InitialStates "0" SampleTime "-1" a0EqualsOne off NumCoefMin "[]" NumCoefMax "[]" DenCoefMin "[]" DenCoefMax "[]" OutMin "[]" OutMax "[]" StateDataTypeStr "Inherit: Same as input" NumCoefDataTypeStr "Inherit: Inherit via internal rule" DenCoefDataTypeStr "Inherit: Inherit via internal rule" NumProductDataTypeStr "Inherit: Inherit via internal rule" DenProductDataTypeStr "Inherit: Inherit via internal rule" NumAccumDataTypeStr "Inherit: Inherit via internal rule" DenAccumDataTypeStr "Inherit: Inherit via internal rule" OutDataTypeStr "Inherit: Inherit via internal rule" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow off StateMustResolveToSignalObject off RTWStateStorageClass "Auto" } Block { BlockType DiscreteIntegrator IntegratorMethod "Integration: Forward Euler" gainval "1.0" ExternalReset "none" InitialConditionSource "internal" InitialCondition "0" InitialConditionMode "State and output" SampleTime "1" OutMin "[]" OutMax "[]" OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1,16,0)" OutScaling "[]" OutDataTypeStr "Inherit: Inherit via internal rule" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow off LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off IgnoreLimit off StateMustResolveToSignalObject off RTWStateStorageClass "Auto" } Block { BlockType Fcn Expr "sin(u[1])" SampleTime "-1" } Block { BlockType From IconDisplay "Tag" TagVisibility "local" } Block { BlockType Gain Gain "1" Multiplication "Element-wise(K.*u)" ParamMin "[]" ParamMax "[]" ParameterDataTypeMode "Same as input" ParameterDataType "fixdt(1,16,0)" ParameterScalingMode "Best Precision: Matrix-wise" ParameterScaling "[]" ParamDataTypeStr "Inherit: Same as input" OutMin "[]" OutMax "[]" OutDataTypeMode "Same as input" OutDataType "fixdt(1,16,0)" OutScaling "[]" OutDataTypeStr "Inherit: Same as input" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType Goto IconDisplay "Tag" } Block { BlockType Inport Port "1" UseBusObject off BusObject "BusObject" BusOutputAsStruct off PortDimensions "-1" VarSizeSig "Inherit" SampleTime "-1" OutMin "[]" OutMax "[]" DataType "auto" OutDataType "fixdt(1,16,0)" OutScaling "[]" OutDataTypeStr "Inherit: auto" LockScale off SignalType "auto" SamplingMode "auto" LatchByDelayingOutsideSignal off LatchInputForFeedbackSignals off Interpolate on } Block { BlockType Logic Operator "AND" Inputs "2" IconShape "rectangular" AllPortsSameDT on OutDataTypeMode "Logical (see Configuration Parameters: Optimization)" LogicDataType "uint(8)" OutDataTypeStr "Inherit: Logical (see Configuration Parameters: Optimization)" SampleTime "-1" } Block { BlockType Lookup Table " rand(1,10)-0.5" LookUpMeth "Interpolation-Extrapolation" OutMin "[]" OutMax "[]" OutDataTypeMode "Same as input" OutDataType "fixdt(1,16,0)" OutScaling "[]" OutDataTypeStr "Inherit: Same as input" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on SampleTime "-1" LUTDesignTableMode "Redesign Table" LUTDesignDataSource "Block Dialog" LUTDesignFunctionName "sqrt(x)" LUTDesignUseExistingBP on LUTDesignRelError "0.01" LUTDesignAbsError "1e-6" } Block { BlockType Math Operator "exp" OutputSignalType "auto" SampleTime "-1" OutMin "[]" OutMax "[]" OutDataTypeMode "Same as first input" OutDataType "fixdt(1,16,0)" OutScaling "[]" OutDataTypeStr "Inherit: Same as first input" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on IntermediateResultsDataTypeStr "Inherit: Inherit via internal rule" AlgorithmType "Newton-Raphson" Iterations "3" } 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" VarSizeSig "Inherit" SampleTime "-1" OutMin "[]" OutMax "[]" DataType "auto" OutDataType "fixdt(1,16,0)" OutScaling "[]" OutDataTypeStr "Inherit: auto" LockScale off SignalType "auto" SamplingMode "auto" SourceOfInitialOutputValue "Dialog" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType PMIOPort } Block { BlockType Product Inputs "2" Multiplication "Element-wise(.*)" CollapseMode "All dimensions" CollapseDim "1" InputSameDT on OutMin "[]" OutMax "[]" OutDataTypeMode "Same as first input" OutDataType "fixdt(1,16,0)" OutScaling "[]" OutDataTypeStr "Inherit: Same as first input" LockScale off RndMeth "Zero" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType RelationalOperator Operator ">=" InputSameDT on LogicOutDataTypeMode "Logical (see Configuration Parameters: Optimization)" LogicDataType "uint(8)" OutDataTypeStr "Inherit: Logical (see Configuration Parameters: Optimization)" ZeroCross on SampleTime "-1" } Block { BlockType Rounding Operator "floor" SampleTime "-1" } Block { BlockType Saturate UpperLimit "0.5" LowerLimit "-0.5" LinearizeAsGain on ZeroCross on SampleTime "-1" OutMin "[]" OutMax "[]" OutDataTypeMode "Same as input" OutDataType "fixdt(1,16,0)" OutScaling "[]" OutDataTypeStr "Inherit: Same as input" LockScale off RndMeth "Floor" } 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 NumberOfDimensions "1" IndexMode "One-based" InputPortWidth "-1" SampleTime "-1" } Block { BlockType Step Time "1" Before "0" After "1" SampleTime "-1" VectorParams1D on ZeroCross on } Block { BlockType SubSystem ShowPortLabels "FromPortIcon" Permissions "ReadWrite" PermitHierarchicalResolution "All" TreatAsAtomicUnit off CheckFcnCallInpInsideContextMsg off SystemSampleTime "-1" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" SimViewingDevice off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" } Block { BlockType Sum IconShape "rectangular" Inputs "++" CollapseMode "All dimensions" CollapseDim "1" InputSameDT on AccumDataTypeStr "Inherit: Inherit via internal rule" OutMin "[]" OutMax "[]" OutDataTypeMode "Same as first input" OutDataType "fixdt(1,16,0)" OutScaling "[]" OutDataTypeStr "Inherit: Same as first input" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType Switch Criteria "u2 >= Threshold" Threshold "0" InputSameDT on OutMin "[]" OutMax "[]" OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1,16,0)" OutScaling "[]" OutDataTypeStr "Inherit: Inherit via internal rule" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on ZeroCross on SampleTime "-1" AllowDiffInputSizes off } Block { BlockType Terminator } Block { BlockType ToFile Filename "untitled.mat" MatrixName "ans" SaveFormat "Array" Decimation "1" SampleTime "-1" } Block { BlockType TransportDelay DelayTime "1" InitialOutput "0" BufferSize "1024" FixedBuffer off TransDelayFeedthrough off PadeOrder "0" } Block { BlockType Trigonometry Operator "sin" ApproximationMethod "None" NumberOfIterations "11" OutputSignalType "auto" SampleTime "-1" } Block { BlockType UnitDelay X0 "0" SampleTime "1" StateMustResolveToSignalObject off RTWStateStorageClass "Auto" } Block { BlockType ZeroOrderHold SampleTime "1" } } System { Name "power_tcsc_9bus_PS2_Fault_260KM" Location [2, 74, 1341, 690] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "80" ReportName "simulink-default.rpt" SIDHighWatermark 1518 Block { BlockType Reference Name ")" SID 1261 Ports [0, 0, 0, 0, 0, 3, 3] Position [980, 405, 985, 475] BackgroundColor "black" ShowName off LibraryVersion "1.1899" LinkData { BlockName "Model/VI/Ia" DialogParameters { GotoTag "LibraryTag_Ia" } BlockName "Model/VI/Ib" DialogParameters { GotoTag "LibraryTag_Ib" } BlockName "Model/VI/Ic" DialogParameters { GotoTag "LibraryTag_Ic" } BlockName "Model/VI/Va" DialogParameters { GotoTag "LibraryTag_Va" } BlockName "Model/VI/Vb" DialogParameters { GotoTag "LibraryTag_Vb" } BlockName "Model/VI/Vc" DialogParameters { GotoTag "LibraryTag_Vc" } } DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib/Measurements/Three-Phase\nV-I Measurement" SourceType "Three-Phase VI Measurement" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" VoltageMeasurement "phase-to-ground" SetLabelV on LabelV "Vabc1" Vpu off VpuLL off CurrentMeasurement "yes" SetLabelI on LabelI "Iabc" Ipu off Pbase "400e6" Vbase "477.8e3" OutputType "Magnitude" PhasorSimulation off PSBequivalent "0" } Block { BlockType Reference Name ")1" SID 1262 Ports [0, 0, 0, 0, 0, 3, 3] Position [1175, 419, 1180, 491] BackgroundColor "black" ShowName off LibraryVersion "1.1899" LinkData { BlockName "Model/VI/Ia" DialogParameters { GotoTag "LibraryTag_Ia" } BlockName "Model/VI/Ib" DialogParameters { GotoTag "LibraryTag_Ib" } BlockName "Model/VI/Ic" DialogParameters { GotoTag "LibraryTag_Ic" } BlockName "Model/VI/Va" DialogParameters { GotoTag "LibraryTag_Va" } BlockName "Model/VI/Vb" DialogParameters { GotoTag "LibraryTag_Vb" } BlockName "Model/VI/Vc" DialogParameters { GotoTag "LibraryTag_Vc" } } DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib/Measurements/Three-Phase\nV-I Measurement" SourceType "Three-Phase VI Measurement" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" VoltageMeasurement "phase-to-ground" SetLabelV on LabelV "Vabc2" Vpu off VpuLL off CurrentMeasurement "yes" SetLabelI on LabelI "Iabc2" Ipu off Pbase "100e6" Vbase "477.8e3" OutputType "Magnitude" PhasorSimulation off PSBequivalent "0" } Block { BlockType Reference Name "310 MVA\nM3" SID 651 Ports [2, 1, 0, 0, 0, 0, 3] Position [1745, 224, 1800, 281] BackgroundColor "yellow" AttributesFormatString "\\n\\n" LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib/Machines/Synchronous Machine\npu Standard" SourceType "Synchronous Machine" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" PresetModel "No" MechanicalLoad "Mechanical power Pm" ShowDetailedParameters on RotorType "Salient-pole" NominalParameters "[410E6 22000 50 ]" Reactances1 "[ 31 32 33 34 35 36 37 ]" Reactances2 "[ 1.305, 0.296, 0.252, 0.474, 0.243, 0.18 ]" dAxisTimeConstants "Short-circuit" qAxisTimeConstants "Open-circuit" TimeConstants1 "[8, 0.03, 0.03]" TimeConstants2 "[]" TimeConstants3 "[]" TimeConstants4 "[]" TimeConstants5 "[ 1.01, 0.053, 0.1 ]" TimeConstants6 "[]" TimeConstants7 "[]" TimeConstants8 "[]" StatorResistance "2.8544e-3" Mechanical "[ 3.7 0 32]" PolePairs "32" InitialConditions "[0 -81.777 1.30317 1.30317 1.30317 -17.445 -137.445 102.555 1.57175]" SetSaturation off Saturation "[0.6404,0.7127,0.8441,0.9214,0.9956,1.082,1.19,1.316,1.457;0.7,0.7698,0.8872,0.9466,0.9969,1.0" "46,1.1,1.151,1.201]" Units "per unit standard parameters" LoadFlowParameters "[1 400000000 0 0 0]" TsPowergui "0" TsBlock "-1" IterativeModel "Forward Euler" } Block { BlockType Reference Name "465 MVA\nM1" SID 613 Ports [2, 1, 0, 0, 0, 0, 3] Position [240, 549, 295, 606] BackgroundColor "yellow" AttributesFormatString "\\n\\n" LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib/Machines/Synchronous Machine\npu Standard" SourceType "Synchronous Machine" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" PresetModel "No" MechanicalLoad "Mechanical power Pm" ShowDetailedParameters on RotorType "Salient-pole" NominalParameters "[565E6 22000 50 ]" Reactances1 "[ 31 32 33 34 35 36 37 ]" Reactances2 "[ 1.305, 0.296, 0.252, 0.474, 0.243, 0.18 ]" dAxisTimeConstants "Short-circuit" qAxisTimeConstants "Open-circuit" TimeConstants1 "[8, 0.03, 0.03]" TimeConstants2 "[]" TimeConstants3 "[]" TimeConstants4 "[]" TimeConstants5 "[ 1.01, 0.053, 0.1 ]" TimeConstants6 "[]" TimeConstants7 "[]" TimeConstants8 "[]" StatorResistance "2.8544e-3" Mechanical "[ 3.7 0 32]" PolePairs "32" InitialConditions "[0 -82.37 1.11129 1.11129 1.11129 -8.14403 -128.144 111.856 1.25979]" SetSaturation off Saturation "[0.6404,0.7127,0.8441,0.9214,0.9956,1.082,1.19,1.316,1.457;0.7,0.7698,0.8872,0.9466,0.9969,1.0" "46,1.1,1.151,1.201]" Units "per unit standard parameters" LoadFlowParameters "[1 500000000 0 0 0]" TsPowergui "0" TsBlock "-1" IterativeModel "Forward Euler" } Block { BlockType Reference Name "600 MVA\nM2" SID 632 Ports [2, 1, 0, 0, 0, 0, 3] Position [515, 1724, 570, 1781] BackgroundColor "yellow" AttributesFormatString "\\n\\n" LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib/Machines/Synchronous Machine\npu Standard" SourceType "Synchronous Machine" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" PresetModel "No" MechanicalLoad "Mechanical power Pm" ShowDetailedParameters on RotorType "Salient-pole" NominalParameters "[600E6 22000 50 ]" Reactances1 "[ 31 32 33 34 35 36 37 ]" Reactances2 "[ 1.305, 0.296, 0.252, 0.474, 0.243, 0.18 ]" dAxisTimeConstants "Short-circuit" qAxisTimeConstants "Open-circuit" TimeConstants1 "[8, 0.03, 0.03]" TimeConstants2 "[]" TimeConstants3 "[]" TimeConstants4 "[]" TimeConstants5 "[ 1.01, 0.053, 0.1 ]" TimeConstants6 "[]" TimeConstants7 "[]" TimeConstants8 "[]" StatorResistance "2.8544e-3" Mechanical "[ 3.7 0 32]" PolePairs "32" InitialConditions "[0 -56.8146 1.28823 1.28823 1.28823 7.21462 -112.785 127.215 1.5764]" SetSaturation off Saturation "[0.6404,0.7127,0.8441,0.9214,0.9956,1.082,1.19,1.316,1.457;0.7,0.7698,0.8872,0.9466,0.9969,1.0" "46,1.1,1.151,1.201]" Units "per unit standard parameters" LoadFlowParameters "[2 200000 0 0 0]" TsPowergui "0" TsBlock "-1" IterativeModel "Forward Euler" } Block { BlockType Reference Name "B1" SID 291 Ports [0, 0, 0, 0, 0, 3, 3] Position [665, 493, 675, 677] BackgroundColor "black" LibraryVersion "1.1899" LinkData { BlockName "Model/VI/Ia" DialogParameters { GotoTag "LibraryTag_Ia" } BlockName "Model/VI/Ib" DialogParameters { GotoTag "LibraryTag_Ib" } BlockName "Model/VI/Ic" DialogParameters { GotoTag "LibraryTag_Ic" } BlockName "Model/VI/Va" DialogParameters { GotoTag "LibraryTag_Va" } BlockName "Model/VI/Vb" DialogParameters { GotoTag "LibraryTag_Vb" } BlockName "Model/VI/Vc" DialogParameters { GotoTag "LibraryTag_Vc" } } DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib/Measurements/Three-Phase\nV-I Measurement" SourceType "Three-Phase VI Measurement" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" VoltageMeasurement "phase-to-ground" SetLabelV on LabelV "Vabc_B1" Vpu off VpuLL off CurrentMeasurement "yes" SetLabelI on LabelI "Iabc_B1" Ipu off Pbase "100e6" Vbase "735e3" OutputType "Complex" PhasorSimulation off PSBequivalent "0" } Block { BlockType Reference Name "B2" SID 317 Ports [0, 0, 0, 0, 0, 3, 3] Position [1705, 479, 1715, 671] BackgroundColor "black" LibraryVersion "1.1899" LinkData { BlockName "Model/VI/Ia" DialogParameters { GotoTag "LibraryTag_Ia" } BlockName "Model/VI/Ib" DialogParameters { GotoTag "LibraryTag_Ib" } BlockName "Model/VI/Ic" DialogParameters { GotoTag "LibraryTag_Ic" } BlockName "Model/VI/Va" DialogParameters { GotoTag "LibraryTag_Va" } BlockName "Model/VI/Vb" DialogParameters { GotoTag "LibraryTag_Vb" } BlockName "Model/VI/Vc" DialogParameters { GotoTag "LibraryTag_Vc" } } DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib/Measurements/Three-Phase\nV-I Measurement" SourceType "Three-Phase VI Measurement" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" VoltageMeasurement "phase-to-ground" SetLabelV on LabelV "Vabc_B2" Vpu off VpuLL off CurrentMeasurement "yes" SetLabelI on LabelI "Iabc_B2" Ipu off Pbase "100e6" Vbase "735e3" OutputType "Complex" PhasorSimulation off PSBequivalent "0" } Block { BlockType Reference Name "B3" SID 318 Ports [0, 0, 0, 0, 0, 3, 3] Position [2010, 479, 2020, 671] BackgroundColor "black" LibraryVersion "1.1899" LinkData { BlockName "Model/VI/Ia" DialogParameters { GotoTag "LibraryTag_Ia" } BlockName "Model/VI/Ib" DialogParameters { GotoTag "LibraryTag_Ib" } BlockName "Model/VI/Ic" DialogParameters { GotoTag "LibraryTag_Ic" } BlockName "Model/VI/Va" DialogParameters { GotoTag "LibraryTag_Va" } BlockName "Model/VI/Vb" DialogParameters { GotoTag "LibraryTag_Vb" } BlockName "Model/VI/Vc" DialogParameters { GotoTag "LibraryTag_Vc" } } DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib/Measurements/Three-Phase\nV-I Measurement" SourceType "Three-Phase VI Measurement" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" VoltageMeasurement "no" SetLabelV on LabelV "Vabc_B3" Vpu off VpuLL off CurrentMeasurement "no" SetLabelI on LabelI "Iabc_B3" Ipu off Pbase "100e6" Vbase "735e3" OutputType "Complex" PhasorSimulation off PSBequivalent "0" } Block { BlockType Reference Name "B4" SID 310 Ports [0, 0, 0, 0, 0, 3, 3] Position [809, 1100, 1001, 1110] BlockRotation 270 BlockMirror on BackgroundColor "black" NamePlacement "alternate" LibraryVersion "1.1899" LinkData { BlockName "Model/VI/Ia" DialogParameters { GotoTag "LibraryTag_Ia" } BlockName "Model/VI/Ib" DialogParameters { GotoTag "LibraryTag_Ib" } BlockName "Model/VI/Ic" DialogParameters { GotoTag "LibraryTag_Ic" } BlockName "Model/VI/Va" DialogParameters { GotoTag "LibraryTag_Va" } BlockName "Model/VI/Vb" DialogParameters { GotoTag "LibraryTag_Vb" } BlockName "Model/VI/Vc" DialogParameters { GotoTag "LibraryTag_Vc" } } DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib/Measurements/Three-Phase\nV-I Measurement" SourceType "Three-Phase VI Measurement" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" VoltageMeasurement "no" SetLabelV on LabelV "Vabc_B4" Vpu off VpuLL off CurrentMeasurement "no" SetLabelI on LabelI "Iabc_B4" Ipu off Pbase "100e6" Vbase "735e3" OutputType "Complex" PhasorSimulation off PSBequivalent "0" } Block { BlockType Reference Name "B5" SID 311 Ports [0, 0, 0, 0, 0, 3, 3] Position [809, 1530, 1001, 1540] BlockRotation 270 BlockMirror on BackgroundColor "black" NamePlacement "alternate" LibraryVersion "1.1899" LinkData { BlockName "Model/VI/Ia" DialogParameters { GotoTag "LibraryTag_Ia" } BlockName "Model/VI/Ib" DialogParameters { GotoTag "LibraryTag_Ib" } BlockName "Model/VI/Ic" DialogParameters { GotoTag "LibraryTag_Ic" } BlockName "Model/VI/Va" DialogParameters { GotoTag "LibraryTag_Va" } BlockName "Model/VI/Vb" DialogParameters { GotoTag "LibraryTag_Vb" } BlockName "Model/VI/Vc" DialogParameters { GotoTag "LibraryTag_Vc" } } DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib/Measurements/Three-Phase\nV-I Measurement" SourceType "Three-Phase VI Measurement" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" VoltageMeasurement "no" SetLabelV on LabelV "Vabc_B5" Vpu off VpuLL off CurrentMeasurement "no" SetLabelI on LabelI "Iabc_B5" Ipu off Pbase "100e6" Vbase "735e3" OutputType "Complex" PhasorSimulation off PSBequivalent "0" } Block { BlockType Reference Name "B6" SID 314 Ports [0, 0, 0, 0, 0, 3, 3] Position [1239, 1100, 1431, 1110] BlockRotation 270 BlockMirror on BackgroundColor "black" NamePlacement "alternate" LibraryVersion "1.1899" LinkData { BlockName "Model/VI/Ia" DialogParameters { GotoTag "LibraryTag_Ia" } BlockName "Model/VI/Ib" DialogParameters { GotoTag "LibraryTag_Ib" } BlockName "Model/VI/Ic" DialogParameters { GotoTag "LibraryTag_Ic" } BlockName "Model/VI/Va" DialogParameters { GotoTag "LibraryTag_Va" } BlockName "Model/VI/Vb" DialogParameters { GotoTag "LibraryTag_Vb" } BlockName "Model/VI/Vc" DialogParameters { GotoTag "LibraryTag_Vc" } } DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib/Measurements/Three-Phase\nV-I Measurement" SourceType "Three-Phase VI Measurement" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" VoltageMeasurement "no" SetLabelV on LabelV "Vabc_B6" Vpu off VpuLL off CurrentMeasurement "no" SetLabelI on LabelI "Iabc_B6" Ipu off Pbase "100e6" Vbase "735e3" OutputType "Complex" PhasorSimulation off PSBequivalent "0" } Block { BlockType SubSystem Name "BR1" SID 275 Ports [0, 0, 0, 0, 0, 3, 3] Position [745, 410, 805, 470] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "BR1" Location [2, 93, 1348, 726] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Reference Name "BR5" SID 276 Ports [0, 0, 0, 0, 0, 3, 3] Position [515, 202, 570, 318] BackgroundColor "blue" LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" FontName "Verdana" FontSize 11 SourceBlock "powerlib/Elements/Three-Phase Breaker" SourceType "Three-Phase Breaker" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" InitialState "closed" SwitchA on SwitchB on SwitchC on SwitchTimes "[5.7 61]" External off BreakerResistance "1e-12" SnubberResistance "inf" SnubberCapacitance "0" Measurements "None" } Block { BlockType PMIOPort Name "Conn1" SID 277 Position [330, 213, 360, 227] ShowName off Port "1" Side "Left" } Block { BlockType PMIOPort Name "Conn2" SID 278 Position [725, 213, 755, 227] BlockMirror on ShowName off Port "2" Side "Right" } Block { BlockType PMIOPort Name "Conn3" SID 279 Position [330, 253, 360, 267] ShowName off Port "3" Side "Left" } Block { BlockType PMIOPort Name "Conn4" SID 280 Position [725, 253, 755, 267] BlockMirror on ShowName off Port "4" Side "Right" } Block { BlockType PMIOPort Name "Conn5" SID 281 Position [330, 293, 360, 307] ShowName off Port "5" Side "Left" } Block { BlockType PMIOPort Name "Conn6" SID 282 Position [725, 293, 755, 307] BlockMirror on ShowName off Port "6" Side "Right" } Line { LineType "Connection" SrcBlock "BR5" SrcPort LConn1 DstBlock "Conn1" DstPort RConn1 } Line { LineType "Connection" SrcBlock "BR5" SrcPort LConn2 DstBlock "Conn3" DstPort RConn1 } Line { LineType "Connection" SrcBlock "BR5" SrcPort LConn3 DstBlock "Conn5" DstPort RConn1 } Line { LineType "Connection" SrcBlock "BR5" SrcPort RConn1 DstBlock "Conn2" DstPort RConn1 } Line { LineType "Connection" SrcBlock "BR5" SrcPort RConn2 DstBlock "Conn4" DstPort RConn1 } Line { LineType "Connection" SrcBlock "BR5" SrcPort RConn3 DstBlock "Conn6" DstPort RConn1 } } } Block { BlockType SubSystem Name "BR2" SID 283 Ports [0, 0, 0, 0, 0, 3, 3] Position [1505, 416, 1570, 474] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "BR2" Location [2, 93, 1348, 750] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Reference Name "BR5" SID 284 Ports [0, 0, 0, 0, 0, 3, 3] Position [520, 202, 575, 318] BackgroundColor "blue" LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" FontName "Verdana" FontSize 11 SourceBlock "powerlib/Elements/Three-Phase Breaker" SourceType "Three-Phase Breaker" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" InitialState "closed" SwitchA on SwitchB on SwitchC on SwitchTimes "[5.7 61]" External off BreakerResistance "1e-12" SnubberResistance "inf" SnubberCapacitance "0" Measurements "None" } Block { BlockType PMIOPort Name "Conn1" SID 285 Position [330, 213, 360, 227] ShowName off Port "1" Side "Left" } Block { BlockType PMIOPort Name "Conn2" SID 286 Position [725, 213, 755, 227] BlockMirror on ShowName off Port "2" Side "Right" } Block { BlockType PMIOPort Name "Conn3" SID 287 Position [330, 253, 360, 267] ShowName off Port "3" Side "Left" } Block { BlockType PMIOPort Name "Conn4" SID 288 Position [725, 253, 755, 267] BlockMirror on ShowName off Port "4" Side "Right" } Block { BlockType PMIOPort Name "Conn5" SID 289 Position [330, 293, 360, 307] ShowName off Port "5" Side "Left" } Block { BlockType PMIOPort Name "Conn6" SID 290 Position [725, 293, 755, 307] BlockMirror on ShowName off Port "6" Side "Right" } Line { LineType "Connection" SrcBlock "Conn6" SrcPort RConn1 DstBlock "BR5" DstPort RConn3 } Line { LineType "Connection" SrcBlock "Conn5" SrcPort RConn1 DstBlock "BR5" DstPort LConn3 } Line { LineType "Connection" SrcBlock "Conn4" SrcPort RConn1 DstBlock "BR5" DstPort RConn2 } Line { LineType "Connection" SrcBlock "Conn3" SrcPort RConn1 DstBlock "BR5" DstPort LConn2 } Line { LineType "Connection" SrcBlock "Conn2" SrcPort RConn1 DstBlock "BR5" DstPort RConn1 } Line { LineType "Connection" SrcBlock "Conn1" SrcPort RConn1 DstBlock "BR5" DstPort LConn1 } } } Block { BlockType SubSystem Name "BR3" SID 292 Ports [0, 0, 0, 0, 0, 3, 3] Position [735, 674, 795, 736] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "BR3" Location [2, 93, 1348, 726] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Reference Name "BR5" SID 293 Ports [0, 0, 0, 0, 0, 3, 3] Position [520, 202, 575, 318] BackgroundColor "blue" LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" FontName "Verdana" FontSize 11 SourceBlock "powerlib/Elements/Three-Phase Breaker" SourceType "Three-Phase Breaker" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" InitialState "closed" SwitchA on SwitchB on SwitchC on SwitchTimes "[50.1 50.25]" External off BreakerResistance "1e-3" SnubberResistance "1e5" SnubberCapacitance "inf" Measurements "Breaker currents" } Block { BlockType PMIOPort Name "Conn1" SID 294 Position [330, 213, 360, 227] ShowName off Port "1" Side "Left" } Block { BlockType PMIOPort Name "Conn2" SID 295 Position [725, 213, 755, 227] BlockMirror on ShowName off Port "2" Side "Right" } Block { BlockType PMIOPort Name "Conn3" SID 296 Position [330, 253, 360, 267] ShowName off Port "3" Side "Left" } Block { BlockType PMIOPort Name "Conn4" SID 297 Position [725, 253, 755, 267] BlockMirror on ShowName off Port "4" Side "Right" } Block { BlockType PMIOPort Name "Conn5" SID 298 Position [330, 293, 360, 307] ShowName off Port "5" Side "Left" } Block { BlockType PMIOPort Name "Conn6" SID 299 Position [725, 293, 755, 307] BlockMirror on ShowName off Port "6" Side "Right" } Line { LineType "Connection" SrcBlock "BR5" SrcPort LConn1 DstBlock "Conn1" DstPort RConn1 } Line { LineType "Connection" SrcBlock "BR5" SrcPort RConn1 DstBlock "Conn2" DstPort RConn1 } Line { LineType "Connection" SrcBlock "BR5" SrcPort LConn2 DstBlock "Conn3" DstPort RConn1 } Line { LineType "Connection" SrcBlock "BR5" SrcPort RConn2 DstBlock "Conn4" DstPort RConn1 } Line { LineType "Connection" SrcBlock "BR5" SrcPort LConn3 DstBlock "Conn5" DstPort RConn1 } Line { LineType "Connection" SrcBlock "BR5" SrcPort RConn3 DstBlock "Conn6" DstPort RConn1 } } } Block { BlockType SubSystem Name "BR4" SID 300 Ports [0, 0, 0, 0, 0, 3, 3] Position [874, 945, 936, 1005] BlockRotation 270 BlockMirror on NamePlacement "alternate" MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "BR4" Location [2, 93, 1342, 726] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Reference Name "BR5" SID 301 Ports [0, 0, 0, 0, 0, 3, 3] Position [505, 207, 560, 323] BackgroundColor "blue" LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" FontName "Verdana" FontSize 11 SourceBlock "powerlib/Elements/Three-Phase Breaker" SourceType "Three-Phase Breaker" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" InitialState "closed" SwitchA on SwitchB on SwitchC on SwitchTimes "[50.1 50.25]" External off BreakerResistance "1e-3" SnubberResistance "1e5" SnubberCapacitance "inf" Measurements "None" } Block { BlockType PMIOPort Name "Conn1" SID 302 Position [330, 218, 360, 232] ShowName off Port "1" Side "Left" } Block { BlockType PMIOPort Name "Conn2" SID 303 Position [725, 218, 755, 232] BlockMirror on ShowName off Port "2" Side "Right" } Block { BlockType PMIOPort Name "Conn3" SID 304 Position [330, 258, 360, 272] ShowName off Port "3" Side "Left" } Block { BlockType PMIOPort Name "Conn4" SID 305 Position [725, 258, 755, 272] BlockMirror on ShowName off Port "4" Side "Right" } Block { BlockType PMIOPort Name "Conn5" SID 306 Position [330, 298, 360, 312] ShowName off Port "5" Side "Left" } Block { BlockType PMIOPort Name "Conn6" SID 307 Position [725, 298, 755, 312] BlockMirror on ShowName off Port "6" Side "Right" } Line { LineType "Connection" SrcBlock "Conn6" SrcPort RConn1 DstBlock "BR5" DstPort RConn3 } Line { LineType "Connection" SrcBlock "Conn5" SrcPort RConn1 DstBlock "BR5" DstPort LConn3 } Line { LineType "Connection" SrcBlock "Conn4" SrcPort RConn1 DstBlock "BR5" DstPort RConn2 } Line { LineType "Connection" SrcBlock "Conn3" SrcPort RConn1 DstBlock "BR5" DstPort LConn2 } Line { LineType "Connection" SrcBlock "Conn2" SrcPort RConn1 DstBlock "BR5" DstPort RConn1 } Line { LineType "Connection" SrcBlock "Conn1" SrcPort RConn1 DstBlock "BR5" DstPort LConn1 } } } Block { BlockType SubSystem Name "BR5" SID 502 Ports [0, 0, 0, 0, 0, 3, 3] Position [874, 1175, 936, 1235] BlockRotation 270 BlockMirror on NamePlacement "alternate" MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "BR5" Location [2, 93, 1342, 726] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Reference Name "BR5" SID 503 Ports [0, 0, 0, 0, 0, 3, 3] Position [505, 207, 560, 323] BackgroundColor "blue" LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" FontName "Verdana" FontSize 11 SourceBlock "powerlib/Elements/Three-Phase Breaker" SourceType "Three-Phase Breaker" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" InitialState "closed" SwitchA on SwitchB on SwitchC on SwitchTimes "[5.105 5.255]" External off BreakerResistance "1e-3" SnubberResistance "1e5" SnubberCapacitance "inf" Measurements "None" } Block { BlockType PMIOPort Name "Conn1" SID 504 Position [330, 218, 360, 232] ShowName off Port "1" Side "Left" } Block { BlockType PMIOPort Name "Conn2" SID 505 Position [725, 218, 755, 232] BlockMirror on ShowName off Port "2" Side "Right" } Block { BlockType PMIOPort Name "Conn3" SID 506 Position [330, 258, 360, 272] ShowName off Port "3" Side "Left" } Block { BlockType PMIOPort Name "Conn4" SID 507 Position [725, 258, 755, 272] BlockMirror on ShowName off Port "4" Side "Right" } Block { BlockType PMIOPort Name "Conn5" SID 508 Position [330, 298, 360, 312] ShowName off Port "5" Side "Left" } Block { BlockType PMIOPort Name "Conn6" SID 509 Position [725, 298, 755, 312] BlockMirror on ShowName off Port "6" Side "Right" } Line { LineType "Connection" SrcBlock "Conn6" SrcPort RConn1 DstBlock "BR5" DstPort RConn3 } Line { LineType "Connection" SrcBlock "Conn5" SrcPort RConn1 DstBlock "BR5" DstPort LConn3 } Line { LineType "Connection" SrcBlock "Conn4" SrcPort RConn1 DstBlock "BR5" DstPort RConn2 } Line { LineType "Connection" SrcBlock "Conn3" SrcPort RConn1 DstBlock "BR5" DstPort LConn2 } Line { LineType "Connection" SrcBlock "Conn2" SrcPort RConn1 DstBlock "BR5" DstPort RConn1 } Line { LineType "Connection" SrcBlock "Conn1" SrcPort RConn1 DstBlock "BR5" DstPort LConn1 } } } Block { BlockType SubSystem Name "BR6" SID 510 Ports [0, 0, 0, 0, 0, 3, 3] Position [874, 1385, 936, 1445] BlockRotation 270 BlockMirror on NamePlacement "alternate" MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "BR6" Location [2, 93, 1342, 726] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Reference Name "BR5" SID 511 Ports [0, 0, 0, 0, 0, 3, 3] Position [505, 207, 560, 323] BackgroundColor "blue" LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" FontName "Verdana" FontSize 11 SourceBlock "powerlib/Elements/Three-Phase Breaker" SourceType "Three-Phase Breaker" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" InitialState "closed" SwitchA on SwitchB on SwitchC on SwitchTimes "[5.105 5.255]" External off BreakerResistance "1e-3" SnubberResistance "1e5" SnubberCapacitance "inf" Measurements "None" } Block { BlockType PMIOPort Name "Conn1" SID 512 Position [330, 218, 360, 232] ShowName off Port "1" Side "Left" } Block { BlockType PMIOPort Name "Conn2" SID 513 Position [725, 218, 755, 232] BlockMirror on ShowName off Port "2" Side "Right" } Block { BlockType PMIOPort Name "Conn3" SID 514 Position [330, 258, 360, 272] ShowName off Port "3" Side "Left" } Block { BlockType PMIOPort Name "Conn4" SID 515 Position [725, 258, 755, 272] BlockMirror on ShowName off Port "4" Side "Right" } Block { BlockType PMIOPort Name "Conn5" SID 516 Position [330, 298, 360, 312] ShowName off Port "5" Side "Left" } Block { BlockType PMIOPort Name "Conn6" SID 517 Position [725, 298, 755, 312] BlockMirror on ShowName off Port "6" Side "Right" } Line { LineType "Connection" SrcBlock "Conn6" SrcPort RConn1 DstBlock "BR5" DstPort RConn3 } Line { LineType "Connection" SrcBlock "Conn5" SrcPort RConn1 DstBlock "BR5" DstPort LConn3 } Line { LineType "Connection" SrcBlock "Conn4" SrcPort RConn1 DstBlock "BR5" DstPort RConn2 } Line { LineType "Connection" SrcBlock "Conn3" SrcPort RConn1 DstBlock "BR5" DstPort LConn2 } Line { LineType "Connection" SrcBlock "Conn2" SrcPort RConn1 DstBlock "BR5" DstPort RConn1 } Line { LineType "Connection" SrcBlock "Conn1" SrcPort RConn1 DstBlock "BR5" DstPort LConn1 } } } Block { BlockType SubSystem Name "BR7" SID 518 Ports [0, 0, 0, 0, 0, 3, 3] Position [1005, 1454, 1065, 1516] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "BR7" Location [2, 95, 1348, 726] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Reference Name "BR5" SID 519 Ports [0, 0, 0, 0, 0, 3, 3] Position [520, 202, 575, 318] BackgroundColor "blue" LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" FontName "Verdana" FontSize 11 SourceBlock "powerlib/Elements/Three-Phase Breaker" SourceType "Three-Phase Breaker" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" InitialState "closed" SwitchA on SwitchB on SwitchC on SwitchTimes "[51 52]" External off BreakerResistance "1e-3" SnubberResistance "1e5" SnubberCapacitance "inf" Measurements "Breaker currents" } Block { BlockType PMIOPort Name "Conn1" SID 520 Position [330, 213, 360, 227] ShowName off Port "1" Side "Left" } Block { BlockType PMIOPort Name "Conn2" SID 521 Position [725, 213, 755, 227] BlockMirror on ShowName off Port "2" Side "Right" } Block { BlockType PMIOPort Name "Conn3" SID 522 Position [330, 253, 360, 267] ShowName off Port "3" Side "Left" } Block { BlockType PMIOPort Name "Conn4" SID 523 Position [725, 253, 755, 267] BlockMirror on ShowName off Port "4" Side "Right" } Block { BlockType PMIOPort Name "Conn5" SID 524 Position [330, 293, 360, 307] ShowName off Port "5" Side "Left" } Block { BlockType PMIOPort Name "Conn6" SID 525 Position [725, 293, 755, 307] BlockMirror on ShowName off Port "6" Side "Right" } Line { LineType "Connection" SrcBlock "BR5" SrcPort LConn1 DstBlock "Conn1" DstPort RConn1 } Line { LineType "Connection" SrcBlock "BR5" SrcPort RConn1 DstBlock "Conn2" DstPort RConn1 } Line { LineType "Connection" SrcBlock "BR5" SrcPort LConn2 DstBlock "Conn3" DstPort RConn1 } Line { LineType "Connection" SrcBlock "BR5" SrcPort RConn2 DstBlock "Conn4" DstPort RConn1 } Line { LineType "Connection" SrcBlock "BR5" SrcPort LConn3 DstBlock "Conn5" DstPort RConn1 } Line { LineType "Connection" SrcBlock "BR5" SrcPort RConn3 DstBlock "Conn6" DstPort RConn1 } } } Block { BlockType SubSystem Name "Control System" SID 793 Ports [3, 2] Position [605, 117, 700, 213] BackgroundColor "lightBlue" DropShadow on MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off MaskType "TCSC control system" MaskHelp "This block includes system level controllers for TCSC. It determines the TCSC firing angle usin" "g the reference impedance and the measured voltage and current. The TCSC controller can operate in constant indu" "ctive/capacitive/firing angle mode. \n\n\n \n" MaskPromptString "Initial input: [Phase (degree) Freq (Hz) ]|Operating mode|Sample time:|Manual alpha [deg" "] (used in manual mode)" MaskStyleString "edit,popup(inductive |capacitive|manual alpha),edit,edit" MaskTunableValueString "on,on,on,on" MaskCallbackString "|\n||" MaskEnableString "on,on,on,on" MaskVisibilityString "on,on,on,on" MaskToolTipString "on,on,on,on" MaskVariables "ParI=@1;mode=@2;Ts=@3;man_alpha=@4;" MaskInitialization "Phase_Init=ParI(1);\nFreq_Init=ParI(2);\n" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskPortRotate "default" MaskIconUnits "autoscale" MaskValueString "[0 50]|capacitive|Ts|78" System { Name "Control System" Location [2, 82, 1014, 718] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Vtcsc" SID 794 Position [15, 223, 45, 237] IconDisplay "Port number" PortDimensions "3" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "Iabc" SID 795 Position [15, 368, 45, 382] Port "2" IconDisplay "Port number" PortDimensions "3" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "zref" SID 796 Position [15, 433, 45, 447] Port "3" IconDisplay "Port number" PortDimensions "1" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Sum Name "Add1" SID 797 Ports [2, 1] Position [660, 357, 690, 388] ShowName off Inputs "+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType SubSystem Name "Controller capacitive mode" SID 798 Ports [2, 1] Position [435, 218, 560, 267] OpenFcn "power_openblockproxy();" MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off MaskType "Controller in capacitive mode" MaskHelp "web(psbhelp)" MaskPromptString "proportional gain|integral gain" MaskStyleString "edit,edit" MaskTunableValueString "on,on" MaskCallbackString "|" MaskEnableString "on,on" MaskVisibilityString "on,on" MaskToolTipString "on,on" MaskVariables "kpc=@1;kic=@2;" MaskInitialization "power_initmask();" MaskSelfModifiable on MaskIconFrame on MaskIconOpaque off MaskIconRotate "none" MaskPortRotate "default" MaskIconUnits "autoscale" MaskValueString "0.8|4.6" System { Name "Controller capacitive mode" Location [-11, 142, 1001, 603] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" SIDHighWatermark 31 Block { BlockType Inport Name "zmeasured" SID 1 Position [75, 350, 95, 370] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "zreference" SID 2 Position [70, 395, 90, 415] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Sum Name "Ad1" SID 3 Ports [2, 1] Position [760, 127, 790, 158] ShowName off InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Add" SID 4 Ports [2, 1] Position [460, 117, 490, 148] ShowName off Inputs "-+" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Reference Name "Discrete\nphase lead" SID 5 Ports [1, 1] Position [830, 120, 875, 170] LibraryVersion "1.612" DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib_extras/Discrete \nControl Blocks/Discrete\nLead-Lag" SourceType "Discrete Lead-Lag Controller" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" T1 "0.05" T2 "0.020" V_Init "0" Ts "Ts" } Block { BlockType DiscreteFilter Name "Discrete Filter" SID 6 Ports [1, 1] Position [320, 106, 405, 144] Numerator "[25*Ts]" Denominator "[1 -exp(-25*Ts)]" SampleTime "Ts" } Block { BlockType DiscreteIntegrator Name "Discrete-Time\nIntegrator" SID 7 Ports [1, 1] Position [685, 118, 730, 152] IntegratorMethod "Integration: Forward Euler" ExternalReset "none" InitialConditionSource "internal" InitialCondition "90" SampleTime "Ts" OutDataType "sfix(16)" OutScaling "2^0" LimitOutput on UpperSaturationLimit "90" LowerSaturationLimit "69" ICPrevOutput "DiscIntNeverNeededParam" ICPrevScaledInput "DiscIntNeverNeededParam" } Block { BlockType Product Name "Divide" SID 8 Ports [2, 1] Position [550, 127, 580, 158] ShowName off Inputs "**" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType SubSystem Name "Filter" SID 9 Ports [1, 1] Position [690, 230, 755, 270] BlockMirror on TreatAsAtomicUnit on MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Filter" Location [2, 82, 1014, 718] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "In1" SID 10 Position [90, 103, 120, 117] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Sum Name "Add" SID 11 Ports [2, 1] Position [185, 102, 215, 133] Inputs "+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType DiscreteIntegrator Name "Discrete-Time\nIntegrator" SID 12 Ports [1, 1] Position [260, 99, 295, 131] IntegratorMethod "Integration: Forward Euler" gainval "150" ExternalReset "none" InitialConditionSource "internal" InitialCondition "90" SampleTime "Ts" OutDataType "sfix(16)" OutScaling "2^0" ICPrevOutput "DiscIntNeverNeededParam" ICPrevScaledInput "DiscIntNeverNeededParam" } Block { BlockType Outport Name "Out1" SID 13 Position [400, 103, 430, 117] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "In1" SrcPort 1 DstBlock "Add" DstPort 1 } Line { SrcBlock "Discrete-Time\nIntegrator" SrcPort 1 Points [40, 0; 0, -5; 25, 0] Branch { DstBlock "Out1" DstPort 1 } Branch { Points [0, 75; -195, 0] DstBlock "Add" DstPort 2 } } Line { SrcBlock "Add" SrcPort 1 Points [25, 0] DstBlock "Discrete-Time\nIntegrator" DstPort 1 } Annotation { Position [274, 101] } } } Block { BlockType From Name "Fom1" SID 14 Position [45, 131, 85, 159] BackgroundColor "orange" ShowName off CloseFcn "tagdialog Close" GotoTag "CB" TagVisibility "global" } Block { BlockType From Name "Fom2" SID 15 Position [300, 376, 355, 394] BackgroundColor "orange" ShowName off CloseFcn "tagdialog Close" GotoTag "zindref" TagVisibility "global" } Block { BlockType From Name "From" SID 16 Position [45, 101, 85, 129] BackgroundColor "orange" ShowName off CloseFcn "tagdialog Close" GotoTag "mode1" TagVisibility "global" } Block { BlockType From Name "From1" SID 17 Position [295, 321, 335, 349] BackgroundColor "orange" ShowName off CloseFcn "tagdialog Close" GotoTag "mode" TagVisibility "global" } Block { BlockType Goto Name "Goto1" SID 18 Position [725, 339, 785, 361] BackgroundColor "orange" ShowName off GotoTag "zcap" TagVisibility "global" } Block { BlockType Gain Name "Integral\ngain" SID 19 Position [620, 119, 660, 151] Gain "kic" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" ParamDataTypeStr "Inherit: Inherit via internal rule" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Logic Name "Logical\nOperator" SID 20 Ports [2, 1] Position [170, 107, 200, 138] ShowName off AllPortsSameDT off OutDataTypeMode "boolean" OutDataTypeStr "boolean" } Block { BlockType Logic Name "Logical\nOperator1" SID 21 Ports [1, 1] Position [105, 129, 135, 161] ShowName off Operator "NOT" AllPortsSameDT off OutDataTypeMode "boolean" OutDataTypeStr "boolean" } Block { BlockType Lookup Name "Lookup Table" SID 22 Position [550, 225, 600, 275] BlockMirror on InputValues "[60 65 70 75 80 85 90]" Table "[0.3 0.67 0.83 0.96 0.98 0.994 1]" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off SampleTime "Ts" } Block { BlockType Mux Name "Mux1" SID 23 Ports [2, 1] Position [685, 324, 690, 371] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Saturate Name "Saturation" SID 24 Ports [1, 1] Position [905, 130, 935, 160] ShowName off UpperLimit "90" LowerLimit "69" } Block { BlockType Saturate Name "Saturation1" SID 25 Ports [1, 1] Position [135, 390, 165, 420] ShowName off UpperLimit "227" LowerLimit "211.5" } Block { BlockType Switch Name "Switch1" SID 26 Position [260, 110, 290, 140] ShowName off Threshold "1" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Switch Name "Switch2" SID 27 Position [470, 320, 500, 350] ShowName off Threshold "2" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Switch Name "Switch3" SID 28 Position [560, 300, 590, 330] ShowName off Threshold "3" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType UnitDelay Name "breaks" SID 29 Position [942, 205, 968, 235] BlockRotation 270 BlockMirror on NamePlacement "alternate" ShowName off SampleTime "Ts" } Block { BlockType Gain Name "proportional\ngain" SID 30 Position [635, 183, 685, 217] Gain "kpc" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" ParamDataTypeStr "Inherit: Inherit via internal rule" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Outport Name "alpha \ncapacitive" SID 31 Position [980, 135, 1000, 155] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" InitialOutput "0" } Line { SrcBlock "zmeasured" SrcPort 1 Points [0, 0; 145, 0] Branch { Points [190, 0] Branch { Points [0, -220] DstBlock "Add" DstPort 2 } Branch { Points [85, 0] Branch { DstBlock "Mux1" DstPort 2 } Branch { Points [0, -55] DstBlock "Switch3" DstPort 1 } } } Branch { DstBlock "Switch1" DstPort 3 } } Line { SrcBlock "Saturation" SrcPort 1 Points [15, 0] Branch { DstBlock "alpha \ncapacitive" DstPort 1 } Branch { DstBlock "breaks" DstPort 1 } } Line { SrcBlock "Fom1" SrcPort 1 DstBlock "Logical\nOperator1" DstPort 1 } Line { SrcBlock "Logical\nOperator1" SrcPort 1 Points [10, 0; 0, -15] DstBlock "Logical\nOperator" DstPort 2 } Line { SrcBlock "Logical\nOperator" SrcPort 1 DstBlock "Switch1" DstPort 2 } Line { SrcBlock "Saturation1" SrcPort 1 Points [5, 0; 0, -160; 35, 0; 0, -130] DstBlock "Switch1" DstPort 1 } Line { SrcBlock "Switch1" SrcPort 1 DstBlock "Discrete Filter" DstPort 1 } Line { SrcBlock "Discrete Filter" SrcPort 1 Points [0, 0; 5, 0] Branch { DstBlock "Add" DstPort 1 } Branch { Points [0, 200] DstBlock "Switch2" DstPort 1 } } Line { SrcBlock "Mux1" SrcPort 1 DstBlock "Goto1" DstPort 1 } Line { SrcBlock "zreference" SrcPort 1 DstBlock "Saturation1" DstPort 1 } Line { SrcBlock "From1" SrcPort 1 Points [50, 0] Branch { DstBlock "Switch2" DstPort 2 } Branch { Points [0, -20] DstBlock "Switch3" DstPort 2 } } Line { SrcBlock "Fom2" SrcPort 1 Points [85, 0; 0, -40] DstBlock "Switch2" DstPort 3 } Line { SrcBlock "Discrete\nphase lead" SrcPort 1 DstBlock "Saturation" DstPort 1 } Line { SrcBlock "Integral\ngain" SrcPort 1 DstBlock "Discrete-Time\nIntegrator" DstPort 1 } Line { SrcBlock "Discrete-Time\nIntegrator" SrcPort 1 DstBlock "Ad1" DstPort 1 } Line { SrcBlock "proportional\ngain" SrcPort 1 Points [55, 0] DstBlock "Ad1" DstPort 2 } Line { SrcBlock "Divide" SrcPort 1 Points [0, 0; 10, 0] Branch { Points [0, -10] DstBlock "Integral\ngain" DstPort 1 } Branch { Points [0, 55] DstBlock "proportional\ngain" DstPort 1 } } Line { SrcBlock "Lookup Table" SrcPort 1 Points [-20, 0; 0, -100] DstBlock "Divide" DstPort 2 } Line { SrcBlock "Add" SrcPort 1 Points [0, 0] DstBlock "Divide" DstPort 1 } Line { SrcBlock "Filter" SrcPort 1 DstBlock "Lookup Table" DstPort 1 } Line { SrcBlock "Ad1" SrcPort 1 DstBlock "Discrete\nphase lead" DstPort 1 } Line { SrcBlock "Switch3" SrcPort 1 Points [0, 20] DstBlock "Mux1" DstPort 1 } Line { SrcBlock "Switch2" SrcPort 1 Points [20, 0; 0, -10] DstBlock "Switch3" DstPort 3 } Line { SrcBlock "From" SrcPort 1 DstBlock "Logical\nOperator" DstPort 1 } Line { SrcBlock "breaks" SrcPort 1 Points [0, 10] DstBlock "Filter" DstPort 1 } Annotation { Name "gain scheduling" Position [661, 280] } Annotation { Name "zref" Position [428, 106] } Annotation { Name "zmeas" Position [462, 163] } Annotation { Name "lower limit to\navoid resonance \nregion" Position [928, 184] } } } Block { BlockType SubSystem Name "Controller inductive mode" SID 799 Ports [2, 1] Position [440, 303, 565, 352] OpenFcn "power_openblockproxy();" MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off MaskType "Controller in inductive mode" MaskHelp "web(psbhelp)" MaskPromptString "proportional gain|integral gain" MaskStyleString "edit,edit" MaskTunableValueString "on,on" MaskCallbackString "|" MaskEnableString "on,on" MaskVisibilityString "on,on" MaskToolTipString "on,on" MaskVariables "kpin=@1;kiin=@2;" MaskInitialization "power_initmask();" MaskSelfModifiable on MaskIconFrame on MaskIconOpaque off MaskIconRotate "none" MaskPortRotate "default" MaskIconUnits "autoscale" MaskValueString "0.6|17" System { Name "Controller inductive mode" Location [2, 82, 1014, 718] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" SIDHighWatermark 26 Block { BlockType Inport Name "zmeasured" SID 1 Position [50, 230, 70, 250] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "zreference" SID 2 Position [55, 345, 75, 365] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Sum Name "Add" SID 3 Ports [2, 1] Position [550, 117, 580, 148] ShowName off Inputs "+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Add1" SID 4 Ports [2, 1] Position [810, 137, 840, 168] ShowName off InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType DiscreteFilter Name "Discrete Filter" SID 5 Ports [1, 1] Position [370, 71, 455, 109] Numerator "[25*Ts]" Denominator "[1 -exp(-25*Ts)]" SampleTime "Ts" } Block { BlockType DiscreteIntegrator Name "Discrete-Time\nIntegrator" SID 6 Ports [1, 1] Position [740, 130, 790, 160] ShowName off IntegratorMethod "Integration: Forward Euler" ExternalReset "none" InitialConditionSource "internal" SampleTime "Ts" OutDataType "sfix(16)" OutScaling "2^0" LimitOutput on UpperSaturationLimit "47" LowerSaturationLimit "0" ICPrevOutput "DiscIntNeverNeededParam" ICPrevScaledInput "DiscIntNeverNeededParam" } Block { BlockType Product Name "Divide" SID 7 Ports [2, 1] Position [610, 127, 640, 158] ShowName off Inputs "**" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType SubSystem Name "Filter" SID 8 Ports [1, 1] Position [765, 240, 830, 280] BlockMirror on TreatAsAtomicUnit on MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Filter" Location [2, 82, 1014, 718] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "In1" SID 9 Position [90, 103, 120, 117] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Sum Name "Add" SID 10 Ports [2, 1] Position [185, 102, 215, 133] Inputs "+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType DiscreteIntegrator Name "Discrete-Time\nIntegrator" SID 11 Ports [1, 1] Position [260, 99, 295, 131] IntegratorMethod "Integration: Forward Euler" gainval "150" ExternalReset "none" InitialConditionSource "internal" SampleTime "Ts" OutDataType "sfix(16)" OutScaling "2^0" ICPrevOutput "DiscIntNeverNeededParam" ICPrevScaledInput "DiscIntNeverNeededParam" } Block { BlockType Outport Name "Out1" SID 12 Position [400, 103, 430, 117] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "In1" SrcPort 1 DstBlock "Add" DstPort 1 } Line { SrcBlock "Discrete-Time\nIntegrator" SrcPort 1 Points [40, 0; 0, -5; 25, 0] Branch { DstBlock "Out1" DstPort 1 } Branch { Points [0, 75; -195, 0] DstBlock "Add" DstPort 2 } } Line { SrcBlock "Add" SrcPort 1 Points [10, 0; 0, -5] DstBlock "Discrete-Time\nIntegrator" DstPort 1 } } } Block { BlockType From Name "Fom1" SID 13 Position [20, 96, 60, 124] BackgroundColor "orange" ShowName off CloseFcn "tagdialog Close" GotoTag "CB" TagVisibility "global" } Block { BlockType From Name "From" SID 14 Position [20, 66, 60, 94] BackgroundColor "orange" ShowName off CloseFcn "tagdialog Close" GotoTag "mode1" TagVisibility "global" } Block { BlockType Goto Name "Goto1" SID 15 Position [765, 344, 825, 366] BackgroundColor "orange" ShowName off GotoTag "zindref" TagVisibility "global" } Block { BlockType Gain Name "Integral\ngain" SID 16 Position [675, 130, 720, 160] Gain "kiin" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" ParamDataTypeStr "Inherit: Inherit via internal rule" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Logic Name "Logical\nOperaor" SID 17 Ports [2, 1] Position [170, 72, 200, 103] ShowName off AllPortsSameDT off OutDataTypeMode "boolean" OutDataTypeStr "boolean" } Block { BlockType Logic Name "Logical\nOperator1" SID 18 Ports [1, 1] Position [115, 94, 145, 126] ShowName off Operator "NOT" AllPortsSameDT off OutDataTypeMode "boolean" OutDataTypeStr "boolean" } Block { BlockType Logic Name "Logical\nOperator2" SID 19 Ports [1, 1] Position [115, 64, 145, 96] ShowName off Operator "NOT" AllPortsSameDT off OutDataTypeMode "boolean" OutDataTypeStr "boolean" } Block { BlockType Lookup Name "Lookup Table" SID 20 Position [605, 235, 655, 285] BlockMirror on InputValues "[0 5 10 15 20 25 30 35 40 45 50 55]" Table "[1 0.95 0.9 0.875 0.86 0.76 0.68 0.58 0.44 0.3 0.15 0.04 ]" OutDataType "sfix(16)" OutScaling "2^0" SaturateOnIntegerOverflow off SampleTime "Ts" } Block { BlockType Saturate Name "Saturation" SID 21 Ports [1, 1] Position [890, 140, 920, 170] ShowName off UpperLimit "47" LowerLimit "0" } Block { BlockType Saturate Name "Saturation1" SID 22 Ports [1, 1] Position [145, 340, 175, 370] ShowName off UpperLimit "60" LowerLimit "19.3" } Block { BlockType Switch Name "Switch1" SID 23 Position [310, 75, 340, 105] ShowName off Threshold "1" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType UnitDelay Name "Unit Delay" SID 24 Position [915, 195, 945, 225] BlockRotation 270 BlockMirror on NamePlacement "alternate" ShowName off SampleTime "Ts" } Block { BlockType Gain Name "proportional\ngain1" SID 25 Position [715, 188, 765, 222] Gain "kpin" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "sfix(16)" ParameterScaling "2^0" ParamDataTypeStr "Inherit: Inherit via internal rule" OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Outport Name "alpha \ninductive" SID 26 Position [955, 145, 975, 165] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" InitialOutput "0" } Line { SrcBlock "zmeasured" SrcPort 1 Points [205, 0] Branch { Points [255, 0] DstBlock "Add" DstPort 2 } Branch { Points [0, -140] DstBlock "Switch1" DstPort 3 } } Line { SrcBlock "Integral\ngain" SrcPort 1 DstBlock "Discrete-Time\nIntegrator" DstPort 1 } Line { SrcBlock "Discrete-Time\nIntegrator" SrcPort 1 DstBlock "Add1" DstPort 1 } Line { SrcBlock "proportional\ngain1" SrcPort 1 Points [25, 0] DstBlock "Add1" DstPort 2 } Line { SrcBlock "Saturation" SrcPort 1 Points [5, 0] Branch { DstBlock "alpha \ninductive" DstPort 1 } Branch { DstBlock "Unit Delay" DstPort 1 } } Line { SrcBlock "Fom1" SrcPort 1 DstBlock "Logical\nOperator1" DstPort 1 } Line { SrcBlock "Logical\nOperator1" SrcPort 1 Points [0, -15] DstBlock "Logical\nOperaor" DstPort 2 } Line { SrcBlock "Logical\nOperaor" SrcPort 1 Points [0, 0] DstBlock "Switch1" DstPort 2 } Line { SrcBlock "Switch1" SrcPort 1 DstBlock "Discrete Filter" DstPort 1 } Line { SrcBlock "Discrete Filter" SrcPort 1 Points [30, 0] Branch { Points [45, 0] DstBlock "Add" DstPort 1 } Branch { Points [0, 265] DstBlock "Goto1" DstPort 1 } } Line { SrcBlock "zreference" SrcPort 1 DstBlock "Saturation1" DstPort 1 } Line { SrcBlock "Saturation1" SrcPort 1 Points [65, 0; 0, -275] DstBlock "Switch1" DstPort 1 } Line { SrcBlock "Divide" SrcPort 1 Points [0, 0; 10, 0] Branch { DstBlock "Integral\ngain" DstPort 1 } Branch { Points [0, 60] DstBlock "proportional\ngain1" DstPort 1 } } Line { SrcBlock "Add1" SrcPort 1 DstBlock "Saturation" DstPort 1 } Line { SrcBlock "Filter" SrcPort 1 Points [0, 0] DstBlock "Lookup Table" DstPort 1 } Line { SrcBlock "Lookup Table" SrcPort 1 Points [-15, 0; 0, -110] DstBlock "Divide" DstPort 2 } Line { SrcBlock "Add" SrcPort 1 DstBlock "Divide" DstPort 1 } Line { SrcBlock "From" SrcPort 1 DstBlock "Logical\nOperator2" DstPort 1 } Line { SrcBlock "Logical\nOperator2" SrcPort 1 DstBlock "Logical\nOperaor" DstPort 1 } Line { SrcBlock "Unit Delay" SrcPort 1 Points [0, 30] DstBlock "Filter" DstPort 1 } Annotation { Name "gain scheduling" Position [719, 296] } Annotation { Name "upper limit to\navoid resonnace \nregion" Position [908, 114] } Annotation { Name "zref" Position [517, 78] } Annotation { Name "zmeas" Position [517, 169] } } } Block { BlockType Goto Name "Goto1" SID 800 Position [945, 254, 1005, 276] BackgroundColor "orange" ShowName off GotoTag "alpha" TagVisibility "global" } Block { BlockType Goto Name "Goto2" SID 801 Position [695, 329, 755, 351] BackgroundColor "orange" ShowName off GotoTag "mode" TagVisibility "global" } Block { BlockType Goto Name "Goto3" SID 802 Position [715, 364, 775, 386] BackgroundColor "orange" ShowName off GotoTag "mode1" TagVisibility "global" } Block { BlockType SubSystem Name "Impedance calculation" SID 803 Ports [2, 2] Position [120, 201, 240, 314] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Impedance calculation" Location [0, 88, 1012, 738] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Vtcsca" SID 804 Position [15, 83, 45, 97] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "Iabc" SID 805 Position [15, 263, 45, 277] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Sum Name "Add" SID 806 Ports [3, 1] Position [255, 249, 285, 321] Inputs "+++" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Add1" SID 807 Ports [3, 1] Position [250, 64, 280, 136] Inputs "+++" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType DiscreteFilter Name "Discrete Filter" SID 808 Ports [1, 1] Position [480, 276, 565, 314] Numerator "[30*Ts]" Denominator "[1 -exp(-30*Ts)]" SampleTime "Ts" } Block { BlockType DiscreteFilter Name "Discrete Filter1" SID 809 Ports [1, 1] Position [560, 106, 645, 144] Numerator "[50*Ts]" Denominator "[1 -exp(-50*Ts)]" SampleTime "Ts" } Block { BlockType Product Name "Divide" SID 810 Ports [2, 1] Position [445, 107, 475, 138] ShowName off Inputs "*/" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Divide1" SID 811 Ports [2, 1] Position [315, 92, 345, 123] Inputs "*/" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Divide2" SID 812 Ports [2, 1] Position [320, 277, 350, 308] Inputs "*/" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" RndMeth "Floor" SaturateOnIntegerOverflow off } Block { BlockType Goto Name "Goto" SID 813 Position [605, 284, 665, 306] BackgroundColor "orange" ShowName off GotoTag "Itcsc" TagVisibility "global" } Block { BlockType Goto Name "Goto1" SID 814 Position [555, 54, 615, 76] BackgroundColor "orange" ShowName off GotoTag "Vtcscrms" TagVisibility "global" } Block { BlockType SubSystem Name "RMS" SID 815 Ports [1, 1] Position [160, 214, 205, 256] ShowName off OpenFcn "power_openblockproxy();" MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off MaskType "RMS" MaskDescription "This block measures the root mean square value of instantaneous current or voltage signa" "l connected to the input of the block. The RMS value is calculated over a running window of one cycle of the sp" "ecified fundamental frequency." MaskHelp "web(psbhelp)" MaskPromptString "Fundamental frequency (Hz):" MaskStyleString "edit" MaskTunableValueString "on" MaskEnableString "on" MaskVisibilityString "on" MaskToolTipString "on" MaskVariables "f1=@1;" MaskInitialization "power_initmask();" MaskSelfModifiable on MaskIconFrame on MaskIconOpaque off MaskIconRotate "none" MaskPortRotate "default" MaskIconUnits "autoscale" MaskValueString "50" System { Name "RMS" Location [11, 334, 731, 611] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" SIDHighWatermark 9 Block { BlockType Inport Name "signal" SID 1 Position [15, 25, 35, 45] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Abs Name "Abs" SID 2 Position [365, 35, 395, 65] } Block { BlockType DiscreteIntegrator Name "Discrete-Time\nIntegrator" SID 3 Ports [1, 1] Position [165, 19, 200, 51] IntegratorMethod "Integration: Forward Euler" ExternalReset "none" InitialConditionSource "internal" SampleTime "Ts" OutDataType "sfix(16)" OutScaling "2^0" ICPrevOutput "DiscIntNeverNeededParam" ICPrevScaledInput "DiscIntNeverNeededParam" } Block { BlockType Gain Name "Gain" SID 4 Position [115, 20, 145, 50] Gain "f1" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Math Name "Math\nFunction" SID 5 Ports [1, 1] Position [60, 20, 90, 50] ShowName off Operator "square" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Math Name "Math\nFunction1" SID 6 Ports [1, 1] Position [420, 35, 450, 65] ShowName off Operator "sqrt" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Sum Name "Sum1" SID 7 Ports [2, 1] Position [310, 24, 330, 71] Inputs "+-" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType TransportDelay Name "T" SID 8 Position [245, 45, 285, 75] DelayTime "1/f1" } Block { BlockType Outport Name "rms" SID 9 Position [495, 40, 515, 60] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" InitialOutput "0" } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Discrete-Time\nIntegrator" DstPort 1 } Line { SrcBlock "Math\nFunction" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "signal" SrcPort 1 DstBlock "Math\nFunction" DstPort 1 } Line { SrcBlock "Math\nFunction1" SrcPort 1 DstBlock "rms" DstPort 1 } Line { SrcBlock "Discrete-Time\nIntegrator" SrcPort 1 Points [25, 0] Branch { DstBlock "Sum1" DstPort 1 } Branch { DstBlock "T" DstPort 1 } } Line { SrcBlock "T" SrcPort 1 DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Abs" DstPort 1 } Line { SrcBlock "Abs" SrcPort 1 DstBlock "Math\nFunction1" DstPort 1 } } } Block { BlockType SubSystem Name "RMS1" SID 816 Ports [1, 1] Position [160, 254, 205, 296] ShowName off OpenFcn "power_openblockproxy();" MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off MaskType "RMS" MaskDescription "This block measures the root mean square value of instantaneous current or voltage signa" "l connected to the input of the block. The RMS value is calculated over a running window of one cycle of the sp" "ecified fundamental frequency." MaskHelp "web(psbhelp)" MaskPromptString "Fundamental frequency (Hz):" MaskStyleString "edit" MaskTunableValueString "on" MaskEnableString "on" MaskVisibilityString "on" MaskToolTipString "on" MaskVariables "f1=@1;" MaskInitialization "power_initmask();" MaskSelfModifiable on MaskIconFrame on MaskIconOpaque off MaskIconRotate "none" MaskPortRotate "default" MaskIconUnits "autoscale" MaskValueString "50" System { Name "RMS1" Location [11, 334, 731, 611] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" SIDHighWatermark 9 Block { BlockType Inport Name "signal" SID 1 Position [15, 25, 35, 45] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Abs Name "Abs" SID 2 Position [365, 35, 395, 65] } Block { BlockType DiscreteIntegrator Name "Discrete-Time\nIntegrator" SID 3 Ports [1, 1] Position [165, 19, 200, 51] IntegratorMethod "Integration: Forward Euler" ExternalReset "none" InitialConditionSource "internal" SampleTime "Ts" OutDataType "sfix(16)" OutScaling "2^0" ICPrevOutput "DiscIntNeverNeededParam" ICPrevScaledInput "DiscIntNeverNeededParam" } Block { BlockType Gain Name "Gain" SID 4 Position [115, 20, 145, 50] Gain "f1" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Math Name "Math\nFunction" SID 5 Ports [1, 1] Position [60, 20, 90, 50] ShowName off Operator "square" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Math Name "Math\nFunction1" SID 6 Ports [1, 1] Position [420, 35, 450, 65] ShowName off Operator "sqrt" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Sum Name "Sum1" SID 7 Ports [2, 1] Position [310, 24, 330, 71] Inputs "+-" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType TransportDelay Name "T" SID 8 Position [245, 45, 285, 75] DelayTime "1/f1" } Block { BlockType Outport Name "rms" SID 9 Position [495, 40, 515, 60] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" InitialOutput "0" } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Discrete-Time\nIntegrator" DstPort 1 } Line { SrcBlock "Math\nFunction" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "signal" SrcPort 1 DstBlock "Math\nFunction" DstPort 1 } Line { SrcBlock "Math\nFunction1" SrcPort 1 DstBlock "rms" DstPort 1 } Line { SrcBlock "Discrete-Time\nIntegrator" SrcPort 1 Points [25, 0] Branch { DstBlock "Sum1" DstPort 1 } Branch { DstBlock "T" DstPort 1 } } Line { SrcBlock "T" SrcPort 1 DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Abs" DstPort 1 } Line { SrcBlock "Abs" SrcPort 1 DstBlock "Math\nFunction1" DstPort 1 } } } Block { BlockType SubSystem Name "RMS2" SID 817 Ports [1, 1] Position [160, 299, 205, 341] ShowName off OpenFcn "power_openblockproxy();" MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off MaskType "RMS" MaskDescription "This block measures the root mean square value of instantaneous current or voltage signa" "l connected to the input of the block. The RMS value is calculated over a running window of one cycle of the sp" "ecified fundamental frequency." MaskHelp "web(psbhelp)" MaskPromptString "Fundamental frequency (Hz):" MaskStyleString "edit" MaskTunableValueString "on" MaskEnableString "on" MaskVisibilityString "on" MaskToolTipString "on" MaskVariables "f1=@1;" MaskInitialization "power_initmask();" MaskSelfModifiable on MaskIconFrame on MaskIconOpaque off MaskIconRotate "none" MaskPortRotate "default" MaskIconUnits "autoscale" MaskValueString "50" System { Name "RMS2" Location [11, 334, 731, 611] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" SIDHighWatermark 9 Block { BlockType Inport Name "signal" SID 1 Position [15, 25, 35, 45] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Abs Name "Abs" SID 2 Position [365, 35, 395, 65] } Block { BlockType DiscreteIntegrator Name "Discrete-Time\nIntegrator" SID 3 Ports [1, 1] Position [165, 19, 200, 51] IntegratorMethod "Integration: Forward Euler" ExternalReset "none" InitialConditionSource "internal" SampleTime "Ts" OutDataType "sfix(16)" OutScaling "2^0" ICPrevOutput "DiscIntNeverNeededParam" ICPrevScaledInput "DiscIntNeverNeededParam" } Block { BlockType Gain Name "Gain" SID 4 Position [115, 20, 145, 50] Gain "f1" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Math Name "Math\nFunction" SID 5 Ports [1, 1] Position [60, 20, 90, 50] ShowName off Operator "square" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Math Name "Math\nFunction1" SID 6 Ports [1, 1] Position [420, 35, 450, 65] ShowName off Operator "sqrt" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Sum Name "Sum1" SID 7 Ports [2, 1] Position [310, 24, 330, 71] Inputs "+-" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType TransportDelay Name "T" SID 8 Position [245, 45, 285, 75] DelayTime "1/f1" } Block { BlockType Outport Name "rms" SID 9 Position [495, 40, 515, 60] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" InitialOutput "0" } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Discrete-Time\nIntegrator" DstPort 1 } Line { SrcBlock "Math\nFunction" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "signal" SrcPort 1 DstBlock "Math\nFunction" DstPort 1 } Line { SrcBlock "Math\nFunction1" SrcPort 1 DstBlock "rms" DstPort 1 } Line { SrcBlock "Discrete-Time\nIntegrator" SrcPort 1 Points [25, 0] Branch { DstBlock "Sum1" DstPort 1 } Branch { DstBlock "T" DstPort 1 } } Line { SrcBlock "T" SrcPort 1 DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Abs" DstPort 1 } Line { SrcBlock "Abs" SrcPort 1 DstBlock "Math\nFunction1" DstPort 1 } } } Block { BlockType SubSystem Name "RMS3" SID 818 Ports [1, 1] Position [155, 29, 200, 71] ShowName off OpenFcn "power_openblockproxy();" MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off MaskType "RMS" MaskDescription "This block measures the root mean square value of instantaneous current or voltage signa" "l connected to the input of the block. The RMS value is calculated over a running window of one cycle of the sp" "ecified fundamental frequency." MaskHelp "web(psbhelp)" MaskPromptString "Fundamental frequency (Hz):" MaskStyleString "edit" MaskTunableValueString "on" MaskEnableString "on" MaskVisibilityString "on" MaskToolTipString "on" MaskVariables "f1=@1;" MaskInitialization "power_initmask();" MaskSelfModifiable on MaskIconFrame on MaskIconOpaque off MaskIconRotate "none" MaskPortRotate "default" MaskIconUnits "autoscale" MaskValueString "50" System { Name "RMS3" Location [11, 334, 731, 611] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" SIDHighWatermark 9 Block { BlockType Inport Name "signal" SID 1 Position [15, 25, 35, 45] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Abs Name "Abs" SID 2 Position [365, 35, 395, 65] } Block { BlockType DiscreteIntegrator Name "Discrete-Time\nIntegrator" SID 3 Ports [1, 1] Position [165, 19, 200, 51] IntegratorMethod "Integration: Forward Euler" ExternalReset "none" InitialConditionSource "internal" SampleTime "Ts" OutDataType "sfix(16)" OutScaling "2^0" ICPrevOutput "DiscIntNeverNeededParam" ICPrevScaledInput "DiscIntNeverNeededParam" } Block { BlockType Gain Name "Gain" SID 4 Position [115, 20, 145, 50] Gain "f1" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Math Name "Math\nFunction" SID 5 Ports [1, 1] Position [60, 20, 90, 50] ShowName off Operator "square" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Math Name "Math\nFunction1" SID 6 Ports [1, 1] Position [420, 35, 450, 65] ShowName off Operator "sqrt" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Sum Name "Sum1" SID 7 Ports [2, 1] Position [310, 24, 330, 71] Inputs "+-" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType TransportDelay Name "T" SID 8 Position [245, 45, 285, 75] DelayTime "1/f1" } Block { BlockType Outport Name "rms" SID 9 Position [495, 40, 515, 60] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" InitialOutput "0" } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Discrete-Time\nIntegrator" DstPort 1 } Line { SrcBlock "Math\nFunction" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "signal" SrcPort 1 DstBlock "Math\nFunction" DstPort 1 } Line { SrcBlock "Math\nFunction1" SrcPort 1 DstBlock "rms" DstPort 1 } Line { SrcBlock "Discrete-Time\nIntegrator" SrcPort 1 Points [25, 0] Branch { DstBlock "Sum1" DstPort 1 } Branch { DstBlock "T" DstPort 1 } } Line { SrcBlock "T" SrcPort 1 DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Abs" DstPort 1 } Line { SrcBlock "Abs" SrcPort 1 DstBlock "Math\nFunction1" DstPort 1 } } } Block { BlockType SubSystem Name "RMS4" SID 819 Ports [1, 1] Position [155, 69, 200, 111] ShowName off OpenFcn "power_openblockproxy();" MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off MaskType "RMS" MaskDescription "This block measures the root mean square value of instantaneous current or voltage signa" "l connected to the input of the block. The RMS value is calculated over a running window of one cycle of the sp" "ecified fundamental frequency." MaskHelp "web(psbhelp)" MaskPromptString "Fundamental frequency (Hz):" MaskStyleString "edit" MaskTunableValueString "on" MaskEnableString "on" MaskVisibilityString "on" MaskToolTipString "on" MaskVariables "f1=@1;" MaskInitialization "power_initmask();" MaskSelfModifiable on MaskIconFrame on MaskIconOpaque off MaskIconRotate "none" MaskPortRotate "default" MaskIconUnits "autoscale" MaskValueString "50" System { Name "RMS4" Location [11, 334, 731, 611] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" SIDHighWatermark 9 Block { BlockType Inport Name "signal" SID 1 Position [15, 25, 35, 45] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Abs Name "Abs" SID 2 Position [365, 35, 395, 65] } Block { BlockType DiscreteIntegrator Name "Discrete-Time\nIntegrator" SID 3 Ports [1, 1] Position [165, 19, 200, 51] IntegratorMethod "Integration: Forward Euler" ExternalReset "none" InitialConditionSource "internal" SampleTime "Ts" OutDataType "sfix(16)" OutScaling "2^0" ICPrevOutput "DiscIntNeverNeededParam" ICPrevScaledInput "DiscIntNeverNeededParam" } Block { BlockType Gain Name "Gain" SID 4 Position [115, 20, 145, 50] Gain "f1" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Math Name "Math\nFunction" SID 5 Ports [1, 1] Position [60, 20, 90, 50] ShowName off Operator "square" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Math Name "Math\nFunction1" SID 6 Ports [1, 1] Position [420, 35, 450, 65] ShowName off Operator "sqrt" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Sum Name "Sum1" SID 7 Ports [2, 1] Position [310, 24, 330, 71] Inputs "+-" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType TransportDelay Name "T" SID 8 Position [245, 45, 285, 75] DelayTime "1/f1" } Block { BlockType Outport Name "rms" SID 9 Position [495, 40, 515, 60] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" InitialOutput "0" } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Discrete-Time\nIntegrator" DstPort 1 } Line { SrcBlock "Math\nFunction" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "signal" SrcPort 1 DstBlock "Math\nFunction" DstPort 1 } Line { SrcBlock "Math\nFunction1" SrcPort 1 DstBlock "rms" DstPort 1 } Line { SrcBlock "Discrete-Time\nIntegrator" SrcPort 1 Points [25, 0] Branch { DstBlock "Sum1" DstPort 1 } Branch { DstBlock "T" DstPort 1 } } Line { SrcBlock "T" SrcPort 1 DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Abs" DstPort 1 } Line { SrcBlock "Abs" SrcPort 1 DstBlock "Math\nFunction1" DstPort 1 } } } Block { BlockType SubSystem Name "RMS5" SID 820 Ports [1, 1] Position [155, 114, 200, 156] ShowName off OpenFcn "power_openblockproxy();" MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off MaskType "RMS" MaskDescription "This block measures the root mean square value of instantaneous current or voltage signa" "l connected to the input of the block. The RMS value is calculated over a running window of one cycle of the sp" "ecified fundamental frequency." MaskHelp "web(psbhelp)" MaskPromptString "Fundamental frequency (Hz):" MaskStyleString "edit" MaskTunableValueString "on" MaskEnableString "on" MaskVisibilityString "on" MaskToolTipString "on" MaskVariables "f1=@1;" MaskInitialization "power_initmask();" MaskSelfModifiable on MaskIconFrame on MaskIconOpaque off MaskIconRotate "none" MaskPortRotate "default" MaskIconUnits "autoscale" MaskValueString "50" System { Name "RMS5" Location [11, 334, 731, 611] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" SIDHighWatermark 9 Block { BlockType Inport Name "signal" SID 1 Position [15, 25, 35, 45] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Abs Name "Abs" SID 2 Position [365, 35, 395, 65] } Block { BlockType DiscreteIntegrator Name "Discrete-Time\nIntegrator" SID 3 Ports [1, 1] Position [165, 19, 200, 51] IntegratorMethod "Integration: Forward Euler" ExternalReset "none" InitialConditionSource "internal" SampleTime "Ts" OutDataType "sfix(16)" OutScaling "2^0" ICPrevOutput "DiscIntNeverNeededParam" ICPrevScaledInput "DiscIntNeverNeededParam" } Block { BlockType Gain Name "Gain" SID 4 Position [115, 20, 145, 50] Gain "f1" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Math Name "Math\nFunction" SID 5 Ports [1, 1] Position [60, 20, 90, 50] ShowName off Operator "square" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Math Name "Math\nFunction1" SID 6 Ports [1, 1] Position [420, 35, 450, 65] ShowName off Operator "sqrt" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Sum Name "Sum1" SID 7 Ports [2, 1] Position [310, 24, 330, 71] Inputs "+-" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType TransportDelay Name "T" SID 8 Position [245, 45, 285, 75] DelayTime "1/f1" } Block { BlockType Outport Name "rms" SID 9 Position [495, 40, 515, 60] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" InitialOutput "0" } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Discrete-Time\nIntegrator" DstPort 1 } Line { SrcBlock "Math\nFunction" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "signal" SrcPort 1 DstBlock "Math\nFunction" DstPort 1 } Line { SrcBlock "Math\nFunction1" SrcPort 1 DstBlock "rms" DstPort 1 } Line { SrcBlock "Discrete-Time\nIntegrator" SrcPort 1 Points [25, 0] Branch { DstBlock "Sum1" DstPort 1 } Branch { DstBlock "T" DstPort 1 } } Line { SrcBlock "T" SrcPort 1 DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Abs" DstPort 1 } Line { SrcBlock "Abs" SrcPort 1 DstBlock "Math\nFunction1" DstPort 1 } } } Block { BlockType Saturate Name "Saturation1" SID 821 Ports [1, 1] Position [495, 108, 530, 142] ShowName off UpperLimit "300" LowerLimit "10" } Block { BlockType Saturate Name "Saturation2" SID 822 Ports [1, 1] Position [375, 158, 410, 192] ShowName off UpperLimit "1e10" LowerLimit "1e-10" } Block { BlockType Selector Name "Selector1" SID 823 Ports [1, 1] Position [115, 261, 135, 289] ShowName off InputPortWidth "3" IndexOptions "Index vector (dialog)" Indices "2" OutputSizes "1" } Block { BlockType Selector Name "Selector2" SID 824 Ports [1, 1] Position [115, 306, 135, 334] ShowName off InputPortWidth "3" IndexOptions "Index vector (dialog)" Indices "3" OutputSizes "1" } Block { BlockType Selector Name "Selector3" SID 825 Ports [1, 1] Position [95, 76, 115, 104] ShowName off InputPortWidth "3" IndexOptions "Index vector (dialog)" Indices "2" OutputSizes "1" } Block { BlockType Selector Name "Selector4" SID 826 Ports [1, 1] Position [95, 121, 115, 149] ShowName off InputPortWidth "3" IndexOptions "Index vector (dialog)" Indices "3" OutputSizes "1" } Block { BlockType Selector Name "Selector5" SID 827 Ports [1, 1] Position [95, 36, 115, 64] ShowName off InputPortWidth "3" IndexOptions "Index vector (dialog)" Indices "1" OutputSizes "1" } Block { BlockType Selector Name "Selector8" SID 828 Ports [1, 1] Position [115, 221, 135, 249] ShowName off InputPortWidth "3" IndexOptions "Index vector (dialog)" Indices "1" OutputSizes "1" } Block { BlockType Constant Name "inductive" SID 829 Position [195, 360, 225, 390] ShowName off Value "3" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "inductive1" SID 830 Position [195, 155, 225, 185] ShowName off Value "3" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "impedance" SID 831 Position [710, 118, 740, 132] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Irms" SID 832 Position [725, 388, 755, 402] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Divide1" SrcPort 1 Points [15, 0; 0, 5; 60, 0] Branch { DstBlock "Divide" DstPort 1 } Branch { Points [0, -50] DstBlock "Goto1" DstPort 1 } } Line { SrcBlock "Divide" SrcPort 1 DstBlock "Saturation1" DstPort 1 } Line { SrcBlock "Discrete Filter" SrcPort 1 DstBlock "Goto" DstPort 1 } Line { SrcBlock "Selector8" SrcPort 1 DstBlock "RMS" DstPort 1 } Line { SrcBlock "Discrete Filter1" SrcPort 1 DstBlock "impedance" DstPort 1 } Line { SrcBlock "Selector1" SrcPort 1 DstBlock "RMS1" DstPort 1 } Line { SrcBlock "Selector2" SrcPort 1 DstBlock "RMS2" DstPort 1 } Line { SrcBlock "RMS" SrcPort 1 Points [10, 0; 0, 25] DstBlock "Add" DstPort 1 } Line { SrcBlock "RMS1" SrcPort 1 Points [10, 0; 0, 10] DstBlock "Add" DstPort 2 } Line { SrcBlock "RMS2" SrcPort 1 Points [15, 0; 0, -10] DstBlock "Add" DstPort 3 } Line { SrcBlock "Add" SrcPort 1 DstBlock "Divide2" DstPort 1 } Line { SrcBlock "inductive" SrcPort 1 Points [75, 0] DstBlock "Divide2" DstPort 2 } Line { SrcBlock "Divide2" SrcPort 1 Points [5, 0] Branch { Points [65, 0] Branch { Points [0, 100] DstBlock "Irms" DstPort 1 } Branch { DstBlock "Discrete Filter" DstPort 1 } } Branch { DstBlock "Saturation2" DstPort 1 } } Line { SrcBlock "Iabc" SrcPort 1 Points [20, 0] Branch { Points [5, 0; 0, 5] DstBlock "Selector1" DstPort 1 } Branch { Points [0, -35] DstBlock "Selector8" DstPort 1 } Branch { Points [0, 50] DstBlock "Selector2" DstPort 1 } } Line { SrcBlock "RMS3" SrcPort 1 Points [10, 0; 0, 25] DstBlock "Add1" DstPort 1 } Line { SrcBlock "RMS4" SrcPort 1 Points [10, 0; 0, 10] DstBlock "Add1" DstPort 2 } Line { SrcBlock "RMS5" SrcPort 1 Points [15, 0; 0, -10] DstBlock "Add1" DstPort 3 } Line { SrcBlock "Add1" SrcPort 1 Points [0, 0] DstBlock "Divide1" DstPort 1 } Line { SrcBlock "inductive1" SrcPort 1 Points [70, 0] DstBlock "Divide1" DstPort 2 } Line { SrcBlock "Saturation1" SrcPort 1 DstBlock "Discrete Filter1" DstPort 1 } Line { SrcBlock "Saturation2" SrcPort 1 Points [0, -45] DstBlock "Divide" DstPort 2 } Line { SrcBlock "Vtcsca" SrcPort 1 Points [15, 0] Branch { Points [10, 0] DstBlock "Selector3" DstPort 1 } Branch { Points [0, -40] DstBlock "Selector5" DstPort 1 } Branch { Points [0, 45] DstBlock "Selector4" DstPort 1 } } Line { SrcBlock "Selector5" SrcPort 1 DstBlock "RMS3" DstPort 1 } Line { SrcBlock "Selector3" SrcPort 1 DstBlock "RMS4" DstPort 1 } Line { SrcBlock "Selector4" SrcPort 1 DstBlock "RMS5" DstPort 1 } Annotation { Name "TCSC current " Position [419, 277] } Annotation { Name "Prevents division \nwith zero" Position [409, 207] } } } Block { BlockType Switch Name "Switch1" SID 833 Position [685, 260, 715, 290] ShowName off Threshold "2" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Switch Name "Switch2" SID 834 Position [780, 165, 810, 195] ShowName off Threshold "3" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType SubSystem Name "manual alpha" SID 835 Ports [0, 1] Position [500, 150, 580, 190] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "manual alpha" Location [161, 202, 898, 590] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType SubSystem Name "Filter" SID 836 Ports [1, 1] Position [410, 110, 475, 150] TreatAsAtomicUnit on MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Filter" Location [2, 82, 1014, 718] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "In1" SID 837 Position [90, 103, 120, 117] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Sum Name "Add" SID 838 Ports [2, 1] Position [185, 102, 215, 133] Inputs "+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType DiscreteIntegrator Name "Discrete-Time\nIntegrator" SID 839 Ports [1, 1] Position [260, 99, 295, 131] IntegratorMethod "Integration: Forward Euler" gainval "3" ExternalReset "none" InitialConditionSource "internal" InitialCondition "90" SampleTime "Ts" OutDataType "sfix(16)" OutScaling "2^0" ICPrevOutput "DiscIntNeverNeededParam" ICPrevScaledInput "DiscIntNeverNeededParam" } Block { BlockType Outport Name "Out1" SID 840 Position [400, 103, 430, 117] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "In1" SrcPort 1 DstBlock "Add" DstPort 1 } Line { SrcBlock "Discrete-Time\nIntegrator" SrcPort 1 Points [40, 0; 0, -5; 25, 0] Branch { DstBlock "Out1" DstPort 1 } Branch { Points [0, 75; -195, 0] DstBlock "Add" DstPort 2 } } Line { SrcBlock "Add" SrcPort 1 Points [10, 0; 0, -5] DstBlock "Discrete-Time\nIntegrator" DstPort 1 } } } Block { BlockType SubSystem Name "Filter1" SID 841 Ports [1, 1] Position [400, 245, 465, 285] TreatAsAtomicUnit on MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Filter1" Location [2, 82, 1014, 718] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "In1" SID 842 Position [90, 103, 120, 117] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Sum Name "Add" SID 843 Ports [2, 1] Position [185, 102, 215, 133] Inputs "+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "sfix(16)" OutScaling "2^-10" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType DiscreteIntegrator Name "Discrete-Time\nIntegrator" SID 844 Ports [1, 1] Position [260, 99, 295, 131] IntegratorMethod "Integration: Forward Euler" gainval "3" ExternalReset "none" InitialConditionSource "internal" SampleTime "Ts" OutDataType "sfix(16)" OutScaling "2^0" ICPrevOutput "DiscIntNeverNeededParam" ICPrevScaledInput "DiscIntNeverNeededParam" } Block { BlockType Outport Name "Out1" SID 845 Position [400, 103, 430, 117] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "In1" SrcPort 1 DstBlock "Add" DstPort 1 } Line { SrcBlock "Discrete-Time\nIntegrator" SrcPort 1 Points [40, 0; 0, -5; 25, 0] Branch { DstBlock "Out1" DstPort 1 } Branch { Points [0, 75; -195, 0] DstBlock "Add" DstPort 2 } } Line { SrcBlock "Add" SrcPort 1 Points [10, 0; 0, -5] DstBlock "Discrete-Time\nIntegrator" DstPort 1 } } } Block { BlockType From Name "Fom1" SID 846 Position [230, 116, 270, 144] BackgroundColor "orange" ShowName off CloseFcn "tagdialog Close" GotoTag "CB" TagVisibility "global" } Block { BlockType From Name "Fom2" SID 847 Position [120, 251, 160, 279] BackgroundColor "orange" ShowName off CloseFcn "tagdialog Close" GotoTag "CB" TagVisibility "global" } Block { BlockType Saturate Name "Saturation" SID 848 Ports [1, 1] Position [540, 150, 570, 180] ShowName off UpperLimit "90" LowerLimit "68" } Block { BlockType Saturate Name "Saturation2" SID 849 Ports [1, 1] Position [510, 200, 540, 230] ShowName off UpperLimit "49" LowerLimit "0" } Block { BlockType Switch Name "Switch" SID 850 Position [605, 170, 635, 200] ShowName off Threshold "59" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Switch Name "Switch1" SID 851 Position [315, 250, 345, 280] Threshold "1" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Switch Name "Switch2" SID 852 Position [325, 115, 355, 145] Threshold "1" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Constant Name "initial\nalpha" SID 853 Position [165, 80, 195, 110] Value "90" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "initial\nalpha 1" SID 854 Position [210, 205, 240, 235] Value "0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "manual\nalpha" SID 855 Position [55, 169, 130, 201] Value "man_alpha" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "alpha\n manual" SID 856 Position [705, 178, 735, 192] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "manual\nalpha" SrcPort 1 Points [135, 0] Branch { Points [30, 0] Branch { DstBlock "Switch" DstPort 2 } Branch { Labels [1, 0] Points [0, -45] DstBlock "Switch2" DstPort 3 } } Branch { Points [0, 90] DstBlock "Switch1" DstPort 3 } } Line { SrcBlock "Saturation" SrcPort 1 Points [15, 0] DstBlock "Switch" DstPort 1 } Line { SrcBlock "Saturation2" SrcPort 1 Points [45, 0] DstBlock "Switch" DstPort 3 } Line { SrcBlock "Fom1" SrcPort 1 DstBlock "Switch2" DstPort 2 } Line { SrcBlock "Switch" SrcPort 1 DstBlock "alpha\n manual" DstPort 1 } Line { SrcBlock "initial\nalpha" SrcPort 1 Points [110, 0] DstBlock "Switch2" DstPort 1 } Line { SrcBlock "Switch2" SrcPort 1 DstBlock "Filter" DstPort 1 } Line { SrcBlock "Filter" SrcPort 1 Points [35, 0; 0, 30; 10, 0] DstBlock "Saturation" DstPort 1 } Line { SrcBlock "Fom2" SrcPort 1 Points [0, 0] DstBlock "Switch1" DstPort 2 } Line { SrcBlock "Switch1" SrcPort 1 DstBlock "Filter1" DstPort 1 } Line { SrcBlock "Filter1" SrcPort 1 Points [25, 0] DstBlock "Saturation2" DstPort 1 } Line { SrcBlock "initial\nalpha 1" SrcPort 1 Points [15, 0; 0, 35] DstBlock "Switch1" DstPort 1 } } } Block { BlockType Constant Name "operating mode" SID 857 Position [590, 260, 620, 290] Value "mode" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "reference impedance1" SID 858 Position [585, 365, 615, 395] ShowName off OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "alpha" SID 859 Position [900, 173, 930, 187] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Irms" SID 860 Position [895, 393, 925, 407] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Switch2" SrcPort 1 Points [0, 0] Branch { DstBlock "alpha" DstPort 1 } Branch { Points [50, 0; 0, 85] DstBlock "Goto1" DstPort 1 } } Line { SrcBlock "Controller capacitive mode" SrcPort 1 Points [105, 0] DstBlock "Switch1" DstPort 1 } Line { SrcBlock "Controller inductive mode" SrcPort 1 Points [100, 0] DstBlock "Switch1" DstPort 3 } Line { SrcBlock "operating mode" SrcPort 1 Points [15, 0] Branch { DstBlock "Switch1" DstPort 2 } Branch { Points [0, -95] DstBlock "Switch2" DstPort 2 } Branch { Points [0, 65] Branch { DstBlock "Goto2" DstPort 1 } Branch { Points [0, 25] DstBlock "Add1" DstPort 1 } } } Line { SrcBlock "manual alpha" SrcPort 1 DstBlock "Switch2" DstPort 1 } Line { SrcBlock "Impedance calculation" SrcPort 1 Points [125, 0] Branch { DstBlock "Controller capacitive mode" DstPort 1 } Branch { Points [0, 85] DstBlock "Controller inductive mode" DstPort 1 } } Line { SrcBlock "Impedance calculation" SrcPort 2 Points [55, 0; 0, 115] DstBlock "Irms" DstPort 1 } Line { SrcBlock "Switch1" SrcPort 1 Points [20, 0; 0, -85] DstBlock "Switch2" DstPort 3 } Line { SrcBlock "Add1" SrcPort 1 DstBlock "Goto3" DstPort 1 } Line { SrcBlock "reference impedance1" SrcPort 1 DstBlock "Add1" DstPort 2 } Line { SrcBlock "zref" SrcPort 1 Points [370, 0; 0, -100] Branch { DstBlock "Controller capacitive mode" DstPort 2 } Branch { DstBlock "Controller inductive mode" DstPort 2 } } Line { SrcBlock "Vtcsc" SrcPort 1 DstBlock "Impedance calculation" DstPort 1 } Line { SrcBlock "Iabc" SrcPort 1 Points [25, 0; 0, -90] DstBlock "Impedance calculation" DstPort 2 } Annotation { Name "Dragan Jovcic\nUniversity of Aberdeen, \nScotland, UK" Position [844, 564] BackgroundColor "green" DropShadow on FontName "Zurich Ex BT" } } } Block { BlockType SubSystem Name "Firing Unit" SID 861 Ports [3, 2] Position [815, 66, 915, 214] BackgroundColor "lightBlue" DropShadow on MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off MaskType "TCSC Firing Unit" MaskHelp "This block determines the firing signals for TCSC thyristors. It uses the firing angle alpha as" " the input. The line current is used as the synchronising signal. " MaskPromptString "Firing mode|Total delay (in number of time step)|Initial phase and frequency of input: [" " Phase (degree) Freq (Hz) ]|Sample time:" MaskStyleString "popup(Synchronized|Continuous),edit,edit,edit" MaskTunableValueString "on,on,on,on" MaskCallbackString "|||" MaskEnableString "on,on,on,on" MaskVisibilityString "on,on,on,on" MaskToolTipString "on,on,on,on" MaskVariables "FiringMode=@1;Nstep=@2;ParInit=@3;Ts=@4;" MaskInitialization "PhaseInit=ParInit(1);\nFreqInit=ParInit(2);\n" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskPortRotate "default" MaskIconUnits "autoscale" MaskValueString "Synchronized|0|[0 50]|Ts" System { Name "Firing Unit" Location [32, 82, 965, 720] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Iabc" SID 862 Position [15, 88, 45, 102] IconDisplay "Port number" PortDimensions "3" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "Alpha" SID 863 Position [15, 263, 45, 277] Port "2" IconDisplay "Port number" PortDimensions "1" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "Irms" SID 864 Position [15, 453, 45, 467] Port "3" IconDisplay "Port number" PortDimensions "1" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Clock Name "Clock" SID 865 Position [510, 660, 530, 680] Decimation "10" } Block { BlockType Constant Name "Constant1" SID 866 Position [595, 675, 625, 695] NamePlacement "alternate" ShowName off OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant4" SID 867 Position [570, 640, 600, 660] NamePlacement "alternate" ShowName off Value "0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Demux Name "Demux" SID 868 Ports [1, 3] Position [355, 72, 360, 148] BackgroundColor "black" ShowName off Outputs "3" } Block { BlockType SubSystem Name "Firing Unit\nA phase" SID 869 Ports [2, 2] Position [485, 52, 580, 188] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off MaskPromptString "Firing Mode (1=Synchronized, 2=Continuous)|Total delay (in number of time step)|Initial phase a" "nd frequency of input: [ Phase (degree) Freq (Hz) ]|Sample time:" MaskStyleString "edit,edit,edit,edit" MaskTunableValueString "on,on,on,on" MaskCallbackString "|||" MaskEnableString "on,on,on,on" MaskVisibilityString "on,on,on,on" MaskToolTipString "on,on,on,on" MaskVariables "FiringMode=@1;Nstep=@2;ParInit=@3;Ts=@4;" MaskInitialization "PhaseInit=ParInit(1);\nFreqInit=ParInit(2);\n" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskPortRotate "default" MaskIconUnits "autoscale" MaskValueString "FiringMode|Nstep|[PhaseInit FreqInit]|Ts" System { Name "Firing Unit\nA phase" Location [26, 82, 965, 739] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Iabc" SID 870 Position [40, 343, 70, 357] IconDisplay "Port number" PortDimensions "1" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "Alpha" SID 871 Position [525, 43, 555, 57] Port "2" IconDisplay "Port number" PortDimensions "1" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType SubSystem Name "BL1" SID 872 Ports [1, 2] Position [165, 312, 230, 388] NamePlacement "alternate" MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off MaskType "Discrete 1-phase PLL" MaskDescription "This Phase Locked Loop (PLL) system can be used to synchronize on a variable frequency " "sinusoidal signal.\n\nInput 1: Normalized input signal V(pu)\n\n" MaskPromptString "Initial input:[ Phase(degrees) Frequency(Hz) ]|Regulator gains [ Kp Ki ]|Sample time:" MaskStyleString "edit,edit,edit" MaskTunableValueString "on,on,on" MaskCallbackString "||" MaskEnableString "on,on,on" MaskVisibilityString "on,on,on" MaskToolTipString "on,on,on" MaskVariables "Par_Init=@1;ParK=@2;Ts=@3;" MaskInitialization "Kp=ParK(1);\nKi=ParK(2);\nPhase_Init=Par_Init(1);\nFinit=Par_Init(2);" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskPortRotate "default" MaskIconUnits "autoscale" MaskValueString "[PhaseInit FreqInit]|[50 500]|Ts" System { Name "BL1" Location [7, 143, 955, 613] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "V(pu)" SID 873 Position [20, 233, 50, 247] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant4" SID 874 Position [425, 275, 455, 295] NamePlacement "alternate" ShowName off Value "2*pi" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Reference Name "Discrete\nPI Controller" SID 875 Ports [1, 1] Position [310, 222, 355, 268] LibraryVersion "1.612" DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib_extras/Discrete \nControl Blocks/Discrete\nPI Controller" SourceType "Discrete PI Controller" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" Kp "Kp" Ki "Ki" Par_Limits "[1.25 0.75]*2*pi*Finit" Init "2*pi*Finit" Ts "Ts" Port { PortNumber 1 Name "W" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Reference Name "Discrete\nRate Limiter" SID 876 Ports [1, 1] Position [520, 121, 570, 169] LibraryVersion "1.612" DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib_extras/Discrete \nControl Blocks/Discrete\nRate Limiter" SourceType "Discrete Rate Limiter" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" R "10" F "-10" Vinit "Finit" Ts "Ts" } Block { BlockType Reference Name "Discrete\nVariable Frequency\nMean value" SID 877 Ports [2, 1] Position [205, 208, 265, 277] LibraryVersion "1.612" DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib_extras/Discrete\nMeasurements/Discrete\nVariable Frequency\nMean value" SourceType "Discrete Variable-Frequency Mean Value" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" Finit "Finit" Fmin "45" Vinit "0" Ts "Ts" } Block { BlockType Reference Name "Discrete \n2nd-Order\nFilter" SID 878 Ports [1, 1] Position [610, 114, 665, 176] LibraryVersion "1.612" DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib_extras/Discrete \nControl Blocks/Discrete \n2nd-Order\nFilter" SourceType "Discrete 2nd-Order Filter" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" FilterType "Lowpass" Fo "25" Zeta "0.707" Ts "Ts" Initialize on Vac_Init "[0 0 Finit]" Vdc_Init "Finit" PlotResponse off param1 "[1 500 0.1]" } Block { BlockType DiscreteIntegrator Name "Discrete-Time\nIntegrator" SID 879 Ports [1, 1] Position [425, 227, 465, 263] ShowName off IntegratorMethod "Integration: Forward Euler" ExternalReset "none" InitialConditionSource "internal" InitialCondition "(Phase_Init-90)*pi/180" SampleTime "Ts" OutDataType "sfix(16)" OutScaling "2^0" ICPrevOutput "DiscIntNeverNeededParam" ICPrevScaledInput "DiscIntNeverNeededParam" } Block { BlockType Gain Name "Gain10" SID 880 Position [430, 128, 485, 162] ShowName off Gain "1/2/pi" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Gain12" SID 881 Position [80, 226, 105, 254] ShowName off ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Math Name "Math\nFunction" SID 882 Ports [2, 1] Position [520, 225, 550, 305] ShowName off Operator "mod" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Product Name "Product1" SID 883 Ports [2, 1] Position [130, 221, 160, 294] ShowName off OutDataType "sfix(16)" OutScaling "2^0" RndMeth "Floor" } Block { BlockType Trigonometry Name "Trigonometric\nFunction6" SID 884 Ports [1, 1] Position [615, 254, 645, 276] NamePlacement "alternate" ShowName off Operator "cos" } Block { BlockType UnitDelay Name "Unit Delay1" SID 885 Position [700, 135, 720, 155] ShowName off X0 "Finit" SampleTime "Ts" } Block { BlockType Outport Name "Freq" SID 886 Position [780, 138, 810, 152] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "wt" SID 887 Position [735, 228, 765, 242] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Math\nFunction" SrcPort 1 Points [30, 0] Branch { Points [0, -30] DstBlock "wt" DstPort 1 } Branch { DstBlock "Trigonometric\nFunction6" DstPort 1 } } Line { SrcBlock "Trigonometric\nFunction6" SrcPort 1 Points [20, 0; 0, 65; -580, 0; 0, -55] DstBlock "Product1" DstPort 2 } Line { SrcBlock "Unit Delay1" SrcPort 1 Points [25, 0] Branch { Points [0, -40; -575, 0; 0, 120] DstBlock "Discrete\nVariable Frequency\nMean value" DstPort 1 } Branch { DstBlock "Freq" DstPort 1 } } Line { SrcBlock "Discrete \n2nd-Order\nFilter" SrcPort 1 DstBlock "Unit Delay1" DstPort 1 } Line { SrcBlock "Discrete\nRate Limiter" SrcPort 1 DstBlock "Discrete \n2nd-Order\nFilter" DstPort 1 } Line { SrcBlock "Gain10" SrcPort 1 DstBlock "Discrete\nRate Limiter" DstPort 1 } Line { Name "W" Labels [0, 0] SrcBlock "Discrete\nPI Controller" SrcPort 1 Points [35, 0] Branch { Points [0, -100] DstBlock "Gain10" DstPort 1 } Branch { DstBlock "Discrete-Time\nIntegrator" DstPort 1 } } Line { SrcBlock "Product1" SrcPort 1 DstBlock "Discrete\nVariable Frequency\nMean value" DstPort 2 } Line { SrcBlock "Discrete\nVariable Frequency\nMean value" SrcPort 1 DstBlock "Discrete\nPI Controller" DstPort 1 } Line { SrcBlock "Discrete-Time\nIntegrator" SrcPort 1 DstBlock "Math\nFunction" DstPort 1 } Line { SrcBlock "Constant4" SrcPort 1 DstBlock "Math\nFunction" DstPort 2 } Line { SrcBlock "V(pu)" SrcPort 1 DstBlock "Gain12" DstPort 1 } Line { SrcBlock "Gain12" SrcPort 1 DstBlock "Product1" DstPort 1 } Annotation { Name "Pierre Giroux, Gilbert Sybille\nPower System Laboratory, IREQ\nHydro-Quebec" Position [100, 51] } Annotation { Name "Note: PLL synchronized on positive peak of input " Position [206, 385] FontSize 14 } Annotation { Name "Discrete 1-phase PLL " Position [109, 19] FontSize 14 FontWeight "bold" } Annotation { Name "Note: -sin( a ) * sin( b ) = 1/2 * cos( a+b ) - 1/2 * cos(a-b) " Position [226, 410] FontSize 14 } } } Block { BlockType SubSystem Name "BL2" SID 888 Ports [1, 1] Position [400, 155, 470, 205] NamePlacement "alternate" MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "BL2" Location [226, 448, 732, 611] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Freq" SID 889 Position [25, 48, 55, 62] IconDisplay "Port number" PortDimensions "1" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant1" SID 890 Position [125, 66, 145, 84] ShowName off Value "0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant2" SID 891 Position [210, 80, 240, 100] ShowName off Value "1e-5" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant3" SID 892 Position [310, 81, 330, 99] ShowName off OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Gain" SID 893 Position [80, 40, 110, 70] ShowName off Gain "Ts" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Product Name "Product" SID 894 Ports [2, 1] Position [360, 52, 390, 103] ShowName off Inputs "/*" OutDataType "sfix(16)" OutScaling "2^0" RndMeth "Floor" } Block { BlockType RelationalOperator Name "Relational\nOperator1" SID 895 Ports [2, 1] Position [175, 45, 200, 85] ShowName off Operator "~=" } Block { BlockType Switch Name "Switch" SID 896 Position [260, 25, 290, 105] ShowName off Threshold "0.5" } Block { BlockType Outport Name "Ns/c" SID 897 Position [415, 73, 445, 87] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "Constant3" SrcPort 1 DstBlock "Product" DstPort 2 } Line { SrcBlock "Switch" SrcPort 1 DstBlock "Product" DstPort 1 } Line { SrcBlock "Relational\nOperator1" SrcPort 1 DstBlock "Switch" DstPort 2 } Line { SrcBlock "Constant2" SrcPort 1 DstBlock "Switch" DstPort 3 } Line { SrcBlock "Gain" SrcPort 1 Points [10, 0] Branch { Points [0, -15] DstBlock "Switch" DstPort 1 } Branch { DstBlock "Relational\nOperator1" DstPort 1 } } Line { SrcBlock "Constant1" SrcPort 1 DstBlock "Relational\nOperator1" DstPort 2 } Line { SrcBlock "Freq" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "Product" SrcPort 1 DstBlock "Ns/c" DstPort 1 } } } Block { BlockType SubSystem Name "BL3" SID 898 Ports [2, 3] Position [385, 311, 470, 379] NamePlacement "alternate" MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "BL3" Location [13, 268, 864, 714] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Freq" SID 899 Position [30, 68, 60, 82] IconDisplay "Port number" PortDimensions "1" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "sin(wt)" SID 900 Position [60, 188, 90, 202] Port "2" IconDisplay "Port number" PortDimensions "1" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType SubSystem Name "Latch" SID 901 Ports [2, 2] Position [560, 39, 595, 106] DropShadow on FontName "Arial" ShowPortLabels "none" MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Latch" Location [488, 129, 931, 287] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "S" SID 902 Position [25, 35, 45, 55] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "R" SID 903 Position [55, 45, 75, 65] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Demux Name "Demux" SID 904 Ports [1, 2] Position [280, 35, 320, 70] Outputs "2" } Block { BlockType Fcn Name "Fcn" SID 905 Position [175, 103, 210, 127] BlockMirror on Expr "u[1]>.2" } Block { BlockType CombinatorialLogic Name "Logic" SID 906 Position [200, 35, 255, 75] TruthTable "[0 1;1 0;0 1;0 1;1 0;1 0;0 0;0 0]" } Block { BlockType Mux Name "Mux" SID 907 Ports [3, 1] Position [140, 39, 170, 71] Inputs "3" } Block { BlockType UnitDelay Name "Unit Delay" SID 908 Position [265, 98, 300, 132] BlockMirror on SampleTime "Ts" } Block { BlockType Outport Name "1" SID 909 Position [360, 35, 380, 55] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" InitialOutput "0" } Block { BlockType Outport Name "0" SID 910 Position [400, 50, 420, 70] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" InitialOutput "0" } Line { SrcBlock "Demux" SrcPort 1 Points [15, 0] Branch { Points [0, 70] DstBlock "Unit Delay" DstPort 1 } Branch { DstBlock "1" DstPort 1 } } Line { SrcBlock "Fcn" SrcPort 1 Points [-55, 0; 0, -50] DstBlock "Mux" DstPort 3 } Line { SrcBlock "R" SrcPort 1 DstBlock "Mux" DstPort 2 } Line { SrcBlock "S" SrcPort 1 DstBlock "Mux" DstPort 1 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Logic" DstPort 1 } Line { SrcBlock "Logic" SrcPort 1 DstBlock "Demux" DstPort 1 } Line { SrcBlock "Demux" SrcPort 2 DstBlock "0" DstPort 1 } Line { SrcBlock "Unit Delay" SrcPort 1 DstBlock "Fcn" DstPort 1 } } } Block { BlockType Logic Name "Logical\nOperator2" SID 911 Ports [2, 1] Position [495, 36, 525, 74] ShowName off } Block { BlockType Logic Name "Logical\nOperator4" SID 912 Ports [2, 1] Position [495, 156, 525, 194] ShowName off } Block { BlockType Product Name "Product2" SID 913 Ports [2, 1] Position [95, 24, 120, 91] ShowName off OutDataType "sfix(16)" OutScaling "2^0" RndMeth "Floor" } Block { BlockType RelationalOperator Name "Relational\nOperator" SID 914 Ports [2, 1] Position [370, 27, 400, 58] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator1" SID 915 Ports [2, 1] Position [725, 260, 755, 315] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator2" SID 916 Ports [2, 1] Position [375, 97, 405, 128] ShowName off Operator "<" } Block { BlockType RelationalOperator Name "Relational\nOperator3" SID 917 Ports [2, 1] Position [725, 325, 755, 380] ShowName off Operator "<" } Block { BlockType Scope Name "Scope" SID 918 Ports [1] Position [210, 139, 240, 171] Floating off Location [697, 489, 1021, 728] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "-0.0004" YMax "0.0004" DataFormat "StructureWithTime" LimitDataPoints off SampleInput on SampleTime "Ts" } Block { BlockType Sum Name "Sum5" SID 919 Ports [2, 1] Position [280, 23, 305, 72] ShowName off Inputs "+-" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Sum Name "Sum6" SID 920 Ports [2, 1] Position [280, 92, 305, 143] ShowName off OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Trigonometry Name "Trigonometric\nFunction7" SID 921 Ports [1, 1] Position [150, 49, 180, 71] NamePlacement "alternate" ShowName off } Block { BlockType UnitDelay Name "Unit Delay" SID 922 Position [500, 113, 520, 137] BlockMirror on ShowName off SampleTime "Ts" } Block { BlockType UnitDelay Name "Unit Delay1" SID 923 Position [500, 213, 520, 237] BlockMirror on ShowName off SampleTime "Ts" } Block { BlockType UnitDelay Name "Unit Delay2" SID 924 Position [650, 290, 670, 310] ShowName off SampleTime "Ts" } Block { BlockType Constant Name "alpha2" SID 925 Position [220, 25, 240, 45] ShowName off Value "0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "alpha9" SID 926 Position [20, 29, 60, 51] ShowName off Value "pi*Ts" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "SqWave" SID 927 Position [655, 48, 685, 62] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Sync +" SID 928 Position [795, 283, 825, 297] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Sync -" SID 929 Position [795, 348, 825, 362] Port "3" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "alpha9" SrcPort 1 DstBlock "Product2" DstPort 1 } Line { SrcBlock "Product2" SrcPort 1 DstBlock "Trigonometric\nFunction7" DstPort 1 } Line { SrcBlock "Latch" SrcPort 1 Points [25, 0] Branch { DstBlock "SqWave" DstPort 1 } Branch { Points [0, 170] Branch { DstBlock "Unit Delay1" DstPort 1 } Branch { Points [0, 50] Branch { Points [0, 25] DstBlock "Unit Delay2" DstPort 1 } Branch { Points [70, 0] Branch { DstBlock "Relational\nOperator1" DstPort 1 } Branch { Points [0, 65] DstBlock "Relational\nOperator3" DstPort 1 } } } } } Line { SrcBlock "Unit Delay1" SrcPort 1 Points [-30, 0; 0, -40] DstBlock "Logical\nOperator4" DstPort 2 } Line { SrcBlock "Logical\nOperator4" SrcPort 1 Points [15, 0] DstBlock "Latch" DstPort 2 } Line { SrcBlock "Relational\nOperator2" SrcPort 1 Points [10, 0; 0, 50] DstBlock "Logical\nOperator4" DstPort 1 } Line { SrcBlock "Unit Delay" SrcPort 1 Points [-30, 0; 0, -60] DstBlock "Logical\nOperator2" DstPort 2 } Line { SrcBlock "Latch" SrcPort 2 Points [10, 0; 0, 35] DstBlock "Unit Delay" DstPort 1 } Line { SrcBlock "Logical\nOperator2" SrcPort 1 DstBlock "Latch" DstPort 1 } Line { SrcBlock "Relational\nOperator" SrcPort 1 DstBlock "Logical\nOperator2" DstPort 1 } Line { SrcBlock "Sum6" SrcPort 1 DstBlock "Relational\nOperator2" DstPort 2 } Line { SrcBlock "Sum5" SrcPort 1 DstBlock "Relational\nOperator" DstPort 2 } Line { SrcBlock "alpha2" SrcPort 1 Points [10, 0] Branch { Points [0, 70] DstBlock "Sum6" DstPort 1 } Branch { DstBlock "Sum5" DstPort 1 } } Line { SrcBlock "Relational\nOperator1" SrcPort 1 DstBlock "Sync +" DstPort 1 } Line { SrcBlock "Relational\nOperator3" SrcPort 1 DstBlock "Sync -" DstPort 1 } Line { SrcBlock "Unit Delay2" SrcPort 1 Points [5, 0] Branch { DstBlock "Relational\nOperator1" DstPort 2 } Branch { Points [0, 65] DstBlock "Relational\nOperator3" DstPort 2 } } Line { SrcBlock "Trigonometric\nFunction7" SrcPort 1 Points [5, 0] Branch { Points [0, 95] DstBlock "Scope" DstPort 1 } Branch { Points [50, 0] Branch { Points [0, 70] DstBlock "Sum6" DstPort 2 } Branch { DstBlock "Sum5" DstPort 2 } } } Line { SrcBlock "Freq" SrcPort 1 DstBlock "Product2" DstPort 2 } Line { SrcBlock "sin(wt)" SrcPort 1 Points [245, 0; 0, -90] Branch { Points [0, -70] DstBlock "Relational\nOperator" DstPort 1 } Branch { DstBlock "Relational\nOperator2" DstPort 1 } } } } Block { BlockType SubSystem Name "BL4" SID 930 Ports [4, 1] Position [675, 19, 755, 101] NamePlacement "alternate" MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off MaskPromptString "Sample time:" MaskStyleString "edit" MaskTunableValueString "on" MaskEnableString "on" MaskVisibilityString "on" MaskToolTipString "on" MaskVariables "Ts=@1;" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskPortRotate "default" MaskIconUnits "autoscale" MaskValueString "Ts" System { Name "BL4" Location [19, 101, 1011, 660] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Ns/c" SID 931 Position [355, 28, 385, 42] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "Alpha" SID 932 Position [145, 98, 175, 112] Port "2" IconDisplay "Port number" PortDimensions "1" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "Sync +" SID 933 Position [75, 118, 105, 132] Port "3" IconDisplay "Port number" PortDimensions "1" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "SqWave" SID 934 Position [100, 353, 130, 367] Port "4" IconDisplay "Port number" PortDimensions "1" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Alpha\n90.2" } Block { BlockType CombinatorialLogic Name "Logic" SID 1029 Position [200, 35, 255, 75] TruthTable "[0 1;1 0;0 1;0 1;1 0;1 0;0 0;0 0]" } Block { BlockType Mux Name "Mux" SID 1030 Ports [3, 1] Position [140, 39, 170, 71] Inputs "3" } Block { BlockType UnitDelay Name "Unit Delay" SID 1031 Position [265, 98, 300, 132] BlockMirror on SampleTime "Ts" } Block { BlockType Outport Name "1" SID 1032 Position [360, 35, 380, 55] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" InitialOutput "0" } Block { BlockType Outport Name "0" SID 1033 Position [400, 50, 420, 70] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" InitialOutput "0" } Line { SrcBlock "Unit Delay" SrcPort 1 DstBlock "Fcn" DstPort 1 } Line { SrcBlock "Demux" SrcPort 2 DstBlock "0" DstPort 1 } Line { SrcBlock "Logic" SrcPort 1 DstBlock "Demux" DstPort 1 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Logic" DstPort 1 } Line { SrcBlock "S" SrcPort 1 DstBlock "Mux" DstPort 1 } Line { SrcBlock "R" SrcPort 1 DstBlock "Mux" DstPort 2 } Line { SrcBlock "Fcn" SrcPort 1 Points [-55, 0; 0, -50] DstBlock "Mux" DstPort 3 } Line { SrcBlock "Demux" SrcPort 1 Points [15, 0] Branch { DstBlock "1" DstPort 1 } Branch { Points [0, 70] DstBlock "Unit Delay" DstPort 1 } } } } Block { BlockType Logic Name "Logical\nOperator2" SID 1034 Ports [2, 1] Position [495, 36, 525, 74] ShowName off } Block { BlockType Logic Name "Logical\nOperator4" SID 1035 Ports [2, 1] Position [495, 156, 525, 194] ShowName off } Block { BlockType Product Name "Product2" SID 1036 Ports [2, 1] Position [95, 24, 120, 91] ShowName off OutDataType "sfix(16)" OutScaling "2^0" RndMeth "Floor" } Block { BlockType RelationalOperator Name "Relational\nOperator" SID 1037 Ports [2, 1] Position [370, 27, 400, 58] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator1" SID 1038 Ports [2, 1] Position [725, 260, 755, 315] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator2" SID 1039 Ports [2, 1] Position [375, 97, 405, 128] ShowName off Operator "<" } Block { BlockType RelationalOperator Name "Relational\nOperator3" SID 1040 Ports [2, 1] Position [725, 325, 755, 380] ShowName off Operator "<" } Block { BlockType Scope Name "Scope" SID 1041 Ports [1] Position [210, 139, 240, 171] Floating off Location [697, 489, 1021, 728] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "-0.0004" YMax "0.0004" DataFormat "StructureWithTime" LimitDataPoints off SampleInput on SampleTime "Ts" } Block { BlockType Sum Name "Sum5" SID 1042 Ports [2, 1] Position [280, 23, 305, 72] ShowName off Inputs "+-" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Sum Name "Sum6" SID 1043 Ports [2, 1] Position [280, 92, 305, 143] ShowName off OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Trigonometry Name "Trigonometric\nFunction7" SID 1044 Ports [1, 1] Position [150, 49, 180, 71] NamePlacement "alternate" ShowName off } Block { BlockType UnitDelay Name "Unit Delay" SID 1045 Position [500, 113, 520, 137] BlockMirror on ShowName off SampleTime "Ts" } Block { BlockType UnitDelay Name "Unit Delay1" SID 1046 Position [500, 213, 520, 237] BlockMirror on ShowName off SampleTime "Ts" } Block { BlockType UnitDelay Name "Unit Delay2" SID 1047 Position [650, 290, 670, 310] ShowName off SampleTime "Ts" } Block { BlockType Constant Name "alpha2" SID 1048 Position [220, 25, 240, 45] ShowName off Value "0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "alpha9" SID 1049 Position [20, 29, 60, 51] ShowName off Value "pi*Ts" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "SqWave" SID 1050 Position [655, 48, 685, 62] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Sync +" SID 1051 Position [795, 283, 825, 297] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Sync -" SID 1052 Position [795, 348, 825, 362] Port "3" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "sin(wt)" SrcPort 1 Points [245, 0; 0, -90] Branch { DstBlock "Relational\nOperator2" DstPort 1 } Branch { Points [0, -70] DstBlock "Relational\nOperator" DstPort 1 } } Line { SrcBlock "Freq" SrcPort 1 DstBlock "Product2" DstPort 2 } Line { SrcBlock "Trigonometric\nFunction7" SrcPort 1 Points [5, 0] Branch { Points [0, 95] DstBlock "Scope" DstPort 1 } Branch { Points [50, 0] Branch { DstBlock "Sum5" DstPort 2 } Branch { Points [0, 70] DstBlock "Sum6" DstPort 2 } } } Line { SrcBlock "Unit Delay2" SrcPort 1 Points [5, 0] Branch { Points [0, 65] DstBlock "Relational\nOperator3" DstPort 2 } Branch { DstBlock "Relational\nOperator1" DstPort 2 } } Line { SrcBlock "Relational\nOperator3" SrcPort 1 DstBlock "Sync -" DstPort 1 } Line { SrcBlock "Relational\nOperator1" SrcPort 1 DstBlock "Sync +" DstPort 1 } Line { SrcBlock "alpha2" SrcPort 1 Points [10, 0] Branch { DstBlock "Sum5" DstPort 1 } Branch { Points [0, 70] DstBlock "Sum6" DstPort 1 } } Line { SrcBlock "Sum5" SrcPort 1 DstBlock "Relational\nOperator" DstPort 2 } Line { SrcBlock "Sum6" SrcPort 1 DstBlock "Relational\nOperator2" DstPort 2 } Line { SrcBlock "Relational\nOperator" SrcPort 1 DstBlock "Logical\nOperator2" DstPort 1 } Line { SrcBlock "Logical\nOperator2" SrcPort 1 DstBlock "Latch" DstPort 1 } Line { SrcBlock "Latch" SrcPort 2 Points [10, 0; 0, 35] DstBlock "Unit Delay" DstPort 1 } Line { SrcBlock "Unit Delay" SrcPort 1 Points [-30, 0; 0, -60] DstBlock "Logical\nOperator2" DstPort 2 } Line { SrcBlock "Relational\nOperator2" SrcPort 1 Points [10, 0; 0, 50] DstBlock "Logical\nOperator4" DstPort 1 } Line { SrcBlock "Logical\nOperator4" SrcPort 1 Points [15, 0] DstBlock "Latch" DstPort 2 } Line { SrcBlock "Unit Delay1" SrcPort 1 Points [-30, 0; 0, -40] DstBlock "Logical\nOperator4" DstPort 2 } Line { SrcBlock "Latch" SrcPort 1 Points [25, 0] Branch { Points [0, 170] Branch { Points [0, 50] Branch { Points [70, 0] Branch { Points [0, 65] DstBlock "Relational\nOperator3" DstPort 1 } Branch { DstBlock "Relational\nOperator1" DstPort 1 } } Branch { Points [0, 25] DstBlock "Unit Delay2" DstPort 1 } } Branch { DstBlock "Unit Delay1" DstPort 1 } } Branch { DstBlock "SqWave" DstPort 1 } } Line { SrcBlock "Product2" SrcPort 1 DstBlock "Trigonometric\nFunction7" DstPort 1 } Line { SrcBlock "alpha9" SrcPort 1 DstBlock "Product2" DstPort 1 } } } Block { BlockType SubSystem Name "BL7" SID 1053 Ports [4, 1] Position [675, 169, 755, 251] NamePlacement "alternate" MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off MaskPromptString "Sample time:" MaskStyleString "edit" MaskTunableValueString "on" MaskEnableString "on" MaskVisibilityString "on" MaskToolTipString "on" MaskVariables "Ts=@1;" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskPortRotate "default" MaskIconUnits "autoscale" MaskValueString "Ts" System { Name "BL7" Location [19, 101, 1011, 660] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Ns/c" SID 1054 Position [355, 28, 385, 42] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "Alpha" SID 1055 Position [75, 98, 105, 112] Port "2" IconDisplay "Port number" PortDimensions "1" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "Sync -" SID 1056 Position [140, 118, 170, 132] Port "3" IconDisplay "Port number" PortDimensions "1" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "SqWave" SID 1057 Position [100, 353, 130, 367] Port "4" IconDisplay "Port number" PortDimensions "1" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Alpha\n90.2" } Block { BlockType CombinatorialLogic Name "Logic" SID 1152 Position [200, 35, 255, 75] TruthTable "[0 1;1 0;0 1;0 1;1 0;1 0;0 0;0 0]" } Block { BlockType Mux Name "Mux" SID 1153 Ports [3, 1] Position [140, 39, 170, 71] Inputs "3" } Block { BlockType UnitDelay Name "Unit Delay" SID 1154 Position [265, 98, 300, 132] BlockMirror on SampleTime "Ts" } Block { BlockType Outport Name "1" SID 1155 Position [360, 35, 380, 55] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" InitialOutput "0" } Block { BlockType Outport Name "0" SID 1156 Position [400, 50, 420, 70] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" InitialOutput "0" } Line { SrcBlock "Demux" SrcPort 1 Points [15, 0] Branch { Points [0, 70] DstBlock "Unit Delay" DstPort 1 } Branch { DstBlock "1" DstPort 1 } } Line { SrcBlock "Fcn" SrcPort 1 Points [-55, 0; 0, -50] DstBlock "Mux" DstPort 3 } Line { SrcBlock "R" SrcPort 1 DstBlock "Mux" DstPort 2 } Line { SrcBlock "S" SrcPort 1 DstBlock "Mux" DstPort 1 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Logic" DstPort 1 } Line { SrcBlock "Logic" SrcPort 1 DstBlock "Demux" DstPort 1 } Line { SrcBlock "Demux" SrcPort 2 DstBlock "0" DstPort 1 } Line { SrcBlock "Unit Delay" SrcPort 1 DstBlock "Fcn" DstPort 1 } } } Block { BlockType Logic Name "Logical\nOperator2" SID 1157 Ports [2, 1] Position [495, 36, 525, 74] ShowName off } Block { BlockType Logic Name "Logical\nOperator4" SID 1158 Ports [2, 1] Position [495, 156, 525, 194] ShowName off } Block { BlockType Product Name "Product2" SID 1159 Ports [2, 1] Position [95, 24, 120, 91] ShowName off OutDataType "sfix(16)" OutScaling "2^0" RndMeth "Floor" } Block { BlockType RelationalOperator Name "Relational\nOperator" SID 1160 Ports [2, 1] Position [370, 27, 400, 58] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator1" SID 1161 Ports [2, 1] Position [725, 260, 755, 315] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator2" SID 1162 Ports [2, 1] Position [375, 97, 405, 128] ShowName off Operator "<" } Block { BlockType RelationalOperator Name "Relational\nOperator3" SID 1163 Ports [2, 1] Position [725, 325, 755, 380] ShowName off Operator "<" } Block { BlockType Scope Name "Scope" SID 1164 Ports [1] Position [210, 139, 240, 171] Floating off Location [697, 489, 1021, 728] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "-0.0004" YMax "0.0004" DataFormat "StructureWithTime" LimitDataPoints off SampleInput on SampleTime "Ts" } Block { BlockType Sum Name "Sum5" SID 1165 Ports [2, 1] Position [280, 23, 305, 72] ShowName off Inputs "+-" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Sum Name "Sum6" SID 1166 Ports [2, 1] Position [280, 92, 305, 143] ShowName off OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Trigonometry Name "Trigonometric\nFunction7" SID 1167 Ports [1, 1] Position [150, 49, 180, 71] NamePlacement "alternate" ShowName off } Block { BlockType UnitDelay Name "Unit Delay" SID 1168 Position [500, 113, 520, 137] BlockMirror on ShowName off SampleTime "Ts" } Block { BlockType UnitDelay Name "Unit Delay1" SID 1169 Position [500, 213, 520, 237] BlockMirror on ShowName off SampleTime "Ts" } Block { BlockType UnitDelay Name "Unit Delay2" SID 1170 Position [650, 290, 670, 310] ShowName off SampleTime "Ts" } Block { BlockType Constant Name "alpha2" SID 1171 Position [220, 25, 240, 45] ShowName off Value "0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "alpha9" SID 1172 Position [20, 29, 60, 51] ShowName off Value "pi*Ts" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "SqWave" SID 1173 Position [655, 48, 685, 62] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Sync +" SID 1174 Position [795, 283, 825, 297] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Sync -" SID 1175 Position [795, 348, 825, 362] Port "3" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "alpha9" SrcPort 1 DstBlock "Product2" DstPort 1 } Line { SrcBlock "Product2" SrcPort 1 DstBlock "Trigonometric\nFunction7" DstPort 1 } Line { SrcBlock "Latch" SrcPort 1 Points [25, 0] Branch { DstBlock "SqWave" DstPort 1 } Branch { Points [0, 170] Branch { DstBlock "Unit Delay1" DstPort 1 } Branch { Points [0, 50] Branch { Points [0, 25] DstBlock "Unit Delay2" DstPort 1 } Branch { Points [70, 0] Branch { DstBlock "Relational\nOperator1" DstPort 1 } Branch { Points [0, 65] DstBlock "Relational\nOperator3" DstPort 1 } } } } } Line { SrcBlock "Unit Delay1" SrcPort 1 Points [-30, 0; 0, -40] DstBlock "Logical\nOperator4" DstPort 2 } Line { SrcBlock "Logical\nOperator4" SrcPort 1 Points [15, 0] DstBlock "Latch" DstPort 2 } Line { SrcBlock "Relational\nOperator2" SrcPort 1 Points [10, 0; 0, 50] DstBlock "Logical\nOperator4" DstPort 1 } Line { SrcBlock "Unit Delay" SrcPort 1 Points [-30, 0; 0, -60] DstBlock "Logical\nOperator2" DstPort 2 } Line { SrcBlock "Latch" SrcPort 2 Points [10, 0; 0, 35] DstBlock "Unit Delay" DstPort 1 } Line { SrcBlock "Logical\nOperator2" SrcPort 1 DstBlock "Latch" DstPort 1 } Line { SrcBlock "Relational\nOperator" SrcPort 1 DstBlock "Logical\nOperator2" DstPort 1 } Line { SrcBlock "Sum6" SrcPort 1 DstBlock "Relational\nOperator2" DstPort 2 } Line { SrcBlock "Sum5" SrcPort 1 DstBlock "Relational\nOperator" DstPort 2 } Line { SrcBlock "alpha2" SrcPort 1 Points [10, 0] Branch { Points [0, 70] DstBlock "Sum6" DstPort 1 } Branch { DstBlock "Sum5" DstPort 1 } } Line { SrcBlock "Relational\nOperator1" SrcPort 1 DstBlock "Sync +" DstPort 1 } Line { SrcBlock "Relational\nOperator3" SrcPort 1 DstBlock "Sync -" DstPort 1 } Line { SrcBlock "Unit Delay2" SrcPort 1 Points [5, 0] Branch { DstBlock "Relational\nOperator1" DstPort 2 } Branch { Points [0, 65] DstBlock "Relational\nOperator3" DstPort 2 } } Line { SrcBlock "Trigonometric\nFunction7" SrcPort 1 Points [5, 0] Branch { Points [50, 0] Branch { Points [0, 70] DstBlock "Sum6" DstPort 2 } Branch { DstBlock "Sum5" DstPort 2 } } Branch { Points [0, 95] DstBlock "Scope" DstPort 1 } } Line { SrcBlock "Freq" SrcPort 1 DstBlock "Product2" DstPort 2 } Line { SrcBlock "sin(wt)" SrcPort 1 Points [245, 0; 0, -90] Branch { Points [0, -70] DstBlock "Relational\nOperator" DstPort 1 } Branch { DstBlock "Relational\nOperator2" DstPort 1 } } } } Block { BlockType SubSystem Name "BL7" SID 1176 Ports [4, 1] Position [675, 169, 755, 251] NamePlacement "alternate" MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off MaskPromptString "Sample time:" MaskStyleString "edit" MaskTunableValueString "on" MaskEnableString "on" MaskVisibilityString "on" MaskToolTipString "on" MaskVariables "Ts=@1;" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskPortRotate "default" MaskIconUnits "autoscale" MaskValueString "Ts" System { Name "BL7" Location [19, 101, 1011, 660] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Ns/c" SID 1177 Position [355, 28, 385, 42] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "Alpha" SID 1178 Position [75, 98, 105, 112] Port "2" IconDisplay "Port number" PortDimensions "1" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "Sync -" SID 1179 Position [140, 118, 170, 132] Port "3" IconDisplay "Port number" PortDimensions "1" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "SqWave" SID 1180 Position [100, 353, 130, 367] Port "4" IconDisplay "Port number" PortDimensions "1" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Alpha\n90" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } Port { PortNumber 2 Name "" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } Port { PortNumber 3 Name "" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } Port { PortNumber 4 Name "" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } Port { PortNumber 5 Name "" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Reference Name "EXCITATION" SID 1348 Ports [4, 1] Position [510, 158, 560, 227] LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib/Machines/Excitation\nSystem" SourceType "Excitation System" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" tr "20e-3" reg "[ 200, 0.001 ]" exc "[ 1, 0 ]" tgr "[ 0, 0 ]" damp "[ 0.001, 0.1 ]" sat "[ 0, 0 ]" lim "[ 0, 7, 0 ]" v0 "[1,1.2256]" } Block { BlockType Reference Name "Generic\nPower System Stabilizer" SID 1349 Ports [1, 1] Position [415, 333, 470, 377] LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib/Machines/Generic\nPower System Stabilizer" SourceType "Generic Power System Stabilizer" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" Tsensor "15e-3" K "2.5/10" Twashout "1" Tleadlag1 "[0.06 1]" Tleadlag2 "[0 0]" VSlimits "[-0.15 0.15]" Vinit "0" Plot_On off MagdB_On on FreqRange "logspace(-2,2,500)" } Block { BlockType Reference Name "HTG" SID 1350 Ports [5, 2] Position [505, 33, 555, 137] LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib/Machines/Hydraulic Turbine\nand Governor" SourceType "Hydraulic Turbine and Governor" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" sm "[ 10/3 0.07 ]" gate "[ 0.01 0.97518 -0.1 0.1 ]" reg "[ 0.05 1.163 0.105 0 0.01 ]" hyd "[ 0 2.67 ]" dref "0" po "0.763568" } Block { BlockType Sum Name "Sum2" SID 1351 Ports [2, 1] Position [360, 337, 385, 368] ShowName off Inputs "+-" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Terminator Name "Terminator" SID 1352 Position [605, 102, 615, 118] ShowName off } Block { BlockType Constant Name "Vref" SID 1353 Position [415, 150, 465, 170] OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Goto Name "dw" SID 1354 Position [170, 360, 210, 390] GotoTag "dw1" TagVisibility "global" } Block { BlockType Goto Name "wm" SID 1355 Position [210, 300, 250, 330] GotoTag "wm1" TagVisibility "global" } Block { BlockType Constant Name "wref" SID 1356 Position [420, 25, 470, 45] OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Pm" SID 1357 Position [615, 53, 645, 67] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" InitialOutput "0" } Block { BlockType Outport Name "Vf" SID 1358 Position [625, 188, 655, 202] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" InitialOutput "0" } Line { SrcBlock "Sum2" SrcPort 1 DstBlock "Generic\nPower System Stabilizer" DstPort 1 } Line { Name "" Labels [0, 0] SrcBlock "Bus\nSelector" SrcPort 1 Points [155, 0; 0, 10] DstBlock "EXCITATION" DstPort 2 } Line { SrcBlock "EXCITATION" SrcPort 1 DstBlock "Vf" DstPort 1 } Line { Name "" Labels [0, 0] SrcBlock "Bus\nSelector" SrcPort 2 DstBlock "EXCITATION" DstPort 3 } Line { SrcBlock "HTG" SrcPort 1 Points [15, 0] Branch { Points [0, 260; -235, 0; 0, 25] DstBlock "Sum2" DstPort 1 } Branch { DstBlock "Pm" DstPort 1 } } Line { SrcBlock "wref" SrcPort 1 Points [5, 0; 0, 10] DstBlock "HTG" DstPort 1 } Line { SrcBlock "Pref" SrcPort 1 DstBlock "HTG" DstPort 2 } Line { Name "" Labels [0, 0] SrcBlock "Bus\nSelector" SrcPort 3 Points [70, 0] Branch { Points [0, 90] DstBlock "wm" DstPort 1 } Branch { Points [115, 0; 0, -140] DstBlock "HTG" DstPort 3 } } Line { Name "" Labels [1, 0] SrcBlock "Bus\nSelector" SrcPort 5 Points [200, 0] Branch { Points [0, 85] DstBlock "Sum2" DstPort 2 } Branch { Points [0, -170] DstBlock "HTG" DstPort 4 } } Line { Name "" Labels [0, 0] SrcBlock "Bus\nSelector" SrcPort 4 Points [5, 0] Branch { Points [0, 125] DstBlock "dw" DstPort 1 } Branch { Points [210, 0; 0, -125] DstBlock "HTG" DstPort 5 } } Line { SrcBlock "m" SrcPort 1 DstBlock "Bus\nSelector" DstPort 1 } Line { SrcBlock "Vref" SrcPort 1 Points [5, 0; 0, 10] DstBlock "EXCITATION" DstPort 1 } Line { SrcBlock "HTG" SrcPort 2 DstBlock "Terminator" DstPort 1 } Line { SrcBlock "Generic\nPower System Stabilizer" SrcPort 1 Points [20, 0] DstBlock "EXCITATION" DstPort 4 } } } Block { BlockType SubSystem Name "Reg_M2" SID 1360 Ports [2, 2] Position [1665, 226, 1715, 284] BackgroundColor "yellow" DropShadow on MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Reg_M2" Location [198, 175, 957, 615] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "m" SID 1361 Position [15, 218, 45, 232] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "Pref" SID 1362 Position [360, 58, 390, 72] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType BusSelector Name "Bus\nSelector" SID 1363 Ports [1, 5] Position [60, 164, 65, 286] ShowName off OutputSignals "dq0 components.Stator voltage vd (pu),dq0 components.Stator voltage vq (pu),Mechanical.Rotor sp" "eed wm (pu),Mechanical.Rotor speed deviation dw (pu),Output active power Peo (pu)" Port { PortNumber 1 Name "" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } Port { PortNumber 2 Name "" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } Port { PortNumber 3 Name "" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } Port { PortNumber 4 Name "" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } Port { PortNumber 5 Name "" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Reference Name "EXCITATION" SID 1364 Ports [4, 1] Position [510, 158, 560, 227] LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib/Machines/Excitation\nSystem" SourceType "Excitation System" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" tr "20e-3" reg "[ 200, 0.001 ]" exc "[ 1, 0 ]" tgr "[ 0, 0 ]" damp "[ 0.001, 0.1 ]" sat "[ 0, 0 ]" lim "[ 0, 7, 0 ]" v0 "[1,1.2256]" } Block { BlockType Reference Name "Generic\nPower System Stabilizer" SID 1365 Ports [1, 1] Position [415, 333, 470, 377] LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib/Machines/Generic\nPower System Stabilizer" SourceType "Generic Power System Stabilizer" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" Tsensor "15e-3" K "2.5/10" Twashout "1" Tleadlag1 "[0.06 1]" Tleadlag2 "[0 0]" VSlimits "[-0.15 0.15]" Vinit "0" Plot_On off MagdB_On on FreqRange "logspace(-2,2,500)" } Block { BlockType Reference Name "HTG" SID 1366 Ports [5, 2] Position [505, 33, 555, 137] LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib/Machines/Hydraulic Turbine\nand Governor" SourceType "Hydraulic Turbine and Governor" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" sm "[ 10/3 0.07 ]" gate "[ 0.01 0.97518 -0.1 0.1 ]" reg "[ 0.05 1.163 0.105 0 0.01 ]" hyd "[ 0 2.67 ]" dref "0" po "0.763568" } Block { BlockType Sum Name "Sum2" SID 1367 Ports [2, 1] Position [360, 337, 385, 368] ShowName off Inputs "+-" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Terminator Name "Terminator" SID 1368 Position [605, 102, 615, 118] ShowName off } Block { BlockType Constant Name "Vref" SID 1369 Position [415, 150, 465, 170] OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Goto Name "dw" SID 1370 Position [170, 360, 210, 390] GotoTag "dw2" TagVisibility "global" } Block { BlockType Goto Name "wm" SID 1371 Position [210, 300, 250, 330] GotoTag "wm2" TagVisibility "global" } Block { BlockType Constant Name "wref" SID 1372 Position [420, 25, 470, 45] OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Pm" SID 1373 Position [615, 53, 645, 67] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" InitialOutput "0" } Block { BlockType Outport Name "Vf" SID 1374 Position [625, 188, 655, 202] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" InitialOutput "0" } Line { SrcBlock "Sum2" SrcPort 1 DstBlock "Generic\nPower System Stabilizer" DstPort 1 } Line { Name "" Labels [0, 0] SrcBlock "Bus\nSelector" SrcPort 1 Points [155, 0; 0, 10] DstBlock "EXCITATION" DstPort 2 } Line { SrcBlock "EXCITATION" SrcPort 1 DstBlock "Vf" DstPort 1 } Line { Name "" Labels [0, 0] SrcBlock "Bus\nSelector" SrcPort 2 DstBlock "EXCITATION" DstPort 3 } Line { SrcBlock "HTG" SrcPort 1 Points [15, 0] Branch { Points [0, 260; -235, 0; 0, 25] DstBlock "Sum2" DstPort 1 } Branch { DstBlock "Pm" DstPort 1 } } Line { SrcBlock "wref" SrcPort 1 Points [5, 0; 0, 10] DstBlock "HTG" DstPort 1 } Line { SrcBlock "Pref" SrcPort 1 DstBlock "HTG" DstPort 2 } Line { Name "" Labels [0, 0] SrcBlock "Bus\nSelector" SrcPort 3 Points [70, 0] Branch { Points [0, 90] DstBlock "wm" DstPort 1 } Branch { Points [115, 0; 0, -140] DstBlock "HTG" DstPort 3 } } Line { Name "" Labels [1, 0] SrcBlock "Bus\nSelector" SrcPort 5 Points [200, 0] Branch { Points [0, 85] DstBlock "Sum2" DstPort 2 } Branch { Points [0, -170] DstBlock "HTG" DstPort 4 } } Line { Name "" Labels [0, 0] SrcBlock "Bus\nSelector" SrcPort 4 Points [5, 0] Branch { Points [0, 125] DstBlock "dw" DstPort 1 } Branch { Points [210, 0; 0, -125] DstBlock "HTG" DstPort 5 } } Line { SrcBlock "m" SrcPort 1 DstBlock "Bus\nSelector" DstPort 1 } Line { SrcBlock "Vref" SrcPort 1 Points [5, 0; 0, 10] DstBlock "EXCITATION" DstPort 1 } Line { SrcBlock "HTG" SrcPort 2 DstBlock "Terminator" DstPort 1 } Line { SrcBlock "Generic\nPower System Stabilizer" SrcPort 1 Points [20, 0] DstBlock "EXCITATION" DstPort 4 } } } Block { BlockType SubSystem Name "Reg_M3" SID 1376 Ports [2, 2] Position [435, 1726, 485, 1784] BackgroundColor "yellow" DropShadow on MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Reg_M3" Location [198, 175, 957, 615] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "m" SID 1377 Position [15, 218, 45, 232] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "Pref" SID 1378 Position [360, 58, 390, 72] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType BusSelector Name "Bus\nSelector" SID 1379 Ports [1, 5] Position [60, 164, 65, 286] ShowName off OutputSignals "dq0 components.Stator voltage vd (pu),dq0 components.Stator voltage vq (pu),Mechanical.Rotor sp" "eed wm (pu),Mechanical.Rotor speed deviation dw (pu),Output active power Peo (pu)" Port { PortNumber 1 Name "" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } Port { PortNumber 2 Name "" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } Port { PortNumber 3 Name "" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } Port { PortNumber 4 Name "" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } Port { PortNumber 5 Name "" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Reference Name "EXCITATION" SID 1380 Ports [4, 1] Position [510, 158, 560, 227] LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib/Machines/Excitation\nSystem" SourceType "Excitation System" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" tr "20e-3" reg "[ 200, 0.001 ]" exc "[ 1, 0 ]" tgr "[ 0, 0 ]" damp "[ 0.001, 0.1 ]" sat "[ 0, 0 ]" lim "[ 0, 7, 0 ]" v0 "[1,1.2256]" } Block { BlockType Reference Name "Generic\nPower System Stabilizer" SID 1381 Ports [1, 1] Position [415, 333, 470, 377] LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib/Machines/Generic\nPower System Stabilizer" SourceType "Generic Power System Stabilizer" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" Tsensor "15e-3" K "2.5/10" Twashout "1" Tleadlag1 "[0.06 1]" Tleadlag2 "[0 0]" VSlimits "[-0.15 0.15]" Vinit "0" Plot_On off MagdB_On on FreqRange "logspace(-2,2,500)" } Block { BlockType Reference Name "HTG" SID 1382 Ports [5, 2] Position [505, 33, 555, 137] LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib/Machines/Hydraulic Turbine\nand Governor" SourceType "Hydraulic Turbine and Governor" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" sm "[ 10/3 0.07 ]" gate "[ 0.01 0.97518 -0.1 0.1 ]" reg "[ 0.05 1.163 0.105 0 0.01 ]" hyd "[ 0 2.67 ]" dref "0" po "0.763568" } Block { BlockType Sum Name "Sum2" SID 1383 Ports [2, 1] Position [360, 337, 385, 368] ShowName off Inputs "+-" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Terminator Name "Terminator" SID 1384 Position [605, 102, 615, 118] ShowName off } Block { BlockType Constant Name "Vref" SID 1385 Position [415, 150, 465, 170] OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Goto Name "dw" SID 1386 Position [170, 360, 210, 390] GotoTag "dw3" TagVisibility "global" } Block { BlockType Goto Name "wm" SID 1387 Position [210, 300, 250, 330] GotoTag "wm3" TagVisibility "global" } Block { BlockType Constant Name "wref" SID 1388 Position [420, 25, 470, 45] OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Pm" SID 1389 Position [615, 53, 645, 67] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" InitialOutput "0" } Block { BlockType Outport Name "Vf" SID 1390 Position [625, 188, 655, 202] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" InitialOutput "0" } Line { SrcBlock "Sum2" SrcPort 1 DstBlock "Generic\nPower System Stabilizer" DstPort 1 } Line { Name "" Labels [0, 0] SrcBlock "Bus\nSelector" SrcPort 1 Points [155, 0; 0, 10] DstBlock "EXCITATION" DstPort 2 } Line { SrcBlock "EXCITATION" SrcPort 1 DstBlock "Vf" DstPort 1 } Line { Name "" Labels [0, 0] SrcBlock "Bus\nSelector" SrcPort 2 DstBlock "EXCITATION" DstPort 3 } Line { SrcBlock "HTG" SrcPort 1 Points [15, 0] Branch { Points [0, 260; -235, 0; 0, 25] DstBlock "Sum2" DstPort 1 } Branch { DstBlock "Pm" DstPort 1 } } Line { SrcBlock "wref" SrcPort 1 Points [5, 0; 0, 10] DstBlock "HTG" DstPort 1 } Line { SrcBlock "Pref" SrcPort 1 DstBlock "HTG" DstPort 2 } Line { Name "" Labels [0, 0] SrcBlock "Bus\nSelector" SrcPort 3 Points [70, 0] Branch { Points [0, 90] DstBlock "wm" DstPort 1 } Branch { Points [115, 0; 0, -140] DstBlock "HTG" DstPort 3 } } Line { Name "" Labels [1, 0] SrcBlock "Bus\nSelector" SrcPort 5 Points [200, 0] Branch { Points [0, 85] DstBlock "Sum2" DstPort 2 } Branch { Points [0, -170] DstBlock "HTG" DstPort 4 } } Line { Name "" Labels [0, 0] SrcBlock "Bus\nSelector" SrcPort 4 Points [5, 0] Branch { Points [0, 125] DstBlock "dw" DstPort 1 } Branch { Points [210, 0; 0, -125] DstBlock "HTG" DstPort 5 } } Line { SrcBlock "m" SrcPort 1 DstBlock "Bus\nSelector" DstPort 1 } Line { SrcBlock "Vref" SrcPort 1 Points [5, 0; 0, 10] DstBlock "EXCITATION" DstPort 1 } Line { SrcBlock "HTG" SrcPort 2 DstBlock "Terminator" DstPort 1 } Line { SrcBlock "Generic\nPower System Stabilizer" SrcPort 1 Points [20, 0] DstBlock "EXCITATION" DstPort 4 } } } Block { BlockType Scope Name "Scope9" SID 1422 Ports [1] Position [380, 964, 410, 996] BackgroundColor "red" ShowName off Floating off Location [5, 48, 1369, 727] Open off NumInputPorts "1" ZoomMode "xonly" List { ListType AxesTitles axes1 "%" } YMin "-1" YMax "1" SaveName "ScopeData11" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType SubSystem Name "Scopes" SID 1423 Ports [] Position [90, 900, 188, 1057] BackgroundColor "green" MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Scopes" Location [2, 82, 1348, 715] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Reference Name "3-phase \nInstantaneous \nActive & Reactive Power" SID 1424 Ports [2, 1] Position [135, 128, 195, 172] ShowName off LibraryVersion "1.612" DialogController "POWERSYS.PowerSysDialog" FontName "Verdana" FontSize 11 SourceBlock "powerlib_extras/Measurements/3-phase \nInstantaneous \nActive & Reactive Power" SourceType "3-phase instantaneous active and reactive power" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" } Block { BlockType Reference Name "3-phase \nInstantaneous \nActive & Reactive Power1" SID 1425 Ports [2, 1] Position [180, 313, 240, 357] ShowName off LibraryVersion "1.612" DialogController "POWERSYS.PowerSysDialog" FontName "Verdana" FontSize 11 SourceBlock "powerlib_extras/Measurements/3-phase \nInstantaneous \nActive & Reactive Power" SourceType "3-phase instantaneous active and reactive power" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" } Block { BlockType Demux Name "Demux" SID 1426 Ports [1, 2] Position [205, 131, 210, 169] ShowName off Outputs "2" DisplayOption "bar" } Block { BlockType Demux Name "Demux1" SID 1427 Ports [1, 2] Position [250, 316, 255, 354] ShowName off Outputs "2" DisplayOption "bar" } Block { BlockType Reference Name "Discrete 3-phase\nSequence Analyzer\n(Fundamental)" SID 1428 Ports [1, 2] Position [560, 295, 615, 350] LibraryVersion "1.612" DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib_extras/Discrete\nMeasurements/Discrete 3-phase\nSequence Analyzer" SourceType "Discrete 3-Phase Sequence Analyzer" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" Freq "50" n "1" seq "Negative" Par_Init "[0 0]" Ts "50e-6" Port { PortNumber 1 Name " I. fund. Neg. seq. (pu)" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType From Name "From" SID 1429 Position [25, 35, 95, 55] ShowName off GotoTag "Vabc_B1" TagVisibility "global" } Block { BlockType From Name "From1" SID 1430 Position [25, 70, 95, 90] ShowName off GotoTag "Iabc_B1" TagVisibility "global" } Block { BlockType From Name "From2" SID 1431 Position [25, 220, 95, 240] ShowName off GotoTag "Vabc_B2" TagVisibility "global" } Block { BlockType From Name "From3" SID 1432 Position [25, 255, 95, 275] ShowName off GotoTag "Iabc_B2" TagVisibility "global" } Block { BlockType From Name "From4" SID 1433 Position [515, 425, 585, 445] ShowName off GotoTag "Vtcsc" TagVisibility "global" } Block { BlockType From Name "From5" SID 1434 Position [500, 35, 570, 55] ShowName off GotoTag "Vabc1" TagVisibility "global" } Block { BlockType From Name "From6" SID 1435 Position [435, 80, 505, 100] ShowName off GotoTag "Iabc" TagVisibility "global" } Block { BlockType From Name "From7" SID 1436 Position [25, 450, 95, 470] ShowName off GotoTag "Itcr" TagVisibility "global" } Block { BlockType Scope Name "Scope" SID 1437 Ports [1] Position [295, 29, 325, 61] BackgroundColor "red" ShowName off Floating off Location [461, 124, 1176, 629] Open off NumInputPorts "1" ZoomMode "xonly" List { ListType AxesTitles axes1 "%" } YMin "-350000" YMax "350000" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "Scope1" SID 1438 Ports [1] Position [295, 64, 325, 96] BackgroundColor "red" ShowName off Floating off Location [1, 48, 1367, 727] Open off NumInputPorts "1" ZoomMode "xonly" List { ListType AxesTitles axes1 "%" } YMin "-700" YMax "700" SaveName "ScopeData1" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "Scope10" SID 1439 Ports [1] Position [690, 74, 720, 106] BackgroundColor "red" ShowName off Floating off Location [177, 142, 902, 622] Open off NumInputPorts "1" ZoomMode "yonly" List { ListType AxesTitles axes1 "%" } YMin "-2500" YMax "2750" SaveName "ScopeData8" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "Scope11" SID 1440 Ports [1] Position [295, 444, 325, 476] BackgroundColor "red" ShowName off Floating off Location [177, 142, 902, 622] Open off NumInputPorts "1" ZoomMode "xonly" List { ListType AxesTitles axes1 "%" } YMin "-2" YMax "2" SaveName "ScopeData22" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "Scope12" SID 1441 Ports [1] Position [755, 364, 785, 396] BackgroundColor "red" ShowName off Floating off Location [5, 48, 1371, 727] Open off NumInputPorts "1" ZoomMode "yonly" List { ListType AxesTitles axes1 "%" } TimeRange "20" YMin "-300" YMax "300" SaveName "ScopeData13" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "Scope2" SID 1442 Ports [1] Position [295, 109, 325, 141] BackgroundColor "red" ShowName off Floating off Location [5, 48, 1371, 727] Open off NumInputPorts "1" ZoomMode "xonly" List { ListType AxesTitles axes1 "%" } YMin "1.75e+008" YMax "4e+008" SaveName "ScopeData2" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "Scope3" SID 1443 Ports [1] Position [335, 214, 365, 246] BackgroundColor "red" ShowName off Floating off Location [266, 161, 960, 602] Open off NumInputPorts "1" ZoomMode "xonly" List { ListType AxesTitles axes1 "%" } YMin "-350000" YMax "350000" SaveName "ScopeData3" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "Scope4" SID 1444 Ports [1] Position [335, 249, 365, 281] BackgroundColor "red" ShowName off Floating off Location [253, 145, 932, 585] Open off NumInputPorts "1" ZoomMode "xonly" List { ListType AxesTitles axes1 "%" } SaveName "ScopeData4" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "Scope5" SID 1445 Ports [1] Position [335, 289, 365, 321] BackgroundColor "red" ShowName off Floating off Location [235, 143, 948, 668] Open off NumInputPorts "1" ZoomMode "xonly" List { ListType AxesTitles axes1 "%" } SaveName "ScopeData5" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "Scope6" SID 1446 Ports [1] Position [295, 144, 325, 176] BackgroundColor "red" ShowName off Floating off Location [177, 142, 902, 622] Open off NumInputPorts "1" ZoomMode "yonly" List { ListType AxesTitles axes1 "%" } SaveName "ScopeData6" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "Scope7" SID 1447 Ports [1] Position [335, 329, 365, 361] BackgroundColor "red" ShowName off Floating off Location [177, 184, 868, 717] Open off NumInputPorts "1" ZoomMode "yonly" List { ListType AxesTitles axes1 "%" } SaveName "ScopeData7" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "Scope8" SID 1448 Ports [1] Position [745, 204, 775, 236] BackgroundColor "red" ShowName off Floating off Location [177, 142, 902, 622] Open off NumInputPorts "1" ZoomMode "xonly" List { ListType AxesTitles axes1 "%" } TimeRange "20" YMin "-300" YMax "300" SaveName "ScopeData10" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "Scope9" SID 1449 Ports [1] Position [690, 29, 720, 61] BackgroundColor "red" ShowName off Floating off Location [177, 142, 902, 622] Open off NumInputPorts "1" ZoomMode "yonly" List { ListType AxesTitles axes1 "%" } YMin "-2500" YMax "2750" SaveName "ScopeData9" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Terminator Name "Terminator" SID 1450 Position [630, 327, 645, 343] ShowName off } Block { BlockType ToFile Name "To File" SID 1451 Position [755, 110, 815, 140] Filename "IABC" MatrixName "iabc" SaveFormat "Timeseries" } Block { BlockType ToFile Name "To File1" SID 1452 Position [740, 420, 800, 450] Filename "VTCSC" MatrixName "vtcsc" SaveFormat "Timeseries" } Block { BlockType ToFile Name "To File2" SID 1453 Position [755, 50, 815, 80] Filename "VABC" MatrixName "vabc" SaveFormat "Timeseries" } Line { SrcBlock "From" SrcPort 1 Points [140, 0] Branch { Points [-120, 0] DstBlock "3-phase \nInstantaneous \nActive & Reactive Power" DstPort 1 } Branch { DstBlock "Scope" DstPort 1 } } Line { SrcBlock "From1" SrcPort 1 Points [10, 0] Branch { DstBlock "Scope1" DstPort 1 } Branch { Points [0, 80] DstBlock "3-phase \nInstantaneous \nActive & Reactive Power" DstPort 2 } } Line { SrcBlock "From2" SrcPort 1 Points [75, 0] Branch { DstBlock "Scope3" DstPort 1 } Branch { Points [-10, 0] DstBlock "3-phase \nInstantaneous \nActive & Reactive Power1" DstPort 1 } } Line { SrcBlock "From3" SrcPort 1 Points [55, 0] Branch { DstBlock "Scope4" DstPort 1 } Branch { Points [0, 80] DstBlock "3-phase \nInstantaneous \nActive & Reactive Power1" DstPort 2 } } Line { SrcBlock "3-phase \nInstantaneous \nActive & Reactive Power" SrcPort 1 DstBlock "Demux" DstPort 1 } Line { SrcBlock "Demux" SrcPort 1 Points [30, 0; 0, -15] DstBlock "Scope2" DstPort 1 } Line { SrcBlock "Demux" SrcPort 2 DstBlock "Scope6" DstPort 1 } Line { SrcBlock "3-phase \nInstantaneous \nActive & Reactive Power1" SrcPort 1 DstBlock "Demux1" DstPort 1 } Line { SrcBlock "Demux1" SrcPort 1 Points [30, 0; 0, -20] DstBlock "Scope5" DstPort 1 } Line { SrcBlock "Demux1" SrcPort 2 DstBlock "Scope7" DstPort 1 } Line { SrcBlock "From7" SrcPort 1 DstBlock "Scope11" DstPort 1 } Line { SrcBlock "From5" SrcPort 1 Points [70, 0] Branch { DstBlock "Scope9" DstPort 1 } Branch { Points [0, 20] DstBlock "To File2" DstPort 1 } } Line { SrcBlock "From6" SrcPort 1 Points [20, 0] Branch { Points [5, 0; 0, 235] DstBlock "Discrete 3-phase\nSequence Analyzer\n(Fundamental)" DstPort 1 } Branch { Points [115, 0] Branch { Points [0, 35] DstBlock "To File" DstPort 1 } Branch { DstBlock "Scope10" DstPort 1 } } } Line { Name " I. fund. Neg. seq. (pu)" Labels [3, 1] SrcBlock "Discrete 3-phase\nSequence Analyzer\n(Fundamental)" SrcPort 1 Points [5, 0; 0, -90] DstBlock "Scope8" DstPort 1 } Line { SrcBlock "Discrete 3-phase\nSequence Analyzer\n(Fundamental)" SrcPort 2 DstBlock "Terminator" DstPort 1 } Line { SrcBlock "From4" SrcPort 1 Points [75, 0; 0, -5] Branch { Points [0, -50] DstBlock "Scope12" DstPort 1 } Branch { Points [60, 0] DstBlock "To File1" DstPort 1 } } } } Block { BlockType SubSystem Name "Scopes 1" SID 1454 Ports [0, 3] Position [105, 1238, 180, 1342] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off Port { PortNumber 1 Name "Power [MW]" PropagatedSignals "Power [MW]" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } Port { PortNumber 2 Name "ztcsc [Ohms]" PropagatedSignals "impedance (measured and ref)" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } Port { PortNumber 3 Name "alpha [deg]" PropagatedSignals "apha [deg]" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } System { Name "Scopes 1" Location [43, 82, 934, 739] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Demux Name "Demux" SID 1455 Ports [1, 2] Position [270, 131, 275, 169] BackgroundColor "black" ShowName off Outputs "2" DisplayOption "bar" Port { PortNumber 1 Name "Power [MW]" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Reference Name "Discrete 3-phase \nPositive-Sequence \nActive & Reactive Power" SID 1456 Ports [2, 2] Position [125, 111, 195, 164] LibraryVersion "1.612" DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib_extras/Discrete\nMeasurements/Discrete 3-phase \nPositive-Sequence \nActive & Reactive Pow" "er" SourceType "Discrete 3-phase Positive-Sequence Active & Reactive Power " ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" Freq "50" Par_Vinit "[1 0]" Par_Iinit "[0.05 90]" Ts "Ts" } Block { BlockType From Name "From1" SID 1457 Position [135, 479, 185, 501] BackgroundColor "orange" ShowName off CloseFcn "tagdialog Close" GotoTag "Vtcscrms" TagVisibility "global" Port { PortNumber 1 Name "Vtcscrms" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType From Name "From11" SID 1458 Position [450, 220, 525, 240] BackgroundColor "orange" ShowName off CloseFcn "tagdialog Close" GotoTag "TCR_pulses" TagVisibility "global" } Block { BlockType From Name "From12" SID 1459 Position [130, 294, 180, 316] BackgroundColor "orange" ShowName off CloseFcn "tagdialog Close" GotoTag "zcap" TagVisibility "global" Port { PortNumber 1 Name "impedance (measured and ref)" PropagatedSignals ", " RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType From Name "From14" SID 1460 Position [450, 254, 500, 276] BackgroundColor "orange" ShowName off CloseFcn "tagdialog Close" GotoTag "alpha" TagVisibility "global" Port { PortNumber 1 Name "alpha (deg)" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType From Name "From16" SID 1461 Position [450, 195, 525, 215] BackgroundColor "orange" ShowName off CloseFcn "tagdialog Close" GotoTag "Itcr" TagVisibility "global" } Block { BlockType From Name "From2" SID 1462 Position [15, 165, 85, 185] BackgroundColor "orange" ShowName off CloseFcn "tagdialog Close" GotoTag "Iabc" TagVisibility "global" } Block { BlockType From Name "From3" SID 1463 Position [15, 54, 65, 76] BackgroundColor "orange" ShowName off CloseFcn "tagdialog Close" GotoTag "Vtcsc" TagVisibility "global" } Block { BlockType From Name "From4" SID 1464 Position [130, 374, 180, 396] BackgroundColor "orange" ShowName off CloseFcn "tagdialog Close" GotoTag "Itcsc" TagVisibility "global" Port { PortNumber 1 Name "Itcsc [A]" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType From Name "From5" SID 1465 Position [130, 334, 180, 356] BackgroundColor "orange" ShowName off CloseFcn "tagdialog Close" GotoTag "alpha" TagVisibility "global" Port { PortNumber 1 Name "apha [deg]" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType From Name "From6" SID 1466 Position [505, 385, 580, 405] BackgroundColor "orange" ShowName off CloseFcn "tagdialog Close" GotoTag "Vabc2" TagVisibility "global" } Block { BlockType From Name "From7" SID 1467 Position [505, 435, 580, 455] BackgroundColor "orange" ShowName off CloseFcn "tagdialog Close" GotoTag "Iabc2" TagVisibility "global" } Block { BlockType From Name "From8" SID 1468 Position [15, 25, 90, 45] BackgroundColor "orange" ShowName off CloseFcn "tagdialog Close" GotoTag "Vabc1" TagVisibility "global" } Block { BlockType Mux Name "Mux2" SID 1469 Ports [2, 1] Position [605, 170, 610, 210] ShowName off Inputs "2" DisplayOption "bar" Port { PortNumber 1 Name "ITCSC and Itcr" PropagatedSignals ", " RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Mux Name "Mux6" SID 1470 Ports [2, 1] Position [195, 19, 200, 81] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Scope Name "Power\ntransfer" SID 1471 Ports [3] Position [390, 440, 440, 540] BackgroundColor "green" Floating off Location [139, 93, 741, 698] Open off NumInputPorts "3" ZoomMode "xonly" List { ListType AxesTitles axes1 "%" axes2 "%" axes3 "%" } TimeRange "0.04" YMin "-1.75~0~97" YMax "1.75~1~108" SaveToWorkspace on SaveName "VI_TCRab1" DataFormat "StructureWithTime" LimitDataPoints off SampleInput on SampleTime "Ts" } Block { BlockType Scope Name "Prog.\nVoltage source 2" SID 1472 Ports [2] Position [625, 370, 675, 470] BackgroundColor "green" Floating off Location [139, 93, 741, 698] Open off NumInputPorts "2" ZoomMode "xonly" List { ListType AxesTitles axes1 "%" axes2 "%" } TimeRange "0.04" YMin "-1.75~0" YMax "1.75~1" DataFormat "StructureWithTime" LimitDataPoints off SampleInput on SampleTime "Ts" } Block { BlockType Selector Name "Selector1" SID 1473 Ports [1, 1] Position [535, 166, 560, 194] ShowName off InputPortWidth "3" IndexOptions "Index vector (dialog)" Indices "1" OutputSizes "1" } Block { BlockType Selector Name "Selector2" SID 1474 Ports [1, 1] Position [560, 207, 590, 253] ShowName off InputPortWidth "6" IndexOptions "Index vector (dialog)" Indices "[1 2]" OutputSizes "1" Port { PortNumber 1 Name "Pulses phase A + and -" PropagatedSignals ", " RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Selector Name "Selector3" SID 1475 Ports [1, 1] Position [140, 21, 165, 49] ShowName off InputPortWidth "3" IndexOptions "Index vector (dialog)" Indices "1" OutputSizes "1" } Block { BlockType Selector Name "Selector4" SID 1476 Ports [1, 1] Position [135, 51, 160, 79] ShowName off InputPortWidth "3" IndexOptions "Index vector (dialog)" Indices "1" OutputSizes "1" } Block { BlockType Scope Name "TCR A phase" SID 1477 Ports [3] Position [735, 180, 785, 280] BackgroundColor "green" Floating off Location [140, 133, 742, 738] Open off NumInputPorts "3" ZoomMode "xonly" List { ListType AxesTitles axes1 "%" axes2 "%" axes3 "%" } TimeRange "3" YMin "-1750~-1~82" YMax "1750~1~90" SaveToWorkspace on SaveName "VI_TCRab" DataFormat "StructureWithTime" LimitDataPoints off SampleInput on SampleTime "Ts" } Block { BlockType Scope Name "TCSC main variables" SID 1478 Ports [4] Position [380, 243, 430, 407] BackgroundColor "green" Floating off Location [6, 43, 991, 762] Open off NumInputPorts "4" List { ListType AxesTitles axes1 "P [MW] and Q [MVAr]" axes2 "%" axes3 "%" axes4 "%" } YMin "-300~0~67.5~0" YMax "1000~175~90~1200" SaveName "Ctrl_Sig" DataFormat "Array" LimitDataPoints off SampleInput on SampleTime "Ts" } Block { BlockType Scope Name "TCSC phase A voltages" SID 1479 Ports [1] Position [275, 34, 305, 66] BackgroundColor "green" Floating off Location [201, 284, 731, 619] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "line voltage and TCSC voltage " } TimeRange "0.08154506437768239" YMin "-350000" YMax "350000" SaveName "ScopeData3" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Terminator Name "Terminator" SID 1480 Position [230, 118, 245, 132] ShowName off } Block { BlockType Terminator Name "Terminator_2" SID 1481 Position [290, 155, 300, 165] ShowName off } Block { BlockType Gain Name "pu1" SID 1482 Position [215, 136, 245, 164] ShowName off Gain "0.000001" ParameterDataType "sfix(16)" ParameterScaling "2^0" OutDataType "sfix(16)" OutScaling "2^0" Port { PortNumber 1 Name "Power [MW]" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType Outport Name "Ptcsc" SID 1483 Position [380, 118, 410, 132] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "ztcsc" SID 1484 Position [280, 223, 310, 237] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "alpha" SID 1485 Position [320, 353, 350, 367] Port "3" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Line { SrcBlock "From8" SrcPort 1 Points [0, 0; 15, 0] Branch { DstBlock "Discrete 3-phase \nPositive-Sequence \nActive & Reactive Power" DstPort 1 } Branch { DstBlock "Selector3" DstPort 1 } } Line { SrcBlock "Discrete 3-phase \nPositive-Sequence \nActive & Reactive Power" SrcPort 1 DstBlock "Terminator" DstPort 1 } Line { SrcBlock "Discrete 3-phase \nPositive-Sequence \nActive & Reactive Power" SrcPort 2 DstBlock "pu1" DstPort 1 } Line { Name "apha [deg]" Labels [1, 0] SrcBlock "From5" SrcPort 1 Points [110, 0] Branch { DstBlock "TCSC main variables" DstPort 3 } Branch { Points [0, 15] DstBlock "alpha" DstPort 1 } } Line { SrcBlock "From11" SrcPort 1 DstBlock "Selector2" DstPort 1 } Line { Name "Pulses phase A + and -" Labels [1, 0] SrcBlock "Selector2" SrcPort 1 DstBlock "TCR A phase" DstPort 2 } Line { Name "alpha (deg)" Labels [1, 0] SrcBlock "From14" SrcPort 1 DstBlock "TCR A phase" DstPort 3 } Line { Labels [0, 0] SrcBlock "From16" SrcPort 1 Points [60, 0] DstBlock "Mux2" DstPort 2 } Line { Name "ITCSC and Itcr" Labels [2, 0] SrcBlock "Mux2" SrcPort 1 Points [0, 5] DstBlock "TCR A phase" DstPort 1 } Line { SrcBlock "Selector3" SrcPort 1 DstBlock "Mux6" DstPort 1 } Line { Name "Itcsc [A]" Labels [0, 0] SrcBlock "From4" SrcPort 1 Points [45, 0] Branch { Points [70, 0] DstBlock "TCSC main variables" DstPort 4 } Branch { Points [0, 70] DstBlock "Power\ntransfer" DstPort 1 } } Line { Name "impedance (measured and ref)" Labels [0, 0] SrcBlock "From12" SrcPort 1 Points [80, 0] Branch { DstBlock "TCSC main variables" DstPort 2 } Branch { DstBlock "ztcsc" DstPort 1 } } Line { Name "Power [MW]" Labels [0, 0] SrcBlock "pu1" SrcPort 1 Points [5, 0] Branch { DstBlock "Demux" DstPort 1 } Branch { Points [5, 0; 0, 115] Branch { Points [0, 260] DstBlock "Power\ntransfer" DstPort 3 } Branch { DstBlock "TCSC main variables" DstPort 1 } } } Line { Name "Vtcscrms" Labels [0, 0] SrcBlock "From1" SrcPort 1 DstBlock "Power\ntransfer" DstPort 2 } Line { SrcBlock "From2" SrcPort 1 Points [5, 0] Branch { Points [420, 0; 0, 5] DstBlock "Selector1" DstPort 1 } Branch { Points [0, -25] DstBlock "Discrete 3-phase \nPositive-Sequence \nActive & Reactive Power" DstPort 2 } } Line { SrcBlock "Selector1" SrcPort 1 DstBlock "Mux2" DstPort 1 } Line { SrcBlock "Mux6" SrcPort 1 DstBlock "TCSC phase A voltages" DstPort 1 } Line { Name "Power [MW]" Labels [0, 0] SrcBlock "Demux" SrcPort 1 Points [40, 0; 0, -15] DstBlock "Ptcsc" DstPort 1 } Line { SrcBlock "Selector4" SrcPort 1 DstBlock "Mux6" DstPort 2 } Line { SrcBlock "From3" SrcPort 1 DstBlock "Selector4" DstPort 1 } Line { SrcBlock "Demux" SrcPort 2 DstBlock "Terminator_2" DstPort 1 } Line { SrcBlock "From7" SrcPort 1 DstBlock "Prog.\nVoltage source 2" DstPort 2 } Line { SrcBlock "From6" SrcPort 1 DstBlock "Prog.\nVoltage source 2" DstPort 1 } } } Block { BlockType SubSystem Name "TCR" SID 1263 Ports [2, 0, 0, 0, 0, 3, 3] Position [1020, 400, 1120, 480] BlockMirror on BackgroundColor "yellow" DropShadow on ShowName off LoadFcn "find_system(gcs,'FollowLinks', 'on', 'LookUnderMasks', 'all');" MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off MaskType "TCSC model" MaskHelp "This block is main circuit of a TCSC. The TCSC includes a series TCR and a series capacitor in " "each phase. \nThe model parameters are L=0.043 and C=21.977uF giving the natural resonance at 163Hz. The resonan" "t firing angle (60Hz system) is around 58deg. \n\n" MaskPromptString "TCR Inductance (H) :|TCSC capacitance (F)|Quality factor:|Thyristor snubber: [ R (ohm) " " C (F) ]|Thyristor data: [ Ron (ohm) Vf (volt) ]" MaskStyleString "edit,edit,edit,edit,edit" MaskTunableValueString "on,on,on,on,on" MaskCallbackString "||||" MaskEnableString "on,on,on,on,on" MaskVisibilityString "on,on,on,on,on" MaskToolTipString "on,on,on,on,on" MaskVariables "Ltcr=@1;Ctcsc=@2;Q=@3;ParS=@4;ParT=@5;" MaskInitialization "Rtcr=(2*pi*60) * Ltcr / Q;\nRsnub=ParS(1);\nCsnub=ParS(2);\nRon=ParT(1);\nVf=ParT(2);\n" "\n" MaskDisplay "plot(0,0);plot(125,220)\nplot([62 62 37 37 49 25 37],[15 39 39 58 76 76 58])\nplot([62 87 87 " "99 87 75 87],[39 39 58 58 76 58 58])\nplot([25 49],[58 58]);plot([37 25],[58 49])\nplot([75 99],[76 76]);plot([8" "7 99],[76 85])\nplot([37 37 87 87],[76 95 95 76])\nplot([62 62],[95 122]);plot([62 62],[164 186])\nplot([62 72 7" "8 79 78 72 62],[122 123 125 129 133 135 136])\nplot([62 72 78 79 78 72 62],14+[122 123 125 129 133 135 136])\npl" "ot([62 72 78 79 78 72 62],28+[122 123 125 129 133 135 136])" MaskIconFrame on MaskIconOpaque off MaskIconRotate "none" MaskPortRotate "default" MaskIconUnits "autoscale" MaskValueString "0.089|14.54e-6|500|[5000 50e-9]|[1e-2 0]" System { Name "TCR" Location [-2, 93, 1344, 750] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "P" SID 1264 Position [30, 117, 60, 133] IconDisplay "Port number" PortDimensions "6" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "cb" SID 1265 Position [110, 348, 140, 362] Port "2" IconDisplay "Port number" PortDimensions "1" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Reference Name "Breaker" SID 1266 Ports [1, 0, 0, 0, 0, 1, 1] Position [460, 375, 500, 430] BlockRotation 270 BlockMirror on BackgroundColor "magenta" NamePlacement "alternate" ShowName off LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib/Elements/Breaker" SourceType "Breaker" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" BreakerResistance "0.01" InitialState "0" SnubberResistance "1e6" SnubberCapacitance "inf" SwitchingTimes "[ 1/60 5/60 ]" External on Measurements "None" MoreParameters off NoBreakLoop off } Block { BlockType Reference Name "Breaker1" SID 1267 Ports [1, 0, 0, 0, 0, 1, 1] Position [755, 375, 795, 430] BlockRotation 270 BlockMirror on BackgroundColor "magenta" NamePlacement "alternate" ShowName off LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib/Elements/Breaker" SourceType "Breaker" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" BreakerResistance "0.01" InitialState "0" SnubberResistance "1e6" SnubberCapacitance "inf" SwitchingTimes "[ 1/60 5/60 ]" External on Measurements "None" MoreParameters off NoBreakLoop off } Block { BlockType Reference Name "Breaker2" SID 1268 Ports [1, 0, 0, 0, 0, 1, 1] Position [1105, 375, 1145, 430] BlockRotation 270 BlockMirror on BackgroundColor "magenta" NamePlacement "alternate" ShowName off LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib/Elements/Breaker" SourceType "Breaker" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" BreakerResistance "0.01" InitialState "0" SnubberResistance "1e6" SnubberCapacitance "inf" SwitchingTimes "[ 1/60 5/60 ]" External on Measurements "None" MoreParameters off NoBreakLoop off } Block { BlockType Reference Name "Current Measurement" SID 1269 Ports [0, 1, 0, 0, 0, 1, 1] Position [263, 120, 287, 145] BlockRotation 270 BlockMirror on NamePlacement "alternate" ShowName off LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib/Measurements/Current Measurement" SourceType "Current Measurement" ShowPortLabels "FromPortIcon" 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 Demux Name "Demux" SID 1270 Ports [1, 6] Position [85, 42, 90, 203] ForegroundColor "magenta" BackgroundColor "magenta" ShowName off Outputs "6" } Block { BlockType From Name "From" SID 1271 Position [180, 190, 215, 210] BackgroundColor "orange" ShowName off CloseFcn "tagdialog Close" GotoTag "Ap" } Block { BlockType From Name "From1" SID 1272 Position [260, 285, 295, 305] BackgroundColor "orange" ShowName off CloseFcn "tagdialog Close" GotoTag "Am" } Block { BlockType From Name "From2" SID 1273 Position [520, 185, 555, 205] BackgroundColor "orange" ShowName off CloseFcn "tagdialog Close" GotoTag "Bp" } Block { BlockType From Name "From3" SID 1274 Position [610, 280, 645, 300] BackgroundColor "orange" ShowName off CloseFcn "tagdialog Close" GotoTag "Bm" } Block { BlockType From Name "From4" SID 1275 Position [835, 185, 870, 205] BackgroundColor "orange" ShowName off CloseFcn "tagdialog Close" GotoTag "Cp" } Block { BlockType From Name "From5" SID 1276 Position [915, 280, 950, 300] BackgroundColor "orange" ShowName off CloseFcn "tagdialog Close" GotoTag "Cm" } Block { BlockType Goto Name "Goto" SID 1277 Position [115, 49, 145, 71] BackgroundColor "orange" ShowName off GotoTag "Ap" TagVisibility "local" } Block { BlockType Goto Name "Goto1" SID 1278 Position [115, 74, 145, 96] BackgroundColor "orange" ShowName off GotoTag "Am" TagVisibility "local" } Block { BlockType Goto Name "Goto2" SID 1279 Position [115, 99, 145, 121] BackgroundColor "orange" ShowName off GotoTag "Bp" TagVisibility "local" } Block { BlockType Goto Name "Goto3" SID 1280 Position [115, 124, 145, 146] BackgroundColor "orange" ShowName off GotoTag "Bm" TagVisibility "local" } Block { BlockType Goto Name "Goto4" SID 1281 Position [115, 149, 145, 171] BackgroundColor "orange" ShowName off GotoTag "Cp" TagVisibility "local" } Block { BlockType Goto Name "Goto5" SID 1282 Position [115, 174, 145, 196] BackgroundColor "orange" ShowName off GotoTag "Cm" TagVisibility "local" } Block { BlockType Goto Name "Goto6" SID 1283 Position [180, 144, 240, 166] BlockMirror on BackgroundColor "orange" ShowName off GotoTag "Itcr" TagVisibility "global" } Block { BlockType Goto Name "Goto9" SID 1284 Position [1210, 84, 1270, 106] BackgroundColor "orange" NamePlacement "alternate" ShowName off GotoTag "Vtcsc" TagVisibility "global" } Block { BlockType Reference Name "Lab" SID 1285 Ports [0, 0, 0, 0, 0, 1, 1] Position [269, 395, 291, 470] BlockRotation 270 BlockMirror on BackgroundColor "gray" NamePlacement "alternate" ShowName off AttributesFormatString "\\n" LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" 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 "Rtcr" Inductance "Ltcr" SetiL0 off InitialCurrent "0" Capacitance "[]" Setx0 off InitialVoltage "0" Measurements "Branch current" } Block { BlockType Reference Name "Lbc" SID 1286 Ports [0, 0, 0, 0, 0, 1, 1] Position [619, 395, 641, 470] BlockRotation 270 BlockMirror on BackgroundColor "gray" NamePlacement "alternate" ShowName off AttributesFormatString "\\n" LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" 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 "Rtcr" Inductance "Ltcr" SetiL0 off InitialCurrent "0" Capacitance "[]" Setx0 off InitialVoltage "0" Measurements "None" } Block { BlockType Reference Name "Lca" SID 1287 Ports [0, 0, 0, 0, 0, 1, 1] Position [924, 385, 946, 460] BlockRotation 270 BlockMirror on BackgroundColor "gray" NamePlacement "alternate" ShowName off AttributesFormatString "\\n" LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" 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 "Rtcr" Inductance "Ltcr" SetiL0 off InitialCurrent "0" Capacitance "[]" Setx0 off InitialVoltage "0" Measurements "None" } Block { BlockType Reference Name "MOV1" SID 1288 Ports [0, 0, 0, 0, 0, 1, 1] Position [756, 240, 774, 285] BlockRotation 270 BlockMirror on NamePlacement "alternate" AttributesFormatString "\\n" LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib/Elements/Surge Arrester" SourceType "Surge Arrester" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" ProtectionVoltage "500e+03" Columns "30" ReferenceCurrent "200" Segment1 "[.955 50]" Segment2 "[1.0 25]" Segment3 "[.9915 16.5]" Measurements "None" MoreParameters off BreakLoop on } Block { BlockType Reference Name "MOV2" SID 1289 Ports [0, 0, 0, 0, 0, 1, 1] Position [1061, 205, 1079, 250] BlockRotation 270 BlockMirror on NamePlacement "alternate" AttributesFormatString "\\n" LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib/Elements/Surge Arrester" SourceType "Surge Arrester" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" ProtectionVoltage "500e+03" Columns "30" ReferenceCurrent "200" Segment1 "[.955 50]" Segment2 "[1.0 25]" Segment3 "[.9915 16.5]" Measurements "None" MoreParameters off BreakLoop on } Block { BlockType Reference Name "MOV3" SID 1290 Ports [0, 0, 0, 0, 0, 1, 1] Position [451, 250, 469, 295] BlockRotation 270 BlockMirror on NamePlacement "alternate" AttributesFormatString "\\n" LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib/Elements/Surge Arrester" SourceType "Surge Arrester" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" ProtectionVoltage "500e+03" Columns "30" ReferenceCurrent "200" Segment1 "[.955 50]" Segment2 "[1.0 25]" Segment3 "[.9915 16.5]" Measurements "None" MoreParameters off BreakLoop on } Block { BlockType Mux Name "Mux" SID 1291 Ports [3, 1] Position [1195, 76, 1200, 114] ShowName off Inputs "3" DisplayOption "bar" } Block { BlockType Reference Name "Seh1" SID 1292 Ports [0, 0, 0, 0, 0, 1, 1] Position [696, 205, 724, 275] BlockRotation 270 BlockMirror on BackgroundColor "gray" NamePlacement "alternate" ShowName off LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib/Elements/Series RLC Branch" SourceType "Series RLC Branch" PhysicalDomain "powersysdomain" SubClassName "unknown" LeftPortType "p1" RightPortType "p1" LConnTagsString "__new0" RConnTagsString "__new0" BranchType "C" Resistance "[]" Inductance "[]" SetiL0 off InitialCurrent "0" Capacitance "Ctcsc" Setx0 off InitialVoltage "0" Measurements "None" } Block { BlockType Reference Name "Series RLC Branch" SID 1293 Ports [0, 0, 0, 0, 0, 1, 1] Position [411, 225, 439, 295] BlockRotation 270 BlockMirror on BackgroundColor "gray" NamePlacement "alternate" ShowName off LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib/Elements/Series RLC Branch" SourceType "Series RLC Branch" PhysicalDomain "powersysdomain" SubClassName "unknown" LeftPortType "p1" RightPortType "p1" LConnTagsString "__new0" RConnTagsString "__new0" BranchType "C" Resistance "[]" Inductance "[]" SetiL0 off InitialCurrent "0" Capacitance "Ctcsc" Setx0 off InitialVoltage "0" Measurements "None" } Block { BlockType Reference Name "Series RLC Branch2" SID 1294 Ports [0, 0, 0, 0, 0, 1, 1] Position [1006, 205, 1034, 275] BlockRotation 270 BlockMirror on BackgroundColor "gray" NamePlacement "alternate" ShowName off LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib/Elements/Series RLC Branch" SourceType "Series RLC Branch" PhysicalDomain "powersysdomain" SubClassName "unknown" LeftPortType "p1" RightPortType "p1" LConnTagsString "__new0" RConnTagsString "__new0" BranchType "C" Resistance "[]" Inductance "[]" SetiL0 off InitialCurrent "0" Capacitance "Ctcsc" Setx0 off InitialVoltage "0" Measurements "None" } Block { BlockType Reference Name "ThA+" SID 1295 Ports [1, 0, 0, 0, 0, 1, 1] Position [217, 225, 253, 270] BlockRotation 270 BlockMirror on BackgroundColor "yellow" NamePlacement "alternate" AttributesFormatString "\\n" LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib/Power\nElectronics/Thyristor" SourceType "Thyristor" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" Ron "Ron" Lon "0" Vf "Vf" IC "0" Rs "Rsnub" Cs "Csnub" Measurements off } Block { BlockType Reference Name "ThA-" SID 1296 Ports [1, 0, 0, 0, 0, 1, 1] Position [292, 230, 328, 275] BlockRotation 270 BackgroundColor "yellow" NamePlacement "alternate" AttributesFormatString "\\n" LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib/Power\nElectronics/Thyristor" SourceType "Thyristor" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" Ron "Ron" Lon "0" Vf "Vf" IC "0" Rs "Rsnub" Cs "Csnub" Measurements off } Block { BlockType Reference Name "ThB+" SID 1297 Ports [1, 0, 0, 0, 0, 1, 1] Position [567, 220, 603, 265] BlockRotation 270 BlockMirror on BackgroundColor "yellow" NamePlacement "alternate" AttributesFormatString "\\n" LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib/Power\nElectronics/Thyristor" SourceType "Thyristor" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" Ron "Ron" Lon "0" Vf "Vf" IC "0" Rs "Rsnub" Cs "Csnub" Measurements off } Block { BlockType Reference Name "ThB-" SID 1298 Ports [1, 0, 0, 0, 0, 1, 1] Position [642, 220, 678, 265] BlockRotation 270 BackgroundColor "yellow" NamePlacement "alternate" AttributesFormatString "\\n" LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib/Power\nElectronics/Thyristor" SourceType "Thyristor" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" Ron "Ron" Lon "0" Vf "Vf" IC "0" Rs "Rsnub" Cs "Csnub" Measurements off } Block { BlockType Reference Name "ThC+" SID 1299 Ports [1, 0, 0, 0, 0, 1, 1] Position [872, 220, 908, 265] BlockRotation 270 BlockMirror on BackgroundColor "yellow" NamePlacement "alternate" AttributesFormatString "\\n" LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib/Power\nElectronics/Thyristor" SourceType "Thyristor" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" Ron "Ron" Lon "0" Vf "Vf" IC "0" Rs "Rsnub" Cs "Csnub" Measurements off } Block { BlockType Reference Name "ThC-" SID 1300 Ports [1, 0, 0, 0, 0, 1, 1] Position [952, 220, 988, 265] BlockRotation 270 BackgroundColor "yellow" NamePlacement "alternate" AttributesFormatString "\\n" LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib/Power\nElectronics/Thyristor" SourceType "Thyristor" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" Ron "Ron" Lon "0" Vf "Vf" IC "0" Rs "Rsnub" Cs "Csnub" Measurements off } Block { BlockType Reference Name "Voltage Measurement" SID 1301 Ports [0, 1, 0, 0, 0, 2] Position [365, 188, 390, 212] BlockMirror on ShowName off LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib/Measurements/Voltage Measurement" SourceType "Voltage Measurement" ShowPortLabels "FromPortIcon" 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 "Voltage Measurement1" SID 1302 Ports [0, 1, 0, 0, 0, 2] Position [655, 143, 680, 167] BlockMirror on ShowName off LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib/Measurements/Voltage Measurement" SourceType "Voltage Measurement" ShowPortLabels "FromPortIcon" 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 "Voltage Measurement2" SID 1303 Ports [0, 1, 0, 0, 0, 2] Position [955, 138, 980, 162] BlockMirror on ShowName off LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib/Measurements/Voltage Measurement" SourceType "Voltage Measurement" ShowPortLabels "FromPortIcon" 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 PMIOPort Name "A" SID 1304 Position [265, 20, 295, 35] BlockRotation 270 BlockMirror on NamePlacement "alternate" Port "1" Side "Left" } Block { BlockType PMIOPort Name "B" SID 1305 Position [610, 40, 640, 55] BlockRotation 270 BlockMirror on NamePlacement "alternate" Port "2" Side "Left" } Block { BlockType PMIOPort Name "C" SID 1306 Position [915, 30, 945, 45] BlockRotation 270 BlockMirror on NamePlacement "alternate" Port "3" Side "Left" } Block { BlockType PMIOPort Name "A1" SID 1307 Position [265, 515, 295, 530] BlockRotation 270 NamePlacement "alternate" Port "4" Side "Right" } Block { BlockType PMIOPort Name "B1" SID 1308 Position [615, 515, 645, 530] BlockRotation 270 NamePlacement "alternate" Port "5" Side "Right" } Block { BlockType PMIOPort Name "C1" SID 1309 Position [920, 515, 950, 530] BlockRotation 270 NamePlacement "alternate" Port "6" Side "Right" } Line { SrcBlock "P" SrcPort 1 DstBlock "Demux" DstPort 1 } Line { LineType "Connection" SrcBlock "ThA-" SrcPort LConn1 Points [0, 35; -40, 0] Branch { ConnectType "DEST_DEST" SrcBlock "Lab" SrcPort LConn1 Points [0, -55] } Branch { ConnectType "DEST_SRC" Points [-45, 0] DstBlock "ThA+" DstPort RConn1 } } Line { SrcBlock "Demux" SrcPort 1 DstBlock "Goto" DstPort 1 } Line { SrcBlock "Demux" SrcPort 2 DstBlock "Goto1" DstPort 1 } Line { SrcBlock "Demux" SrcPort 3 DstBlock "Goto2" DstPort 1 } Line { SrcBlock "Demux" SrcPort 4 DstBlock "Goto3" DstPort 1 } Line { SrcBlock "Demux" SrcPort 5 DstBlock "Goto4" DstPort 1 } Line { LineType "Connection" Points [460, 70; 0, 165] DstBlock "MOV3" DstPort LConn1 Branch { ConnectType "SRC_DEST" SrcBlock "Breaker" SrcPort LConn1 Points [0, -290; -30, 0] } Branch { ConnectType "SRC_SRC" Points [-35, 0] Branch { ConnectType "DEST_DEST" Points [425, 195; 0, -125] Branch { ConnectType "SRC_SRC" DstBlock "Series RLC Branch" DstPort LConn1 } Branch { ConnectType "SRC_SRC" DstBlock "Voltage Measurement" DstPort LConn1 } } Branch { ConnectType "DEST_SRC" Points [-110, 0] Branch { ConnectType "DEST_SRC" Points [-35, 0] DstBlock "A" DstPort RConn1 } Branch { ConnectType "DEST_SRC" Points [-40, 0] DstBlock "Current Measurement" DstPort LConn1 } } } } Line { LineType "Connection" SrcBlock "ThB-" SrcPort LConn1 Points [0, 40; -40, 0] Branch { ConnectType "DEST_DEST" SrcBlock "Lbc" SrcPort LConn1 Points [0, -60] } Branch { ConnectType "DEST_SRC" Points [-45, 0] DstBlock "ThB+" DstPort RConn1 } } Line { LineType "Connection" SrcBlock "MOV1" SrcPort LConn1 Points [0, -150] Branch { ConnectType "DEST_DEST" SrcBlock "Breaker1" SrcPort LConn1 Points [0, -285; -20, 0] } Branch { ConnectType "DEST_SRC" Points [-55, 0] Branch { ConnectType "DEST_DEST" Points [710, 150; 0, -75] Branch { ConnectType "SRC_DEST" SrcBlock "Seh1" SrcPort LConn1 Points [0, -40] } Branch { ConnectType "SRC_SRC" DstBlock "Voltage Measurement1" DstPort LConn1 } } Branch { ConnectType "DEST_SRC" Points [-85, 0; 0, 35] Branch { ConnectType "DEST_DEST" Points [625, 175; 0, -25; 0, -40] Branch { ConnectType "SRC_SRC" Points [35, 0] DstBlock "ThB-" DstPort RConn1 } Branch { ConnectType "SRC_DEST" SrcBlock "ThB+" SrcPort LConn1 Points [0, -30; 30, 0] } } Branch { ConnectType "DEST_SRC" DstBlock "B" DstPort RConn1 } } } } Line { LineType "Connection" SrcBlock "ThC-" SrcPort LConn1 Points [0, 40; -50, 0] Branch { ConnectType "DEST_DEST" SrcBlock "Lca" SrcPort LConn1 Points [0, -50; -5, 0] } Branch { ConnectType "DEST_SRC" Points [-40, 0] DstBlock "ThC+" DstPort RConn1 } } Line { LineType "Connection" Points [1070, 65; 0, 125] DstBlock "MOV2" DstPort LConn1 Branch { ConnectType "SRC_DEST" SrcBlock "Breaker2" SrcPort LConn1 Points [0, -295; -65, 0] } Branch { ConnectType "SRC_SRC" Points [-50, 0] Branch { ConnectType "DEST_DEST" Points [1020, 125; 0, -60] Branch { ConnectType "SRC_DEST" SrcBlock "Series RLC Branch2" SrcPort LConn1 Points [0, -65] } Branch { ConnectType "SRC_SRC" Points [-25, 0] DstBlock "Voltage Measurement2" DstPort LConn1 } } Branch { ConnectType "DEST_SRC" Points [-90, 0] Branch { ConnectType "DEST_DEST" Points [930, 180; 0, -20; 0, -95] Branch { ConnectType "SRC_SRC" Points [40, 0] DstBlock "ThC-" DstPort RConn1 } Branch { ConnectType "SRC_DEST" SrcBlock "ThC+" SrcPort LConn1 Points [0, -25; 30, 0] } } Branch { ConnectType "DEST_SRC" DstBlock "C" DstPort RConn1 } } } } Line { SrcBlock "From4" SrcPort 1 Points [5, 0] DstBlock "ThC+" DstPort 1 } Line { SrcBlock "From5" SrcPort 1 Points [5, 0] DstBlock "ThC-" DstPort 1 } Line { SrcBlock "Demux" SrcPort 6 DstBlock "Goto5" DstPort 1 } Line { SrcBlock "From3" SrcPort 1 DstBlock "ThB-" DstPort 1 } Line { SrcBlock "From2" SrcPort 1 Points [15, 0] DstBlock "ThB+" DstPort 1 } Line { SrcBlock "From1" SrcPort 1 DstBlock "ThA-" DstPort 1 } Line { SrcBlock "From" SrcPort 1 Points [5, 0] DstBlock "ThA+" DstPort 1 } Line { LineType "Connection" Points [445, 485; 15, 0; 0, -175] DstBlock "MOV3" DstPort RConn1 Branch { ConnectType "SRC_DEST" Points [320, 485; 125, 0] Branch { ConnectType "SRC_DEST" Points [425, 380; 0, 105; -105, 0] Branch { ConnectType "SRC_SRC" Points [-20, 0] DstBlock "Voltage Measurement" DstPort LConn2 } Branch { ConnectType "SRC_DEST" SrcBlock "Series RLC Branch" SrcPort RConn1 Points [0, 70] } } Branch { ConnectType "SRC_DEST" SrcBlock "Lab" SrcPort RConn1 Points [40, 0] } Branch { ConnectType "SRC_SRC" Points [-40, 0] DstBlock "A1" DstPort RConn1 } } Branch { ConnectType "SRC_SRC" Points [35, 0] DstBlock "Breaker" DstPort RConn1 } } Line { LineType "Connection" Points [755, 490; 10, 0; 0, -190] DstBlock "MOV1" DstPort RConn1 Branch { ConnectType "SRC_DEST" Points [710, 490; 30, 0; 15, 0] Branch { ConnectType "SRC_SRC" Points [0, -170; 0, -10] Branch { ConnectType "DEST_SRC" DstBlock "Seh1" DstPort RConn1 } Branch { ConnectType "DEST_SRC" Points [-15, 0] DstBlock "Voltage Measurement1" DstPort LConn2 } } Branch { ConnectType "SRC_SRC" Points [-80, 0] Branch { ConnectType "DEST_DEST" SrcBlock "Lbc" SrcPort RConn1 Points [0, 5] } Branch { ConnectType "DEST_SRC" DstBlock "B1" DstPort RConn1 } } } Branch { ConnectType "SRC_SRC" Points [20, 0] DstBlock "Breaker1" DstPort RConn1 } } Line { LineType "Connection" Points [1070, 480; 0, -215] DstBlock "MOV2" DstPort RConn1 Branch { ConnectType "SRC_DEST" Points [1015, 480; 55, 0] Branch { ConnectType "SRC_DEST" Points [1020, 325; 0, 155; -5, 0] Branch { ConnectType "SRC_DEST" SrcBlock "Series RLC Branch2" SrcPort RConn1 Points [0, 35] } Branch { ConnectType "SRC_SRC" Points [-25, 0] DstBlock "Voltage Measurement2" DstPort LConn2 } } Branch { ConnectType "SRC_SRC" Points [-80, 0] Branch { ConnectType "DEST_DEST" SrcBlock "Lca" SrcPort RConn1 Points [0, 5] } Branch { ConnectType "DEST_SRC" DstBlock "C1" DstPort RConn1 } } } Branch { ConnectType "SRC_SRC" Points [20, 0; 35, 0] DstBlock "Breaker2" DstPort RConn1 } } Line { LineType "Connection" SrcBlock "ThA-" SrcPort RConn1 Points [0, -30; -30, 0] Branch { ConnectType "DEST_SRC" Points [0, -20] DstBlock "Current Measurement" DstPort RConn1 } Branch { ConnectType "DEST_SRC" Points [-35, 0] DstBlock "ThA+" DstPort LConn1 } } Line { SrcBlock "Current Measurement" SrcPort 1 Points [0, 5] DstBlock "Goto6" DstPort 1 } Line { SrcBlock "Voltage Measurement" SrcPort 1 Points [115, 0; 0, -115] DstBlock "Mux" DstPort 1 } Line { SrcBlock "cb" SrcPort 1 Points [325, 0] Branch { DstBlock "Breaker" DstPort 1 } Branch { Points [225, 0] Branch { Points [70, 0] DstBlock "Breaker1" DstPort 1 } Branch { Points [420, 0] DstBlock "Breaker2" DstPort 1 } } } Line { SrcBlock "Voltage Measurement1" SrcPort 1 Points [100, 0; 0, -60] DstBlock "Mux" DstPort 2 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Goto9" DstPort 1 } Line { SrcBlock "Voltage Measurement2" SrcPort 1 Points [105, 0; 0, -45] DstBlock "Mux" DstPort 3 } Annotation { Name "Firing pulses" Position [106, 24] ForegroundColor "blue" FontName "Arial" FontSize 12 FontWeight "bold" } Annotation { Name "TCSC 1" Position [581, 21] BackgroundColor "yellow" FontName "Arial" FontSize 18 FontWeight "bold" } } } Block { BlockType Reference Name "Three-Phase\nParallel RLC Load1" SID 672 Ports [0, 0, 0, 0, 0, 3] Position [602, 1825, 658, 1890] BlockRotation 270 BlockMirror on AttributesFormatString "\\n" LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" FontName "Verdana" FontSize 11 SourceBlock "powerlib/Elements/Three-Phase\nParallel RLC Load" SourceType "Three-Phase Parallel RLC Load" PhysicalDomain "powersysdomain" SubClassName "unknown" LeftPortType "p1" RightPortType "p1" LConnTagsString "A|B|C" Configuration "Y (grounded)" NominalVoltage "22000" NominalFrequency "50" ActivePower "1e3" InductivePower "0" CapacitivePower "0" Measurements "None" } Block { BlockType Reference Name "Three-Phase\nParallel RLC Load2" SID 671 Ports [0, 0, 0, 0, 0, 3] Position [1852, 370, 1908, 435] BlockRotation 270 BlockMirror on AttributesFormatString "\\n" LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" FontName "Verdana" FontSize 11 SourceBlock "powerlib/Elements/Three-Phase\nParallel RLC Load" SourceType "Three-Phase Parallel RLC Load" PhysicalDomain "powersysdomain" SubClassName "unknown" LeftPortType "p1" RightPortType "p1" LConnTagsString "A|B|C" Configuration "Y (grounded)" NominalVoltage "22000" NominalFrequency "50" ActivePower "1e3" InductivePower "0" CapacitivePower "0" Measurements "None" } Block { BlockType Reference Name "Three-Phase\nParallel RLC Load3" SID 670 Ports [0, 0, 0, 0, 0, 3] Position [312, 695, 368, 760] BlockRotation 270 BlockMirror on AttributesFormatString "\\n" LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" FontName "Verdana" FontSize 11 SourceBlock "powerlib/Elements/Three-Phase\nParallel RLC Load" SourceType "Three-Phase Parallel RLC Load" PhysicalDomain "powersysdomain" SubClassName "unknown" LeftPortType "p1" RightPortType "p1" LConnTagsString "A|B|C" Configuration "Y (grounded)" NominalVoltage "22000" NominalFrequency "50" ActivePower "1e3" InductivePower "0" CapacitivePower "0" Measurements "None" } Block { BlockType Reference Name "Three-Phase\nParallel RLC Load4" SID 701 Ports [0, 0, 0, 0, 0, 3] Position [1455, 612, 1520, 668] BlockMirror on AttributesFormatString "\\n" LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" FontName "Verdana" FontSize 11 SourceBlock "powerlib/Elements/Three-Phase\nParallel RLC Load" SourceType "Three-Phase Parallel RLC Load" PhysicalDomain "powersysdomain" SubClassName "unknown" LeftPortType "p1" RightPortType "p1" LConnTagsString "A|B|C" Configuration "Y (grounded)" NominalVoltage "400000" NominalFrequency "50" ActivePower "500e6" InductivePower "50e6" CapacitivePower "0" Measurements "None" } Block { BlockType Reference Name "Three-Phase\nParallel RLC Load5" SID 702 Ports [0, 0, 0, 0, 0, 3] Position [1610, 1032, 1675, 1088] NamePlacement "alternate" AttributesFormatString "\\n" LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" FontName "Verdana" FontSize 11 SourceBlock "powerlib/Elements/Three-Phase\nParallel RLC Load" SourceType "Three-Phase Parallel RLC Load" PhysicalDomain "powersysdomain" SubClassName "unknown" LeftPortType "p1" RightPortType "p1" LConnTagsString "A|B|C" Configuration "Y (grounded)" NominalVoltage "400000" NominalFrequency "50" ActivePower "400e6" InductivePower "30e6" CapacitivePower "0" Measurements "None" } Block { BlockType Reference Name "Three-Phase\nParallel RLC Load6" SID 703 Ports [0, 0, 0, 0, 0, 3] Position [1135, 1017, 1200, 1073] NamePlacement "alternate" AttributesFormatString "\\n" LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" FontName "Verdana" FontSize 11 SourceBlock "powerlib/Elements/Three-Phase\nParallel RLC Load" SourceType "Three-Phase Parallel RLC Load" PhysicalDomain "powersysdomain" SubClassName "unknown" LeftPortType "p1" RightPortType "p1" LConnTagsString "A|B|C" Configuration "Y (grounded)" NominalVoltage "400000" NominalFrequency "50" ActivePower "300e6" InductivePower "30e6" CapacitivePower "0" Measurements "None" } Block { BlockType Reference Name "Three-Phase Fault1" SID 1421 Ports [0, 0, 0, 0, 0, 3] Position [1295, 515, 1335, 575] BlockMirror on NamePlacement "alternate" ShowName off LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" FontName "Verdana" FontSize 11 SourceBlock "powerlib/Elements/Three-Phase Fault" SourceType "Three-Phase Fault" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" FaultA on FaultB on FaultC on FaultResistance "0.001" GroundFault on GroundResistance "1" External off SwitchStatus "[1 0]" SwitchTimes "[5.6 51]" InitialStates "[0 0 1]" SnubberResistance "inf" SnubberCapacitance "inf" Measurements "None" } Block { BlockType Reference Name "Three-Phase Fault2" SID 1393 Ports [0, 0, 0, 0, 0, 3] Position [755, 1335, 795, 1395] BlockMirror on NamePlacement "alternate" ShowName off LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" FontName "Verdana" FontSize 11 SourceBlock "powerlib/Elements/Three-Phase Fault" SourceType "Three-Phase Fault" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" FaultA on FaultB on FaultC on FaultResistance "0.001" GroundFault on GroundResistance "1" External off SwitchStatus "[1 0]" SwitchTimes "[5.005 5.115]" InitialStates "[0 0 1]" SnubberResistance "inf" SnubberCapacitance "inf" Measurements "None" } Block { BlockType Reference Name "Three-phase\nTransformer\n600 MVA 22 kV / 400 kV" SID 631 Ports [0, 0, 0, 0, 0, 3, 3] Position [475, 549, 550, 621] BackgroundColor "lightBlue" AttributesFormatString "\\n" LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib/Elements/Three-Phase\nTransformer\n(Two Windings)" SourceType "Three-Phase Transformer (Two Windings)" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" Winding1Connection "Delta (D1)" UNITS "pu" NominalPower "[565e6 50 ]" Winding1 "[ 22e3 0.000885 0.0815]" Winding2Connection "Yg" Winding2 " [ 400e3 0.000885 0.0815] " SetSaturation off Rm "100" Lm "100" Saturation "[ 0,0 ; 0.005,1.2 ; 1.0,1.4 ]" Hysteresis off DataFile "'hysteresis'" SetInitialFlux off InitialFluxes "[ 0.8 , -0.8 , 0.7 ]" Measurements "None" MoreParameters off BreakLoop off DataType off TransfoNumber "0" } Block { BlockType Reference Name "Three-phase\nTransformer\n600 MVA 22 kV / 400 kV1" SID 650 Ports [0, 0, 0, 0, 0, 3, 3] Position [700, 1724, 775, 1796] BackgroundColor "lightBlue" AttributesFormatString "\\n" LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib/Elements/Three-Phase\nTransformer\n(Two Windings)" SourceType "Three-Phase Transformer (Two Windings)" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" Winding1Connection "Delta (D1)" UNITS "pu" NominalPower "[ 600e6 50 ]" Winding1 "[ 22e3 0.000885 0.0815]" Winding2Connection "Yg" Winding2 " [ 400e3 0.000885 0.0815] " SetSaturation off Rm "100" Lm "100" Saturation "[ 0,0 ; 0.005,1.2 ; 1.0,1.4 ]" Hysteresis off DataFile "'hysteresis'" SetInitialFlux off InitialFluxes "[ 0.8 , -0.8 , 0.7 ]" Measurements "None" MoreParameters off BreakLoop off DataType off TransfoNumber "0" } Block { BlockType Reference Name "Three-phase\nTransformer\n600 MVA 22 kV / 400 kV2" SID 669 Ports [0, 0, 0, 0, 0, 3, 3] Position [1930, 224, 2005, 296] BackgroundColor "lightBlue" AttributesFormatString "\\n" LibraryVersion "1.1899" DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib/Elements/Three-Phase\nTransformer\n(Two Windings)" SourceType "Three-Phase Transformer (Two Windings)" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" Winding1Connection "Delta (D1)" UNITS "pu" NominalPower "[ 410e6 50 ]" Winding1 "[ 22e3 0.000885 0.0815]" Winding2Connection "Yg" Winding2 " [ 400e3 0.000885 0.0815] " SetSaturation off Rm "100" Lm "100" Saturation "[ 0,0 ; 0.005,1.2 ; 1.0,1.4 ]" Hysteresis off DataFile "'hysteresis'" SetInitialFlux off InitialFluxes "[ 0.8 , -0.8 , 0.7 ]" Measurements "None" MoreParameters off BreakLoop off DataType off TransfoNumber "0" } Block { BlockType ToFile Name "To File1" SID 1486 Position [340, 1150, 400, 1180] Filename "Z" MatrixName "z" } Block { BlockType ToFile Name "To File2" SID 1487 Position [340, 1195, 400, 1225] Filename "P" MatrixName "p" SaveFormat "Timeseries" } Block { BlockType ToFile Name "To File3" SID 1488 Position [340, 1105, 400, 1135] Filename "ALPHA" MatrixName "alpha" SaveFormat "Timeseries" } Block { BlockType Scope Name "main variables1" SID 1489 Ports [3] Position [345, 1239, 395, 1341] BackgroundColor "green" Floating off Location [5, 48, 1371, 727] Open off NumInputPorts "3" ZoomMode "yonly" List { ListType AxesTitles axes1 "Power [MW]" axes2 "TCSC impedance (reference and measured)" axes3 "alpha [deg]" } TimeRange "8" YMin "-200~0~65" YMax "1000~300~90" SaveToWorkspace on SaveName "VIabc_Prim" DataFormat "StructureWithTime" LimitDataPoints off SampleInput on SampleTime "Ts" } Block { BlockType SubSystem Name "negatice sequence calculation" SID 1490 Ports [0, 1] Position [245, 905, 345, 1055] BackgroundColor "blue" MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "negatice sequence calculation" Location [2, 82, 1342, 715] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Constant Name "Constant" SID 1491 Position [670, 179, 710, 201] ShowName off Value "epsilon" OutDataType "fixdt(1, 16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant1" SID 1492 Position [770, 174, 810, 196] ShowName off Value "0" OutDataType "fixdt(1, 16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant2" SID 1493 Position [980, 194, 1020, 216] ShowName off Value "0" OutDataType "fixdt(1, 16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant3" SID 1494 Position [980, 134, 1020, 156] ShowName off OutDataType "fixdt(1, 16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant4" SID 1495 Position [550, 209, 590, 231] ShowName off Value "0" OutDataType "fixdt(1, 16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant5" SID 1496 Position [330, 209, 370, 231] ShowName off Value "0" OutDataType "fixdt(1, 16)" OutScaling "2^0" } Block { BlockType Reference Name "Discrete 3-phase\nSequence Analyzer\n(Fundamental)" SID 1497 Ports [1, 2] Position [190, 145, 245, 200] LibraryVersion "1.612" DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib_extras/Discrete\nMeasurements/Discrete 3-phase\nSequence Analyzer" SourceType "Discrete 3-Phase Sequence Analyzer" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" Freq "50" n "1" seq "Negative" Par_Init "[0 0]" Ts "50e-6" Port { PortNumber 1 Name " I. fund. Neg. seq. (pu)" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" } } Block { BlockType From Name "From" SID 1498 Position [30, 164, 95, 186] BackgroundColor "yellow" ShowName off CloseFcn "tagdialog Close" GotoTag "Iabc" TagVisibility "global" } Block { BlockType Gain Name "Gain" SID 1499 Position [120, 152, 170, 198] ShowName off Gain "1/200" ParameterDataTypeMode "Inherit via internal rule" ParameterDataType "fixdt(1, 16)" ParameterScaling "2^0" ParamDataTypeStr "Inherit: Inherit via internal rule" OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1, 16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Reference Name "Maximum1" SID 1500 Ports [1, 1] Position [900, 155, 955, 195] ShowName off LibraryVersion "1.485" DialogController "dspDDGCreate" DialogControllerArgs "DataTag0" SourceBlock "dspstat3/Maximum" SourceType "Maximum" fcn "Value" reset "None" indexBase "Zero" operateOver "Entire input" Dimension "1" colComp on operation "maximum" roiEnable off roiType "Rectangles" roiPortion "Entire ROI" roiOutput "Individual statistics for each ROI" roiFlag off additionalParams off allowOverrides on accumMode "Same as product output" accumWordLength "32" accumFracLength "30" accumDataTypeStr "Inherit: Same as product output" accumLastDataTypeStr "Inherit: Same as product output" prodOutputMode "Same as input" prodOutputWordLength "32" prodOutputFracLength "30" prodOutputDataTypeStr "Inherit: Same as input" prodOutputLastDataTypeStr "Inherit: Same as input" roundingMode "Floor" overflowMode off LockScale off } Block { BlockType Mux Name "Mux" SID 1501 Ports [2, 1] Position [860, 156, 865, 194] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Scope Name "Scope1" SID 1502 Ports [1] Position [1090, 264, 1120, 296] BackgroundColor "red" ShowName off Floating off Location [5, 48, 1369, 727] Open off NumInputPorts "1" ZoomMode "xonly" List { ListType AxesTitles axes1 "%" } YMin "-1.66533e-016" YMax "2.4" SaveName "ScopeData14" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "Scope2" SID 1503 Ports [3] Position [1110, 24, 1140, 56] BackgroundColor "red" ShowName off Floating off Location [5, 48, 1371, 727] Open off NumInputPorts "3" ZoomMode "xonly" List { ListType AxesTitles axes1 "%" axes2 "%" axes3 "%" } YMin "-1.66533e-016~-5~-5" YMax "2.4~5~5" SaveName "ScopeData15" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "Scope9" SID 1504 Ports [1] Position [420, 79, 450, 111] BackgroundColor "red" ShowName off Floating off Location [5, 48, 1371, 727] Open off NumInputPorts "1" ZoomMode "yonly" List { ListType AxesTitles axes1 "%" } YMin "-1.66533e-016" YMax "2.4" SaveName "ScopeData12" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Step Name "Step" SID 1505 Position [285, 180, 315, 210] ShowName off Time "3" Before "-1" SampleTime "0" } Block { BlockType Sum Name "Sum" SID 1506 Ports [2, 1] Position [460, 155, 480, 175] ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1, 16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum1" SID 1507 Ports [3, 1] Position [725, 155, 745, 175] ShowName off IconShape "round" Inputs "++-" InputSameDT off OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1, 16)" OutScaling "2^0" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Switch Name "Switch" SID 1508 Position [1050, 160, 1080, 190] ShowName off Threshold "h" InputSameDT off OutDataType "fixdt(1, 16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Switch Name "Switch1" SID 1509 Position [625, 150, 655, 180] ShowName off Threshold "epsilon" InputSameDT off OutDataType "fixdt(1, 16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Switch Name "Switch2" SID 1510 Position [395, 150, 425, 180] ShowName off InputSameDT off OutDataType "fixdt(1, 16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Terminator Name "Terminator" SID 1511 Position [255, 177, 270, 193] ShowName off } Block { BlockType ToFile Name "To File1" SID 1512 Position [1090, 315, 1150, 345] Filename "GK" MatrixName "gk" SaveFormat "Timeseries" } Block { BlockType ToFile Name "To File2" SID 1513 Position [460, 40, 520, 70] Filename "I2" MatrixName "i2" SaveFormat "Timeseries" } Block { BlockType ToFile Name "To File3" SID 1514 Position [1140, 85, 1200, 115] Filename "OUT" MatrixName "out" SaveFormat "Timeseries" } Block { BlockType UnitDelay Name "Unit Delay" SID 1515 Position [505, 188, 535, 212] BlockMirror on ShowName off SampleTime "1e-3" } Block { BlockType UnitDelay Name "Unit Delay1" SID 1516 Position [800, 108, 830, 132] BlockMirror on ShowName off SampleTime "1e-3" } Block { BlockType ZeroOrderHold Name "Zero-Order\nHold" SID 1517 Position [285, 140, 320, 170] ShowName off SampleTime "1e-3" } Block { BlockType Outport Name "Out1" SID 1518 Position [1130, 168, 1160, 182] IconDisplay "Port number" OutDataType "fixdt(1, 16)" OutScaling "2^0" } Line { SrcBlock "From" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { Name " I. fund. Neg. seq. (pu)" Labels [0, 0] SrcBlock "Discrete 3-phase\nSequence Analyzer\n(Fundamental)" SrcPort 1 Points [20, 0] DstBlock "Zero-Order\nHold" DstPort 1 } Line { SrcBlock "Unit Delay" SrcPort 1 Points [-30, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Sum" SrcPort 1 Points [80, 0] Branch { DstBlock "Switch1" DstPort 2 } Branch { Points [5, 0] Branch { Points [0, 35] DstBlock "Unit Delay" DstPort 1 } Branch { Points [0, -10] DstBlock "Switch1" DstPort 1 } } } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Maximum1" DstPort 1 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Mux" DstPort 1 } Line { SrcBlock "Constant1" SrcPort 1 DstBlock "Mux" DstPort 2 } Line { SrcBlock "Maximum1" SrcPort 1 Points [10, 0] Branch { Points [0, -55] DstBlock "Unit Delay1" DstPort 1 } Branch { Points [35, 0] Branch { DstBlock "Switch" DstPort 2 } Branch { Points [10, 0; 0, -140; 80, 0] DstBlock "Scope2" DstPort 2 } Branch { Points [0, 105] Branch { DstBlock "Scope1" DstPort 1 } Branch { Points [0, 50] DstBlock "To File1" DstPort 1 } } } } Line { SrcBlock "Constant2" SrcPort 1 Points [0, -20] DstBlock "Switch" DstPort 3 } Line { SrcBlock "Constant3" SrcPort 1 Points [0, 20] DstBlock "Switch" DstPort 1 } Line { SrcBlock "Switch" SrcPort 1 Points [15, 0] Branch { DstBlock "Out1" DstPort 1 } Branch { Points [0, -75] Branch { Points [0, -50] DstBlock "Scope2" DstPort 3 } Branch { DstBlock "To File3" DstPort 1 } } } Line { SrcBlock "Constant4" SrcPort 1 Points [0, -45] DstBlock "Switch1" DstPort 3 } Line { SrcBlock "Switch1" SrcPort 1 DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Constant" SrcPort 1 DstBlock "Sum1" DstPort 3 } Line { SrcBlock "Unit Delay1" SrcPort 1 Points [-60, 0] DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Discrete 3-phase\nSequence Analyzer\n(Fundamental)" DstPort 1 } Line { SrcBlock "Switch2" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Step" SrcPort 1 Points [30, 0; 0, -30] DstBlock "Switch2" DstPort 2 } Line { SrcBlock "Zero-Order\nHold" SrcPort 1 Points [35, 0] Branch { DstBlock "Switch2" DstPort 1 } Branch { Points [-10, 0; 0, -60] Branch { DstBlock "Scope9" DstPort 1 } Branch { Points [0, -40] Branch { Points [0, -25] DstBlock "Scope2" DstPort 1 } Branch { DstBlock "To File2" DstPort 1 } } } } Line { SrcBlock "Constant5" SrcPort 1 Points [0, -45] DstBlock "Switch2" DstPort 3 } Line { SrcBlock "Discrete 3-phase\nSequence Analyzer\n(Fundamental)" SrcPort 2 DstBlock "Terminator" DstPort 1 } } } Block { BlockType Reference Name "powergui" SID 271 Ports [] Position [1630, 55, 1726, 96] DropShadow on ShowName off Priority "2" LibraryVersion "1.1899" UserDataPersistent on UserData "DataTag1" FontSize 11 SourceBlock "powerlib/powergui" SourceType "PSB option menu block" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" SimulationMode "Discrete" SampleTime "Ts" frequency "60" SPID off DisableSnubberDevices off DisableRonSwitches off DisableVfSwitches off SwTol "0" Interpol off frequencyindice "50" echomessages off HookPort off DisplayEquations off FunctionMessages off EnableUseOfTLC off x0status "blocks" RestoreLinks "warning" ResistiveCurrentMeasurement off Frange "[0:2:500]" Ylog off Xlog on ShowGrid off save off variable "ZData" ZoomFFT on StartTime "0.0" cycles "1" DisplayStyle "1" fundamental "60" FreqAxis off MaxFrequency "1000" frequencyindicesteady "1" RmsSteady "2" display off Ts "0" methode off } Block { BlockType Reference Name "zref" SID 1260 Ports [0, 1] Position [455, 169, 495, 201] LibraryVersion "1.612" DialogController "POWERSYS.PowerSysDialog" SourceBlock "powerlib_extras/Control \nBlocks/Timer" SourceType "Timer" ShowPortLabels "FromPortIcon" SystemSampleTime "-1" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" t "[ 0 2.5 5 ]" e "[1.0 1.0 1.0 ]*219.44" } Line { LineType "Connection" SrcBlock "BR1" SrcPort RConn1 DstBlock "Line 1\n(160 km)" DstPort LConn1 } Line { LineType "Connection" SrcBlock "BR1" SrcPort RConn2 DstBlock "Line 1\n(160 km)" DstPort LConn2 } Line { LineType "Connection" SrcBlock "BR1" SrcPort RConn3 DstBlock "Line 1\n(160 km)" DstPort LConn3 } Line { LineType "Connection" SrcBlock "Line 2\n(60 km)1" SrcPort LConn1 Points [-30, 0] Branch { ConnectType "DEST_SRC" DstBlock "Line 2\n(100 km)2" DstPort RConn1 } Branch { ConnectType "DEST_SRC" Points [0, 100] DstBlock "Three-Phase Fault1" DstPort LConn1 } } Line { LineType "Connection" SrcBlock "Line 2\n(60 km)1" SrcPort LConn2 Points [-20, 0] Branch { ConnectType "DEST_SRC" DstBlock "Line 2\n(100 km)2" DstPort RConn2 } Branch { ConnectType "DEST_SRC" Points [0, 100] DstBlock "Three-Phase Fault1" DstPort LConn2 } } Line { LineType "Connection" SrcBlock "Line 2\n(60 km)1" SrcPort LConn3 Points [-10, 0] Branch { ConnectType "DEST_SRC" DstBlock "Line 2\n(100 km)2" DstPort RConn3 } Branch { ConnectType "DEST_SRC" Points [0, 100] DstBlock "Three-Phase Fault1" DstPort LConn3 } } Line { LineType "Connection" Points [700, 585; 0, 120; 20, 0] DstBlock "BR3" DstPort LConn2 Branch { ConnectType "SRC_SRC" DstBlock "B1" DstPort RConn2 } Branch { ConnectType "SRC_DEST" SrcBlock "BR1" SrcPort LConn2 Points [-30, 0; 0, 145] } } Line { LineType "Connection" Points [715, 525; 0, 160; 5, 0] DstBlock "BR3" DstPort LConn1 Branch { ConnectType "SRC_DEST" SrcBlock "B1" SrcPort RConn1 Points [25, 0] } Branch { ConnectType "SRC_DEST" SrcBlock "BR1" SrcPort LConn1 Points [-15, 0; 0, 105] } } Line { LineType "Connection" Points [690, 645; 0, 80; 30, 0] DstBlock "BR3" DstPort LConn3 Branch { ConnectType "SRC_DEST" SrcBlock "B1" SrcPort RConn3 Points [0, 0] } Branch { ConnectType "SRC_DEST" SrcBlock "BR1" SrcPort LConn3 Points [-40, 0; 0, 185] } } Line { LineType "Connection" SrcBlock "BR3" SrcPort RConn3 Points [75, 0] DstBlock "Line 2\n(310 km)1" DstPort LConn1 } Line { LineType "Connection" SrcBlock "Line 2\n(310 km)1" SrcPort RConn3 DstBlock "BR4" DstPort LConn3 } Line { LineType "Connection" SrcBlock "BR3" SrcPort RConn2 Points [95, 0] DstBlock "Line 2\n(310 km)1" DstPort LConn2 } Line { LineType "Connection" SrcBlock "BR3" SrcPort RConn1 Points [115, 0] DstBlock "Line 2\n(310 km)1" DstPort LConn3 } Line { LineType "Connection" SrcBlock "Line 2\n(310 km)1" SrcPort RConn1 DstBlock "BR4" DstPort LConn1 } Line { LineType "Connection" SrcBlock "Line 2\n(310 km)1" SrcPort RConn2 DstBlock "BR4" DstPort LConn2 } Line { LineType "Connection" Points [905, 1085; 0, -40; 215, 0] DstBlock "Three-Phase\nParallel RLC Load6" DstPort LConn2 Branch { ConnectType "SRC_DEST" SrcBlock "BR4" SrcPort RConn2 Points [0, 65] } Branch { ConnectType "SRC_SRC" DstBlock "B4" DstPort LConn2 } } Line { LineType "Connection" Points [885, 1060; 235, 0; 0, 5] DstBlock "Three-Phase\nParallel RLC Load6" DstPort LConn3 Branch { ConnectType "SRC_DEST" SrcBlock "BR4" SrcPort RConn1 Points [0, 40] } Branch { ConnectType "SRC_SRC" Points [0, 10; -45, 0] DstBlock "B4" DstPort LConn1 } } Line { LineType "Connection" SrcBlock "BR6" SrcPort RConn1 Points [-45, 0; 0, 45] Branch { ConnectType "DEST_DEST" SrcBlock "B5" SrcPort LConn1 Points [0, -10] } Branch { ConnectType "DEST_SRC" DstBlock "BR7" DstPort LConn3 } } Line { LineType "Connection" Points [905, 1485; 0, -25] DstBlock "BR6" DstPort RConn2 Branch { ConnectType "SRC_SRC" DstBlock "BR7" DstPort LConn2 } Branch { ConnectType "SRC_SRC" DstBlock "B5" DstPort LConn2 } } Line { LineType "Connection" Points [970, 1465; 20, 0] DstBlock "BR7" DstPort LConn1 Branch { ConnectType "SRC_DEST" SrcBlock "BR6" SrcPort RConn3 Points [45, 0; 0, 5] } Branch { ConnectType "SRC_SRC" DstBlock "B5" DstPort LConn3 } } Line { LineType "Connection" Points [925, 1030; 195, 0; 0, -5] DstBlock "Three-Phase\nParallel RLC Load6" DstPort LConn1 Branch { ConnectType "SRC_DEST" SrcBlock "B4" SrcPort LConn3 Points [0, -15; -45, 0; 0, -40] } Branch { ConnectType "SRC_SRC" DstBlock "BR4" DstPort RConn3 } } Line { LineType "Connection" SrcBlock "Three-Phase\nParallel RLC Load5" SrcPort LConn1 Points [-285, 0] Branch { ConnectType "DEST_SRC" Points [0, 45] DstBlock "B6" DstPort LConn1 } Branch { ConnectType "DEST_DEST" Points [1950, 510; 0, 235; -640, 0; 0, 295] Branch { ConnectType "SRC_DEST" SrcBlock "Line 3\n(400 km)3" SrcPort RConn1 Points [40, 0; 0, -40; 20, 0] } Branch { ConnectType "SRC_SRC" DstBlock "B3" DstPort LConn1 } } } Line { LineType "Connection" Points [1335, 1060; 260, 0] DstBlock "Three-Phase\nParallel RLC Load5" DstPort LConn2 Branch { ConnectType "SRC_DEST" SrcBlock "B6" SrcPort LConn2 Points [0, -25] } Branch { ConnectType "SRC_DEST" Points [1970, 575; 0, 200; -635, 0; 0, 285] Branch { ConnectType "SRC_DEST" SrcBlock "Line 3\n(400 km)3" SrcPort RConn2 Points [80, 0] } Branch { ConnectType "SRC_SRC" DstBlock "B3" DstPort LConn2 } } } Line { LineType "Connection" SrcBlock "Three-Phase\nParallel RLC Load5" SrcPort LConn3 Points [-235, 0] Branch { ConnectType "DEST_SRC" Points [0, 5] DstBlock "B6" DstPort LConn3 } Branch { ConnectType "DEST_DEST" Points [1995, 640; 0, 165; -635, 0; 0, 275] Branch { ConnectType "SRC_DEST" SrcBlock "Line 3\n(400 km)3" SrcPort RConn3 Points [45, 0; 0, 40; 60, 0] } Branch { ConnectType "SRC_SRC" DstBlock "B3" DstPort LConn3 } } } Line { LineType "Connection" SrcBlock "B6" SrcPort RConn1 Points [0, 25; 45, 0] DstBlock "Line 2\n(350 km)1" DstPort LConn1 } Line { LineType "Connection" SrcBlock "B6" SrcPort RConn2 DstBlock "Line 2\n(350 km)1" DstPort LConn2 } Line { LineType "Connection" SrcBlock "B6" SrcPort RConn3 Points [0, 30; -45, 0] DstBlock "Line 2\n(350 km)1" DstPort LConn3 } Line { LineType "Connection" Points [1670, 575; 0, 120; -135, 0; 0, -55] DstBlock "Three-Phase\nParallel RLC Load4" DstPort LConn2 Branch { ConnectType "SRC_SRC" Points [0, -130] DstBlock "BR2" DstPort RConn2 } Branch { ConnectType "SRC_DEST" SrcBlock "B2" SrcPort LConn2 Points [-20, 0] } } Line { LineType "Connection" Points [1660, 640; 0, 75; -105, 0; 0, -55; -20, 0] DstBlock "Three-Phase\nParallel RLC Load4" DstPort LConn3 Branch { ConnectType "SRC_SRC" Points [0, -175] DstBlock "BR2" DstPort RConn3 } Branch { ConnectType "SRC_DEST" SrcBlock "B2" SrcPort LConn3 Points [-30, 0] } } Line { LineType "Connection" SrcBlock "B2" SrcPort RConn1 Points [0, 40] DstBlock "Line 3\n(400 km)3" DstPort LConn1 } Line { LineType "Connection" SrcBlock "B2" SrcPort RConn2 DstBlock "Line 3\n(400 km)3" DstPort LConn2 } Line { LineType "Connection" SrcBlock "B2" SrcPort RConn3 Points [0, -40] DstBlock "Line 3\n(400 km)3" DstPort LConn3 } Line { LineType "Connection" SrcBlock "B3" SrcPort RConn3 Points [215, 0; 0, -355] DstBlock "Three-phase\nTransformer\n600 MVA 22 kV / 400 kV2" DstPort RConn3 } Line { LineType "Connection" Points [1680, 510; 0, 165; -36, 0; 0, -55; -109, 0] DstBlock "Three-Phase\nParallel RLC Load4" DstPort LConn1 Branch { ConnectType "SRC_DEST" SrcBlock "BR2" SrcPort RConn1 Points [95, 0; 0, 85] } Branch { ConnectType "SRC_SRC" DstBlock "B2" DstPort LConn1 } } Line { LineType "Connection" SrcBlock "B4" SrcPort RConn1 Points [0, 15; 45, 0] DstBlock "BR5" DstPort LConn1 } Line { LineType "Connection" SrcBlock "B4" SrcPort RConn2 DstBlock "BR5" DstPort LConn2 } Line { LineType "Connection" SrcBlock "BR5" SrcPort LConn3 Points [0, -15; 45, 0] DstBlock "B4" DstPort RConn3 } Line { LineType "Connection" SrcBlock "Line 2\n(350 km)2" SrcPort LConn1 DstBlock "BR5" DstPort RConn1 } Line { LineType "Connection" SrcBlock "Line 2\n(350 km)2" SrcPort LConn2 DstBlock "BR5" DstPort RConn2 } Line { LineType "Connection" SrcBlock "Line 2\n(350 km)2" SrcPort LConn3 DstBlock "BR5" DstPort RConn3 } Line { LineType "Connection" SrcBlock "Line 2\n(350 km)2" SrcPort RConn1 Points [0, 20] Branch { ConnectType "DEST_SRC" DstBlock "BR6" DstPort LConn1 } Branch { ConnectType "DEST_SRC" Points [0, 20; -75, 0] DstBlock "Three-Phase Fault2" DstPort LConn3 } } Line { LineType "Connection" SrcBlock "Line 2\n(350 km)2" SrcPort RConn2 Points [0, 30] Branch { ConnectType "DEST_SRC" DstBlock "BR6" DstPort LConn2 } Branch { ConnectType "DEST_SRC" DstBlock "Three-Phase Fault2" DstPort LConn2 } } Line { LineType "Connection" SrcBlock "Line 2\n(350 km)2" SrcPort RConn3 Points [0, 10] Branch { ConnectType "DEST_SRC" DstBlock "BR6" DstPort LConn3 } Branch { ConnectType "DEST_SRC" DstBlock "Three-Phase Fault2" DstPort LConn1 } } Line { LineType "Connection" SrcBlock "BR7" SrcPort RConn1 Points [235, 0] DstBlock "Line 2\n(350 km)1" DstPort RConn1 } Line { LineType "Connection" SrcBlock "BR7" SrcPort RConn2 Points [255, 0] DstBlock "Line 2\n(350 km)1" DstPort RConn2 } Line { LineType "Connection" SrcBlock "BR7" SrcPort RConn3 Points [275, 0] DstBlock "Line 2\n(350 km)1" DstPort RConn3 } Line { LineType "Connection" SrcBlock "Line 2\n(60 km)1" SrcPort RConn1 DstBlock "BR2" DstPort LConn1 } Line { LineType "Connection" SrcBlock "Line 2\n(60 km)1" SrcPort RConn2 DstBlock "BR2" DstPort LConn2 } Line { LineType "Connection" SrcBlock "Line 2\n(60 km)1" SrcPort RConn3 DstBlock "BR2" DstPort LConn3 } Line { LineType "Connection" Points [435, 610; 0, 70; -75, 0] DstBlock "Three-Phase\nParallel RLC Load3" DstPort LConn3 Branch { ConnectType "SRC_DEST" SrcBlock "Three-phase\nTransformer\n600 MVA 22 kV / 400 kV" SrcPort LConn3 Points [-25, 0] } Branch { ConnectType "SRC_SRC" Points [-125, 0] DstBlock "465 MVA\nM1" DstPort RConn3 } } Line { LineType "Connection" SrcBlock "Three-Phase\nParallel RLC Load3" SrcPort LConn2 Points [0, -19; 80, 0; 0, -76] Branch { ConnectType "DEST_SRC" DstBlock "Three-phase\nTransformer\n600 MVA 22 kV / 400 kV" DstPort LConn2 } Branch { ConnectType "DEST_SRC" DstBlock "465 MVA\nM1" DstPort RConn2 } } Line { LineType "Connection" SrcBlock "Three-Phase\nParallel RLC Load3" SrcPort LConn1 Points [0, -39; 85, 0; 0, -81] Branch { ConnectType "DEST_SRC" DstBlock "Three-phase\nTransformer\n600 MVA 22 kV / 400 kV" DstPort LConn1 } Branch { ConnectType "DEST_SRC" Points [-95, 0] DstBlock "465 MVA\nM1" DstPort RConn1 } } Line { LineType "Connection" SrcBlock "600 MVA\nM2" SrcPort RConn3 Points [0, 15; 65, 0] Branch { ConnectType "DEST_SRC" Points [35, 0] DstBlock "Three-phase\nTransformer\n600 MVA 22 kV / 400 kV1" DstPort LConn3 } Branch { ConnectType "DEST_SRC" DstBlock "Three-Phase\nParallel RLC Load1" DstPort LConn3 } } Line { LineType "Connection" SrcBlock "600 MVA\nM2" SrcPort RConn1 Points [0, -10; 20, 0] Branch { ConnectType "DEST_SRC" DstBlock "Three-phase\nTransformer\n600 MVA 22 kV / 400 kV1" DstPort LConn1 } Branch { ConnectType "DEST_SRC" Points [5, 0] DstBlock "Three-Phase\nParallel RLC Load1" DstPort LConn1 } } Line { LineType "Connection" SrcBlock "Three-phase\nTransformer\n600 MVA 22 kV / 400 kV1" SrcPort RConn2 Points [115, 0] DstBlock "B5" DstPort RConn2 } Line { LineType "Connection" SrcBlock "Three-phase\nTransformer\n600 MVA 22 kV / 400 kV1" SrcPort RConn3 Points [50, 0] DstBlock "B5" DstPort RConn1 } Line { LineType "Connection" SrcBlock "Three-phase\nTransformer\n600 MVA 22 kV / 400 kV1" SrcPort RConn1 Points [180, 0] DstBlock "B5" DstPort RConn3 } Line { LineType "Connection" Points [1890, 295; 0, 60; 10, 0] DstBlock "Three-Phase\nParallel RLC Load2" DstPort LConn3 Branch { ConnectType "SRC_DEST" SrcBlock "Three-phase\nTransformer\n600 MVA 22 kV / 400 kV2" SrcPort LConn3 Points [0, 10; -25, 0] } Branch { ConnectType "SRC_SRC" Points [-75, 0] DstBlock "310 MVA\nM3" DstPort RConn3 } } Line { LineType "Connection" SrcBlock "Three-Phase\nParallel RLC Load2" SrcPort LConn2 Points [-5, 0; 0, -95] Branch { ConnectType "DEST_SRC" DstBlock "Three-phase\nTransformer\n600 MVA 22 kV / 400 kV2" DstPort LConn2 } Branch { ConnectType "DEST_SRC" DstBlock "310 MVA\nM3" DstPort RConn2 } } Line { LineType "Connection" SrcBlock "Three-Phase\nParallel RLC Load2" SrcPort LConn1 Points [0, -110] Branch { ConnectType "DEST_SRC" Points [55, 0] DstBlock "Three-phase\nTransformer\n600 MVA 22 kV / 400 kV2" DstPort LConn1 } Branch { ConnectType "DEST_SRC" DstBlock "310 MVA\nM3" DstPort RConn1 } } Line { LineType "Connection" SrcBlock "Three-phase\nTransformer\n600 MVA 22 kV / 400 kV2" SrcPort RConn1 Points [270, 0; 0, 275] DstBlock "B3" DstPort RConn1 } Line { LineType "Connection" SrcBlock "B3" SrcPort RConn2 Points [235, 0; 0, -315] DstBlock "Three-phase\nTransformer\n600 MVA 22 kV / 400 kV2" DstPort RConn2 } Line { LineType "Connection" SrcBlock "Three-phase\nTransformer\n600 MVA 22 kV / 400 kV" SrcPort RConn1 Points [40, 0; 0, -35] DstBlock "B1" DstPort LConn1 } Line { LineType "Connection" SrcBlock "Three-phase\nTransformer\n600 MVA 22 kV / 400 kV" SrcPort RConn2 DstBlock "B1" DstPort LConn2 } Line { LineType "Connection" SrcBlock "Three-phase\nTransformer\n600 MVA 22 kV / 400 kV" SrcPort RConn3 Points [40, 0; 0, 35] DstBlock "B1" DstPort LConn3 } Line { LineType "Connection" SrcBlock "600 MVA\nM2" SrcPort RConn2 Points [45, 0] Branch { ConnectType "DEST_SRC" DstBlock "Three-phase\nTransformer\n600 MVA 22 kV / 400 kV1" DstPort LConn2 } Branch { ConnectType "DEST_SRC" DstBlock "Three-Phase\nParallel RLC Load1" DstPort LConn2 } } Line { SrcBlock "From" SrcPort 1 Points [15, 0] Branch { DstBlock "Firing Unit" DstPort 1 } Branch { Points [0, 75] DstBlock "Control System" DstPort 2 } } Line { SrcBlock "Firing Unit" SrcPort 1 Points [220, 0; 0, 305] DstBlock "TCR" DstPort 1 } Line { SrcBlock "Control System" SrcPort 1 DstBlock "Firing Unit" DstPort 2 } Line { SrcBlock "Control System" SrcPort 2 DstBlock "Firing Unit" DstPort 3 } Line { SrcBlock "Firing Unit" SrcPort 2 Points [230, 0; 0, 245] DstBlock "TCR" DstPort 2 } Line { SrcBlock "From1" SrcPort 1 DstBlock "Control System" DstPort 1 } Line { SrcBlock "zref" SrcPort 1 Points [0, 10] DstBlock "Control System" DstPort 3 } Line { LineType "Connection" SrcBlock ")" SrcPort RConn3 DstBlock "TCR" DstPort RConn3 } Line { LineType "Connection" SrcBlock ")" SrcPort RConn2 DstBlock "TCR" DstPort RConn2 } Line { LineType "Connection" SrcBlock ")" SrcPort RConn1 DstBlock "TCR" DstPort RConn1 } Line { LineType "Connection" SrcBlock "TCR" SrcPort LConn1 Points [25, 0] DstBlock ")1" DstPort LConn1 } Line { LineType "Connection" SrcBlock "TCR" SrcPort LConn2 DstBlock ")1" DstPort LConn2 } Line { LineType "Connection" SrcBlock ")1" SrcPort LConn3 Points [0, -10] DstBlock "TCR" DstPort LConn3 } Line { LineType "Connection" SrcBlock "Line 1\n(160 km)" SrcPort RConn1 Points [20, 0; 0, -5] DstBlock ")" DstPort LConn1 } Line { LineType "Connection" SrcBlock "Line 1\n(160 km)" SrcPort RConn2 DstBlock ")" DstPort LConn2 } Line { LineType "Connection" SrcBlock "Line 1\n(160 km)" SrcPort RConn3 Points [20, 0; 0, 5] DstBlock ")" DstPort LConn3 } Line { LineType "Connection" SrcBlock ")1" SrcPort RConn1 Points [15, 0; 0, -5] DstBlock "Line 2\n(100 km)2" DstPort LConn1 } Line { LineType "Connection" SrcBlock ")1" SrcPort RConn2 Points [15, 0; 0, -10] DstBlock "Line 2\n(100 km)2" DstPort LConn2 } Line { LineType "Connection" SrcBlock ")1" SrcPort RConn3 Points [15, 0; 0, -15] DstBlock "Line 2\n(100 km)2" DstPort LConn3 } Line { SrcBlock "Reg_M1" SrcPort 1 DstBlock "465 MVA\nM1" DstPort 1 } Line { SrcBlock "Reg_M1" SrcPort 2 DstBlock "465 MVA\nM1" DstPort 2 } Line { SrcBlock "Pref1" SrcPort 1 DstBlock "Reg_M1" DstPort 2 } Line { SrcBlock "465 MVA\nM1" SrcPort 1 Points [0, -20; -145, 0] DstBlock "Reg_M1" DstPort 1 } Line { SrcBlock "Reg_M2" SrcPort 1 DstBlock "310 MVA\nM3" DstPort 1 } Line { SrcBlock "Reg_M2" SrcPort 2 DstBlock "310 MVA\nM3" DstPort 2 } Line { SrcBlock "Pref2" SrcPort 1 DstBlock "Reg_M2" DstPort 2 } Line { SrcBlock "310 MVA\nM3" SrcPort 1 Points [0, -20; -155, 0] DstBlock "Reg_M2" DstPort 1 } Line { SrcBlock "Reg_M3" SrcPort 1 DstBlock "600 MVA\nM2" DstPort 1 } Line { SrcBlock "Reg_M3" SrcPort 2 DstBlock "600 MVA\nM2" DstPort 2 } Line { SrcBlock "Pref3" SrcPort 1 DstBlock "Reg_M3" DstPort 2 } Line { SrcBlock "600 MVA\nM2" SrcPort 1 Points [0, -20; -155, 0] DstBlock "Reg_M3" DstPort 1 } Line { Name "Power [MW]" Labels [1, 0] SrcBlock "Scopes 1" SrcPort 1 Points [115, 0] Branch { DstBlock "main variables1" DstPort 1 } Branch { Points [0, -45] DstBlock "To File2" DstPort 1 } } Line { Name "ztcsc [Ohms]" SrcBlock "Scopes 1" SrcPort 2 Points [30, 0] Branch { Labels [1, 0] DstBlock "main variables1" DstPort 2 } Branch { Points [0, -125] DstBlock "To File1" DstPort 1 } } Line { Name "alpha [deg]" SrcBlock "Scopes 1" SrcPort 3 Points [5, 0] Branch { Labels [1, 1] DstBlock "main variables1" DstPort 3 } Branch { Points [0, -205] DstBlock "To File3" DstPort 1 } } Line { SrcBlock "negatice sequence calculation" SrcPort 1 DstBlock "Scope9" DstPort 1 } Annotation { Name "impedance for capacitive mode 120FUE=&5R 9F9T=&]O; #@ $@ & \" 0 !0 @ ! %0 " " $ $ !4 !34$-5;FEF:65D1FEX<'1$;&=$1$< " } }