Model { Name "power_tcsc3with_2TCSC_Fault260KM_e1" Version 7.5 MdlSubVersion 0 GraphicalInterface { NumRootInports 0 NumRootOutports 0 ParameterArgumentNames "" ComputedModelVersion "1.839" 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 "Ts = 5e-5;\nepsilon=0.112;\nh=0.3;" Created "Thu Apr 27 20:01:17 2000" Creator "hyp01" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "A" ModifiedDateFormat "%" LastModifiedDate "Tue Jun 10 23:56:10 2014" RTWModifiedTimeStamp 324345199 ModelVersionFormat "1.%" ConfigurationManager "none" SampleTimeColors off SampleTimeAnnotations off LibraryLinkDisplay "none" WideLines off ShowLineDimensions off 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.8" AbsTol "1e-4" FixedStep "Ts" InitialStep "auto" MaxNumMinSteps "-1" MaxOrder 5 ZcThreshold "auto" ConsecutiveZCsStepRelTol "10*128*eps" MaxConsecutiveZCs "1000" ExtrapolationOrder 4 NumberNewtonIterations 1 MaxStep "Ts*2" MinStep "auto" MaxConsecutiveMinStep "1" RelTol "1e-4" SolverMode "SingleTasking" Solver "FixedStepDiscrete" SolverName "FixedStepDiscrete" 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 on 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 "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" SFcnCompatibilityMsg "none" UniqueDataStoreMsg "none" BusObjectLabelMismatch "warning" RootOutportRequireBusObject "warning" AssertControl "UseLocalSettings" EnableOverflowDetection off ModelReferenceIOMsg "none" ModelReferenceVersionMismatchMessage "none" ModelReferenceIOMismatchMessage "none" ModelReferenceCSMismatchMessage "none" 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 " [ 0, 0, 880, 630 ] " } 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 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_tcsc3with_2TCSC_Fault260KM_e1" Location [2, 82, 1331, 715] 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 "78" ReportName "simulink-default.rpt" SIDHighWatermark 839 Block { BlockType Reference Name ")" SID 1 Ports [0, 0, 0, 0, 0, 3, 3] Position [835, 405, 840, 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 2 Ports [0, 0, 0, 0, 0, 3, 3] Position [1055, 419, 1060, 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 "600 MVA\nM1" SID 670 Ports [2, 1, 0, 0, 0, 0, 3] Position [145, 539, 200, 596] 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 -58.9841 0.763417 0.763417 0.763417 14.3746 -105.625 134.375 1.2256]" 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 1600000000 0 0 0]" TsPowergui "0" TsBlock "-1" IterativeModel "Forward Euler" } Block { BlockType Reference Name "B1" SID 559 Ports [0, 0, 0, 0, 0, 3, 3] Position [480, 493, 490, 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 576 Ports [0, 0, 0, 0, 0, 3, 3] Position [1525, 469, 1535, 661] 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 SubSystem Name "BR1" SID 560 Ports [0, 0, 0, 0, 0, 3, 3] Position [560, 404, 625, 476] 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 561 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 60]" External off BreakerResistance "1e-12" SnubberResistance "inf" SnubberCapacitance "0" Measurements "None" } Block { BlockType PMIOPort Name "Conn1" SID 562 Position [330, 213, 360, 227] ShowName off Port "1" Side "Left" } Block { BlockType PMIOPort Name "Conn2" SID 563 Position [725, 213, 755, 227] BlockMirror on ShowName off Port "2" Side "Right" } Block { BlockType PMIOPort Name "Conn3" SID 564 Position [330, 253, 360, 267] ShowName off Port "3" Side "Left" } Block { BlockType PMIOPort Name "Conn4" SID 565 Position [725, 253, 755, 267] BlockMirror on ShowName off Port "4" Side "Right" } Block { BlockType PMIOPort Name "Conn5" SID 566 Position [330, 293, 360, 307] ShowName off Port "5" Side "Left" } Block { BlockType PMIOPort Name "Conn6" SID 567 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 577 Ports [0, 0, 0, 0, 0, 3, 3] Position [1385, 419, 1460, 491] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "BR2" 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 578 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 60]" External off BreakerResistance "1e-12" SnubberResistance "inf" SnubberCapacitance "0" Measurements "None" } Block { BlockType PMIOPort Name "Conn1" SID 579 Position [330, 213, 360, 227] ShowName off Port "1" Side "Left" } Block { BlockType PMIOPort Name "Conn2" SID 580 Position [725, 213, 755, 227] BlockMirror on ShowName off Port "2" Side "Right" } Block { BlockType PMIOPort Name "Conn3" SID 581 Position [330, 253, 360, 267] ShowName off Port "3" Side "Left" } Block { BlockType PMIOPort Name "Conn4" SID 582 Position [725, 253, 755, 267] BlockMirror on ShowName off Port "4" Side "Right" } Block { BlockType PMIOPort Name "Conn5" SID 583 Position [330, 293, 360, 307] ShowName off Port "5" Side "Left" } Block { BlockType PMIOPort Name "Conn6" SID 584 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 568 Ports [0, 0, 0, 0, 0, 3, 3] Position [575, 670, 650, 740] 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 569 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.15 60]" External off BreakerResistance "1e-3" SnubberResistance "1e5" SnubberCapacitance "inf" Measurements "Breaker currents" } Block { BlockType PMIOPort Name "Conn1" SID 570 Position [330, 213, 360, 227] ShowName off Port "1" Side "Left" } Block { BlockType PMIOPort Name "Conn2" SID 571 Position [725, 213, 755, 227] BlockMirror on ShowName off Port "2" Side "Right" } Block { BlockType PMIOPort Name "Conn3" SID 572 Position [330, 253, 360, 267] ShowName off Port "3" Side "Left" } Block { BlockType PMIOPort Name "Conn4" SID 573 Position [725, 253, 755, 267] BlockMirror on ShowName off Port "4" Side "Right" } Block { BlockType PMIOPort Name "Conn5" SID 574 Position [330, 293, 360, 307] ShowName off Port "5" Side "Left" } Block { BlockType PMIOPort Name "Conn6" SID 575 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 585 Ports [0, 0, 0, 0, 0, 3, 3] Position [1385, 675, 1460, 745] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "BR4" 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 586 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.15 60]" External off BreakerResistance "1e-3" SnubberResistance "1e5" SnubberCapacitance "inf" Measurements "None" } Block { BlockType PMIOPort Name "Conn1" SID 587 Position [330, 218, 360, 232] ShowName off Port "1" Side "Left" } Block { BlockType PMIOPort Name "Conn2" SID 588 Position [725, 218, 755, 232] BlockMirror on ShowName off Port "2" Side "Right" } Block { BlockType PMIOPort Name "Conn3" SID 589 Position [330, 258, 360, 272] ShowName off Port "3" Side "Left" } Block { BlockType PMIOPort Name "Conn4" SID 590 Position [725, 258, 755, 272] BlockMirror on ShowName off Port "4" Side "Right" } Block { BlockType PMIOPort Name "Conn5" SID 591 Position [330, 298, 360, 312] ShowName off Port "5" Side "Left" } Block { BlockType PMIOPort Name "Conn6" SID 592 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 "Control System" SID 4 Ports [3, 2] Position [440, 212, 535, 308] 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]|manual alpha|Ts|90" System { Name "Control System" Location [2, 82, 1014, 718] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Vtcsc" SID 5 Position [15, 223, 45, 237] IconDisplay "Port number" PortDimensions "3" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "Iabc" SID 6 Position [15, 368, 45, 382] Port "2" IconDisplay "Port number" PortDimensions "3" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "zref" SID 7 Position [15, 433, 45, 447] Port "3" IconDisplay "Port number" PortDimensions "1" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Sum Name "Add1" SID 8 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 9 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 "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] 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 "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] 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 10 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 "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] 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 "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] 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 11 Position [945, 254, 1005, 276] BackgroundColor "orange" ShowName off GotoTag "alpha" TagVisibility "global" } Block { BlockType Goto Name "Goto2" SID 12 Position [695, 329, 755, 351] BackgroundColor "orange" ShowName off GotoTag "mode" TagVisibility "global" } Block { BlockType Goto Name "Goto3" SID 13 Position [715, 364, 775, 386] BackgroundColor "orange" ShowName off GotoTag "mode1" TagVisibility "global" } Block { BlockType SubSystem Name "Impedance calculation" SID 14 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 "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Vtcsca" SID 15 Position [15, 83, 45, 97] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "Iabc" SID 16 Position [15, 263, 45, 277] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Sum Name "Add" SID 17 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 18 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 19 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 20 Ports [1, 1] Position [560, 106, 645, 144] Numerator "[50*Ts]" Denominator "[1 -exp(-50*Ts)]" SampleTime "Ts" } Block { BlockType Product Name "Divide" SID 21 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 22 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 23 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 24 Position [605, 284, 665, 306] BackgroundColor "orange" ShowName off GotoTag "Itcsc" TagVisibility "global" } Block { BlockType Goto Name "Goto1" SID 25 Position [555, 54, 615, 76] BackgroundColor "orange" ShowName off GotoTag "Vtcscrms" TagVisibility "global" } Block { BlockType SubSystem Name "RMS" SID 26 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 "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] 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 27 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 "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] 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 28 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 "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] 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 29 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 "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] 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 30 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 "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] 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 31 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 "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] 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 32 Ports [1, 1] Position [495, 108, 530, 142] ShowName off UpperLimit "300" LowerLimit "10" } Block { BlockType Saturate Name "Saturation2" SID 33 Ports [1, 1] Position [375, 158, 410, 192] ShowName off UpperLimit "1e10" LowerLimit "1e-10" } Block { BlockType Selector Name "Selector1" SID 34 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 35 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 36 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 37 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 38 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 39 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 40 Position [195, 360, 225, 390] ShowName off Value "3" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "inductive1" SID 41 Position [195, 155, 225, 185] ShowName off Value "3" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "impedance" SID 42 Position [710, 118, 740, 132] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Irms" SID 43 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 44 Position [685, 260, 715, 290] ShowName off Threshold "2" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Switch Name "Switch2" SID 45 Position [780, 165, 810, 195] ShowName off Threshold "3" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType SubSystem Name "manual alpha" SID 46 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 "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType SubSystem Name "Filter" SID 47 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 "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "In1" SID 48 Position [90, 103, 120, 117] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Sum Name "Add" SID 49 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 50 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 51 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 52 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 "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "In1" SID 53 Position [90, 103, 120, 117] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Sum Name "Add" SID 54 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 55 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 56 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 57 Position [230, 116, 270, 144] BackgroundColor "orange" ShowName off CloseFcn "tagdialog Close" GotoTag "CB" TagVisibility "global" } Block { BlockType From Name "Fom2" SID 58 Position [120, 251, 160, 279] BackgroundColor "orange" ShowName off CloseFcn "tagdialog Close" GotoTag "CB" TagVisibility "global" } Block { BlockType Saturate Name "Saturation" SID 59 Ports [1, 1] Position [540, 150, 570, 180] ShowName off UpperLimit "90" LowerLimit "68" } Block { BlockType Saturate Name "Saturation2" SID 60 Ports [1, 1] Position [510, 200, 540, 230] ShowName off UpperLimit "49" LowerLimit "0" } Block { BlockType Switch Name "Switch" SID 61 Position [605, 170, 635, 200] ShowName off Threshold "59" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Switch Name "Switch1" SID 62 Position [315, 250, 345, 280] Threshold "1" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Switch Name "Switch2" SID 63 Position [325, 115, 355, 145] Threshold "1" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Constant Name "initial\nalpha" SID 64 Position [165, 80, 195, 110] Value "90" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "initial\nalpha 1" SID 65 Position [210, 205, 240, 235] Value "0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "manual\nalpha" SID 66 Position [55, 169, 130, 201] Value "man_alpha" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "alpha\n manual" SID 67 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 68 Position [590, 260, 620, 290] Value "mode" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "reference impedance1" SID 69 Position [585, 365, 615, 395] ShowName off OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "alpha" SID 70 Position [900, 173, 930, 187] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Irms" SID 71 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 73 Ports [3, 2] Position [605, 165, 700, 305] 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 "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Iabc" SID 74 Position [15, 88, 45, 102] IconDisplay "Port number" PortDimensions "3" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "Alpha" SID 75 Position [15, 263, 45, 277] Port "2" IconDisplay "Port number" PortDimensions "1" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "Irms" SID 76 Position [15, 453, 45, 467] Port "3" IconDisplay "Port number" PortDimensions "1" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Clock Name "Clock" SID 77 Position [510, 660, 530, 680] Decimation "10" } Block { BlockType Constant Name "Constant1" SID 78 Position [595, 675, 625, 695] NamePlacement "alternate" ShowName off OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant4" SID 79 Position [570, 640, 600, 660] NamePlacement "alternate" ShowName off Value "0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Demux Name "Demux" SID 80 Ports [1, 3] Position [355, 72, 360, 148] BackgroundColor "black" ShowName off Outputs "3" } Block { BlockType SubSystem Name "Firing Unit\nA phase" SID 81 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 "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Iabc" SID 82 Position [40, 343, 70, 357] IconDisplay "Port number" PortDimensions "1" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "Alpha" SID 83 Position [525, 43, 555, 57] Port "2" IconDisplay "Port number" PortDimensions "1" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType SubSystem Name "BL1" SID 84 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 "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "V(pu)" SID 85 Position [20, 233, 50, 247] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant4" SID 86 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 87 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 88 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 89 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 90 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 91 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 92 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 93 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 94 Ports [2, 1] Position [520, 225, 550, 305] ShowName off Operator "mod" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Product Name "Product1" SID 95 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 96 Ports [1, 1] Position [615, 254, 645, 276] NamePlacement "alternate" ShowName off Operator "cos" } Block { BlockType UnitDelay Name "Unit Delay1" SID 97 Position [700, 135, 720, 155] ShowName off X0 "Finit" SampleTime "Ts" } Block { BlockType Outport Name "Freq" SID 98 Position [780, 138, 810, 152] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "wt" SID 99 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 100 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 "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Freq" SID 101 Position [25, 48, 55, 62] IconDisplay "Port number" PortDimensions "1" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant1" SID 102 Position [125, 66, 145, 84] ShowName off Value "0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant2" SID 103 Position [210, 80, 240, 100] ShowName off Value "1e-5" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant3" SID 104 Position [310, 81, 330, 99] ShowName off OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Gain Name "Gain" SID 105 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 106 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 107 Ports [2, 1] Position [175, 45, 200, 85] ShowName off Operator "~=" } Block { BlockType Switch Name "Switch" SID 108 Position [260, 25, 290, 105] ShowName off Threshold "0.5" } Block { BlockType Outport Name "Ns/c" SID 109 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 110 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 "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Freq" SID 111 Position [30, 68, 60, 82] IconDisplay "Port number" PortDimensions "1" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "sin(wt)" SID 112 Position [60, 188, 90, 202] Port "2" IconDisplay "Port number" PortDimensions "1" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType SubSystem Name "Latch" SID 113 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 "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "S" SID 114 Position [25, 35, 45, 55] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "R" SID 115 Position [55, 45, 75, 65] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Demux Name "Demux" SID 116 Ports [1, 2] Position [280, 35, 320, 70] Outputs "2" } Block { BlockType Fcn Name "Fcn" SID 117 Position [175, 103, 210, 127] BlockMirror on Expr "u[1]>.2" } Block { BlockType CombinatorialLogic Name "Logic" SID 118 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 119 Ports [3, 1] Position [140, 39, 170, 71] Inputs "3" } Block { BlockType UnitDelay Name "Unit Delay" SID 120 Position [265, 98, 300, 132] BlockMirror on SampleTime "Ts" } Block { BlockType Outport Name "1" SID 121 Position [360, 35, 380, 55] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" InitialOutput "0" } Block { BlockType Outport Name "0" SID 122 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 123 Ports [2, 1] Position [495, 36, 525, 74] ShowName off } Block { BlockType Logic Name "Logical\nOperator4" SID 124 Ports [2, 1] Position [495, 156, 525, 194] ShowName off } Block { BlockType Product Name "Product2" SID 125 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 126 Ports [2, 1] Position [370, 27, 400, 58] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator1" SID 127 Ports [2, 1] Position [725, 260, 755, 315] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator2" SID 128 Ports [2, 1] Position [375, 97, 405, 128] ShowName off Operator "<" } Block { BlockType RelationalOperator Name "Relational\nOperator3" SID 129 Ports [2, 1] Position [725, 325, 755, 380] ShowName off Operator "<" } Block { BlockType Scope Name "Scope" SID 130 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 131 Ports [2, 1] Position [280, 23, 305, 72] ShowName off Inputs "+-" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Sum Name "Sum6" SID 132 Ports [2, 1] Position [280, 92, 305, 143] ShowName off OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Trigonometry Name "Trigonometric\nFunction7" SID 133 Ports [1, 1] Position [150, 49, 180, 71] NamePlacement "alternate" ShowName off } Block { BlockType UnitDelay Name "Unit Delay" SID 134 Position [500, 113, 520, 137] BlockMirror on ShowName off SampleTime "Ts" } Block { BlockType UnitDelay Name "Unit Delay1" SID 135 Position [500, 213, 520, 237] BlockMirror on ShowName off SampleTime "Ts" } Block { BlockType UnitDelay Name "Unit Delay2" SID 136 Position [650, 290, 670, 310] ShowName off SampleTime "Ts" } Block { BlockType Constant Name "alpha2" SID 137 Position [220, 25, 240, 45] ShowName off Value "0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "alpha9" SID 138 Position [20, 29, 60, 51] ShowName off Value "pi*Ts" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "SqWave" SID 139 Position [655, 48, 685, 62] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Sync +" SID 140 Position [795, 283, 825, 297] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Sync -" SID 141 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 142 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 "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Ns/c" SID 143 Position [355, 28, 385, 42] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "Alpha" SID 144 Position [145, 98, 175, 112] Port "2" IconDisplay "Port number" PortDimensions "1" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "Sync +" SID 145 Position [75, 118, 105, 132] Port "3" IconDisplay "Port number" PortDimensions "1" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "SqWave" SID 146 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 241 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 242 Ports [3, 1] Position [140, 39, 170, 71] Inputs "3" } Block { BlockType UnitDelay Name "Unit Delay" SID 243 Position [265, 98, 300, 132] BlockMirror on SampleTime "Ts" } Block { BlockType Outport Name "1" SID 244 Position [360, 35, 380, 55] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" InitialOutput "0" } Block { BlockType Outport Name "0" SID 245 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 246 Ports [2, 1] Position [495, 36, 525, 74] ShowName off } Block { BlockType Logic Name "Logical\nOperator4" SID 247 Ports [2, 1] Position [495, 156, 525, 194] ShowName off } Block { BlockType Product Name "Product2" SID 248 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 249 Ports [2, 1] Position [370, 27, 400, 58] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator1" SID 250 Ports [2, 1] Position [725, 260, 755, 315] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator2" SID 251 Ports [2, 1] Position [375, 97, 405, 128] ShowName off Operator "<" } Block { BlockType RelationalOperator Name "Relational\nOperator3" SID 252 Ports [2, 1] Position [725, 325, 755, 380] ShowName off Operator "<" } Block { BlockType Scope Name "Scope" SID 253 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 254 Ports [2, 1] Position [280, 23, 305, 72] ShowName off Inputs "+-" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Sum Name "Sum6" SID 255 Ports [2, 1] Position [280, 92, 305, 143] ShowName off OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Trigonometry Name "Trigonometric\nFunction7" SID 256 Ports [1, 1] Position [150, 49, 180, 71] NamePlacement "alternate" ShowName off } Block { BlockType UnitDelay Name "Unit Delay" SID 257 Position [500, 113, 520, 137] BlockMirror on ShowName off SampleTime "Ts" } Block { BlockType UnitDelay Name "Unit Delay1" SID 258 Position [500, 213, 520, 237] BlockMirror on ShowName off SampleTime "Ts" } Block { BlockType UnitDelay Name "Unit Delay2" SID 259 Position [650, 290, 670, 310] ShowName off SampleTime "Ts" } Block { BlockType Constant Name "alpha2" SID 260 Position [220, 25, 240, 45] ShowName off Value "0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "alpha9" SID 261 Position [20, 29, 60, 51] ShowName off Value "pi*Ts" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "SqWave" SID 262 Position [655, 48, 685, 62] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Sync +" SID 263 Position [795, 283, 825, 297] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Sync -" SID 264 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 265 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 "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Ns/c" SID 266 Position [355, 28, 385, 42] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "Alpha" SID 267 Position [75, 98, 105, 112] Port "2" IconDisplay "Port number" PortDimensions "1" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "Sync -" SID 268 Position [140, 118, 170, 132] Port "3" IconDisplay "Port number" PortDimensions "1" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "SqWave" SID 269 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 364 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 365 Ports [3, 1] Position [140, 39, 170, 71] Inputs "3" } Block { BlockType UnitDelay Name "Unit Delay" SID 366 Position [265, 98, 300, 132] BlockMirror on SampleTime "Ts" } Block { BlockType Outport Name "1" SID 367 Position [360, 35, 380, 55] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" InitialOutput "0" } Block { BlockType Outport Name "0" SID 368 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 369 Ports [2, 1] Position [495, 36, 525, 74] ShowName off } Block { BlockType Logic Name "Logical\nOperator4" SID 370 Ports [2, 1] Position [495, 156, 525, 194] ShowName off } Block { BlockType Product Name "Product2" SID 371 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 372 Ports [2, 1] Position [370, 27, 400, 58] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator1" SID 373 Ports [2, 1] Position [725, 260, 755, 315] ShowName off Operator ">" } Block { BlockType RelationalOperator Name "Relational\nOperator2" SID 374 Ports [2, 1] Position [375, 97, 405, 128] ShowName off Operator "<" } Block { BlockType RelationalOperator Name "Relational\nOperator3" SID 375 Ports [2, 1] Position [725, 325, 755, 380] ShowName off Operator "<" } Block { BlockType Scope Name "Scope" SID 376 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 377 Ports [2, 1] Position [280, 23, 305, 72] ShowName off Inputs "+-" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Sum Name "Sum6" SID 378 Ports [2, 1] Position [280, 92, 305, 143] ShowName off OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Trigonometry Name "Trigonometric\nFunction7" SID 379 Ports [1, 1] Position [150, 49, 180, 71] NamePlacement "alternate" ShowName off } Block { BlockType UnitDelay Name "Unit Delay" SID 380 Position [500, 113, 520, 137] BlockMirror on ShowName off SampleTime "Ts" } Block { BlockType UnitDelay Name "Unit Delay1" SID 381 Position [500, 213, 520, 237] BlockMirror on ShowName off SampleTime "Ts" } Block { BlockType UnitDelay Name "Unit Delay2" SID 382 Position [650, 290, 670, 310] ShowName off SampleTime "Ts" } Block { BlockType Constant Name "alpha2" SID 383 Position [220, 25, 240, 45] ShowName off Value "0" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Constant Name "alpha9" SID 384 Position [20, 29, 60, 51] ShowName off Value "pi*Ts" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "SqWave" SID 385 Position [655, 48, 685, 62] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Sync +" SID 386 Position [795, 283, 825, 297] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Sync -" SID 387 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 388 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 "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Ns/c" SID 389 Position [355, 28, 385, 42] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "Alpha" SID 390 Position [75, 98, 105, 112] Port "2" IconDisplay "Port number" PortDimensions "1" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "Sync -" SID 391 Position [140, 118, 170, 132] Port "3" IconDisplay "Port number" PortDimensions "1" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "SqWave" SID 392 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 676 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 677 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 678 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 679 Ports [2, 1] Position [360, 337, 385, 368] ShowName off Inputs "+-" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Terminator Name "Terminator" SID 680 Position [605, 102, 615, 118] ShowName off } Block { BlockType Constant Name "Vref" SID 681 Position [415, 150, 465, 170] OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Goto Name "dw" SID 682 Position [170, 360, 210, 390] GotoTag "dw1" TagVisibility "global" } Block { BlockType Goto Name "wm" SID 683 Position [210, 300, 250, 330] GotoTag "wm1" TagVisibility "global" } Block { BlockType Constant Name "wref" SID 684 Position [420, 25, 470, 45] OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "Pm" SID 685 Position [615, 53, 645, 67] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" InitialOutput "0" } Block { BlockType Outport Name "Vf" SID 686 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 744 Ports [1] Position [390, 934, 420, 966] BackgroundColor "red" ShowName off Floating off Location [5, 48, 1371, 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 687 Ports [] Position [105, 870, 203, 1027] BackgroundColor "green" MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Scopes" Location [118, 101, 956, 626] 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 688 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 689 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 690 Ports [1, 2] Position [205, 131, 210, 169] ShowName off Outputs "2" DisplayOption "bar" } Block { BlockType Demux Name "Demux1" SID 691 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 741 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 692 Position [25, 35, 95, 55] ShowName off GotoTag "Vabc_B1" TagVisibility "global" } Block { BlockType From Name "From1" SID 693 Position [25, 70, 95, 90] ShowName off GotoTag "Iabc_B1" TagVisibility "global" } Block { BlockType From Name "From2" SID 694 Position [25, 220, 95, 240] ShowName off GotoTag "Vabc_B2" TagVisibility "global" } Block { BlockType From Name "From3" SID 695 Position [25, 255, 95, 275] ShowName off GotoTag "Iabc_B2" TagVisibility "global" } Block { BlockType From Name "From4" SID 772 Position [515, 425, 585, 445] ShowName off GotoTag "Vtcsc" TagVisibility "global" } Block { BlockType From Name "From5" SID 712 Position [420, 35, 490, 55] ShowName off GotoTag "Vabc1" TagVisibility "global" } Block { BlockType From Name "From6" SID 713 Position [420, 80, 490, 100] ShowName off GotoTag "Iabc" TagVisibility "global" } Block { BlockType From Name "From7" SID 699 Position [25, 450, 95, 470] ShowName off GotoTag "Itcr" TagVisibility "global" } Block { BlockType Scope Name "Scope" SID 700 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 701 Ports [1] Position [295, 64, 325, 96] BackgroundColor "red" ShowName off Floating off Location [5, 48, 1371, 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 714 Ports [1] Position [690, 74, 720, 106] BackgroundColor "red" ShowName off Floating off Location [6, 48, 1372, 727] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } TimeRange "20" YMin "-300" YMax "300" SaveName "ScopeData8" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "Scope11" SID 703 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 771 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 704 Ports [1] Position [295, 109, 325, 141] BackgroundColor "red" ShowName off Floating off Location [1, 48, 1367, 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 705 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 706 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 707 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 708 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 709 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 743 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 715 Ports [1] Position [690, 29, 720, 61] BackgroundColor "red" ShowName off Floating off Location [177, 142, 902, 622] Open off NumInputPorts "1" ZoomMode "xonly" List { ListType AxesTitles axes1 "%" } YMin "-2500" YMax "2750" SaveName "ScopeData9" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Terminator Name "Terminator" SID 742 Position [630, 327, 645, 343] ShowName off } 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 DstBlock "Scope9" DstPort 1 } Line { SrcBlock "From6" SrcPort 1 Points [35, 0] Branch { DstBlock "Scope10" DstPort 1 } Branch { Points [5, 0; 0, 235] DstBlock "Discrete 3-phase\nSequence Analyzer\n(Fundamental)" 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, -55] DstBlock "Scope12" DstPort 1 } } } Block { BlockType SubSystem Name "Scopes " SID 476 Ports [0, 3] Position [1075, 183, 1150, 287] 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 " 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 477 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 478 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 479 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 480 Position [450, 220, 525, 240] BackgroundColor "orange" ShowName off CloseFcn "tagdialog Close" GotoTag "TCR_pulses" TagVisibility "global" } Block { BlockType From Name "From12" SID 481 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 482 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 483 Position [450, 195, 525, 215] BackgroundColor "orange" ShowName off CloseFcn "tagdialog Close" GotoTag "Itcr" TagVisibility "global" } Block { BlockType From Name "From2" SID 484 Position [15, 165, 85, 185] BackgroundColor "orange" ShowName off CloseFcn "tagdialog Close" GotoTag "Iabc" TagVisibility "global" } Block { BlockType From Name "From3" SID 485 Position [15, 54, 65, 76] BackgroundColor "orange" ShowName off CloseFcn "tagdialog Close" GotoTag "Vtcsc" TagVisibility "global" } Block { BlockType From Name "From4" SID 486 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 487 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 488 Position [505, 385, 580, 405] BackgroundColor "orange" ShowName off CloseFcn "tagdialog Close" GotoTag "Vabc2" TagVisibility "global" } Block { BlockType From Name "From7" SID 489 Position [505, 435, 580, 455] BackgroundColor "orange" ShowName off CloseFcn "tagdialog Close" GotoTag "Iabc2" TagVisibility "global" } Block { BlockType From Name "From8" SID 490 Position [15, 25, 90, 45] BackgroundColor "orange" ShowName off CloseFcn "tagdialog Close" GotoTag "Vabc1" TagVisibility "global" } Block { BlockType Mux Name "Mux2" SID 491 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 492 Ports [2, 1] Position [195, 19, 200, 81] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Scope Name "Power\ntransfer" SID 493 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 494 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 495 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 496 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 497 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 498 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 499 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 500 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 501 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 502 Position [230, 118, 245, 132] ShowName off } Block { BlockType Terminator Name "Terminator_2" SID 503 Position [290, 155, 300, 165] ShowName off } Block { BlockType Gain Name "pu1" SID 504 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 505 Position [380, 118, 410, 132] IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "ztcsc" SID 506 Position [280, 223, 310, 237] Port "2" IconDisplay "Port number" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Outport Name "alpha" SID 507 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 508 Ports [2, 0, 0, 0, 0, 3, 3] Position [860, 400, 960, 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.7e-6|500|[5000 50e-9]|[1e-2 0]" System { Name "TCR" Location [-2, 82, 1344, 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 "P" SID 509 Position [30, 117, 60, 133] IconDisplay "Port number" PortDimensions "6" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "cb" SID 510 Position [110, 348, 140, 362] Port "2" IconDisplay "Port number" PortDimensions "1" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Reference Name "Breaker" SID 511 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 512 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 513 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 514 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 515 Ports [1, 6] Position [85, 42, 90, 203] ForegroundColor "magenta" BackgroundColor "magenta" ShowName off Outputs "6" } Block { BlockType From Name "From" SID 516 Position [180, 190, 215, 210] BackgroundColor "orange" ShowName off CloseFcn "tagdialog Close" GotoTag "Ap" } Block { BlockType From Name "From1" SID 517 Position [260, 285, 295, 305] BackgroundColor "orange" ShowName off CloseFcn "tagdialog Close" GotoTag "Am" } Block { BlockType From Name "From2" SID 518 Position [520, 185, 555, 205] BackgroundColor "orange" ShowName off CloseFcn "tagdialog Close" GotoTag "Bp" } Block { BlockType From Name "From3" SID 519 Position [610, 280, 645, 300] BackgroundColor "orange" ShowName off CloseFcn "tagdialog Close" GotoTag "Bm" } Block { BlockType From Name "From4" SID 520 Position [835, 185, 870, 205] BackgroundColor "orange" ShowName off CloseFcn "tagdialog Close" GotoTag "Cp" } Block { BlockType From Name "From5" SID 521 Position [915, 280, 950, 300] BackgroundColor "orange" ShowName off CloseFcn "tagdialog Close" GotoTag "Cm" } Block { BlockType Goto Name "Goto" SID 522 Position [115, 49, 145, 71] BackgroundColor "orange" ShowName off GotoTag "Ap" TagVisibility "local" } Block { BlockType Goto Name "Goto1" SID 523 Position [115, 74, 145, 96] BackgroundColor "orange" ShowName off GotoTag "Am" TagVisibility "local" } Block { BlockType Goto Name "Goto2" SID 524 Position [115, 99, 145, 121] BackgroundColor "orange" ShowName off GotoTag "Bp" TagVisibility "local" } Block { BlockType Goto Name "Goto3" SID 525 Position [115, 124, 145, 146] BackgroundColor "orange" ShowName off GotoTag "Bm" TagVisibility "local" } Block { BlockType Goto Name "Goto4" SID 526 Position [115, 149, 145, 171] BackgroundColor "orange" ShowName off GotoTag "Cp" TagVisibility "local" } Block { BlockType Goto Name "Goto5" SID 527 Position [115, 174, 145, 196] BackgroundColor "orange" ShowName off GotoTag "Cm" TagVisibility "local" } Block { BlockType Goto Name "Goto6" SID 528 Position [180, 144, 240, 166] BlockMirror on BackgroundColor "orange" ShowName off GotoTag "Itcr" TagVisibility "global" } Block { BlockType Goto Name "Goto9" SID 529 Position [1210, 84, 1270, 106] BackgroundColor "orange" NamePlacement "alternate" ShowName off GotoTag "Vtcsc" TagVisibility "global" } Block { BlockType Reference Name "Lab" SID 530 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 531 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 532 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 785 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 "500" Segment1 "[.955 50]" Segment2 "[1.0 25]" Segment3 "[.9915 16.5]" Measurements "None" MoreParameters off BreakLoop on } Block { BlockType Reference Name "MOV2" SID 786 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 784 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 533 Ports [3, 1] Position [1195, 76, 1200, 114] ShowName off Inputs "3" DisplayOption "bar" } Block { BlockType Reference Name "Seh1" SID 534 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 535 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 536 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 537 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 538 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 539 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 540 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 541 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 542 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 543 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 544 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 545 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 546 Position [265, 20, 295, 35] BlockRotation 270 BlockMirror on NamePlacement "alternate" Port "1" Side "Left" } Block { BlockType PMIOPort Name "B" SID 547 Position [610, 40, 640, 55] BlockRotation 270 BlockMirror on NamePlacement "alternate" Port "2" Side "Left" } Block { BlockType PMIOPort Name "C" SID 548 Position [915, 30, 945, 45] BlockRotation 270 BlockMirror on NamePlacement "alternate" Port "3" Side "Left" } Block { BlockType PMIOPort Name "A1" SID 549 Position [265, 515, 295, 530] BlockRotation 270 NamePlacement "alternate" Port "4" Side "Right" } Block { BlockType PMIOPort Name "B1" SID 550 Position [615, 515, 645, 530] BlockRotation 270 NamePlacement "alternate" Port "5" Side "Right" } Block { BlockType PMIOPort Name "C1" SID 551 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, 0; 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, 0; 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, 0; 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, 0; 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, 0; 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, 0; 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, 0; 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, 0; 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 " Position [581, 21] BackgroundColor "yellow" FontName "Arial" FontSize 18 FontWeight "bold" } } } Block { BlockType SubSystem Name "TCR1" SID 790 Ports [2, 0, 0, 0, 0, 3, 3] Position [860, 665, 960, 745] 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.7e-6|500|[5000 50e-9]|[1e-2 0]" System { Name "TCR1" 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 791 Position [30, 117, 60, 133] IconDisplay "Port number" PortDimensions "6" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Inport Name "cb" SID 792 Position [110, 348, 140, 362] Port "2" IconDisplay "Port number" PortDimensions "1" OutDataType "sfix(16)" OutScaling "2^0" } Block { BlockType Reference Name "Breaker" SID 793 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 794 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 795 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 796 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 797 Ports [1, 6] Position [85, 42, 90, 203] ForegroundColor "magenta" BackgroundColor "magenta" ShowName off Outputs "6" } Block { BlockType From Name "From" SID 798 Position [180, 190, 215, 210] BackgroundColor "orange" ShowName off CloseFcn "tagdialog Close" GotoTag "Ap" } Block { BlockType From Name "From1" SID 799 Position [260, 285, 295, 305] BackgroundColor "orange" ShowName off CloseFcn "tagdialog Close" GotoTag "Am" } Block { BlockType From Name "From2" SID 800 Position [520, 185, 555, 205] BackgroundColor "orange" ShowName off CloseFcn "tagdialog Close" GotoTag "Bp" } Block { BlockType From Name "From3" SID 801 Position [610, 280, 645, 300] BackgroundColor "orange" ShowName off CloseFcn "tagdialog Close" GotoTag "Bm" } Block { BlockType From Name "From4" SID 802 Position [835, 185, 870, 205] BackgroundColor "orange" ShowName off CloseFcn "tagdialog Close" GotoTag "Cp" } Block { BlockType From Name "From5" SID 803 Position [915, 280, 950, 300] BackgroundColor "orange" ShowName off CloseFcn "tagdialog Close" GotoTag "Cm" } Block { BlockType Goto Name "Goto" SID 804 Position [115, 49, 145, 71] BackgroundColor "orange" ShowName off GotoTag "Ap" TagVisibility "local" } Block { BlockType Goto Name "Goto1" SID 805 Position [115, 74, 145, 96] BackgroundColor "orange" ShowName off GotoTag "Am" TagVisibility "local" } Block { BlockType Goto Name "Goto2" SID 806 Position [115, 99, 145, 121] BackgroundColor "orange" ShowName off GotoTag "Bp" TagVisibility "local" } Block { BlockType Goto Name "Goto3" SID 807 Position [115, 124, 145, 146] BackgroundColor "orange" ShowName off GotoTag "Bm" TagVisibility "local" } Block { BlockType Goto Name "Goto4" SID 808 Position [115, 149, 145, 171] BackgroundColor "orange" ShowName off GotoTag "Cp" TagVisibility "local" } Block { BlockType Goto Name "Goto5" SID 809 Position [115, 174, 145, 196] BackgroundColor "orange" ShowName off GotoTag "Cm" TagVisibility "local" } Block { BlockType Goto Name "Goto6" SID 810 Position [180, 144, 240, 166] BlockMirror on BackgroundColor "orange" ShowName off GotoTag "Itcr2" TagVisibility "global" } Block { BlockType Goto Name "Goto9" SID 811 Position [1210, 84, 1270, 106] BackgroundColor "orange" NamePlacement "alternate" ShowName off GotoTag "Vtcsc2" TagVisibility "global" } Block { BlockType Reference Name "Lab" SID 812 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 813 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 814 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 815 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 "500" Segment1 "[.955 50]" Segment2 "[1.0 25]" Segment3 "[.9915 16.5]" Measurements "None" MoreParameters off BreakLoop on } Block { BlockType Reference Name "MOV2" SID 816 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 817 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 818 Ports [3, 1] Position [1195, 76, 1200, 114] ShowName off Inputs "3" DisplayOption "bar" } Block { BlockType Reference Name "Seh1" SID 819 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 820 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 821 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 822 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 823 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 824 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 825 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 826 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 827 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 828 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 829 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 830 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 831 Position [265, 20, 295, 35] BlockRotation 270 BlockMirror on NamePlacement "alternate" Port "1" Side "Left" } Block { BlockType PMIOPort Name "B" SID 832 Position [610, 40, 640, 55] BlockRotation 270 BlockMirror on NamePlacement "alternate" Port "2" Side "Left" } Block { BlockType PMIOPort Name "C" SID 833 Position [915, 30, 945, 45] BlockRotation 270 BlockMirror on NamePlacement "alternate" Port "3" Side "Left" } Block { BlockType PMIOPort Name "A1" SID 834 Position [265, 515, 295, 530] BlockRotation 270 NamePlacement "alternate" Port "4" Side "Right" } Block { BlockType PMIOPort Name "B1" SID 835 Position [615, 515, 645, 530] BlockRotation 270 NamePlacement "alternate" Port "5" Side "Right" } Block { BlockType PMIOPort Name "C1" SID 836 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 "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 [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" 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 } 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 "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" 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 } } Annotation { Name "Firing pulses" Position [106, 24] ForegroundColor "blue" FontName "Arial" FontSize 12 FontWeight "bold" } Annotation { Name "TCSC2 " Position [581, 21] BackgroundColor "yellow" FontName "Arial" FontSize 18 FontWeight "bold" } } } Block { BlockType Reference Name "Three-Phase\nParallel RLC Load" SID 636 Ports [0, 0, 0, 0, 0, 3] Position [254, 635, 296, 670] BlockRotation 270 BlockMirror on ShowName off 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 "Delta" NominalVoltage "22000" NominalFrequency "50" ActivePower "1e3" InductivePower "0" CapacitivePower "0" Measurements "None" } Block { BlockType Reference Name "Three-Phase Fault1" SID 783 Ports [0, 0, 0, 0, 0, 3] Position [765, 820, 805, 880] 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 51]" InitialStates "[0 0 1]" SnubberResistance "inf" SnubberCapacitance "inf" Measurements "None" } Block { BlockType Reference Name "Three-Phase Fault2" SID 837 Ports [0, 0, 0, 0, 0, 3] Position [1275, 565, 1315, 625] 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\nTransformer\n600 MVA 22 kV / 400 kV" SID 637 Ports [0, 0, 0, 0, 0, 3, 3] Position [330, 549, 405, 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 "[ 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 Scope Name "main variables" SID 552 Ports [3] Position [1315, 184, 1365, 286] BackgroundColor "green" Floating off Location [5, 48, 1371, 727] Open off NumInputPorts "3" 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 745 Ports [0, 1] Position [255, 875, 355, 1025] BackgroundColor "blue" MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "negatice sequence calculation" Location [0, 82, 1346, 739] 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 "100" Block { BlockType Constant Name "Constant" SID 747 Position [670, 179, 710, 201] ShowName off Value "epsilon" OutDataType "fixdt(1, 16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant1" SID 748 Position [770, 174, 810, 196] ShowName off Value "0" OutDataType "fixdt(1, 16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant2" SID 749 Position [980, 194, 1020, 216] ShowName off Value "0" OutDataType "fixdt(1, 16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant3" SID 750 Position [980, 134, 1020, 156] ShowName off OutDataType "fixdt(1, 16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant4" SID 751 Position [550, 209, 590, 231] ShowName off Value "0" OutDataType "fixdt(1, 16)" OutScaling "2^0" } Block { BlockType Constant Name "Constant5" SID 752 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 768 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 753 Position [30, 164, 95, 186] BackgroundColor "yellow" ShowName off CloseFcn "tagdialog Close" GotoTag "Iabc" TagVisibility "global" } Block { BlockType Gain Name "Gain" SID 754 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 755 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 756 Ports [2, 1] Position [860, 156, 865, 194] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Scope Name "Scope1" SID 838 Ports [3] Position [1110, 34, 1140, 66] 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 "ScopeData14" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "Scope2" SID 839 Ports [1] Position [1080, 299, 1110, 331] 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 "ScopeData15" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "Scope9" SID 757 Ports [1] Position [380, 79, 410, 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 758 Position [285, 180, 315, 210] ShowName off Time "3" Before "-1" SampleTime "0" } Block { BlockType Sum Name "Sum" SID 759 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 760 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 761 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 762 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 763 Position [395, 150, 425, 180] ShowName off InputSameDT off OutDataType "fixdt(1, 16)" OutScaling "2^0" SaturateOnIntegerOverflow off } Block { BlockType Terminator Name "Terminator" SID 769 Position [255, 177, 270, 193] ShowName off } Block { BlockType UnitDelay Name "Unit Delay" SID 764 Position [505, 188, 535, 212] BlockMirror on ShowName off SampleTime "1e-3" } Block { BlockType UnitDelay Name "Unit Delay1" SID 765 Position [800, 108, 830, 132] BlockMirror on ShowName off SampleTime "1e-3" } Block { BlockType ZeroOrderHold Name "Zero-Order\nHold" SID 766 Position [285, 140, 320, 170] ShowName off SampleTime "1e-3" } Block { BlockType Outport Name "Out1" SID 767 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 [10, 0] Branch { Points [0, 140] DstBlock "Scope2" DstPort 1 } Branch { Points [5, 0] Branch { DstBlock "Switch" DstPort 2 } Branch { Points [0, -125] DstBlock "Scope1" DstPort 2 } } } } 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 [10, 0] Branch { DstBlock "Out1" DstPort 1 } Branch { DstBlock "Scope1" DstPort 3 } } 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, -55] DstBlock "Scope1" 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 553 Ports [] Position [1190, 35, 1286, 76] DropShadow on ShowName off Priority "2" LibraryVersion "1.1899" 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 554 Ports [0, 1] Position [295, 264, 335, 296] 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 ")" SrcPort LConn1 DstBlock "Line 1\n(160 km)" DstPort RConn1 } Line { LineType "Connection" SrcBlock ")" SrcPort LConn2 DstBlock "Line 1\n(160 km)" DstPort RConn2 } Line { Name "Power [MW]" Labels [1, 0] SrcBlock "Scopes " SrcPort 1 DstBlock "main variables" DstPort 1 } Line { LineType "Connection" SrcBlock ")" SrcPort LConn3 DstBlock "Line 1\n(160 km)" DstPort RConn3 } Line { Name "ztcsc [Ohms]" Labels [1, 0] SrcBlock "Scopes " SrcPort 2 DstBlock "main variables" DstPort 2 } Line { LineType "Connection" SrcBlock "Programmable\nVoltage Source 2" SrcPort LConn1 Points [10, 0] DstBlock "Ground1" DstPort LConn1 } Line { SrcBlock "From" SrcPort 1 Points [15, 0; 0, 5] Branch { DstBlock "Firing Unit" DstPort 1 } Branch { Points [0, 70] DstBlock "Control System" DstPort 2 } } Line { SrcBlock "Firing Unit" SrcPort 1 Points [275, 0; 0, 210; -5, 0] Branch { DstBlock "TCR" DstPort 1 } Branch { Points [5, 0; 0, 265] DstBlock "TCR1" DstPort 1 } } 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 [65, 0] DstBlock ")1" DstPort LConn1 } Line { LineType "Connection" SrcBlock "TCR" SrcPort LConn2 DstBlock ")1" DstPort LConn2 } Line { SrcBlock "Control System" SrcPort 1 DstBlock "Firing Unit" DstPort 2 } Line { SrcBlock "Control System" SrcPort 2 Points [0, -5] DstBlock "Firing Unit" DstPort 3 } Line { SrcBlock "Firing Unit" SrcPort 2 Points [285, 0; 0, 155] Branch { DstBlock "TCR" DstPort 2 } Branch { Points [0, 265] DstBlock "TCR1" DstPort 2 } } Line { LineType "Connection" SrcBlock ")1" SrcPort LConn3 Points [0, -10] DstBlock "TCR" DstPort LConn3 } Line { Name "alpha [deg]" Labels [1, 1] SrcBlock "Scopes " SrcPort 3 DstBlock "main variables" DstPort 3 } 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 "Line 2\n(100 km)1" SrcPort LConn1 DstBlock ")1" DstPort RConn1 } Line { LineType "Connection" SrcBlock "Line 2\n(100 km)1" SrcPort LConn2 DstBlock ")1" DstPort RConn2 } Line { LineType "Connection" SrcBlock "Line 2\n(100 km)1" SrcPort LConn3 DstBlock ")1" DstPort RConn3 } Line { LineType "Connection" SrcBlock "BR1" SrcPort LConn3 Points [-25, 0; 0, 180] Branch { ConnectType "DEST_DEST" SrcBlock "B1" SrcPort RConn3 Points [15, 0] } Branch { ConnectType "DEST_SRC" Points [0, 85] DstBlock "BR3" DstPort LConn3 } } Line { LineType "Connection" SrcBlock "BR1" SrcPort LConn2 Points [-15, 0; 0, 145] Branch { ConnectType "DEST_SRC" DstBlock "B1" DstPort RConn2 } Branch { ConnectType "DEST_SRC" Points [0, 120] DstBlock "BR3" DstPort LConn2 } } Line { LineType "Connection" SrcBlock "BR1" SrcPort LConn1 Points [0, 110] Branch { ConnectType "DEST_DEST" SrcBlock "B1" SrcPort RConn1 Points [40, 0] } Branch { ConnectType "DEST_SRC" Points [0, 155] DstBlock "BR3" DstPort LConn1 } } Line { LineType "Connection" SrcBlock "BR1" SrcPort RConn2 DstBlock "Line 1\n(160 km)" DstPort LConn2 } Line { LineType "Connection" SrcBlock "Line 1\n(160 km)" SrcPort LConn3 DstBlock "BR1" DstPort RConn3 } Line { LineType "Connection" SrcBlock "BR1" SrcPort RConn1 DstBlock "Line 1\n(160 km)" DstPort LConn1 } Line { LineType "Connection" Points [1500, 500; 10, 0] DstBlock "B2" DstPort LConn1 Branch { ConnectType "SRC_DEST" SrcBlock "BR4" SrcPort RConn1 Points [25, 0; 0, -185] } Branch { ConnectType "SRC_DEST" SrcBlock "BR2" SrcPort RConn1 Points [25, 0; 0, 70] } } Line { LineType "Connection" Points [1490, 565; 0, -110; -15, 0] DstBlock "BR2" DstPort RConn2 Branch { ConnectType "SRC_DEST" SrcBlock "BR4" SrcPort RConn2 Points [15, 0; 0, -145] } Branch { ConnectType "SRC_DEST" SrcBlock "B2" SrcPort LConn2 Points [-20, 0] } } Line { LineType "Connection" Points [1480, 625; 0, -145; -5, 0] DstBlock "BR2" DstPort RConn3 Branch { ConnectType "SRC_DEST" SrcBlock "BR4" SrcPort RConn3 Points [5, 0; 0, -110] } Branch { ConnectType "SRC_DEST" SrcBlock "B2" SrcPort LConn3 Points [-30, 0; 0, -5] } } Line { LineType "Connection" SrcBlock "Line 2\n(60 km)4" SrcPort LConn2 Points [-30, 0] Branch { ConnectType "DEST_SRC" DstBlock "Line 2\n(100 km)1" DstPort RConn2 } Branch { ConnectType "DEST_SRC" Points [0, 140] DstBlock "Three-Phase Fault2" DstPort LConn2 } } Line { LineType "Connection" SrcBlock "Line 2\n(60 km)4" SrcPort LConn1 Points [-10, 0] Branch { ConnectType "DEST_SRC" DstBlock "Line 2\n(100 km)1" DstPort RConn1 } Branch { ConnectType "DEST_SRC" Points [0, 145] DstBlock "Three-Phase Fault2" DstPort LConn1 } } Line { LineType "Connection" SrcBlock "Programmable\nVoltage Source 2" SrcPort RConn3 Points [-35, 0; 0, 45] DstBlock "B2" DstPort RConn3 } Line { LineType "Connection" SrcBlock "Programmable\nVoltage Source 2" SrcPort RConn1 Points [-35, 0; 0, -45] DstBlock "B2" DstPort RConn1 } Line { LineType "Connection" SrcBlock "Programmable\nVoltage Source 2" SrcPort RConn2 DstBlock "B2" DstPort RConn2 } Line { LineType "Connection" SrcBlock "Line 2\n(60 km)4" SrcPort LConn3 Points [-50, 0] Branch { ConnectType "DEST_SRC" DstBlock "Line 2\n(100 km)1" DstPort RConn3 } Branch { ConnectType "DEST_SRC" Points [0, 135] DstBlock "Three-Phase Fault2" DstPort LConn3 } } Line { LineType "Connection" SrcBlock "Line 2\n(160 km)2" SrcPort LConn1 Points [-15, 0] Branch { ConnectType "DEST_SRC" DstBlock "BR3" DstPort RConn1 } Branch { ConnectType "DEST_SRC" Points [0, 150] DstBlock "Three-Phase Fault1" DstPort LConn1 } } Line { LineType "Connection" SrcBlock "Line 2\n(160 km)2" SrcPort LConn3 Points [-45, 0] Branch { ConnectType "DEST_SRC" DstBlock "BR3" DstPort RConn3 } Branch { ConnectType "DEST_SRC" Points [0, 140] DstBlock "Three-Phase Fault1" DstPort LConn3 } } Line { LineType "Connection" SrcBlock "BR3" SrcPort RConn2 Points [25, 0] Branch { ConnectType "DEST_SRC" DstBlock "Line 2\n(160 km)2" DstPort LConn2 } Branch { ConnectType "DEST_SRC" Points [0, 145] DstBlock "Three-Phase Fault1" DstPort LConn2 } } Line { LineType "Connection" SrcBlock "Three-phase\nTransformer\n600 MVA 22 kV / 400 kV" SrcPort LConn3 Points [-25, 0] Branch { ConnectType "DEST_SRC" DstBlock "Three-Phase\nParallel RLC Load" DstPort LConn3 } Branch { ConnectType "DEST_SRC" Points [-75, 0] DstBlock "600 MVA\nM1" DstPort RConn3 } } Line { LineType "Connection" SrcBlock "Three-Phase\nParallel RLC Load" SrcPort LConn2 Points [0, -35] Branch { ConnectType "DEST_SRC" DstBlock "Three-phase\nTransformer\n600 MVA 22 kV / 400 kV" DstPort LConn2 } Branch { ConnectType "DEST_SRC" Points [0, -10] DstBlock "600 MVA\nM1" DstPort RConn2 } } Line { LineType "Connection" SrcBlock "Three-Phase\nParallel RLC Load" SrcPort LConn1 Points [0, -60] Branch { ConnectType "DEST_SRC" DstBlock "Three-phase\nTransformer\n600 MVA 22 kV / 400 kV" DstPort LConn1 } Branch { ConnectType "DEST_SRC" DstBlock "600 MVA\nM1" DstPort RConn1 } } 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 [30, 0; 0, 35] DstBlock "B1" DstPort LConn3 } Line { LineType "Connection" SrcBlock "Three-phase\nTransformer\n600 MVA 22 kV / 400 kV" SrcPort RConn1 Points [30, 0; 0, -35] DstBlock "B1" DstPort LConn1 } Line { SrcBlock "Reg_M1" SrcPort 1 DstBlock "600 MVA\nM1" DstPort 1 } Line { SrcBlock "Reg_M1" SrcPort 2 DstBlock "600 MVA\nM1" DstPort 2 } Line { SrcBlock "Pref1" SrcPort 1 DstBlock "Reg_M1" DstPort 2 } Line { SrcBlock "600 MVA\nM1" SrcPort 1 Points [0, -20; -150, 0] DstBlock "Reg_M1" DstPort 1 } Line { SrcBlock "negatice sequence calculation" SrcPort 1 DstBlock "Scope9" DstPort 1 } Line { LineType "Connection" SrcBlock "Line 2\n(60 km)4" SrcPort RConn1 DstBlock "BR2" DstPort LConn1 } Line { LineType "Connection" SrcBlock "Line 2\n(60 km)4" SrcPort RConn2 DstBlock "BR2" DstPort LConn2 } Line { LineType "Connection" SrcBlock "Line 2\n(60 km)4" SrcPort RConn3 DstBlock "BR2" DstPort LConn3 } Line { LineType "Connection" SrcBlock "Line 2\n(160 km)1" SrcPort RConn1 DstBlock "BR4" DstPort LConn1 } Line { LineType "Connection" SrcBlock "Line 2\n(160 km)1" SrcPort RConn2 DstBlock "BR4" DstPort LConn2 } Line { LineType "Connection" SrcBlock "Line 2\n(160 km)1" SrcPort RConn3 DstBlock "BR4" DstPort LConn3 } Line { LineType "Connection" SrcBlock "Line 2\n(160 km)2" SrcPort RConn1 DstBlock "TCR1" DstPort RConn1 } Line { LineType "Connection" SrcBlock "Line 2\n(160 km)2" SrcPort RConn2 DstBlock "TCR1" DstPort RConn2 } Line { LineType "Connection" SrcBlock "Line 2\n(160 km)2" SrcPort RConn3 DstBlock "TCR1" DstPort RConn3 } Line { LineType "Connection" SrcBlock "TCR1" SrcPort LConn1 Points [50, 0; 0, -20] DstBlock "Line 2\n(160 km)1" DstPort LConn1 } Line { LineType "Connection" SrcBlock "TCR1" SrcPort LConn2 Points [70, 0; 0, -10] DstBlock "Line 2\n(160 km)1" DstPort LConn2 } Line { LineType "Connection" SrcBlock "TCR1" SrcPort LConn3 DstBlock "Line 2\n(160 km)1" DstPort LConn3 } Annotation { Name "TCSC\n75% compensation" Position [908, 506] BackgroundColor "yellow" FontSize 12 FontWeight "bold" } Annotation { Name "transmission line" Position [668, 486] } Annotation { Name "impedance for capacitive mode 120 #@ $@ & \" 0 !0 @ ! %0 " " $ $ !4 !34$-5;FEF:65D1FEX<'1$;&=$1$< " } }