power_wind_dfig.mdl
资源名称:DFIGFarm.rar [点击查看]
上传用户:sdgangguan
上传日期:2017-10-18
资源大小:179k
文件大小:487k
源码类别:
能源行业(电力石油煤炭)
开发平台:
Matlab
- Model {
- Name "power_wind_dfig"
- Version 6.3
- MdlSubVersion 0
- GraphicalInterface {
- NumRootInports 0
- NumRootOutports 0
- ParameterArgumentNames ""
- ComputedModelVersion "1.538"
- NumModelReferences 0
- NumTestPointedSignals 0
- }
- SavedCharacterEncoding "US-ASCII"
- SaveDefaultBlockParams on
- SampleTimeColors off
- LibraryLinkDisplay "none"
- WideLines off
- ShowLineDimensions off
- ShowPortDataTypes off
- ShowLoopsOnError on
- IgnoreBidirectionalLines off
- ShowStorageClass off
- ShowTestPointIcons on
- ShowViewerIcons on
- SortedOrder off
- ExecutionContextIcon off
- ShowLinearizationAnnotations on
- RecordCoverage off
- CovPath "/"
- CovSaveName "covdata"
- CovMetricSettings "dw"
- CovNameIncrementing off
- CovHtmlReporting on
- covSaveCumulativeToWorkspaceVar on
- CovSaveSingleToWorkspaceVar on
- CovCumulativeVarName "covCumulativeData"
- CovCumulativeReport off
- CovReportOnPause on
- ScopeRefreshTime 0.035000
- OverrideScopeRefreshTime on
- DisableAllScopes off
- DataTypeOverride "UseLocalSettings"
- MinMaxOverflowLogging "UseLocalSettings"
- MinMaxOverflowArchiveMode "Overwrite"
- BlockNameDataTip off
- BlockParametersDataTip off
- BlockDescriptionStringDataTip off
- ToolBar on
- StatusBar on
- BrowserShowLibraryLinks off
- BrowserLookUnderMasks off
- InitFcn "load power_wind_dfig_xinit"
- Created "Fri Dec 05 09:05:34 2003"
- Creator "batserve"
- UpdateHistory "UpdateHistoryNever"
- ModifiedByFormat "%<Auto>"
- LastModifiedBy "Administrator"
- ModifiedDateFormat "%<Auto>"
- LastModifiedDate "Wed May 20 10:07:55 2009"
- ModelVersionFormat "1.%<AutoIncrement:538>"
- ConfigurationManager "None"
- LinearizationMsg "none"
- Profile off
- ParamWorkspaceSource "MATLABWorkspace"
- AccelSystemTargetFile "accel.tlc"
- AccelTemplateMakefile "accel_default_tmf"
- AccelMakeCommand "make_rtw"
- TryForcingSFcnDF off
- ExtModeBatchMode off
- ExtModeEnableFloating on
- ExtModeTrigType "manual"
- ExtModeTrigMode "normal"
- ExtModeTrigPort "1"
- ExtModeTrigElement "any"
- ExtModeTrigDuration 1000
- ExtModeTrigDurationFloating "auto"
- ExtModeTrigHoldOff 0
- ExtModeTrigDelay 0
- ExtModeTrigDirection "rising"
- ExtModeTrigLevel 0
- ExtModeArchiveMode "off"
- ExtModeAutoIncOneShot off
- ExtModeIncDirWhenArm off
- ExtModeAddSuffixToVar off
- ExtModeWriteAllDataToWs off
- ExtModeArmWhenConnect on
- ExtModeSkipDownloadWhenConnect off
- ExtModeLogAll on
- ExtModeAutoUpdateStatusClock off
- BufferReuse on
- StrictBusMsg "None"
- ProdHWDeviceType "32-bit Generic"
- ShowModelReferenceBlockVersion off
- ShowModelReferenceBlockIO off
- Array {
- Type "Handle"
- Dimension 1
- Simulink.ConfigSet {
- $ObjectID 1
- Version "1.1.0"
- Array {
- Type "Handle"
- Dimension 7
- Simulink.SolverCC {
- $ObjectID 2
- Version "1.1.0"
- StartTime "0.0"
- StopTime "50"
- AbsTol "1e-3"
- FixedStep "auto"
- InitialStep "auto"
- MaxNumMinSteps "-1"
- MaxOrder 5
- ExtrapolationOrder 4
- NumberNewtonIterations 1
- MaxStep "1/60"
- MinStep "auto"
- RelTol "1e-4"
- SolverMode "Auto"
- Solver "ode23tb"
- SolverName "ode23tb"
- ZeroCrossControl "UseLocalSettings"
- AlgebraicLoopSolver "TrustRegion"
- SolverResetMethod "Fast"
- PositivePriorityOrder off
- AutoInsertRateTranBlk off
- SampleTimeConstraint "Unconstrained"
- RateTranMode "Deterministic"
- }
- Simulink.DataIOCC {
- $ObjectID 3
- Version "1.1.0"
- Decimation "1"
- ExternalInput "[t, u]"
- FinalStateName "xFinal"
- InitialState "xInitial"
- LimitDataPoints on
- MaxDataPoints "1000"
- LoadExternalInput off
- LoadInitialState on
- SaveFinalState on
- SaveFormat "Array"
- SaveOutput on
- SaveState off
- SignalLogging on
- InspectSignalLogs off
- SaveTime on
- StateSaveName "xout"
- TimeSaveName "tout"
- OutputSaveName "yout"
- SignalLoggingName "sigsOut"
- OutputOption "RefineOutputTimes"
- OutputTimes "[]"
- Refine "1"
- }
- Simulink.OptimizationCC {
- $ObjectID 4
- Array {
- Type "Cell"
- Dimension 5
- Cell "ZeroExternalMemoryAtStartup"
- Cell "ZeroInternalMemoryAtStartup"
- Cell "InitFltsAndDblsToZero"
- Cell "OptimizeModelRefInitCode"
- Cell "NoFixptDivByZeroProtection"
- PropName "DisabledProps"
- }
- Version "1.1.0"
- BlockReduction on
- BooleanDataType on
- ConditionallyExecuteInputs on
- InlineParams off
- InlineInvariantSignals on
- OptimizeBlockIOStorage on
- BufferReuse on
- EnforceIntegerDowncast on
- ExpressionFolding on
- FoldNonRolledExpr on
- LocalBlockOutputs on
- ParameterPooling on
- RollThreshold 5
- SystemCodeInlineAuto off
- StateBitsets off
- DataBitsets off
- UseTempVars off
- ZeroExternalMemoryAtStartup on
- ZeroInternalMemoryAtStartup on
- InitFltsAndDblsToZero on
- NoFixptDivByZeroProtection off
- EfficientFloat2IntCast off
- OptimizeModelRefInitCode off
- LifeSpan "inf"
- BufferReusableBoundary on
- }
- Simulink.DebuggingCC {
- $ObjectID 5
- Version "1.1.0"
- RTPrefix "error"
- ConsistencyChecking "none"
- ArrayBoundsChecking "none"
- SignalInfNanChecking "none"
- ReadBeforeWriteMsg "UseLocalSettings"
- WriteAfterWriteMsg "UseLocalSettings"
- WriteAfterReadMsg "UseLocalSettings"
- AlgebraicLoopMsg "warning"
- ArtificialAlgebraicLoopMsg "warning"
- CheckSSInitialOutputMsg on
- CheckExecutionContextPreStartOutputMsg on
- CheckExecutionContextRuntimeOutputMsg on
- SignalResolutionControl "TryResolveAllWithWarning"
- BlockPriorityViolationMsg "warning"
- MinStepSizeMsg "warning"
- SolverPrmCheckMsg "none"
- InheritedTsInSrcMsg "warning"
- DiscreteInheritContinuousMsg "warning"
- MultiTaskDSMMsg "warning"
- MultiTaskRateTransMsg "error"
- SingleTaskRateTransMsg "none"
- TasksWithSamePriorityMsg "warning"
- SigSpecEnsureSampleTimeMsg "warning"
- CheckMatrixSingularityMsg "none"
- IntegerOverflowMsg "warning"
- Int32ToFloatConvMsg "warning"
- ParameterDowncastMsg "error"
- ParameterOverflowMsg "error"
- ParameterUnderflowMsg "none"
- ParameterPrecisionLossMsg "warning"
- UnderSpecifiedDataTypeMsg "none"
- UnnecessaryDatatypeConvMsg "none"
- VectorMatrixConversionMsg "none"
- InvalidFcnCallConnMsg "error"
- FcnCallInpInsideContextMsg "Use local settings"
- SignalLabelMismatchMsg "none"
- UnconnectedInputMsg "warning"
- UnconnectedOutputMsg "warning"
- UnconnectedLineMsg "none"
- SFcnCompatibilityMsg "none"
- UniqueDataStoreMsg "none"
- BusObjectLabelMismatch "warning"
- RootOutportRequireBusObject "warning"
- AssertControl "UseLocalSettings"
- EnableOverflowDetection off
- ModelReferenceIOMsg "none"
- ModelReferenceVersionMismatchMessage "none"
- ModelReferenceIOMismatchMessage "none"
- ModelReferenceCSMismatchMessage "none"
- ModelReferenceSimTargetVerbose off
- UnknownTsInhSupMsg "warning"
- ModelReferenceDataLoggingMessage "warning"
- ModelReferenceSymbolNameMessage "warning"
- ModelReferenceExtraNoncontSigs "error"
- }
- Simulink.HardwareCC {
- $ObjectID 6
- Version "1.1.0"
- ProdBitPerChar 8
- ProdBitPerShort 16
- ProdBitPerInt 32
- ProdBitPerLong 32
- ProdIntDivRoundTo "Undefined"
- ProdEndianess "Unspecified"
- ProdWordSize 32
- ProdShiftRightIntArith on
- ProdHWDeviceType "32-bit Generic"
- TargetBitPerChar 8
- TargetBitPerShort 16
- TargetBitPerInt 32
- TargetBitPerLong 32
- TargetShiftRightIntArith on
- TargetIntDivRoundTo "Undefined"
- TargetEndianess "Unspecified"
- TargetWordSize 32
- TargetTypeEmulationWarnSuppressLevel 0
- TargetPreprocMaxBitsSint 32
- TargetPreprocMaxBitsUint 32
- TargetHWDeviceType "Specified"
- TargetUnknown on
- ProdEqTarget on
- }
- Simulink.ModelReferenceCC {
- $ObjectID 7
- Version "1.1.0"
- UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange"
- CheckModelReferenceTargetMessage "error"
- ModelReferenceNumInstancesAllowed "Multi"
- ModelReferencePassRootInputsByReference on
- ModelReferenceMinAlgLoopOccurrences off
- }
- Simulink.RTWCC {
- $BackupClass "Simulink.RTWCC"
- $ObjectID 8
- Array {
- Type "Cell"
- Dimension 1
- Cell "IncludeHyperlinkInReport"
- PropName "DisabledProps"
- }
- Version "1.1.0"
- SystemTargetFile "grt.tlc"
- GenCodeOnly off
- MakeCommand "make_rtw"
- TemplateMakefile "grt_default_tmf"
- GenerateReport off
- SaveLog off
- RTWVerbose on
- RetainRTWFile off
- ProfileTLC off
- TLCDebug off
- TLCCoverage off
- TLCAssert off
- ProcessScriptMode "Default"
- ConfigurationMode "Optimized"
- ConfigAtBuild off
- IncludeHyperlinkInReport off
- LaunchReport off
- TargetLang "C"
- Array {
- Type "Handle"
- Dimension 2
- Simulink.CodeAppCC {
- $ObjectID 9
- Array {
- Type "Cell"
- Dimension 9
- Cell "IgnoreCustomStorageClasses"
- Cell "InsertBlockDesc"
- Cell "SFDataObjDesc"
- Cell "SimulinkDataObjDesc"
- Cell "DefineNamingRule"
- Cell "SignalNamingRule"
- Cell "ParamNamingRule"
- Cell "InlinedPrmAccess"
- Cell "CustomSymbolStr"
- PropName "DisabledProps"
- }
- Version "1.1.0"
- ForceParamTrailComments off
- GenerateComments on
- IgnoreCustomStorageClasses on
- IncHierarchyInIds off
- MaxIdLength 31
- PreserveName off
- PreserveNameWithParent off
- ShowEliminatedStatement off
- IncAutoGenComments off
- SimulinkDataObjDesc off
- SFDataObjDesc off
- IncDataTypeInIds off
- PrefixModelToSubsysFcnNames on
- CustomSymbolStr "$R$N$M"
- MangleLength 1
- DefineNamingRule "None"
- ParamNamingRule "None"
- SignalNamingRule "None"
- InsertBlockDesc off
- SimulinkBlockComments on
- EnableCustomComments off
- InlinedPrmAccess "Literals"
- ReqsInCode off
- }
- Simulink.GRTTargetCC {
- $BackupClass "Simulink.TargetCC"
- $ObjectID 10
- Array {
- Type "Cell"
- Dimension 13
- Cell "IncludeMdlTerminateFcn"
- Cell "CombineOutputUpdateFcns"
- Cell "SuppressErrorStatus"
- Cell "ERTCustomFileBanners"
- Cell "GenerateSampleERTMain"
- Cell "MultiInstanceERTCode"
- Cell "PurelyIntegerCode"
- Cell "SupportNonFinite"
- Cell "SupportComplex"
- Cell "SupportAbsoluteTime"
- Cell "SupportContinuousTime"
- Cell "SupportNonInlinedSFcns"
- Cell "LifeSpan"
- PropName "DisabledProps"
- }
- Version "1.1.0"
- TargetFcnLib "ansi_tfl_tmw.mat"
- TargetLibSuffix ""
- TargetPreCompLibLocation ""
- GenFloatMathFcnCalls "ANSI_C"
- UtilityFuncGeneration "Auto"
- GenerateFullHeader on
- GenerateSampleERTMain off
- IsPILTarget off
- ModelReferenceCompliant on
- IncludeMdlTerminateFcn on
- CombineOutputUpdateFcns off
- SuppressErrorStatus off
- IncludeFileDelimiter "Auto"
- ERTCustomFileBanners off
- SupportAbsoluteTime on
- LogVarNameModifier "rt_"
- MatFileLogging on
- MultiInstanceERTCode off
- SupportNonFinite on
- SupportComplex on
- PurelyIntegerCode off
- SupportContinuousTime on
- SupportNonInlinedSFcns on
- ExtMode off
- ExtModeStaticAlloc off
- ExtModeTesting off
- ExtModeStaticAllocSize 1000000
- ExtModeTransport 0
- ExtModeMexFile "ext_comm"
- RTWCAPISignals off
- RTWCAPIParams off
- RTWCAPIStates off
- GenerateASAP2 off
- }
- PropName "Components"
- }
- }
- PropName "Components"
- }
- Name "Configuration"
- SimulationMode "normal"
- CurrentDlgPage "Data Import/Export"
- }
- PropName "ConfigurationSets"
- }
- Simulink.ConfigSet {
- $PropName "ActiveConfigurationSet"
- $ObjectID 1
- }
- BlockDefaults {
- Orientation "right"
- ForegroundColor "black"
- BackgroundColor "white"
- DropShadow off
- NamePlacement "normal"
- FontName "Helvetica"
- FontSize 10
- FontWeight "normal"
- FontAngle "normal"
- ShowName on
- }
- BlockParameterDefaults {
- Block {
- BlockType BusCreator
- Inputs "4"
- DisplayOption "none"
- UseBusObject off
- BusObject "BusObject"
- NonVirtualBus off
- }
- Block {
- BlockType BusSelector
- OutputAsBus off
- }
- Block {
- BlockType Clock
- DisplayTime off
- }
- Block {
- BlockType ComplexToMagnitudeAngle
- Output "Magnitude and angle"
- SampleTime "-1"
- }
- Block {
- BlockType ComplexToRealImag
- Output "Real and imag"
- SampleTime "-1"
- }
- Block {
- BlockType Constant
- Value "1"
- VectorParams1D on
- OutDataTypeMode "Inherit from 'Constant value'"
- OutDataType "sfix(16)"
- ConRadixGroup "Use specified scaling"
- OutScaling "2^0"
- SampleTime "inf"
- }
- Block {
- BlockType DataTypeConversion
- OutDataTypeMode "Inherit via back propagation"
- OutDataType "sfix(16)"
- OutScaling "2^0"
- LockScale off
- ConvertRealWorld "Real World Value (RWV)"
- RndMeth "Zero"
- SaturateOnIntegerOverflow on
- SampleTime "-1"
- }
- Block {
- BlockType Demux
- Outputs "4"
- DisplayOption "none"
- BusSelectionMode off
- }
- Block {
- BlockType Derivative
- LinearizePole "inf"
- }
- Block {
- BlockType Display
- Format "short"
- Decimation "10"
- Floating off
- SampleTime "-1"
- }
- Block {
- BlockType EnablePort
- StatesWhenEnabling "held"
- ShowOutputPort off
- ZeroCross on
- }
- Block {
- BlockType From
- IconDisplay "Tag"
- }
- Block {
- BlockType Fcn
- Expr "sin(u[1])"
- SampleTime "-1"
- }
- Block {
- BlockType Gain
- Gain "1"
- Multiplication "Element-wise(K.*u)"
- ParameterDataTypeMode "Same as input"
- ParameterDataType "sfix(16)"
- ParameterScalingMode "Best Precision: Matrix-wise"
- ParameterScaling "2^0"
- OutDataTypeMode "Same as input"
- OutDataType "sfix(16)"
- OutScaling "2^0"
- LockScale off
- RndMeth "Floor"
- SaturateOnIntegerOverflow on
- SampleTime "-1"
- }
- Block {
- BlockType Goto
- IconDisplay "Tag"
- }
- Block {
- BlockType Ground
- }
- Block {
- BlockType HitCross
- HitCrossingOffset "0"
- HitCrossingDirection "either"
- ShowOutputPort on
- ZeroCross on
- SampleTime "-1"
- }
- Block {
- BlockType Inport
- Port "1"
- UseBusObject off
- BusObject "BusObject"
- BusOutputAsStruct off
- PortDimensions "-1"
- SampleTime "-1"
- DataType "auto"
- OutDataType "sfix(16)"
- OutScaling "2^0"
- SignalType "auto"
- SamplingMode "auto"
- LatchByDelayingOutsideSignal off
- LatchByCopyingInsideSignal off
- Interpolate on
- }
- Block {
- BlockType Integrator
- ExternalReset "none"
- InitialConditionSource "internal"
- InitialCondition "0"
- LimitOutput off
- UpperSaturationLimit "inf"
- LowerSaturationLimit "-inf"
- ShowSaturationPort off
- ShowStatePort off
- AbsoluteTolerance "auto"
- IgnoreLimit off
- ZeroCross on
- }
- Block {
- BlockType Logic
- Operator "AND"
- Inputs "2"
- AllPortsSameDT on
- OutDataTypeMode "Logical (see Configuration Parameters: Optimiza"
- "tion)"
- LogicDataType "uint(8)"
- SampleTime "-1"
- }
- Block {
- BlockType Lookup
- InputValues "[-4:5]"
- OutputValues " rand(1,10)-0.5"
- LookUpMeth "Interpolation-Extrapolation"
- OutDataTypeMode "Same as input"
- OutDataType "sfix(16)"
- OutScaling "2^0"
- 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 MagnitudeAngleToComplex
- Input "Magnitude and angle"
- ConstantPart "0"
- SampleTime "-1"
- }
- Block {
- BlockType Math
- Operator "exp"
- OutputSignalType "auto"
- SampleTime "-1"
- OutDataTypeMode "Same as first input"
- OutDataType "sfix(16)"
- OutScaling "2^0"
- LockScale off
- RndMeth "Floor"
- SaturateOnIntegerOverflow on
- }
- Block {
- BlockType Memory
- X0 "0"
- InheritSampleTime off
- LinearizeMemory off
- StateMustResolveToSignalObject off
- RTWStateStorageClass "Auto"
- }
- Block {
- BlockType MinMax
- Function "min"
- Inputs "1"
- InputSameDT on
- OutDataTypeMode "Inherit via internal rule"
- OutDataType "sfix(16)"
- OutScaling "2^0"
- LockScale off
- RndMeth "Floor"
- SaturateOnIntegerOverflow on
- ZeroCross on
- SampleTime "-1"
- }
- Block {
- BlockType MultiPortSwitch
- Inputs "4"
- zeroidx off
- InputSameDT on
- OutDataTypeMode "Inherit via internal rule"
- RndMeth "Floor"
- SaturateOnIntegerOverflow on
- SampleTime "-1"
- }
- Block {
- BlockType Mux
- Inputs "4"
- DisplayOption "none"
- UseBusObject off
- BusObject "BusObject"
- NonVirtualBus off
- }
- Block {
- BlockType Outport
- Port "1"
- UseBusObject off
- BusObject "BusObject"
- BusOutputAsStruct off
- PortDimensions "-1"
- SampleTime "-1"
- DataType "auto"
- OutDataType "sfix(16)"
- OutScaling "2^0"
- SignalType "auto"
- SamplingMode "auto"
- OutputWhenDisabled "held"
- InitialOutput "[]"
- }
- Block {
- BlockType PMComponent
- SubClassName "unknown"
- }
- Block {
- BlockType PMIOPort
- }
- Block {
- BlockType Product
- Inputs "2"
- Multiplication "Element-wise(.*)"
- InputSameDT on
- OutDataTypeMode "Same as first input"
- OutDataType "sfix(16)"
- OutScaling "2^0"
- LockScale off
- RndMeth "Zero"
- SaturateOnIntegerOverflow on
- SampleTime "-1"
- }
- Block {
- BlockType RateLimiter
- RisingSlewLimit "1"
- FallingSlewLimit "-1"
- SampleTimeMode "continuous"
- InitialCondition "0"
- LinearizeAsGain on
- }
- Block {
- BlockType RealImagToComplex
- Input "Real and imag"
- ConstantPart "0"
- SampleTime "-1"
- }
- Block {
- BlockType Relay
- OnSwitchValue "eps"
- OffSwitchValue "eps"
- OnOutputValue "1"
- OffOutputValue "0"
- OutputDataTypeScalingMode "All ports same datatype"
- OutDataType "sfix(16)"
- OutScaling "2^0"
- ConRadixGroup "Use specified scaling"
- ZeroCross on
- SampleTime "-1"
- }
- Block {
- BlockType RelationalOperator
- Operator ">="
- InputSameDT on
- LogicOutDataTypeMode "Logical (see Configuration Parameters: Optimiza"
- "tion)"
- LogicDataType "uint(8)"
- 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"
- }
- Block {
- BlockType Scope
- ModelBased off
- TickLabels "OneTimeTick"
- ZoomMode "on"
- Grid "on"
- TimeRange "auto"
- YMin "-5"
- YMax "5"
- SaveToWorkspace off
- SaveName "ScopeData"
- LimitDataPoints on
- MaxDataPoints "5000"
- Decimation "1"
- SampleInput off
- SampleTime "-1"
- }
- Block {
- BlockType Selector
- InputType "Vector"
- IndexMode "One-based"
- ElementSrc "Internal"
- Elements "1"
- RowSrc "Internal"
- Rows "1"
- ColumnSrc "Internal"
- Columns "1"
- InputPortWidth "-1"
- IndexIsStartValue off
- OutputPortSize "1"
- }
- Block {
- BlockType "S-Function"
- FunctionName "system"
- SFunctionModules "''"
- PortCounts "[]"
- }
- Block {
- BlockType Signum
- ZeroCross on
- SampleTime "-1"
- }
- Block {
- BlockType Sin
- SineType "Time based"
- TimeSource "Use simulation time"
- Amplitude "1"
- Bias "0"
- Frequency "1"
- Phase "0"
- Samples "10"
- Offset "0"
- SampleTime "-1"
- VectorParams1D on
- }
- Block {
- BlockType Step
- Time "1"
- Before "0"
- After "1"
- SampleTime "-1"
- VectorParams1D on
- ZeroCross on
- }
- Block {
- BlockType SubSystem
- ShowPortLabels on
- Permissions "ReadWrite"
- PermitHierarchicalResolution "All"
- SystemSampleTime "-1"
- RTWFcnNameOpts "Auto"
- RTWFileNameOpts "Auto"
- SimViewingDevice off
- DataTypeOverride "UseLocalSettings"
- MinMaxOverflowLogging "UseLocalSettings"
- }
- Block {
- BlockType Sum
- IconShape "rectangular"
- Inputs "++"
- InputSameDT on
- OutDataTypeMode "Same as first input"
- OutDataType "sfix(16)"
- OutScaling "2^0"
- LockScale off
- RndMeth "Floor"
- SaturateOnIntegerOverflow on
- SampleTime "-1"
- }
- Block {
- BlockType Switch
- Criteria "u2 >= Threshold"
- Threshold "0"
- InputSameDT on
- OutDataTypeMode "Inherit via internal rule"
- RndMeth "Floor"
- SaturateOnIntegerOverflow on
- ZeroCross on
- SampleTime "-1"
- }
- Block {
- BlockType Terminator
- }
- Block {
- BlockType TransportDelay
- DelayTime "1"
- InitialOutput "0"
- BufferSize "1024"
- FixedBuffer off
- TransDelayFeedthrough off
- PadeOrder "0"
- }
- Block {
- BlockType Trigonometry
- Operator "sin"
- OutputSignalType "auto"
- SampleTime "-1"
- }
- }
- AnnotationDefaults {
- HorizontalAlignment "center"
- VerticalAlignment "middle"
- ForegroundColor "black"
- BackgroundColor "white"
- DropShadow off
- FontName "Helvetica"
- FontSize 10
- FontWeight "normal"
- FontAngle "normal"
- }
- LineDefaults {
- FontName "Helvetica"
- FontSize 9
- FontWeight "normal"
- FontAngle "normal"
- }
- System {
- Name "power_wind_dfig"
- Location [2, 78, 1278, 749]
- Open on
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- ReportName "simulink-default.rpt"
- Block {
- BlockType Reference
- Name "10 km line"
- Ports [0, 0, 0, 0, 0, 3, 3]
- Position [525, 108, 605, 152]
- BackgroundColor "yellow"
- AttributesFormatString "\n"
- SourceBlock "powerlib/Elements/Three-PhasenPI Section Line"
- SourceType "Three-Phase PI Section Line"
- PhysicalDomain "powersysdomain"
- SubClassName "unknown"
- LeftPortType "p1"
- RightPortType "p1"
- LConnTagsString "a|b|c"
- RConnTagsString "A|B|C"
- Frequency "60"
- Resistances "[0.1153 0.413]"
- Inductances "[1.05e-3 3.32e-3]"
- Capacitances "[11.33e-009 5.01e-009]"
- Length "10"
- }
- Block {
- BlockType Reference
- Name "120 kV"
- Ports [0, 0, 0, 0, 0, 1, 3]
- Position [40, 109, 85, 151]
- BackgroundColor "yellow"
- SourceBlock "powerlib/ElectricalnSources/Three-PhasenProgr"
- "ammablenVoltage Source"
- SourceType "Three-Phase Programmable Voltage Source"
- ShowPortLabels on
- PositiveSequence "[120e3 0 60]"
- VariationEntity "None"
- VariationType "Step"
- VariationStep "-0.15"
- VariationRate "10"
- VariationMagnitude "0.3"
- VariationFrequency "2"
- VariationTiming "[5 5.5]"
- VariationPhaseA off
- Amplitudes "[1 0.8 1.2 1.0]"
- TimeValues "[0 0.1 0.15 0.2]"
- HarmonicGeneration off
- HarmonicA "[1 -0.1 0 1]"
- HarmonicB "[2 0.15 35 2]"
- Timing "[5 5.5]"
- }
- Block {
- BlockType Reference
- Name "120 kV/25 kVn47 MVA"
- Ports [0, 0, 0, 0, 0, 3, 3]
- Position [225, 105, 280, 155]
- BackgroundColor "yellow"
- AttributesFormatString "\n"
- SourceBlock "powerlib/Elements/Three-PhasenTransformern(Tw"
- "o Windings)"
- SourceType "Three-Phase Transformer (Two Windings)"
- ShowPortLabels on
- NominalPower "[47e6 60 ]"
- Winding1Connection "Yg"
- Winding1 "[ 120e3 0.08/30 0.08 ]"
- Winding2Connection "Delta (D1)"
- Winding2 "[ 25e3 0.08/30 0.08]"
- SetSaturation off
- Rm "500"
- Lm "500"
- Saturation "[ 0,0 ; 0.005,1.2 ; 1.0,1.4 ]"
- Hysteresis off
- DataFile "'basic_model'"
- SetInitialFlux off
- InitialFluxes "[ 0.8 , -0.8 , 0.7 ]"
- Measurements "None"
- TransfoNumber "0"
- MoreParameters off
- BreakLoop off
- }
- Block {
- BlockType Reference
- Name "20 km line"
- Ports [0, 0, 0, 0, 0, 3, 3]
- Position [335, 108, 415, 152]
- BackgroundColor "yellow"
- AttributesFormatString "\n"
- SourceBlock "powerlib/Elements/Three-PhasenPI Section Line"
- SourceType "Three-Phase PI Section Line"
- PhysicalDomain "powersysdomain"
- SubClassName "unknown"
- LeftPortType "p1"
- RightPortType "p1"
- LConnTagsString "a|b|c"
- RConnTagsString "A|B|C"
- Frequency "60"
- Resistances "[0.1153 0.413]"
- Inductances "[1.05e-3 3.32e-3]"
- Capacitances "[11.33e-009 5.01e-009]"
- Length "20"
- }
- Block {
- BlockType Reference
- Name "25 kV/ 575 Vn6*2 MVA"
- Ports [0, 0, 0, 0, 0, 3, 3]
- Position [630, 105, 675, 155]
- BackgroundColor "yellow"
- AttributesFormatString "\n"
- SourceBlock "powerlib/Elements/Three-PhasenTransformern(Tw"
- "o Windings)"
- SourceType "Three-Phase Transformer (Two Windings)"
- ShowPortLabels on
- NominalPower "[2e6*6 60]"
- Winding1Connection "Yg"
- Winding1 "[25e3 , 0.025/30 , 0.025]"
- Winding2Connection "Delta (D1)"
- Winding2 "[ 575, 0.025/30 , 0.025]"
- SetSaturation off
- Rm "500"
- Lm "inf"
- Saturation "[ 0,0 ; 0.0024,1.2 ; 1.0,1.52 ]"
- Hysteresis off
- DataFile "'hysteresis'"
- SetInitialFlux off
- InitialFluxes "[ 0.8 , -0.8 , 0.7 ]"
- Measurements "None"
- TransfoNumber "0"
- MoreParameters off
- BreakLoop off
- }
- Block {
- BlockType Reference
- Name "2500 MVAnX0/X1=3"
- Ports [0, 0, 0, 0, 0, 3, 3]
- Position [105, 108, 160, 152]
- BackgroundColor "yellow"
- AttributesFormatString "\n"
- SourceBlock "powerlib/Elements/Three-PhasenMutual Inductanc"
- "enZ1-Z0"
- SourceType "Three-Phase Mutual Inductance Z1-Z0"
- PhysicalDomain "powersysdomain"
- SubClassName "unknown"
- LeftPortType "p1"
- RightPortType "p1"
- LConnTagsString "a|b|c"
- RConnTagsString "A|B|C"
- PositiveSequence "[0.1 1.0/(2*pi*60)] *120e3^2/2500e6"
- ZeroSequence "[0.3 3.0/(2*pi*60)] *120e3^2/2500e6"
- }
- Block {
- BlockType Reference
- Name "3.3ohms "
- Ports [0, 0, 0, 0, 0, 1, 1]
- Position [289, 250, 311, 270]
- Orientation "down"
- SourceBlock "powerlib/Elements/Series RLC Branch"
- SourceType "Series RLC Branch"
- PhysicalDomain "powersysdomain"
- SubClassName "unknown"
- LeftPortType "p1"
- RightPortType "p1"
- LConnTagsString "__new0"
- RConnTagsString "__new0"
- BranchType "R"
- Resistance "3.3"
- Inductance "[]"
- SetiL0 off
- InitialCurrent "0"
- Capacitance "[]"
- Setx0 off
- InitialVoltage "0"
- Measurements "None"
- }
- Block {
- BlockType Reference
- Name "B120n(120 kV)"
- Ports [0, 0, 0, 0, 0, 3, 3]
- Position [190, 107, 195, 153]
- BackgroundColor "black"
- SourceBlock "powerlib/Measurements/Three-PhasenV-I Measurem"
- "ent"
- SourceType "Three-Phase VI Measurement"
- ShowPortLabels on
- VoltageMeasurement "phase-to-ground"
- SetLabelV on
- LabelV "Vabc_B120"
- Vpu on
- CurrentMeasurement "no"
- SetLabelI on
- LabelI "Iabc_B120"
- Ipu off
- Pbase "100e6"
- Vbase "120e3"
- OutputType "Complex"
- PhasorSimulation on
- PSBequivalent "0"
- }
- Block {
- BlockType Reference
- Name "B25n(25 kV)"
- Ports [0, 0, 0, 0, 0, 3, 3]
- Position [445, 107, 450, 153]
- BackgroundColor "black"
- SourceBlock "powerlib/Measurements/Three-PhasenV-I Measurem"
- "ent"
- SourceType "Three-Phase VI Measurement"
- ShowPortLabels on
- VoltageMeasurement "phase-to-ground"
- SetLabelV on
- LabelV "Vabc_B25"
- Vpu on
- CurrentMeasurement "yes"
- SetLabelI on
- LabelI "Iabc_B25"
- Ipu on
- Pbase "10e6"
- Vbase "25e3"
- OutputType "Complex"
- PhasorSimulation on
- PSBequivalent "0"
- }
- Block {
- BlockType Reference
- Name "B575n(575 V)"
- Ports [0, 0, 0, 0, 0, 3, 3]
- Position [755, 110, 760, 150]
- BackgroundColor "black"
- SourceBlock "powerlib/Measurements/Three-PhasenV-I Measurem"
- "ent"
- SourceType "Three-Phase VI Measurement"
- ShowPortLabels on
- VoltageMeasurement "phase-to-ground"
- SetLabelV on
- LabelV "Vabc_B575"
- Vpu on
- CurrentMeasurement "yes"
- SetLabelI on
- LabelI "Iabc_B575"
- Ipu on
- Pbase "6*1.5e6/0.9"
- Vbase "575"
- OutputType "Complex"
- PhasorSimulation on
- PSBequivalent "0"
- }
- Block {
- BlockType BusSelector
- Name "BusnSelector1"
- Ports [1, 3]
- Position [880, 75, 885, 155]
- ShowName off
- OutputSignals "Vdc (V),wr (pu),Pitch_angle (deg)"
- Port {
- PortNumber 1
- Name "<Vdc (V)>"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- Port {
- PortNumber 2
- Name "<wr (pu)>"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- Port {
- PortNumber 3
- Name "<Pitch_angle (deg)>"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType Reference
- Name "Fault"
- Ports [0, 0, 0, 0, 0, 3]
- Position [425, 23, 455, 67]
- Orientation "left"
- ForegroundColor "red"
- SourceBlock "powerlib/Elements/Three-Phase Fault"
- SourceType "Three-Phase Fault"
- ShowPortLabels on
- FaultA off
- FaultB off
- FaultC off
- FaultResistance "1e-3"
- GroundFault on
- GroundResistance "1e-3"
- External off
- SwitchStatus "[1 0]"
- SwitchTimes "[ 5 5+9/60]"
- InitialStates "[0 0 1]"
- SnubberResistance "1e4"
- SnubberCapacitance "inf"
- Measurements "None"
- }
- Block {
- BlockType From
- Name "From1"
- Position [490, 486, 525, 504]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "wind"
- Port {
- PortNumber 1
- Name "Wind speed (m/s)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType From
- Name "From12"
- Position [675, 76, 740, 94]
- BackgroundColor "lightBlue"
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "Trip_WT"
- }
- Block {
- BlockType From
- Name "From2"
- Position [490, 511, 525, 529]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "pitch"
- Port {
- PortNumber 1
- Name "pitch angle (deg)"
- PropagatedSignals "Pitch_angle (deg)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType From
- Name "From3"
- Position [490, 435, 525, 455]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "Vdc"
- Port {
- PortNumber 1
- Name "Vdc (V)"
- PropagatedSignals "Vdc (V)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType From
- Name "From4"
- Position [490, 461, 525, 479]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "wr"
- Port {
- PortNumber 1
- Name "Speed (pu)"
- PropagatedSignals "wr (pu)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType Goto
- Name "Goto1"
- Position [820, 35, 850, 55]
- ShowName off
- GotoTag "wind"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto2"
- Position [975, 80, 1005, 100]
- ShowName off
- GotoTag "Vdc"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto3"
- Position [975, 105, 1005, 125]
- ShowName off
- GotoTag "wr"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto4"
- Position [975, 130, 1005, 150]
- ShowName off
- GotoTag "pitch"
- TagVisibility "global"
- }
- Block {
- BlockType Goto
- Name "Goto6"
- Position [905, 350, 965, 370]
- ShowName off
- GotoTag "Trip_WT"
- TagVisibility "local"
- }
- Block {
- BlockType Scope
- Name "Grid"
- Ports [8]
- Position [240, 315, 300, 530]
- BackgroundColor "green"
- Floating off
- Location [64, 98, 729, 655]
- Open off
- NumInputPorts "8"
- ZoomMode "yonly"
- List {
- ListType AxesTitles
- axes1 "%<SignalLabel>"
- axes2 "%<SignalLabel>"
- axes3 "%<SignalLabel>"
- axes4 "%<SignalLabel>"
- axes5 "%<SignalLabel>"
- axes6 "%<SignalLabel>"
- axes7 "%<SignalLabel>"
- axes8 "%<SignalLabel>"
- }
- TimeRange "50"
- YMin "0~0~0~-10~-5~0~0~0"
- YMax "1.1~1.1~1.1~5~5~1.1~1.1~1.1"
- SaveName "ScopeData1"
- DataFormat "StructureWithTime"
- LimitDataPoints off
- SampleTime "0"
- }
- Block {
- BlockType SubSystem
- Name "GridnData acquisition"
- Ports [0, 8]
- Position [15, 327, 95, 518]
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- Port {
- PortNumber 1
- Name "Vabc_B120 (pu)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- Port {
- PortNumber 2
- Name "Vabc_B25 (pu)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- Port {
- PortNumber 3
- Name "Vabc_B575 (pu)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- Port {
- PortNumber 4
- Name "P_B25 (MW)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- Port {
- PortNumber 5
- Name "Q_B25 (Mvar)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- Port {
- PortNumber 6
- Name "V_Plant 2.3kV pos. seq. (pu)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- Port {
- PortNumber 7
- Name "I Plant pos. seq. (pu/2 MVA) "
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- Port {
- PortNumber 8
- Name "Motor Speed (pu)"
- PropagatedSignals "Rotor speed (wm)"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- System {
- Name "GridnData acquisition"
- Location [426, 74, 1093, 590]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Reference
- Name "3-PhasenActive & Reactive Powern(Phasor T"
- "ype)"
- Ports [2, 1]
- Position [220, 139, 275, 201]
- SourceBlock "powerlib_extras/PhasornLibrary/3-PhasenAc"
- "tive & Reactive Powern(Phasor Type)"
- SourceType "3-Phase Active & Reactive Power (Phasor Typ"
- "e)"
- ShowPortLabels on
- }
- Block {
- BlockType ComplexToMagnitudeAngle
- Name "Complex tonMagnitude-Angle "
- Ports [1, 1]
- Position [175, 29, 195, 51]
- ShowName off
- Output "Magnitude"
- }
- Block {
- BlockType ComplexToMagnitudeAngle
- Name "Complex tonMagnitude-Angle 1"
- Ports [1, 1]
- Position [175, 59, 195, 81]
- ShowName off
- Output "Magnitude"
- }
- Block {
- BlockType ComplexToMagnitudeAngle
- Name "Complex tonMagnitude-Angle 2"
- Ports [1, 1]
- Position [175, 89, 195, 111]
- ShowName off
- Output "Magnitude"
- }
- Block {
- BlockType Constant
- Name "Constant"
- Position [370, 245, 400, 265]
- ShowName off
- Value "0"
- }
- Block {
- BlockType Demux
- Name "Demux"
- Ports [1, 2]
- Position [365, 134, 370, 201]
- BackgroundColor "black"
- ShowName off
- Outputs "2"
- }
- Block {
- BlockType From
- Name "From"
- Position [50, 31, 120, 49]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "Vabc_B120"
- }
- Block {
- BlockType From
- Name "From1"
- Position [50, 61, 120, 79]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "Vabc_B25"
- }
- Block {
- BlockType From
- Name "From2"
- Position [60, 176, 130, 194]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "Iabc_B25"
- }
- Block {
- BlockType From
- Name "From3"
- Position [65, 334, 140, 356]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "Vabc_B2300"
- }
- Block {
- BlockType From
- Name "From4"
- Position [70, 419, 145, 441]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "Iabc_B2300"
- }
- Block {
- BlockType From
- Name "From8"
- Position [50, 91, 120, 109]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "Vabc_B575"
- }
- Block {
- BlockType Gain
- Name "MW"
- Position [295, 146, 345, 194]
- Gain "1/1e6"
- }
- Block {
- BlockType SubSystem
- Name "Mean Value1"
- Ports [2, 1]
- Position [435, 144, 490, 171]
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- MaskType "Mean value"
- MaskDescription "This block uses the running window averagin"
- "g technique to compute the mean value of the input signal over the specified "
- "period.n"
- MaskPromptString "Averaging period (s):"
- MaskStyleString "edit"
- MaskTunableValueString "on"
- MaskEnableString "on"
- MaskVisibilityString "on"
- MaskToolTipString "on"
- MaskVariables "Period=@1;"
- MaskInitialization "n"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "1/60"
- System {
- Name "Mean Value1"
- Location [220, 282, 763, 473]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "In"
- Position [20, 73, 50, 87]
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "Init"
- Position [380, 143, 410, 157]
- Port "2"
- IconDisplay "Port number"
- }
- Block {
- BlockType Gain
- Name "Gain"
- Position [310, 73, 385, 117]
- Gain "1/Period"
- }
- Block {
- BlockType Step
- Name "Step"
- Position [370, 25, 400, 55]
- Time "Period+eps"
- SampleTime "0"
- }
- Block {
- BlockType Sum
- Name "Sum"
- Ports [2, 1]
- Position [250, 69, 270, 116]
- Inputs "+-"
- }
- Block {
- BlockType Switch
- Name "Switch"
- Position [435, 90, 465, 120]
- Threshold "0.5"
- InputSameDT off
- }
- Block {
- BlockType TransportDelay
- Name "TransportnDelay"
- Position [175, 90, 205, 120]
- DelayTime "Period"
- }
- Block {
- BlockType Integrator
- Name "integrator"
- Ports [1, 1]
- Position [85, 59, 115, 101]
- IgnoreLimit off
- }
- Block {
- BlockType Outport
- Name "Mean"
- Position [490, 98, 520, 112]
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Line {
- SrcBlock "TransportnDelay"
- SrcPort 1
- DstBlock "Sum"
- DstPort 2
- }
- Line {
- SrcBlock "integrator"
- SrcPort 1
- Points [0, 0; 25, 0]
- Branch {
- Points [0, 25]
- DstBlock "TransportnDelay"
- DstPort 1
- }
- Branch {
- DstBlock "Sum"
- DstPort 1
- }
- }
- Line {
- SrcBlock "In"
- SrcPort 1
- DstBlock "integrator"
- DstPort 1
- }
- Line {
- SrcBlock "Sum"
- SrcPort 1
- DstBlock "Gain"
- DstPort 1
- }
- Line {
- SrcBlock "Gain"
- SrcPort 1
- DstBlock "Switch"
- DstPort 1
- }
- Line {
- SrcBlock "Switch"
- SrcPort 1
- DstBlock "Mean"
- DstPort 1
- }
- Line {
- SrcBlock "Step"
- SrcPort 1
- Points [10, 0; 0, 65]
- DstBlock "Switch"
- DstPort 2
- }
- Line {
- SrcBlock "Init"
- SrcPort 1
- Points [0, -35]
- DstBlock "Switch"
- DstPort 3
- }
- Annotation {
- Name "Mean value"
- Position [48, 26]
- UseDisplayTextAsClickCallback off
- FontSize 12
- FontWeight "bold"
- }
- }
- }
- Block {
- BlockType SubSystem
- Name "Mean Value2"
- Ports [2, 1]
- Position [435, 199, 490, 226]
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- MaskType "Mean value"
- MaskDescription "This block uses the running window averagin"
- "g technique to compute the mean value of the input signal over the specified "
- "period.n"
- MaskPromptString "Averaging period (s):"
- MaskStyleString "edit"
- MaskTunableValueString "on"
- MaskEnableString "on"
- MaskVisibilityString "on"
- MaskToolTipString "on"
- MaskVariables "Period=@1;"
- MaskInitialization "n"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "1/60"
- System {
- Name "Mean Value2"
- Location [220, 282, 763, 473]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "In"
- Position [20, 73, 50, 87]
- IconDisplay "Port number"
- }
- Block {
- BlockType Inport
- Name "Init"
- Position [380, 143, 410, 157]
- Port "2"
- IconDisplay "Port number"
- }
- Block {
- BlockType Gain
- Name "Gain"
- Position [310, 73, 385, 117]
- Gain "1/Period"
- }
- Block {
- BlockType Step
- Name "Step"
- Position [370, 25, 400, 55]
- Time "Period+eps"
- SampleTime "0"
- }
- Block {
- BlockType Sum
- Name "Sum"
- Ports [2, 1]
- Position [250, 69, 270, 116]
- Inputs "+-"
- }
- Block {
- BlockType Switch
- Name "Switch"
- Position [435, 90, 465, 120]
- Threshold "0.5"
- InputSameDT off
- }
- Block {
- BlockType TransportDelay
- Name "TransportnDelay"
- Position [175, 90, 205, 120]
- DelayTime "Period"
- }
- Block {
- BlockType Integrator
- Name "integrator"
- Ports [1, 1]
- Position [85, 59, 115, 101]
- IgnoreLimit off
- }
- Block {
- BlockType Outport
- Name "Mean"
- Position [490, 98, 520, 112]
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Line {
- SrcBlock "Init"
- SrcPort 1
- Points [0, -35]
- DstBlock "Switch"
- DstPort 3
- }
- Line {
- SrcBlock "Step"
- SrcPort 1
- Points [10, 0; 0, 65]
- DstBlock "Switch"
- DstPort 2
- }
- Line {
- SrcBlock "Switch"
- SrcPort 1
- DstBlock "Mean"
- DstPort 1
- }
- Line {
- SrcBlock "Gain"
- SrcPort 1
- DstBlock "Switch"
- DstPort 1
- }
- Line {
- SrcBlock "Sum"
- SrcPort 1
- DstBlock "Gain"
- DstPort 1
- }
- Line {
- SrcBlock "In"
- SrcPort 1
- DstBlock "integrator"
- DstPort 1
- }
- Line {
- SrcBlock "integrator"
- SrcPort 1
- Points [0, 0; 25, 0]
- Branch {
- DstBlock "Sum"
- DstPort 1
- }
- Branch {
- Points [0, 25]
- DstBlock "TransportnDelay"
- DstPort 1
- }
- }
- Line {
- SrcBlock "TransportnDelay"
- SrcPort 1
- DstBlock "Sum"
- DstPort 2
- }
- Annotation {
- Name "Mean value"
- Position [48, 26]
- UseDisplayTextAsClickCallback off
- FontSize 12
- FontWeight "bold"
- }
- }
- }
- Block {
- BlockType Reference
- Name "Sequence Analyzern(Phasor Type)"
- Ports [1, 2]
- Position [195, 316, 245, 369]
- SourceBlock "powerlib_extras/PhasornLibrary/Sequence An"
- "alyzern(Phasor Type)"
- SourceType "Sequence Analyzer (Phasor Type)"
- ShowPortLabels on
- seq "Positive"
- }
- Block {
- BlockType Reference
- Name "Sequence Analyzern(Phasor Type)1"
- Ports [1, 2]
- Position [195, 401, 245, 454]
- SourceBlock "powerlib_extras/PhasornLibrary/Sequence An"
- "alyzern(Phasor Type)"
- SourceType "Sequence Analyzer (Phasor Type)"
- ShowPortLabels on
- seq "Positive"
- }
- Block {
- BlockType Terminator
- Name "Terminator"
- Position [265, 347, 280, 363]
- ShowName off
- }
- Block {
- BlockType Terminator
- Name "Terminator1"
- Position [265, 432, 280, 448]
- ShowName off
- }
- Block {
- BlockType From
- Name "m_load "
- Position [60, 270, 135, 290]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "MotorSpeed"
- }
- Block {
- BlockType Gain
- Name "pu->A"
- Position [180, 174, 200, 196]
- Gain "10e6/sqrt(3)/25e3*sqrt(2)"
- }
- Block {
- BlockType Gain
- Name "pu->V"
- Position [180, 144, 200, 166]
- NamePlacement "alternate"
- Gain "25e3*sqrt(2)/sqrt(3)"
- }
- Block {
- BlockType Outport
- Name "Vabc_B120 "
- Position [245, 33, 275, 47]
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Block {
- BlockType Outport
- Name "Vabc_B25 "
- Position [245, 63, 275, 77]
- Port "2"
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Block {
- BlockType Outport
- Name "Vabc_B575 "
- Position [245, 93, 275, 107]
- Port "3"
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Block {
- BlockType Outport
- Name "P_B25"
- Position [530, 153, 560, 167]
- Port "4"
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Block {
- BlockType Outport
- Name "Q_B25"
- Position [530, 208, 560, 222]
- Port "5"
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Block {
- BlockType Outport
- Name "V1_Plant"
- Position [310, 323, 340, 337]
- Port "6"
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Block {
- BlockType Outport
- Name "I1_Plant"
- Position [310, 408, 340, 422]
- Port "7"
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Block {
- BlockType Outport
- Name "Motor_Speed"
- Position [260, 273, 290, 287]
- Port "8"
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Line {
- SrcBlock "pu->A"
- SrcPort 1
- DstBlock "3-PhasenActive & Reactive Powern(Phasor T"
- "ype)"
- DstPort 2
- }
- Line {
- SrcBlock "pu->V"
- SrcPort 1
- DstBlock "3-PhasenActive & Reactive Powern(Phasor T"
- "ype)"
- DstPort 1
- }
- Line {
- SrcBlock "3-PhasenActive & Reactive Powern(Phasor T"
- "ype)"
- SrcPort 1
- DstBlock "MW"
- DstPort 1
- }
- Line {
- SrcBlock "Complex tonMagnitude-Angle "
- SrcPort 1
- DstBlock "Vabc_B120 "
- DstPort 1
- }
- Line {
- SrcBlock "From"
- SrcPort 1
- DstBlock "Complex tonMagnitude-Angle "
- DstPort 1
- }
- Line {
- SrcBlock "Complex tonMagnitude-Angle 1"
- SrcPort 1
- DstBlock "Vabc_B25 "
- DstPort 1
- }
- Line {
- SrcBlock "From1"
- SrcPort 1
- Points [30, 0]
- Branch {
- DstBlock "Complex tonMagnitude-Angle 1"
- DstPort 1
- }
- Branch {
- Points [0, 85]
- DstBlock "pu->V"
- DstPort 1
- }
- }
- Line {
- SrcBlock "Complex tonMagnitude-Angle 2"
- SrcPort 1
- DstBlock "Vabc_B575 "
- DstPort 1
- }
- Line {
- SrcBlock "From8"
- SrcPort 1
- DstBlock "Complex tonMagnitude-Angle 2"
- DstPort 1
- }
- Line {
- SrcBlock "From2"
- SrcPort 1
- DstBlock "pu->A"
- DstPort 1
- }
- Line {
- SrcBlock "MW"
- SrcPort 1
- DstBlock "Demux"
- DstPort 1
- }
- Line {
- SrcBlock "Demux"
- SrcPort 1
- DstBlock "Mean Value1"
- DstPort 1
- }
- Line {
- SrcBlock "Demux"
- SrcPort 2
- Points [0, 20]
- DstBlock "Mean Value2"
- DstPort 1
- }
- Line {
- SrcBlock "Constant"
- SrcPort 1
- Points [5, 0; 0, -35]
- Branch {
- Points [0, -55]
- DstBlock "Mean Value1"
- DstPort 2
- }
- Branch {
- DstBlock "Mean Value2"
- DstPort 2
- }
- }
- Line {
- SrcBlock "Mean Value1"
- SrcPort 1
- DstBlock "P_B25"
- DstPort 1
- }
- Line {
- SrcBlock "Mean Value2"
- SrcPort 1
- DstBlock "Q_B25"
- DstPort 1
- }
- Line {
- SrcBlock "m_load "
- SrcPort 1
- DstBlock "Motor_Speed"
- DstPort 1
- }
- Line {
- SrcBlock "From3"
- SrcPort 1
- DstBlock "Sequence Analyzern(Phasor Type)"
- DstPort 1
- }
- Line {
- SrcBlock "Sequence Analyzern(Phasor Type)"
- SrcPort 1
- DstBlock "V1_Plant"
- DstPort 1
- }
- Line {
- SrcBlock "Sequence Analyzern(Phasor Type)"
- SrcPort 2
- DstBlock "Terminator"
- DstPort 1
- }
- Line {
- SrcBlock "From4"
- SrcPort 1
- DstBlock "Sequence Analyzern(Phasor Type)1"
- DstPort 1
- }
- Line {
- SrcBlock "Sequence Analyzern(Phasor Type)1"
- SrcPort 1
- DstBlock "I1_Plant"
- DstPort 1
- }
- Line {
- SrcBlock "Sequence Analyzern(Phasor Type)1"
- SrcPort 2
- DstBlock "Terminator1"
- DstPort 1
- }
- }
- }
- Block {
- BlockType Reference
- Name "Ground1"
- Ports [0, 0, 0, 0, 0, 1]
- Position [14, 150, 26, 165]
- Orientation "down"
- ShowName off
- AttributesFormatString "\n"
- SourceBlock "powerlib/Elements/Ground"
- SourceType "Ground"
- PhysicalDomain "powersysdomain"
- SubClassName "unknown"
- LeftPortType "p1"
- RightPortType "p1"
- LConnTagsString "a"
- }
- Block {
- BlockType Reference
- Name "Ground3"
- Ports [0, 0, 0, 0, 0, 1]
- Position [294, 290, 306, 305]
- Orientation "down"
- ShowName off
- AttributesFormatString "\n"
- SourceBlock "powerlib/Elements/Ground"
- SourceType "Ground"
- PhysicalDomain "powersysdomain"
- SubClassName "unknown"
- LeftPortType "p1"
- RightPortType "p1"
- LConnTagsString "a"
- }
- Block {
- BlockType Reference
- Name "GroundingnTransformernX0=4.7 Ohms"
- Ports [0, 0, 0, 0, 0, 4, 3]
- Position [230, 195, 280, 245]
- Orientation "left"
- BackgroundColor "yellow"
- AttributesFormatString "\n"
- SourceBlock "powerlib/Elements/Three-PhasenTransformern(Tw"
- "o Windings)"
- SourceType "Three-Phase Transformer (Two Windings)"
- ShowPortLabels on
- NominalPower "[100e6 60]"
- Winding1Connection "Yn"
- Winding1 "[ 25e3 4.7/(25e3^2/100e6)/30 4.7/(25e3^2/10"
- "0e6)]"
- Winding2Connection "Delta (D11)"
- Winding2 "[ 25e3 1e-6 0]"
- SetSaturation off
- Rm "500"
- Lm "500"
- Saturation "[ 0,0 ; 0.005,1.2 ; 1.0,1.4 ]"
- Hysteresis off
- DataFile "'basic_model'"
- SetInitialFlux off
- InitialFluxes "[ 0.8 , -0.8 , 0.7 ]"
- Measurements "None"
- TransfoNumber "0"
- MoreParameters off
- BreakLoop off
- }
- Block {
- BlockType Reference
- Name "Loadn500 kW"
- Ports [0, 0, 0, 0, 0, 3]
- Position [705, 195, 735, 235]
- Orientation "down"
- BackgroundColor "yellow"
- AttributesFormatString "\n"
- SourceBlock "powerlib/Elements/Three-PhasenSeries RLC Load"
- SourceType "Three-Phase Series RLC Load"
- PhysicalDomain "powersysdomain"
- SubClassName "unknown"
- LeftPortType "p1"
- RightPortType "p1"
- LConnTagsString "A|B|C"
- Configuration "Y (grounded)"
- NominalVoltage "575"
- NominalFrequency "60"
- ActivePower "500e3"
- InductivePower "0"
- CapacitivePower "0"
- Measurements "None"
- }
- Block {
- BlockType SubSystem
- Name "More info"
- Ports []
- Position [925, 580, 952, 605]
- ForegroundColor "blue"
- DropShadow on
- OpenFcn "web('power_wind_dfig.html')"
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- MaskDisplay "disp('?')"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- System {
- Name "More info"
- Location [125, 254, 937, 641]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- }
- }
- Block {
- BlockType SubSystem
- Name "Plantn2 MVA"
- Ports [0, 0, 0, 0, 0, 3]
- Position [520, 173, 570, 237]
- BackgroundColor "yellow"
- DropShadow on
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- System {
- Name "Plantn2 MVA"
- Location [63, 103, 895, 743]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Reference
- Name "1.68 MW 0.93 PFn 2300 V"
- Ports [1, 1, 0, 0, 0, 3]
- Position [530, 90, 590, 155]
- BackgroundColor "lightBlue"
- SourceBlock "powerlib/Machines/Asynchronous Machinenpu "
- "Units"
- SourceType "Asynchronous Machine"
- ShowPortLabels on
- PresetModel "No"
- MechanicalLoad "Torque Tm"
- ShowDetailedParameters on
- RotorType "Squirrel-cage"
- ReferenceFrame "Rotor"
- NominalParameters "[1.68e6/0.93 2300 60]"
- Stator "[0.0092 0.0717]"
- Rotor "[0.007 0.0717]"
- Lm "4.14"
- Mechanical "[0.5 0 2]"
- InitialConditions "[ 1e-3,0 0,0,0 0,0,0 ] "
- Units "0"
- LoadFlowParameters "0"
- SimulateSaturation off
- Saturation "[ 0 0 ; 0 0 ]"
- }
- Block {
- BlockType Reference
- Name "200 kW"
- Ports [0, 0, 0, 0, 0, 3]
- Position [430, 210, 470, 260]
- Orientation "down"
- BackgroundColor "yellow"
- AttributesFormatString "\n"
- SourceBlock "powerlib/Elements/Three-PhasenSeries RLC L"
- "oad"
- SourceType "Three-Phase Series RLC Load"
- PhysicalDomain "powersysdomain"
- SubClassName "unknown"
- LeftPortType "p1"
- RightPortType "p1"
- LConnTagsString "A|B|C"
- Configuration "Y (grounded)"
- NominalVoltage "2300"
- NominalFrequency "60"
- ActivePower "200e3"
- InductivePower "0"
- CapacitivePower "0"
- Measurements "None"
- }
- Block {
- BlockType Reference
- Name "25/2.3 kVn2.5 MVA"
- Ports [0, 0, 0, 0, 0, 3, 4]
- Position [100, 108, 160, 177]
- BackgroundColor "yellow"
- AttributesFormatString "\n"
- SourceBlock "powerlib/Elements/Three-PhasenTransformer"
- "n(Two Windings)"
- SourceType "Three-Phase Transformer (Two Windings)"
- ShowPortLabels on
- NominalPower "[2.5e6 60 ]"
- Winding1Connection "Delta (D11)"
- Winding1 "[ 25e3 0.04/30 0.04 ]"
- Winding2Connection "Yn"
- Winding2 "[ 2.3e3 0.04/30 0.04]"
- SetSaturation off
- Rm "500"
- Lm "500"
- Saturation "[ 0,0 ; 0.005,1.2 ; 1.0,1.4 ]"
- Hysteresis off
- DataFile "'basic_model'"
- SetInitialFlux off
- InitialFluxes "[ 0.8 , -0.8 , 0.7 ]"
- Measurements "None"
- TransfoNumber "0"
- MoreParameters off
- BreakLoop off
- }
- Block {
- BlockType Reference
- Name "265 ohms"
- Ports [0, 0, 0, 0, 0, 1, 1]
- Position [165, 215, 195, 235]
- Orientation "down"
- NamePlacement "alternate"
- SourceBlock "powerlib/Elements/Series RLC Branch"
- SourceType "Series RLC Branch"
- PhysicalDomain "powersysdomain"
- SubClassName "unknown"
- LeftPortType "p1"
- RightPortType "p1"
- LConnTagsString "__new0"
- RConnTagsString "__new0"
- BranchType "R"
- Resistance "265"
- Inductance "[]"
- SetiL0 off
- InitialCurrent "0"
- Capacitance "[]"
- Setx0 off
- InitialVoltage "0"
- Measurements "None"
- }
- Block {
- BlockType Reference
- Name "B2300"
- Ports [0, 0, 0, 0, 0, 3, 3]
- Position [270, 112, 275, 158]
- BackgroundColor "black"
- SourceBlock "powerlib/Measurements/Three-PhasenV-I Meas"
- "urement"
- SourceType "Three-Phase VI Measurement"
- ShowPortLabels on
- VoltageMeasurement "phase-to-ground"
- SetLabelV on
- LabelV "Vabc_B2300"
- Vpu on
- CurrentMeasurement "yes"
- SetLabelI on
- LabelI "Iabc_B2300"
- Ipu on
- Pbase "2.0e6"
- Vbase "2300"
- OutputType "Complex"
- PhasorSimulation on
- PSBequivalent "0"
- }
- Block {
- BlockType BusSelector
- Name "BusnSelector"
- Ports [1, 1]
- Position [615, 109, 620, 141]
- ShowName off
- OutputSignals "Mechanical.Rotor speed (wm)"
- Port {
- PortNumber 1
- Name "<Rotor speed (wm)>"
- RTWStorageClass "Auto"
- DataLoggingNameMode "SignalName"
- }
- }
- Block {
- BlockType DataTypeConversion
- Name "Data Type Conversion"
- Position [340, 342, 380, 368]
- ShowName off
- OutDataTypeMode "double"
- SampleTime "0"
- }
- Block {
- BlockType From
- Name "From1"
- Position [60, 450, 135, 470]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "MotorSpeed"
- }
- Block {
- BlockType From
- Name "From2"
- Position [230, 66, 315, 84]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "Trip_Plant"
- }
- Block {
- BlockType From
- Name "From7"
- Position [60, 360, 135, 380]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "Iabc_B2300"
- }
- Block {
- BlockType From
- Name "From9"
- Position [60, 330, 135, 350]
- ShowName off
- CloseFcn "tagdialog Close"
- GotoTag "Vabc_B2300"
- }
- Block {
- BlockType Gain
- Name "Gain"
- Position [525, 31, 565, 69]
- Orientation "left"
- ShowName off
- Gain "0.9"
- }
- Block {
- BlockType Goto
- Name "Goto1"
- Position [400, 346, 480, 364]
- ShowName off
- GotoTag "Trip_Plant"
- TagVisibility "local"
- }
- Block {
- BlockType Goto
- Name "Goto6"
- Position [720, 114, 795, 136]
- ShowName off
- GotoTag "MotorSpeed"
- TagVisibility "global"
- }
- Block {
- BlockType Reference
- Name "Ground"
- Ports [0, 0, 0, 0, 0, 1]
- Position [169, 260, 191, 285]
- Orientation "down"
- ShowName off
- SourceBlock "powerlib/Elements/Ground"
- SourceType "Ground"
- PhysicalDomain "powersysdomain"
- SubClassName "unknown"
- LeftPortType "p1"
- RightPortType "p1"
- LConnTagsString "a"
- }
- Block {
- BlockType Ground
- Name "Ground1"
- Position [125, 393, 135, 407]
- ShowName off
- }
- Block {
- BlockType Ground
- Name "Ground2"
- Position [125, 423, 135, 437]
- ShowName off
- }
- Block {
- BlockType Logic
- Name "LogicalnOperator"
- Ports [1, 1]
- Position [290, 339, 320, 371]
- ShowName off
- Operator "NOT"
- AllPortsSameDT off
- }
- Block {
- BlockType Reference
- Name "PF CorrectionnCapacitorn800 kvar"
- Ports [0, 0, 0, 0, 0, 3]
- Position [215, 210, 255, 260]
- Orientation "down"
- BackgroundColor "yellow"
- AttributesFormatString "\n"
- SourceBlock "powerlib/Elements/Three-PhasenSeries RLC L"
- "oad"
- SourceType "Three-Phase Series RLC Load"
- PhysicalDomain "powersysdomain"
- SubClassName "unknown"
- LeftPortType "p1"
- RightPortType "p1"
- LConnTagsString "A|B|C"
- Configuration "Y (grounded)"
- NominalVoltage "2300"
- NominalFrequency "60"
- ActivePower "0"
- InductivePower "0"
- CapacitivePower "800e3"
- Measurements "None"
- }
- Block {
- BlockType SubSystem
- Name "Plant & Motor nProtection"
- Ports [5, 3]
- Position [170, 329, 270, 471]
- BackgroundColor "cyan"
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- MaskType "Protection System"
- MaskDescription "Protection type:n1. Instantaneous AC Ov"
- "ercurrentn2. AC Overcurrent (positive-sequence)n3. AC Current Unbalan"
- "cen4. AC Undervoltage (positive-sequence)n5. AC Overvoltage (positive"
- "-sequence)n6. AC Voltage Unbalance (Negative-sequence)n7. AC Voltage "
- "Unbalance (Zero-sequence)n8. DC Overvoltage n9. Under Speedn10. Ove"
- "r Speedn"
- MaskPromptString "Fundamental frequency f1 (Hz):|Instantaneou"
- "s AC Overcurrent (pu):|Maximum AC Current [ I1max(pu), Delay(s) ]:|Maximum AC"
- " Current Unbalance [ I2/I1max(pu), Delay(s) ]|AC Under/Over Voltage [ V1min(p"
- "u), V1max(pu), Delay(s) ]:|Maximum Voltage Unbalance [ V2/V1max(pu), V0/V1max"
- "(pu), Delay(s)]:|Maximum DC Voltage [ Vmax(V), Delay(s) ]:|Under/Over Speed "
- "[ Speedmin (pu), Speedmax (pu), Delay(s)]:|Start time for protection system ("
- "s):"
- MaskStyleString "edit,edit,edit,edit,edit,edit,edit,edit,edi"
- "t"
- MaskTunableValueString "on,on,on,on,on,on,on,on,on"
- MaskCallbackString "||||||||"
- MaskEnableString "on,on,on,on,on,on,on,on,on"
- MaskVisibilityString "on,on,on,on,on,on,on,on,on"
- MaskToolTipString "on,on,on,on,on,on,on,on,on"
- MaskVarAliasString ",,,,,,,,"
- MaskVariables "Freq=@1;Max_Iinst=@2;MaxI1=@3;MaxI2I1=@4;Mi"
- "nMaxV1=@5;MaxV2V1=@6;MaxVdc=@7;MaxSpeed=@8;Delay_Protection=@9;"
- MaskInitialization "a=exp(2*pi*j/3);na2=a^2;nMax_I1=MaxI1(1);"
- "nDelay_I1=MaxI1(2);nMax_I2_I1=MaxI2I1(1);nDelay_I2_I1=MaxI2I1(2);nMin_V1="
- "MinMaxV1(1);nMax_V1=MinMaxV1(2);nDelay_V1=MinMaxV1(3);nMax_V2_V1=MaxV2V1(1"
- ");nMax_V0_V1=MaxV2V1(2);nDelay_V2_V1=MaxV2V1(3);nMax_Vdc=MaxVdc(1);nDelay"
- "_Vdc=MaxVdc(2);nMin_Speed=MaxSpeed(1);nMax_Speed=MaxSpeed(2);nDelay_Speed="
- "MaxSpeed(3);n"
- MaskIconFrame on
- MaskIconOpaque on
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "60|10|[ 1.1, 5 ]|[ 0.4, 0.2]|[ 0.9, 1.1, 0."
- "2 ]|[ 0.1, 0.1, 0.3 ]|[ inf, 0 ]|[ 0.9, 1.1, 1 ]|1"
- MaskTabNameString ",,,,,,,,"
- System {
- Name "Plant & Motor nProtection"
- Location [30, 258, 1119, 966]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "Vabc (pu)"
- Position [95, 208, 125, 222]
- IconDisplay "Port number"
- PortDimensions "3"
- }
- Block {
- BlockType Inport
- Name "Iabc (pu)"
- Position [95, 68, 125, 82]
- Port "2"
- IconDisplay "Port number"
- PortDimensions "3"
- }
- Block {
- BlockType Inport
- Name "Vdc (V)"
- Position [95, 338, 125, 352]
- Port "3"
- IconDisplay "Port number"
- PortDimensions "1"
- }
- Block {
- BlockType Inport
- Name "Reset"
- Position [610, 223, 640, 237]
- Port "4"
- IconDisplay "Port number"
- PortDimensions "1"
- }
- Block {
- BlockType Inport
- Name "Speed (pu)"
- Position [95, 463, 125, 477]
- Port "5"
- IconDisplay "Port number"
- PortDimensions "1"
- }
- Block {
- BlockType SubSystem
- Name "AC CurrentnProtection"
- Ports [1, 3]
- Position [165, 27, 240, 123]
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- System {
- Name "AC CurrentnProtection"
- Location [366, 109, 1176, 404]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "abc"
- Position [40, 193, 70, 207]
- IconDisplay "Port number"
- PortDimensions "3"
- }
- Block {
- BlockType ComplexToMagnitudeAngle
- Name "Complex tonMagnitude-Angle1"
- Ports [1, 1]
- Position [240, 68, 265, 92]
- ShowName off
- Output "Magnitude"
- }
- Block {
- BlockType SubSystem
- Name "CurrentnMeasurement"
- Ports [1, 2]
- Position [150, 181, 210, 214]
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- System {
- Name "CurrentnMeasurement"
- Location [278, 268, 1122, 478]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "abc"
- Position [15, 43, 45, 57]
- IconDisplay "Port number"
- PortDimensions "3"
- }
- Block {
- BlockType Gain
- Name "Gain1"
- Position [275, 45, 345, 85]
- Gain "[1 a a2]"
- }
- Block {
- BlockType Gain
- Name "Gain2"
- Position [275, 110, 345, 150]
- Gain "[1 a2 a]"
- }
- Block {
- BlockType Gain
- Name "Gain3"
- Position [430, 47, 480, 83]
- ShowName off
- Gain "1/3"
- }
- Block {
- BlockType Gain
- Name "Gain4"
- Position [430, 112, 480, 148]
- ShowName off
- Gain "1/3"
- }
- Block {
- BlockType Mux
- Name "Mux"
- Ports [3, 1]
- Position [170, 39, 175, 91]
- ShowName off
- Inputs "3"
- DisplayOption "bar"
- }
- Block {
- BlockType Product
- Name "Product"
- Ports [2, 1]
- Position [670, 91, 705, 144]
- ShowName off
- Inputs "/*"
- InputSameDT off
- RndMeth "Floor"
- }
- Block {
- BlockType Saturate
- Name "Saturation"
- Position [600, 52, 625, 78]
- ShowName off
- UpperLimit "1e6"
- LowerLimit "1e-6"
- }
- Block {
- BlockType Selector
- Name "Selector"
- Ports [1, 1]
- Position [100, 44, 135, 56]
- ShowName off
- InputPortWidth "3"
- }
- Block {
- BlockType Selector
- Name "Selector1"
- Ports [1, 1]
- Position [100, 59, 135, 71]
- ShowName off
- Elements "2"
- InputPortWidth "3"
- }
- Block {
- BlockType Selector
- Name "Selector2"
- Ports [1, 1]
- Position [100, 74, 135, 86]
- ShowName off
- Elements "3"
- InputPortWidth "3"
- }
- Block {
- BlockType Sum
- Name "Sum"
- Ports [1, 1]
- Position [375, 55, 395, 75]
- ShowName off
- IconShape "round"
- Inputs "1"
- }
- Block {
- BlockType Sum
- Name "Sum1"
- Ports [1, 1]
- Position [375, 120, 395, 140]
- ShowName off
- IconShape "round"
- Inputs "1"
- }
- Block {
- BlockType SubSystem
- Name "magnitude"
- Ports [1, 1]
- Position [520, 54, 565, 76]
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- System {
- Name "magnitude"
- Location [238, 376, 639, 546]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "In1"
- Position [25, 68, 55, 82]
- IconDisplay "Port number"
- }
- Block {
- BlockType ComplexToRealImag
- Name "Complex tonReal-Imag"
- Ports [1, 2]
- Position [80, 58, 110, 87]
- ShowName off
- Output "Real and imag"
- }
- Block {
- BlockType SubSystem
- Name "Fourier1"
- Ports [1, 2]
- Position [155, 26, 220, 59]
- ShowName off
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- MaskType "Fourier analyser"
- MaskDescription "The Fourier block performs a Four"
- "ier analysis of the input signal over a running window of one cycle of the fu"
- "ndamental frequency. First and second outputs return respectively the magnitu"
- "de and phase (degrees) of the harmonic component specified."
- MaskHelp "web(psbhelp)"
- MaskPromptString "Fundamental frequency f1 (Hz):|Ha"
- "rmonic n (0=DC; 1=fundamental; 2=2nd harm; ...) :"
- MaskStyleString "edit,edit"
- MaskTunableValueString "on,on"
- MaskCallbackString "|"
- MaskEnableString "on,on"
- MaskVisibilityString "on,on"
- MaskToolTipString "on,on"
- MaskVarAliasString ","
- MaskVariables "f1=@1;n=@2;"
- MaskInitialization " k=2-(n==0);n"
- MaskIconFrame on
- MaskIconOpaque off
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "Freq|0"
- MaskTabNameString ","
- System {
- Name "Fourier1"
- Location [52, 538, 953, 977]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "signal"
- Position [15, 105, 35, 125]
- IconDisplay "Port number"
- }
- Block {
- BlockType Constant
- Name "Constant"
- Position [160, 100, 190, 130]
- Value "0"
- }
- Block {
- BlockType Fcn
- Name "Fcn"
- Position [475, 45, 515, 65]
- Expr "u^2"
- }
- Block {
- BlockType Fcn
- Name "Fcn1"
- Position [475, 135, 515, 155]
- Expr "u^2"
- }
- Block {
- BlockType Fcn
- Name "Fcn2"
- Position [595, 94, 665, 116]
- Expr "sqrt(u)"
- }
- Block {
- BlockType Fcn
- Name "Fcn3"
- Position [550, 180, 685, 210]
- Expr "180/pi*atan2(u[2],u[1])"
- }
- Block {
- BlockType Gain
- Name "Gain1"
- Position [55, 97, 105, 133]
- Gain "k*f1"
- }
- Block {
- BlockType Integrator
- Name "Integ2"
- Ports [2, 1]
- Position [220, 174, 260, 216]
- InitialConditionSource "external"
- IgnoreLimit off
- }
- Block {
- BlockType Mux
- Name "Mux"
- Ports [2, 1]
- Position [475, 176, 505, 209]
- Inputs "2"
- }
- Block {
- BlockType Product
- Name "Product"
- Ports [2, 1]
- Position [165, 21, 190, 59]
- RndMeth "Floor"
- }
- Block {
- BlockType Product
- Name "Product1"
- Ports [2, 1]
- Position [160, 166, 185, 204]
- RndMeth "Floor"
- }
- Block {
- BlockType Sum
- Name "Sum"
- Ports [2, 1]
- Position [550, 79, 570, 126]
- }
- Block {
- BlockType Sum
- Name "Sum1"
- Ports [2, 1]
- Position [365, 29, 385, 76]
- Inputs "+-"
- }
- Block {
- BlockType Sum
- Name "Sum2"
- Ports [2, 1]
- Position [380, 174, 400, 221]
- Inputs "+-"
- }
- Block {
- BlockType TransportDelay
- Name "T"
- Position [300, 50, 340, 80]
- DelayTime "1/f1"
- BufferSize "2048"
- }
- Block {
- BlockType TransportDelay
- Name "T1"
- Position [305, 195, 345, 225]
- DelayTime "1/f1"
- BufferSize "2048"
- }
- Block {
- BlockType Sin
- Name "cos(nwt)"
- Ports [0, 1]
- Position [65, 180, 90, 210]
- SineType "Time based"
- Frequency "2*pi*n*f1"
- Phase "pi/2"
- SampleTime "0"
- }
- Block {
- BlockType Integrator
- Name "integ1"
- Ports [2, 1]
- Position [230, 19, 260, 61]
- InitialConditionSource "external"
- IgnoreLimit off
- }
- Block {
- BlockType Sin
- Name "sin(nwt)"
- Ports [0, 1]
- Position [65, 15, 90, 45]
- SineType "Time based"
- Frequency "2*pi*n*f1"
- SampleTime "0"
- }
- Block {
- BlockType Outport
- Name "magnitude"
- Position [710, 95, 730, 115]
- IconDisplay "Port number"
- BusOutputAsStruct off
- InitialOutput "0"
- }
- Block {
- BlockType Outport
- Name "angle"
- Position [710, 185, 730, 205]
- Port "2"
- IconDisplay "Port number"
- BusOutputAsStruct off
- InitialOutput "0"
- }
- Line {
- SrcBlock "Constant"
- SrcPort 1
- Points [10, 0]
- Branch {
- Points [0, -65]
- DstBlock "integ1"
- DstPort 2
- }
- Branch {
- DstBlock "Integ2"
- DstPort 2
- }
- }
- Line {
- SrcBlock "Sum"
- SrcPort 1
- DstBlock "Fcn2"
- DstPort 1
- }
- Line {
- SrcBlock "Fcn"
- SrcPort 1
- Points [15, 0]
- DstBlock "Sum"
- DstPort 1
- }
- Line {
- SrcBlock "Fcn1"
- SrcPort 1
- Points [15, 0]
- DstBlock "Sum"
- DstPort 2
- }
- Line {
- SrcBlock "Mux"
- SrcPort 1
- DstBlock "Fcn3"
- DstPort 1
- }
- Line {
- SrcBlock "Fcn3"
- SrcPort 1
- DstBlock "angle"
- DstPort 1
- }
- Line {
- SrcBlock "sin(nwt)"
- SrcPort 1
- DstBlock "Product"
- DstPort 1
- }
- Line {
- SrcBlock "cos(nwt)"
- SrcPort 1
- DstBlock "Product1"
- DstPort 2
- }
- Line {
- SrcBlock "Product"
- SrcPort 1
- Points [20, 0]
- DstBlock "integ1"
- DstPort 1
- }
- Line {
- SrcBlock "Product1"
- SrcPort 1
- DstBlock "Integ2"
- DstPort 1
- }
- Line {
- SrcBlock "T"
- SrcPort 1
- DstBlock "Sum1"
- DstPort 2
- }
- Line {
- SrcBlock "T1"
- SrcPort 1
- DstBlock "Sum2"
- DstPort 2
- }
- Line {
- SrcBlock "integ1"
- SrcPort 1
- Points [20, 0]
- Branch {
- DstBlock "Sum1"
- DstPort 1
- }
- Branch {
- DstBlock "T"
- DstPort 1
- }
- }
- Line {
- SrcBlock "Integ2"
- SrcPort 1
- Points [0, -10; 20, 0]
- Branch {
- Points [0, 25]
- DstBlock "T1"
- DstPort 1
- }
- Branch {
- DstBlock "Sum2"
- DstPort 1
- }
- }
- Line {
- SrcBlock "Sum2"
- SrcPort 1
- Points [20, 0]
- Branch {
- Points [0, -55]
- DstBlock "Fcn1"
- DstPort 1
- }
- Branch {
- DstBlock "Mux"
- DstPort 2
- }
- }
- Line {
- SrcBlock "Sum1"
- SrcPort 1
- Points [55, 0]
- Branch {
- DstBlock "Fcn"
- DstPort 1
- }
- Branch {
- Points [0, 130]
- DstBlock "Mux"
- DstPort 1
- }
- }
- Line {
- SrcBlock "signal"
- SrcPort 1
- DstBlock "Gain1"
- DstPort 1
- }
- Line {
- SrcBlock "Gain1"
- SrcPort 1
- Points [0, 0; 10, 0]
- Branch {
- Points [0, -65]
- DstBlock "Product"
- DstPort 2
- }
- Branch {
- Points [0, 60]
- DstBlock "Product1"
- DstPort 1
- }
- }
- Line {
- SrcBlock "Fcn2"
- SrcPort 1
- DstBlock "magnitude"
- DstPort 1
- }
- }
- }
- Block {
- BlockType SubSystem
- Name "Fourier2"
- Ports [1, 2]
- Position [155, 81, 220, 114]
- ShowName off
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- MaskType "Fourier analyser"
- MaskDescription "The Fourier block performs a Four"
- "ier analysis of the input signal over a running window of one cycle of the fu"
- "ndamental frequency. First and second outputs return respectively the magnitu"
- "de and phase (degrees) of the harmonic component specified."
- MaskHelp "web(psbhelp)"
- MaskPromptString "Fundamental frequency f1 (Hz):|Ha"
- "rmonic n (0=DC; 1=fundamental; 2=2nd harm; ...) :"
- MaskStyleString "edit,edit"
- MaskTunableValueString "on,on"
- MaskCallbackString "|"
- MaskEnableString "on,on"
- MaskVisibilityString "on,on"
- MaskToolTipString "on,on"
- MaskVarAliasString ","
- MaskVariables "f1=@1;n=@2;"
- MaskInitialization " k=2-(n==0);n"
- MaskIconFrame on
- MaskIconOpaque off
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "Freq|0"
- MaskTabNameString ","
- System {
- Name "Fourier2"
- Location [52, 538, 953, 977]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "signal"
- Position [15, 105, 35, 125]
- IconDisplay "Port number"
- }
- Block {
- BlockType Constant
- Name "Constant"
- Position [160, 100, 190, 130]
- Value "0"
- }
- Block {
- BlockType Fcn
- Name "Fcn"
- Position [475, 45, 515, 65]
- Expr "u^2"
- }
- Block {
- BlockType Fcn
- Name "Fcn1"
- Position [475, 135, 515, 155]
- Expr "u^2"
- }
- Block {
- BlockType Fcn
- Name "Fcn2"
- Position [595, 94, 665, 116]
- Expr "sqrt(u)"
- }
- Block {
- BlockType Fcn
- Name "Fcn3"
- Position [550, 180, 685, 210]
- Expr "180/pi*atan2(u[2],u[1])"
- }
- Block {
- BlockType Gain
- Name "Gain1"
- Position [55, 97, 105, 133]
- Gain "k*f1"
- }
- Block {
- BlockType Integrator
- Name "Integ2"
- Ports [2, 1]
- Position [220, 174, 260, 216]
- InitialConditionSource "external"
- IgnoreLimit off
- }
- Block {
- BlockType Mux
- Name "Mux"
- Ports [2, 1]
- Position [475, 176, 505, 209]
- Inputs "2"
- }
- Block {
- BlockType Product
- Name "Product"
- Ports [2, 1]
- Position [165, 21, 190, 59]
- RndMeth "Floor"
- }
- Block {
- BlockType Product
- Name "Product1"
- Ports [2, 1]
- Position [160, 166, 185, 204]
- RndMeth "Floor"
- }
- Block {
- BlockType Sum
- Name "Sum"
- Ports [2, 1]
- Position [550, 79, 570, 126]
- }
- Block {
- BlockType Sum
- Name "Sum1"
- Ports [2, 1]
- Position [365, 29, 385, 76]
- Inputs "+-"
- }
- Block {
- BlockType Sum
- Name "Sum2"
- Ports [2, 1]
- Position [380, 174, 400, 221]
- Inputs "+-"
- }
- Block {
- BlockType TransportDelay
- Name "T"
- Position [300, 50, 340, 80]
- DelayTime "1/f1"
- BufferSize "2048"
- }
- Block {
- BlockType TransportDelay
- Name "T1"
- Position [305, 195, 345, 225]
- DelayTime "1/f1"
- BufferSize "2048"
- }
- Block {
- BlockType Sin
- Name "cos(nwt)"
- Ports [0, 1]
- Position [65, 180, 90, 210]
- SineType "Time based"
- Frequency "2*pi*n*f1"
- Phase "pi/2"
- SampleTime "0"
- }
- Block {
- BlockType Integrator
- Name "integ1"
- Ports [2, 1]
- Position [230, 19, 260, 61]
- InitialConditionSource "external"
- IgnoreLimit off
- }
- Block {
- BlockType Sin
- Name "sin(nwt)"
- Ports [0, 1]
- Position [65, 15, 90, 45]
- SineType "Time based"
- Frequency "2*pi*n*f1"
- SampleTime "0"
- }
- Block {
- BlockType Outport
- Name "magnitude"
- Position [710, 95, 730, 115]
- IconDisplay "Port number"
- BusOutputAsStruct off
- InitialOutput "0"
- }
- Block {
- BlockType Outport
- Name "angle"
- Position [710, 185, 730, 205]
- Port "2"
- IconDisplay "Port number"
- BusOutputAsStruct off
- InitialOutput "0"
- }
- Line {
- SrcBlock "Fcn2"
- SrcPort 1
- DstBlock "magnitude"
- DstPort 1
- }
- Line {
- SrcBlock "Gain1"
- SrcPort 1
- Points [0, 0; 10, 0]
- Branch {
- Points [0, 60]
- DstBlock "Product1"
- DstPort 1
- }
- Branch {
- Points [0, -65]
- DstBlock "Product"
- DstPort 2
- }
- }
- Line {
- SrcBlock "signal"
- SrcPort 1
- DstBlock "Gain1"
- DstPort 1
- }
- Line {
- SrcBlock "Sum1"
- SrcPort 1
- Points [55, 0]
- Branch {
- Points [0, 130]
- DstBlock "Mux"
- DstPort 1
- }
- Branch {
- DstBlock "Fcn"
- DstPort 1
- }
- }
- Line {
- SrcBlock "Sum2"
- SrcPort 1
- Points [20, 0]
- Branch {
- DstBlock "Mux"
- DstPort 2
- }
- Branch {
- Points [0, -55]
- DstBlock "Fcn1"
- DstPort 1
- }
- }
- Line {
- SrcBlock "Integ2"
- SrcPort 1
- Points [0, -10; 20, 0]
- Branch {
- DstBlock "Sum2"
- DstPort 1
- }
- Branch {
- Points [0, 25]
- DstBlock "T1"
- DstPort 1
- }
- }
- Line {
- SrcBlock "integ1"
- SrcPort 1
- Points [20, 0]
- Branch {
- DstBlock "T"
- DstPort 1
- }
- Branch {
- DstBlock "Sum1"
- DstPort 1
- }
- }
- Line {
- SrcBlock "T1"
- SrcPort 1
- DstBlock "Sum2"
- DstPort 2
- }
- Line {
- SrcBlock "T"
- SrcPort 1
- DstBlock "Sum1"
- DstPort 2
- }
- Line {
- SrcBlock "Product1"
- SrcPort 1
- DstBlock "Integ2"
- DstPort 1
- }
- Line {
- SrcBlock "Product"
- SrcPort 1
- Points [20, 0]
- DstBlock "integ1"
- DstPort 1
- }
- Line {
- SrcBlock "cos(nwt)"
- SrcPort 1
- DstBlock "Product1"
- DstPort 2
- }
- Line {
- SrcBlock "sin(nwt)"
- SrcPort 1
- DstBlock "Product"
- DstPort 1
- }
- Line {
- SrcBlock "Fcn3"
- SrcPort 1
- DstBlock "angle"
- DstPort 1
- }
- Line {
- SrcBlock "Mux"
- SrcPort 1
- DstBlock "Fcn3"
- DstPort 1
- }
- Line {
- SrcBlock "Fcn1"
- SrcPort 1
- Points [15, 0]
- DstBlock "Sum"
- DstPort 2
- }
- Line {
- SrcBlock "Fcn"
- SrcPort 1
- Points [15, 0]
- DstBlock "Sum"
- DstPort 1
- }
- Line {
- SrcBlock "Sum"
- SrcPort 1
- DstBlock "Fcn2"
- DstPort 1
- }
- Line {
- SrcBlock "Constant"
- SrcPort 1
- Points [10, 0]
- Branch {
- DstBlock "Integ2"
- DstPort 2
- }
- Branch {
- Points [0, -65]
- DstBlock "integ1"
- DstPort 2
- }
- }
- }
- }
- Block {
- BlockType Math
- Name "MathnFunction"
- Ports [2, 1]
- Position [295, 45, 325, 85]
- Operator "hypot"
- }
- Block {
- BlockType Terminator
- Name "Terminator"
- Position [240, 43, 250, 57]
- ShowName off
- }
- Block {
- BlockType Terminator
- Name "Terminator1"
- Position [240, 98, 250, 112]
- ShowName off
- }
- Block {
- BlockType Outport
- Name "Out1"
- Position [350, 58, 380, 72]
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Line {
- SrcBlock "In1"
- SrcPort 1
- DstBlock "Complex tonReal-Imag"
- DstPort 1
- }
- Line {
- SrcBlock "MathnFunction"
- SrcPort 1
- DstBlock "Out1"
- DstPort 1
- }
- Line {
- SrcBlock "Fourier2"
- SrcPort 1
- Points [40, 0; 0, -15]
- DstBlock "MathnFunction"
- DstPort 2
- }
- Line {
- SrcBlock "Fourier1"
- SrcPort 1
- Points [40, 0; 0, 20]
- DstBlock "MathnFunction"
- DstPort 1
- }
- Line {
- SrcBlock "Fourier2"
- SrcPort 2
- DstBlock "Terminator1"
- DstPort 1
- }
- Line {
- SrcBlock "Fourier1"
- SrcPort 2
- DstBlock "Terminator"
- DstPort 1
- }
- Line {
- SrcBlock "Complex tonReal-Imag"
- SrcPort 2
- Points [15, 0; 0, 20]
- DstBlock "Fourier2"
- DstPort 1
- }
- Line {
- SrcBlock "Complex tonReal-Imag"
- SrcPort 1
- Points [15, 0; 0, -20]
- DstBlock "Fourier1"
- DstPort 1
- }
- }
- }
- Block {
- BlockType SubSystem
- Name "magnitude1"
- Ports [1, 1]
- Position [520, 119, 565, 141]
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- System {
- Name "magnitude1"
- Location [238, 376, 639, 546]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "In1"
- Position [25, 68, 55, 82]
- IconDisplay "Port number"
- }
- Block {
- BlockType ComplexToRealImag
- Name "Complex tonReal-Imag"
- Ports [1, 2]
- Position [80, 58, 110, 87]
- ShowName off
- Output "Real and imag"
- }
- Block {
- BlockType SubSystem
- Name "Fourier1"
- Ports [1, 2]
- Position [155, 26, 220, 59]
- ShowName off
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- MaskType "Fourier analyser"
- MaskDescription "The Fourier block performs a Four"
- "ier analysis of the input signal over a running window of one cycle of the fu"
- "ndamental frequency. First and second outputs return respectively the magnitu"
- "de and phase (degrees) of the harmonic component specified."
- MaskHelp "web(psbhelp)"
- MaskPromptString "Fundamental frequency f1 (Hz):|Ha"
- "rmonic n (0=DC; 1=fundamental; 2=2nd harm; ...) :"
- MaskStyleString "edit,edit"
- MaskTunableValueString "on,on"
- MaskCallbackString "|"
- MaskEnableString "on,on"
- MaskVisibilityString "on,on"
- MaskToolTipString "on,on"
- MaskVarAliasString ","
- MaskVariables "f1=@1;n=@2;"
- MaskInitialization " k=2-(n==0);n"
- MaskIconFrame on
- MaskIconOpaque off
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "Freq|0"
- MaskTabNameString ","
- System {
- Name "Fourier1"
- Location [52, 538, 953, 977]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "signal"
- Position [15, 105, 35, 125]
- IconDisplay "Port number"
- }
- Block {
- BlockType Constant
- Name "Constant"
- Position [160, 100, 190, 130]
- Value "0"
- }
- Block {
- BlockType Fcn
- Name "Fcn"
- Position [475, 45, 515, 65]
- Expr "u^2"
- }
- Block {
- BlockType Fcn
- Name "Fcn1"
- Position [475, 135, 515, 155]
- Expr "u^2"
- }
- Block {
- BlockType Fcn
- Name "Fcn2"
- Position [595, 94, 665, 116]
- Expr "sqrt(u)"
- }
- Block {
- BlockType Fcn
- Name "Fcn3"
- Position [550, 180, 685, 210]
- Expr "180/pi*atan2(u[2],u[1])"
- }
- Block {
- BlockType Gain
- Name "Gain1"
- Position [55, 97, 105, 133]
- Gain "k*f1"
- }
- Block {
- BlockType Integrator
- Name "Integ2"
- Ports [2, 1]
- Position [220, 174, 260, 216]
- InitialConditionSource "external"
- IgnoreLimit off
- }
- Block {
- BlockType Mux
- Name "Mux"
- Ports [2, 1]
- Position [475, 176, 505, 209]
- Inputs "2"
- }
- Block {
- BlockType Product
- Name "Product"
- Ports [2, 1]
- Position [165, 21, 190, 59]
- RndMeth "Floor"
- }
- Block {
- BlockType Product
- Name "Product1"
- Ports [2, 1]
- Position [160, 166, 185, 204]
- RndMeth "Floor"
- }
- Block {
- BlockType Sum
- Name "Sum"
- Ports [2, 1]
- Position [550, 79, 570, 126]
- }
- Block {
- BlockType Sum
- Name "Sum1"
- Ports [2, 1]
- Position [365, 29, 385, 76]
- Inputs "+-"
- }
- Block {
- BlockType Sum
- Name "Sum2"
- Ports [2, 1]
- Position [380, 174, 400, 221]
- Inputs "+-"
- }
- Block {
- BlockType TransportDelay
- Name "T"
- Position [300, 50, 340, 80]
- DelayTime "1/f1"
- BufferSize "2048"
- }
- Block {
- BlockType TransportDelay
- Name "T1"
- Position [305, 195, 345, 225]
- DelayTime "1/f1"
- BufferSize "2048"
- }
- Block {
- BlockType Sin
- Name "cos(nwt)"
- Ports [0, 1]
- Position [65, 180, 90, 210]
- SineType "Time based"
- Frequency "2*pi*n*f1"
- Phase "pi/2"
- SampleTime "0"
- }
- Block {
- BlockType Integrator
- Name "integ1"
- Ports [2, 1]
- Position [230, 19, 260, 61]
- InitialConditionSource "external"
- IgnoreLimit off
- }
- Block {
- BlockType Sin
- Name "sin(nwt)"
- Ports [0, 1]
- Position [65, 15, 90, 45]
- SineType "Time based"
- Frequency "2*pi*n*f1"
- SampleTime "0"
- }
- Block {
- BlockType Outport
- Name "magnitude"
- Position [710, 95, 730, 115]
- IconDisplay "Port number"
- BusOutputAsStruct off
- InitialOutput "0"
- }
- Block {
- BlockType Outport
- Name "angle"
- Position [710, 185, 730, 205]
- Port "2"
- IconDisplay "Port number"
- BusOutputAsStruct off
- InitialOutput "0"
- }
- Line {
- SrcBlock "Fcn2"
- SrcPort 1
- DstBlock "magnitude"
- DstPort 1
- }
- Line {
- SrcBlock "Gain1"
- SrcPort 1
- Points [0, 0; 10, 0]
- Branch {
- Points [0, 60]
- DstBlock "Product1"
- DstPort 1
- }
- Branch {
- Points [0, -65]
- DstBlock "Product"
- DstPort 2
- }
- }
- Line {
- SrcBlock "signal"
- SrcPort 1
- DstBlock "Gain1"
- DstPort 1
- }
- Line {
- SrcBlock "Sum1"
- SrcPort 1
- Points [55, 0]
- Branch {
- Points [0, 130]
- DstBlock "Mux"
- DstPort 1
- }
- Branch {
- DstBlock "Fcn"
- DstPort 1
- }
- }
- Line {
- SrcBlock "Sum2"
- SrcPort 1
- Points [20, 0]
- Branch {
- DstBlock "Mux"
- DstPort 2
- }
- Branch {
- Points [0, -55]
- DstBlock "Fcn1"
- DstPort 1
- }
- }
- Line {
- SrcBlock "Integ2"
- SrcPort 1
- Points [0, -10; 20, 0]
- Branch {
- DstBlock "Sum2"
- DstPort 1
- }
- Branch {
- Points [0, 25]
- DstBlock "T1"
- DstPort 1
- }
- }
- Line {
- SrcBlock "integ1"
- SrcPort 1
- Points [20, 0]
- Branch {
- DstBlock "T"
- DstPort 1
- }
- Branch {
- DstBlock "Sum1"
- DstPort 1
- }
- }
- Line {
- SrcBlock "T1"
- SrcPort 1
- DstBlock "Sum2"
- DstPort 2
- }
- Line {
- SrcBlock "T"
- SrcPort 1
- DstBlock "Sum1"
- DstPort 2
- }
- Line {
- SrcBlock "Product1"
- SrcPort 1
- DstBlock "Integ2"
- DstPort 1
- }
- Line {
- SrcBlock "Product"
- SrcPort 1
- Points [20, 0]
- DstBlock "integ1"
- DstPort 1
- }
- Line {
- SrcBlock "cos(nwt)"
- SrcPort 1
- DstBlock "Product1"
- DstPort 2
- }
- Line {
- SrcBlock "sin(nwt)"
- SrcPort 1
- DstBlock "Product"
- DstPort 1
- }
- Line {
- SrcBlock "Fcn3"
- SrcPort 1
- DstBlock "angle"
- DstPort 1
- }
- Line {
- SrcBlock "Mux"
- SrcPort 1
- DstBlock "Fcn3"
- DstPort 1
- }
- Line {
- SrcBlock "Fcn1"
- SrcPort 1
- Points [15, 0]
- DstBlock "Sum"
- DstPort 2
- }
- Line {
- SrcBlock "Fcn"
- SrcPort 1
- Points [15, 0]
- DstBlock "Sum"
- DstPort 1
- }
- Line {
- SrcBlock "Sum"
- SrcPort 1
- DstBlock "Fcn2"
- DstPort 1
- }
- Line {
- SrcBlock "Constant"
- SrcPort 1
- Points [10, 0]
- Branch {
- DstBlock "Integ2"
- DstPort 2
- }
- Branch {
- Points [0, -65]
- DstBlock "integ1"
- DstPort 2
- }
- }
- }
- }
- Block {
- BlockType SubSystem
- Name "Fourier2"
- Ports [1, 2]
- Position [155, 81, 220, 114]
- ShowName off
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- MaskType "Fourier analyser"
- MaskDescription "The Fourier block performs a Four"
- "ier analysis of the input signal over a running window of one cycle of the fu"
- "ndamental frequency. First and second outputs return respectively the magnitu"
- "de and phase (degrees) of the harmonic component specified."
- MaskHelp "web(psbhelp)"
- MaskPromptString "Fundamental frequency f1 (Hz):|Ha"
- "rmonic n (0=DC; 1=fundamental; 2=2nd harm; ...) :"
- MaskStyleString "edit,edit"
- MaskTunableValueString "on,on"
- MaskCallbackString "|"
- MaskEnableString "on,on"
- MaskVisibilityString "on,on"
- MaskToolTipString "on,on"
- MaskVarAliasString ","
- MaskVariables "f1=@1;n=@2;"
- MaskInitialization " k=2-(n==0);n"
- MaskIconFrame on
- MaskIconOpaque off
- MaskIconRotate "none"
- MaskIconUnits "autoscale"
- MaskValueString "Freq|0"
- MaskTabNameString ","
- System {
- Name "Fourier2"
- Location [52, 538, 953, 977]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "signal"
- Position [15, 105, 35, 125]
- IconDisplay "Port number"
- }
- Block {
- BlockType Constant
- Name "Constant"
- Position [160, 100, 190, 130]
- Value "0"
- }
- Block {
- BlockType Fcn
- Name "Fcn"
- Position [475, 45, 515, 65]
- Expr "u^2"
- }
- Block {
- BlockType Fcn
- Name "Fcn1"
- Position [475, 135, 515, 155]
- Expr "u^2"
- }
- Block {
- BlockType Fcn
- Name "Fcn2"
- Position [595, 94, 665, 116]
- Expr "sqrt(u)"
- }
- Block {
- BlockType Fcn
- Name "Fcn3"
- Position [550, 180, 685, 210]
- Expr "180/pi*atan2(u[2],u[1])"
- }
- Block {
- BlockType Gain
- Name "Gain1"
- Position [55, 97, 105, 133]
- Gain "k*f1"
- }
- Block {
- BlockType Integrator
- Name "Integ2"
- Ports [2, 1]
- Position [220, 174, 260, 216]
- InitialConditionSource "external"
- IgnoreLimit off
- }
- Block {
- BlockType Mux
- Name "Mux"
- Ports [2, 1]
- Position [475, 176, 505, 209]
- Inputs "2"
- }
- Block {
- BlockType Product
- Name "Product"
- Ports [2, 1]
- Position [165, 21, 190, 59]
- RndMeth "Floor"
- }
- Block {
- BlockType Product
- Name "Product1"
- Ports [2, 1]
- Position [160, 166, 185, 204]
- RndMeth "Floor"
- }
- Block {
- BlockType Sum
- Name "Sum"
- Ports [2, 1]
- Position [550, 79, 570, 126]
- }
- Block {
- BlockType Sum
- Name "Sum1"
- Ports [2, 1]
- Position [365, 29, 385, 76]
- Inputs "+-"
- }
- Block {
- BlockType Sum
- Name "Sum2"
- Ports [2, 1]
- Position [380, 174, 400, 221]
- Inputs "+-"
- }
- Block {
- BlockType TransportDelay
- Name "T"
- Position [300, 50, 340, 80]
- DelayTime "1/f1"
- BufferSize "2048"
- }
- Block {
- BlockType TransportDelay
- Name "T1"
- Position [305, 195, 345, 225]
- DelayTime "1/f1"
- BufferSize "2048"
- }
- Block {
- BlockType Sin
- Name "cos(nwt)"
- Ports [0, 1]
- Position [65, 180, 90, 210]
- SineType "Time based"
- Frequency "2*pi*n*f1"
- Phase "pi/2"
- SampleTime "0"
- }
- Block {
- BlockType Integrator
- Name "integ1"
- Ports [2, 1]
- Position [230, 19, 260, 61]
- InitialConditionSource "external"
- IgnoreLimit off
- }
- Block {
- BlockType Sin
- Name "sin(nwt)"
- Ports [0, 1]
- Position [65, 15, 90, 45]
- SineType "Time based"
- Frequency "2*pi*n*f1"
- SampleTime "0"
- }
- Block {
- BlockType Outport
- Name "magnitude"
- Position [710, 95, 730, 115]
- IconDisplay "Port number"
- BusOutputAsStruct off
- InitialOutput "0"
- }
- Block {
- BlockType Outport
- Name "angle"
- Position [710, 185, 730, 205]
- Port "2"
- IconDisplay "Port number"
- BusOutputAsStruct off
- InitialOutput "0"
- }
- Line {
- SrcBlock "Constant"
- SrcPort 1
- Points [10, 0]
- Branch {
- Points [0, -65]
- DstBlock "integ1"
- DstPort 2
- }
- Branch {
- DstBlock "Integ2"
- DstPort 2
- }
- }
- Line {
- SrcBlock "Sum"
- SrcPort 1
- DstBlock "Fcn2"
- DstPort 1
- }
- Line {
- SrcBlock "Fcn"
- SrcPort 1
- Points [15, 0]
- DstBlock "Sum"
- DstPort 1
- }
- Line {
- SrcBlock "Fcn1"
- SrcPort 1
- Points [15, 0]
- DstBlock "Sum"
- DstPort 2
- }
- Line {
- SrcBlock "Mux"
- SrcPort 1
- DstBlock "Fcn3"
- DstPort 1
- }
- Line {
- SrcBlock "Fcn3"
- SrcPort 1
- DstBlock "angle"
- DstPort 1
- }
- Line {
- SrcBlock "sin(nwt)"
- SrcPort 1
- DstBlock "Product"
- DstPort 1
- }
- Line {
- SrcBlock "cos(nwt)"
- SrcPort 1
- DstBlock "Product1"
- DstPort 2
- }
- Line {
- SrcBlock "Product"
- SrcPort 1
- Points [20, 0]
- DstBlock "integ1"
- DstPort 1
- }
- Line {
- SrcBlock "Product1"
- SrcPort 1
- DstBlock "Integ2"
- DstPort 1
- }
- Line {
- SrcBlock "T"
- SrcPort 1
- DstBlock "Sum1"
- DstPort 2
- }
- Line {
- SrcBlock "T1"
- SrcPort 1
- DstBlock "Sum2"
- DstPort 2
- }
- Line {
- SrcBlock "integ1"
- SrcPort 1
- Points [20, 0]
- Branch {
- DstBlock "Sum1"
- DstPort 1
- }
- Branch {
- DstBlock "T"
- DstPort 1
- }
- }
- Line {
- SrcBlock "Integ2"
- SrcPort 1
- Points [0, -10; 20, 0]
- Branch {
- Points [0, 25]
- DstBlock "T1"
- DstPort 1
- }
- Branch {
- DstBlock "Sum2"
- DstPort 1
- }
- }
- Line {
- SrcBlock "Sum2"
- SrcPort 1
- Points [20, 0]
- Branch {
- Points [0, -55]
- DstBlock "Fcn1"
- DstPort 1
- }
- Branch {
- DstBlock "Mux"
- DstPort 2
- }
- }
- Line {
- SrcBlock "Sum1"
- SrcPort 1
- Points [55, 0]
- Branch {
- DstBlock "Fcn"
- DstPort 1
- }
- Branch {
- Points [0, 130]
- DstBlock "Mux"
- DstPort 1
- }
- }
- Line {
- SrcBlock "signal"
- SrcPort 1
- DstBlock "Gain1"
- DstPort 1
- }
- Line {
- SrcBlock "Gain1"
- SrcPort 1
- Points [0, 0; 10, 0]
- Branch {
- Points [0, -65]
- DstBlock "Product"
- DstPort 2
- }
- Branch {
- Points [0, 60]
- DstBlock "Product1"
- DstPort 1
- }
- }
- Line {
- SrcBlock "Fcn2"
- SrcPort 1
- DstBlock "magnitude"
- DstPort 1
- }
- }
- }
- Block {
- BlockType Math
- Name "MathnFunction"
- Ports [2, 1]
- Position [295, 45, 325, 85]
- Operator "hypot"
- }
- Block {
- BlockType Terminator
- Name "Terminator"
- Position [240, 43, 250, 57]
- ShowName off
- }
- Block {
- BlockType Terminator
- Name "Terminator1"
- Position [240, 98, 250, 112]
- ShowName off
- }
- Block {
- BlockType Outport
- Name "Out1"
- Position [350, 58, 380, 72]
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Line {
- SrcBlock "Complex tonReal-Imag"
- SrcPort 1
- Points [15, 0; 0, -20]
- DstBlock "Fourier1"
- DstPort 1
- }
- Line {
- SrcBlock "Complex tonReal-Imag"
- SrcPort 2
- Points [15, 0; 0, 20]
- DstBlock "Fourier2"
- DstPort 1
- }
- Line {
- SrcBlock "Fourier1"
- SrcPort 2
- DstBlock "Terminator"
- DstPort 1
- }
- Line {
- SrcBlock "Fourier2"
- SrcPort 2
- DstBlock "Terminator1"
- DstPort 1
- }
- Line {
- SrcBlock "Fourier1"
- SrcPort 1
- Points [40, 0; 0, 20]
- DstBlock "MathnFunction"
- DstPort 1
- }
- Line {
- SrcBlock "Fourier2"
- SrcPort 1
- Points [40, 0; 0, -15]
- DstBlock "MathnFunction"
- DstPort 2
- }
- Line {
- SrcBlock "MathnFunction"
- SrcPort 1
- DstBlock "Out1"
- DstPort 1
- }
- Line {
- SrcBlock "In1"
- SrcPort 1
- DstBlock "Complex tonReal-Imag"
- DstPort 1
- }
- }
- }
- Block {
- BlockType Outport
- Name "I1"
- Position [750, 38, 780, 52]
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Block {
- BlockType Outport
- Name "I2/I1"
- Position [750, 113, 780, 127]
- Port "2"
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Line {
- SrcBlock "magnitude"
- SrcPort 1
- Points [10, 0]
- Branch {
- Points [0, -20]
- DstBlock "I1"
- DstPort 1
- }
- Branch {
- DstBlock "Saturation"
- DstPort 1
- }
- }
- Line {
- SrcBlock "magnitude1"
- SrcPort 1
- DstBlock "Product"
- DstPort 2
- }
- Line {
- SrcBlock "Product"
- SrcPort 1
- DstBlock "I2/I1"
- DstPort 1
- }
- Line {
- SrcBlock "Saturation"
- SrcPort 1
- Points [10, 0; 0, 40]
- DstBlock "Product"
- DstPort 1
- }
- Line {
- SrcBlock "Gain4"
- SrcPort 1
- DstBlock "magnitude1"
- DstPort 1
- }
- Line {
- SrcBlock "Gain3"
- SrcPort 1
- DstBlock "magnitude"
- DstPort 1
- }
- Line {
- SrcBlock "Mux"
- SrcPort 1
- Points [45, 0; 20, 0]
- Branch {
- Points [0, 65]
- DstBlock "Gain2"
- DstPort 1
- }
- Branch {
- DstBlock "Gain1"
- DstPort 1
- }
- }
- Line {
- SrcBlock "abc"
- SrcPort 1
- Points [0, 0; 25, 0]
- Branch {
- DstBlock "Selector"
- DstPort 1
- }
- Branch {
- Points [0, 15]
- Branch {
- DstBlock "Selector1"
- DstPort 1
- }
- Branch {
- Points [0, 15]
- DstBlock "Selector2"
- DstPort 1
- }
- }
- }
- Line {
- SrcBlock "Gain2"
- SrcPort 1
- DstBlock "Sum1"
- DstPort 1
- }
- Line {
- SrcBlock "Sum1"
- SrcPort 1
- DstBlock "Gain4"
- DstPort 1
- }
- Line {
- SrcBlock "Gain1"
- SrcPort 1
- DstBlock "Sum"
- DstPort 1
- }
- Line {
- SrcBlock "Sum"
- SrcPort 1
- DstBlock "Gain3"
- DstPort 1
- }
- Line {
- SrcBlock "Selector"
- SrcPort 1
- DstBlock "Mux"
- DstPort 1
- }
- Line {
- SrcBlock "Selector1"
- SrcPort 1
- DstBlock "Mux"
- DstPort 2
- }
- Line {
- SrcBlock "Selector2"
- SrcPort 1
- DstBlock "Mux"
- DstPort 3
- }
- }
- }
- Block {
- BlockType MinMax
- Name "MinMax"
- Ports [1, 1]
- Position [305, 65, 335, 95]
- Function "max"
- ZeroCross off
- }
- Block {
- BlockType Mux
- Name "Mux"
- Ports [3, 1]
- Position [200, 35, 205, 125]
- ShowName off
- Inputs "3"
- DisplayOption "bar"
- }
- Block {
- BlockType Reference
- Name "On/Off Delay"
- Ports [1, 1]
- Position [490, 159, 530, 191]
- ShowName off
- SourceBlock "powerlib_extras/Control nBlocks/On"
- "//Off Delay"
- SourceType "On/Off Delay "
- ShowPortLabels off
- type_delay "On delay"
- delay "Delay_I1"
- ic "0"
- }
- Block {
- BlockType Reference
- Name "On/Off Delay2"
- Ports [1, 1]
- Position [490, 224, 530, 256]
- ShowName off
- SourceBlock "powerlib_extras/Control nBlocks/On"
- "//Off Delay"
- SourceType "On/Off Delay "
- ShowPortLabels off
- type_delay "On delay"
- delay "Delay_I2_I1"
- ic "0"
- }
- Block {
- BlockType RelationalOperator
- Name "RelationalnOperator10"
- Position [475, 68, 505, 112]
- ShowName off
- Operator ">"
- InputSameDT off
- }
- Block {
- BlockType RelationalOperator
- Name "RelationalnOperator6"
- Position [410, 153, 440, 197]
- ShowName off
- Operator ">"
- InputSameDT off
- }
- Block {
- BlockType RelationalOperator
- Name "RelationalnOperator8"
- Position [410, 218, 440, 262]
- ShowName off
- Operator ">"
- InputSameDT off
- }
- Block {
- BlockType Selector
- Name "Selector"
- Ports [1, 1]
- Position [130, 44, 165, 56]
- ShowName off
- InputPortWidth "3"
- }
- Block {
- BlockType Selector
- Name "Selector1"
- Ports [1, 1]
- Position [130, 74, 165, 86]
- ShowName off
- Elements "2"
- InputPortWidth "3"
- }
- Block {
- BlockType Selector
- Name "Selector2"
- Ports [1, 1]
- Position [130, 104, 165, 116]
- ShowName off
- Elements "3"
- InputPortWidth "3"
- }
- Block {
- BlockType Constant
- Name "V0/V1 max3"
- Position [315, 175, 380, 195]
- ForegroundColor "magenta"
- ShowName off
- Value "Max_I1"
- }
- Block {
- BlockType Constant
- Name "V1 max"
- Position [320, 240, 380, 260]
- ForegroundColor "magenta"
- ShowName off
- Value "Max_I2_I1"
- }
- Block {
- BlockType Constant
- Name "V1 max2"
- Position [390, 90, 450, 110]
- ForegroundColor "magenta"
- ShowName off
- Value "Max_Iinst"
- }
- Block {
- BlockType Outport
- Name "MaxIinst"
- Position [580, 83, 610, 97]
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Block {
- BlockType Outport
- Name "MaxI1"
- Position [580, 168, 610, 182]
- Port "2"
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Block {
- BlockType Outport
- Name "MaxI2I1"
- Position [580, 233, 610, 247]
- Port "3"
- IconDisplay "Port number"
- BusOutputAsStruct off
- }
- Line {
- SrcBlock "MinMax"
- SrcPort 1
- DstBlock "RelationalnOperator10"
- DstPort 1
- }
- Line {
- SrcBlock "Complex tonMagnitude-Angle1"
- SrcPort 1
- DstBlock "MinMax"
- DstPort 1
- }
- Line {
- SrcBlock "Mux"
- SrcPort 1
- DstBlock "Complex tonMagnitude-Angle1"
- DstPort 1
- }
- Line {
- SrcBlock "Selector1"
- SrcPort 1
- DstBlock "Mux"
- DstPort 2
- }
- Line {
- SrcBlock "Selector2"
- SrcPort 1
- DstBlock "Mux"
- DstPort 3
- }
- Line {
- SrcBlock "Selector"
- SrcPort 1
- DstBlock "Mux"
- DstPort 1
- }
- Line {
- SrcBlock "V1 max2"
- SrcPort 1
- DstBlock "RelationalnOperator10"
- DstPort 2
- }
- Line {
- SrcBlock "RelationalnOperator10"
- SrcPort 1
- DstBlock "MaxIinst"
- DstPort 1
- }
- Line {
- SrcBlock "On/Off Delay2"
- SrcPort 1
- DstBlock "MaxI2I1"
- DstPort 1
- }
- Line {
- SrcBlock "On/Off Delay"
- SrcPort 1
- DstBlock "MaxI1"
- DstPort 1
- }
- Line {
- SrcBlock "RelationalnOperator8"
- SrcPort 1
- DstBlock "On/Off Delay2"
- DstPort 1
- }
- Line {
- SrcBlock "RelationalnOperator6"
- SrcPort 1
- DstBlock "On/Off Delay"
- DstPort 1
- }
- Line {
- SrcBlock "CurrentnMeasurement"
- SrcPort 2
- Points [20, 0; 0, 25]
- DstBlock "RelationalnOperator8"
- DstPort 1
- }
- Line {
- SrcBlock "V1 max"
- SrcPort 1
- DstBlock "RelationalnOperator8"
- DstPort 2
- }
- Line {
- SrcBlock "V0/V1 max3"
- SrcPort 1
- DstBlock "RelationalnOperator6"
- DstPort 2
- }
- Line {
- SrcBlock "CurrentnMeasurement"
- SrcPort 1
- Points [20, 0; 0, -25]
- DstBlock "RelationalnOperator6"
- DstPort 1
- }
- Line {
- SrcBlock "abc"
- SrcPort 1
- Points [25, 0]
- Branch {
- Points [0, -90]
- Branch {
- DstBlock "Selector2"
- DstPort 1
- }
- Branch {
- Points [0, -30]
- Branch {
- DstBlock "Selector1"
- DstPort 1
- }
- Branch {
- Points [0, -30]
- DstBlock "Selector"
- DstPort 1
- }
- }
- }
- Branch {
- DstBlock "CurrentnMeasurement"
- DstPort 1
- }
- }
- }
- }
- Block {
- BlockType SubSystem
- Name "AC VoltagenProtection"
- Ports [1, 4]
- Position [160, 166, 240, 259]
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- System {
- Name "AC VoltagenProtection"
- Location [318, 304, 1016, 710]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "abc"
- Position [45, 113, 75, 127]
- IconDisplay "Port number"
- PortDimensions "3"
- }
- Block {
- BlockType Reference
- Name "On/Off Delay1"
- Ports [1, 1]
- Position [495, 224, 535, 256]
- ShowName off
- SourceBlock "powerlib_extras/Control nBlocks/On"
- "//Off Delay"
- SourceType "On/Off Delay "
- ShowPortLabels off
- type_delay "On delay"
- delay "Delay_V2_V1"
- ic "0"
- }
- Block {
- BlockType Reference
- Name "On/Off Delay2"
- Ports [1, 1]
- Position [495, 79, 535, 111]
- ShowName off
- SourceBlock "powerlib_extras/Control nBlocks/On"
- "//Off Delay"
- SourceType "On/Off Delay "
- ShowPortLabels off
- type_delay "On delay"
- delay "Delay_V1"
- ic "0"
- }
- Block {
- BlockType Reference
- Name "On/Off Delay3"
- Ports [1, 1]
- Position [495, 149, 535, 181]
- ShowName off
- SourceBlock "powerlib_extras/Control nBlocks/On"
- "//Off Delay"
- SourceType "On/Off Delay "
- ShowPortLabels off
- type_delay "On delay"
- delay "Delay_V1"
- ic "0"
- }
- Block {
- BlockType Reference
- Name "On/Off Delay4"
- Ports [1, 1]
- Position [495, 314, 535, 346]
- ShowName off
- SourceBlock "powerlib_extras/Control nBlocks/On"
- "//Off Delay"
- SourceType "On/Off Delay "
- ShowPortLabels off
- type_delay "On delay"
- delay "Delay_V2_V1"
- ic "0"
- }
- Block {
- BlockType RelationalOperator
- Name "RelationalnOperator6"
- Position [410, 143, 440, 187]
- ShowName off
- Operator ">"
- InputSameDT off
- }
- Block {
- BlockType RelationalOperator
- Name "RelationalnOperator7"
- Position [410, 73, 440, 117]
- ShowName off
- Operator "<"
- InputSameDT off
- }
- Block {
- BlockType RelationalOperator
- Name "RelationalnOperator8"
- Position [410, 218, 440, 262]
- ShowName off
- Operator ">"
- InputSameDT off
- }
- Block {
- BlockType RelationalOperator
- Name "RelationalnOperator9"
- Position [410, 308, 440, 352]
- ShowName off
- Operator ">"
- InputSameDT off
- }
- Block {
- BlockType Constant
- Name "V0/V1 max3"
- Position [315, 165, 380, 185]
- ForegroundColor "magenta"
- ShowName off
- Value "Max_V1"
- }
- Block {
- BlockType Constant
- Name "V0/V1 max4"
- Position [315, 95, 380, 115]
- ForegroundColor "magenta"
- ShowName off
- Value "Min_V1"
- }
- Block {
- BlockType Constant
- Name "V1 max"
- Position [320, 240, 380, 260]
- ForegroundColor "magenta"
- ShowName off
- Value "Max_V2_V1"
- }
- Block {
- BlockType Constant
- Name "V1 max1"
- Position [320, 330, 380, 350]
- ForegroundColor "magenta"
- ShowName off
- Value "Max_V0_V1"
- }
- Block {
- BlockType SubSystem
- Name "VoltagenMeasurement"
- Ports [1, 3]
- Position [120, 66, 205, 174]
- TreatAsAtomicUnit off
- MinAlgLoopOccurrences off
- RTWSystemCode "Auto"
- MaskHideContents off
- System {
- Name "VoltagenMeasurement"
- Location [341, 194, 1175, 496]
- Open off
- ModelBrowserVisibility off
- ModelBrowserWidth 200
- ScreenColor "white"
- PaperOrientation "landscape"
- PaperPositionMode "auto"
- PaperType "usletter"
- PaperUnits "inches"
- ZoomFactor "100"
- Block {
- BlockType Inport
- Name "abc"
- Position [30, 73, 60, 87]
- IconDisplay "Port number"
- PortDimensions "3"
- }
- Block {
- BlockType Gain
- Name "Gain1"
- Position [260, 75, 330, 115]
- Gain "[1 a a2]"
- }
- Block {
- BlockType Gain
- Name "Gain2"
- Position [260, 140, 330, 180]
- Gain "[1 a2 a]"
- }
- Block {
- BlockType Gain
- Name "Gain3"
- Position [400, 77, 450, 113]
- ShowName off
- Gain "1/3"
- }
- Block {
- BlockType Gain
- Name "Gain4"
- Position [400, 142, 450, 178]
- ShowName off
- Gain "1/3"
- }