power_windgen.mdl
上传用户:sdgangguan
上传日期:2017-10-18
资源大小:179k
文件大小:206k
开发平台:

Matlab

  1. # $Revision: 1.1.8.3 $
  2. Model {
  3.   Name   "power_windgen"
  4.   Version   6.3
  5.   MdlSubVersion   0
  6.   GraphicalInterface {
  7.     NumRootInports     0
  8.     NumRootOutports     0
  9.     ParameterArgumentNames  ""
  10.     ComputedModelVersion    "1.521"
  11.     NumModelReferences     0
  12.     NumTestPointedSignals   0
  13.   }
  14.   Description   "The Model initialization function Callback automati"
  15. "callynnloads the initial states vector xInitial and the wind turbinenncha"
  16. "racteristics. The initial conditions are stored in thennpower_windgen_init."
  17. "mat file.nn"
  18.   SavedCharacterEncoding  "US-ASCII"
  19.   PostLoadFcn   "find_system (gcs, 'LookUnderMasks', 'all', 'FollowL"
  20. "inks', 'on');"
  21.   SaveDefaultBlockParams  on
  22.   SampleTimeColors   off
  23.   LibraryLinkDisplay   "none"
  24.   WideLines   off
  25.   ShowLineDimensions   off
  26.   ShowPortDataTypes   off
  27.   ShowLoopsOnError   on
  28.   IgnoreBidirectionalLines off
  29.   ShowStorageClass   off
  30.   ShowTestPointIcons   on
  31.   ShowViewerIcons   on
  32.   SortedOrder   off
  33.   ExecutionContextIcon   off
  34.   ShowLinearizationAnnotations on
  35.   RecordCoverage   off
  36.   CovPath   "/"
  37.   CovSaveName   "covdata"
  38.   CovMetricSettings   "dw"
  39.   CovNameIncrementing   off
  40.   CovHtmlReporting   on
  41.   covSaveCumulativeToWorkspaceVar on
  42.   CovSaveSingleToWorkspaceVar on
  43.   CovCumulativeVarName   "covCumulativeData"
  44.   CovCumulativeReport   off
  45.   CovReportOnPause   on
  46.   ScopeRefreshTime   0.035000
  47.   OverrideScopeRefreshTime on
  48.   DisableAllScopes   off
  49.   DataTypeOverride   "UseLocalSettings"
  50.   MinMaxOverflowLogging   "UseLocalSettings"
  51.   MinMaxOverflowArchiveMode "Overwrite"
  52.   BlockNameDataTip   off
  53.   BlockParametersDataTip  off
  54.   BlockDescriptionStringDataTip off
  55.   ToolBar   on
  56.   StatusBar   on
  57.   BrowserShowLibraryLinks off
  58.   BrowserLookUnderMasks   off
  59.   InitFcn   "load power_windgen_init"
  60.   Created   "Tue Jul 03 13:36:27 2001"
  61.   Creator   "Richard Gagnon, IREQ"
  62.   UpdateHistory   "UpdateHistoryNever"
  63.   ModifiedByFormat   "%<Auto>"
  64.   LastModifiedBy   "batserve"
  65.   ModifiedDateFormat   "%<Auto>"
  66.   LastModifiedDate   "Mon Aug  8 15:01:24 2005"
  67.   ModelVersionFormat   "1.%<AutoIncrement:521>"
  68.   ConfigurationManager   "none"
  69.   LinearizationMsg   "none"
  70.   Profile   off
  71.   ParamWorkspaceSource   "MATLABWorkspace"
  72.   AccelSystemTargetFile   "accel.tlc"
  73.   AccelTemplateMakefile   "accel_default_tmf"
  74.   AccelMakeCommand   "make_rtw"
  75.   TryForcingSFcnDF   off
  76.   ExtModeBatchMode   off
  77.   ExtModeEnableFloating   on
  78.   ExtModeTrigType   "manual"
  79.   ExtModeTrigMode   "normal"
  80.   ExtModeTrigPort   "1"
  81.   ExtModeTrigElement   "any"
  82.   ExtModeTrigDuration   1000
  83.   ExtModeTrigDurationFloating "auto"
  84.   ExtModeTrigHoldOff   0
  85.   ExtModeTrigDelay   0
  86.   ExtModeTrigDirection   "rising"
  87.   ExtModeTrigLevel   0
  88.   ExtModeArchiveMode   "off"
  89.   ExtModeAutoIncOneShot   off
  90.   ExtModeIncDirWhenArm   off
  91.   ExtModeAddSuffixToVar   off
  92.   ExtModeWriteAllDataToWs off
  93.   ExtModeArmWhenConnect   on
  94.   ExtModeSkipDownloadWhenConnect off
  95.   ExtModeLogAll   on
  96.   ExtModeAutoUpdateStatusClock off
  97.   BufferReuse   on
  98.   StrictBusMsg   "None"
  99.   ProdHWDeviceType   "Specified"
  100.   ShowModelReferenceBlockVersion off
  101.   ShowModelReferenceBlockIO off
  102.   Array {
  103.     Type     "Handle"
  104.     Dimension     1
  105.     Simulink.ConfigSet {
  106.       $ObjectID       1
  107.       Version       "1.1.0"
  108.       Array {
  109. Type "Handle"
  110. Dimension 7
  111. Simulink.SolverCC {
  112.   $ObjectID   2
  113.   Version   "1.1.0"
  114.   StartTime   "0.0"
  115.   StopTime   "5"
  116.   AbsTol   "auto"
  117.   FixedStep   "auto"
  118.   InitialStep   "auto"
  119.   MaxNumMinSteps   "-1"
  120.   MaxOrder   5
  121.   ExtrapolationOrder   4
  122.   NumberNewtonIterations  1
  123.   MaxStep   "auto"
  124.   MinStep   "auto"
  125.   RelTol   "1e-4"
  126.   SolverMode   "Auto"
  127.   Solver   "ode23t"
  128.   SolverName   "ode23t"
  129.   ZeroCrossControl   "UseLocalSettings"
  130.   AlgebraicLoopSolver   "TrustRegion"
  131.   SolverResetMethod   "Fast"
  132.   PositivePriorityOrder   off
  133.   AutoInsertRateTranBlk   off
  134.   SampleTimeConstraint   "Unconstrained"
  135.   RateTranMode   "Deterministic"
  136. }
  137. Simulink.DataIOCC {
  138.   $ObjectID   3
  139.   Version   "1.1.0"
  140.   Decimation   "1"
  141.   ExternalInput   "[t, u]"
  142.   FinalStateName   "xFinal"
  143.   InitialState   "xInitial"
  144.   LimitDataPoints   off
  145.   MaxDataPoints   "1000"
  146.   LoadExternalInput   off
  147.   LoadInitialState   on
  148.   SaveFinalState   on
  149.   SaveFormat   "Array"
  150.   SaveOutput   off
  151.   SaveState   off
  152.   SignalLogging   on
  153.   InspectSignalLogs   off
  154.   SaveTime   on
  155.   StateSaveName   "xout"
  156.   TimeSaveName   "tout"
  157.   OutputSaveName   "yout"
  158.   SignalLoggingName   "sigsOut"
  159.   OutputOption   "RefineOutputTimes"
  160.   OutputTimes   "[]"
  161.   Refine   "1"
  162. }
  163. Simulink.OptimizationCC {
  164.   $ObjectID   4
  165.   Array {
  166.     Type     "Cell"
  167.     Dimension     5
  168.     Cell     "ZeroExternalMemoryAtStartup"
  169.     Cell     "ZeroInternalMemoryAtStartup"
  170.     Cell     "InitFltsAndDblsToZero"
  171.     Cell     "OptimizeModelRefInitCode"
  172.     Cell     "NoFixptDivByZeroProtection"
  173.     PropName     "DisabledProps"
  174.   }
  175.   Version   "1.1.0"
  176.   BlockReduction   off
  177.   BooleanDataType   off
  178.   ConditionallyExecuteInputs on
  179.   InlineParams   off
  180.   InlineInvariantSignals  on
  181.   OptimizeBlockIOStorage  on
  182.   BufferReuse   on
  183.   EnforceIntegerDowncast  on
  184.   ExpressionFolding   on
  185.   FoldNonRolledExpr   on
  186.   LocalBlockOutputs   on
  187.   ParameterPooling   on
  188.   RollThreshold   5
  189.   SystemCodeInlineAuto   off
  190.   StateBitsets   off
  191.   DataBitsets   off
  192.   UseTempVars   off
  193.   ZeroExternalMemoryAtStartup on
  194.   ZeroInternalMemoryAtStartup on
  195.   InitFltsAndDblsToZero   on
  196.   NoFixptDivByZeroProtection off
  197.   EfficientFloat2IntCast  off
  198.   OptimizeModelRefInitCode off
  199.   LifeSpan   "inf"
  200.   BufferReusableBoundary  on
  201. }
  202. Simulink.DebuggingCC {
  203.   $ObjectID   5
  204.   Version   "1.1.0"
  205.   RTPrefix   "error"
  206.   ConsistencyChecking   "none"
  207.   ArrayBoundsChecking   "none"
  208.   SignalInfNanChecking   "none"
  209.   ReadBeforeWriteMsg   "UseLocalSettings"
  210.   WriteAfterWriteMsg   "UseLocalSettings"
  211.   WriteAfterReadMsg   "UseLocalSettings"
  212.   AlgebraicLoopMsg   "warning"
  213.   ArtificialAlgebraicLoopMsg "warning"
  214.   CheckSSInitialOutputMsg on
  215.   CheckExecutionContextPreStartOutputMsg on
  216.   CheckExecutionContextRuntimeOutputMsg on
  217.   SignalResolutionControl "TryResolveAllWithWarning"
  218.   BlockPriorityViolationMsg "warning"
  219.   MinStepSizeMsg   "warning"
  220.   SolverPrmCheckMsg   "none"
  221.   InheritedTsInSrcMsg   "warning"
  222.   DiscreteInheritContinuousMsg "warning"
  223.   MultiTaskDSMMsg   "warning"
  224.   MultiTaskRateTransMsg   "error"
  225.   SingleTaskRateTransMsg  "none"
  226.   TasksWithSamePriorityMsg "warning"
  227.   SigSpecEnsureSampleTimeMsg "warning"
  228.   CheckMatrixSingularityMsg "none"
  229.   IntegerOverflowMsg   "warning"
  230.   Int32ToFloatConvMsg   "warning"
  231.   ParameterDowncastMsg   "error"
  232.   ParameterOverflowMsg   "error"
  233.   ParameterUnderflowMsg   "none"
  234.   ParameterPrecisionLossMsg "warning"
  235.   UnderSpecifiedDataTypeMsg "none"
  236.   UnnecessaryDatatypeConvMsg "none"
  237.   VectorMatrixConversionMsg "none"
  238.   InvalidFcnCallConnMsg   "error"
  239.   FcnCallInpInsideContextMsg "Use local settings"
  240.   SignalLabelMismatchMsg  "none"
  241.   UnconnectedInputMsg   "warning"
  242.   UnconnectedOutputMsg   "warning"
  243.   UnconnectedLineMsg   "warning"
  244.   SFcnCompatibilityMsg   "none"
  245.   UniqueDataStoreMsg   "none"
  246.   BusObjectLabelMismatch  "warning"
  247.   RootOutportRequireBusObject "warning"
  248.   AssertControl   "UseLocalSettings"
  249.   EnableOverflowDetection off
  250.   ModelReferenceIOMsg   "none"
  251.   ModelReferenceVersionMismatchMessage "none"
  252.   ModelReferenceIOMismatchMessage "none"
  253.   ModelReferenceCSMismatchMessage "none"
  254.   ModelReferenceSimTargetVerbose off
  255.   UnknownTsInhSupMsg   "warning"
  256.   ModelReferenceDataLoggingMessage "warning"
  257.   ModelReferenceSymbolNameMessage "warning"
  258.   ModelReferenceExtraNoncontSigs "error"
  259. }
  260. Simulink.HardwareCC {
  261.   $ObjectID   6
  262.   Version   "1.1.0"
  263.   ProdBitPerChar   8
  264.   ProdBitPerShort   32
  265.   ProdBitPerInt   16
  266.   ProdBitPerLong   32
  267.   ProdIntDivRoundTo   "Undefined"
  268.   ProdEndianess   "Unspecified"
  269.   ProdWordSize   32
  270.   ProdShiftRightIntArith  on
  271.   ProdHWDeviceType   "Specified"
  272.   TargetBitPerChar   8
  273.   TargetBitPerShort   16
  274.   TargetBitPerInt   32
  275.   TargetBitPerLong   32
  276.   TargetShiftRightIntArith on
  277.   TargetIntDivRoundTo   "Undefined"
  278.   TargetEndianess   "Unspecified"
  279.   TargetWordSize   32
  280.   TargetTypeEmulationWarnSuppressLevel 0
  281.   TargetPreprocMaxBitsSint 32
  282.   TargetPreprocMaxBitsUint 32
  283.   TargetHWDeviceType   "Specified"
  284.   TargetUnknown   on
  285.   ProdEqTarget   on
  286. }
  287. Simulink.ModelReferenceCC {
  288.   $ObjectID   7
  289.   Version   "1.1.0"
  290.   UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange"
  291.   CheckModelReferenceTargetMessage "error"
  292.   ModelReferenceNumInstancesAllowed "Multi"
  293.   ModelReferencePassRootInputsByReference on
  294.   ModelReferenceMinAlgLoopOccurrences off
  295. }
  296. Simulink.RTWCC {
  297.   $BackupClass   "Simulink.RTWCC"
  298.   $ObjectID   8
  299.   Array {
  300.     Type     "Cell"
  301.     Dimension     1
  302.     Cell     "IncludeHyperlinkInReport"
  303.     PropName     "DisabledProps"
  304.   }
  305.   Version   "1.1.0"
  306.   SystemTargetFile   "grt.tlc"
  307.   GenCodeOnly   off
  308.   MakeCommand   "make_rtw"
  309.   TemplateMakefile   "grt_default_tmf"
  310.   GenerateReport   off
  311.   SaveLog   off
  312.   RTWVerbose   on
  313.   RetainRTWFile   off
  314.   ProfileTLC   off
  315.   TLCDebug   off
  316.   TLCCoverage   off
  317.   TLCAssert   off
  318.   ProcessScriptMode   "Default"
  319.   ConfigurationMode   "Optimized"
  320.   ConfigAtBuild   off
  321.   IncludeHyperlinkInReport off
  322.   LaunchReport   off
  323.   TargetLang   "C"
  324.   Array {
  325.     Type     "Handle"
  326.     Dimension     2
  327.     Simulink.CodeAppCC {
  328.       $ObjectID       9
  329.       Array {
  330. Type "Cell"
  331. Dimension 9
  332. Cell "IgnoreCustomStorageClasses"
  333. Cell "InsertBlockDesc"
  334. Cell "SFDataObjDesc"
  335. Cell "SimulinkDataObjDesc"
  336. Cell "DefineNamingRule"
  337. Cell "SignalNamingRule"
  338. Cell "ParamNamingRule"
  339. Cell "InlinedPrmAccess"
  340. Cell "CustomSymbolStr"
  341. PropName "DisabledProps"
  342.       }
  343.       Version       "1.1.0"
  344.       ForceParamTrailComments off
  345.       GenerateComments       on
  346.       IgnoreCustomStorageClasses on
  347.       IncHierarchyInIds       off
  348.       MaxIdLength       31
  349.       PreserveName       off
  350.       PreserveNameWithParent  off
  351.       ShowEliminatedStatement off
  352.       IncAutoGenComments      off
  353.       SimulinkDataObjDesc     off
  354.       SFDataObjDesc       off
  355.       IncDataTypeInIds       off
  356.       PrefixModelToSubsysFcnNames on
  357.       CustomSymbolStr       "$R$N$M"
  358.       MangleLength       1
  359.       DefineNamingRule       "None"
  360.       ParamNamingRule       "None"
  361.       SignalNamingRule       "None"
  362.       InsertBlockDesc       off
  363.       SimulinkBlockComments   on
  364.       EnableCustomComments    off
  365.       InlinedPrmAccess       "Literals"
  366.       ReqsInCode       off
  367.     }
  368.     Simulink.GRTTargetCC {
  369.       $BackupClass       "Simulink.TargetCC"
  370.       $ObjectID       10
  371.       Array {
  372. Type "Cell"
  373. Dimension 13
  374. Cell "IncludeMdlTerminateFcn"
  375. Cell "CombineOutputUpdateFcns"
  376. Cell "SuppressErrorStatus"
  377. Cell "ERTCustomFileBanners"
  378. Cell "GenerateSampleERTMain"
  379. Cell "MultiInstanceERTCode"
  380. Cell "PurelyIntegerCode"
  381. Cell "SupportNonFinite"
  382. Cell "SupportComplex"
  383. Cell "SupportAbsoluteTime"
  384. Cell "SupportContinuousTime"
  385. Cell "SupportNonInlinedSFcns"
  386. Cell "LifeSpan"
  387. PropName "DisabledProps"
  388.       }
  389.       Version       "1.1.0"
  390.       TargetFcnLib       "ansi_tfl_tmw.mat"
  391.       TargetLibSuffix       ""
  392.       TargetPreCompLibLocation ""
  393.       GenFloatMathFcnCalls    "ANSI_C"
  394.       UtilityFuncGeneration   "Auto"
  395.       GenerateFullHeader      on
  396.       GenerateSampleERTMain   off
  397.       IsPILTarget       off
  398.       ModelReferenceCompliant on
  399.       IncludeMdlTerminateFcn  on
  400.       CombineOutputUpdateFcns off
  401.       SuppressErrorStatus     off
  402.       IncludeFileDelimiter    "Auto"
  403.       ERTCustomFileBanners    off
  404.       SupportAbsoluteTime     on
  405.       LogVarNameModifier      "rt_"
  406.       MatFileLogging       on
  407.       MultiInstanceERTCode    off
  408.       SupportNonFinite       on
  409.       SupportComplex       on
  410.       PurelyIntegerCode       off
  411.       SupportContinuousTime   on
  412.       SupportNonInlinedSFcns  on
  413.       ExtMode       off
  414.       ExtModeStaticAlloc      off
  415.       ExtModeTesting       off
  416.       ExtModeStaticAllocSize  1000000
  417.       ExtModeTransport       0
  418.       ExtModeMexFile       "ext_comm"
  419.       RTWCAPISignals       off
  420.       RTWCAPIParams       off
  421.       RTWCAPIStates       off
  422.       GenerateASAP2       off
  423.     }
  424.     PropName     "Components"
  425.   }
  426. }
  427. PropName "Components"
  428.       }
  429.       Name       "Configuration"
  430.       SimulationMode       "normal"
  431.       CurrentDlgPage       "Data Import//Export"
  432.     }
  433.     PropName     "ConfigurationSets"
  434.   }
  435.   Simulink.ConfigSet {
  436.     $PropName     "ActiveConfigurationSet"
  437.     $ObjectID     1
  438.   }
  439.   BlockDefaults {
  440.     Orientation     "right"
  441.     ForegroundColor     "black"
  442.     BackgroundColor     "white"
  443.     DropShadow     off
  444.     NamePlacement     "normal"
  445.     FontName     "Helvetica"
  446.     FontSize     10
  447.     FontWeight     "normal"
  448.     FontAngle     "normal"
  449.     ShowName     on
  450.   }
  451.   BlockParameterDefaults {
  452.     Block {
  453.       BlockType       BusCreator
  454.       Inputs       "4"
  455.       DisplayOption       "none"
  456.       UseBusObject       off
  457.       BusObject       "BusObject"
  458.       NonVirtualBus       off
  459.     }
  460.     Block {
  461.       BlockType       BusSelector
  462.       OutputAsBus       off
  463.     }
  464.     Block {
  465.       BlockType       Clock
  466.       DisplayTime       off
  467.     }
  468.     Block {
  469.       BlockType       Constant
  470.       Value       "1"
  471.       VectorParams1D       on
  472.       OutDataTypeMode       "Inherit from 'Constant value'"
  473.       OutDataType       "sfix(16)"
  474.       ConRadixGroup       "Use specified scaling"
  475.       OutScaling       "2^0"
  476.       SampleTime       "inf"
  477.     }
  478.     Block {
  479.       BlockType       DataTypeConversion
  480.       OutDataTypeMode       "Inherit via back propagation"
  481.       OutDataType       "sfix(16)"
  482.       OutScaling       "2^0"
  483.       LockScale       off
  484.       ConvertRealWorld       "Real World Value (RWV)"
  485.       RndMeth       "Zero"
  486.       SaturateOnIntegerOverflow on
  487.       SampleTime       "-1"
  488.     }
  489.     Block {
  490.       BlockType       DeadZone
  491.       LowerValue       "-0.5"
  492.       UpperValue       "0.5"
  493.       SaturateOnIntegerOverflow on
  494.       LinearizeAsGain       on
  495.       ZeroCross       on
  496.       SampleTime       "-1"
  497.     }
  498.     Block {
  499.       BlockType       Demux
  500.       Outputs       "4"
  501.       DisplayOption       "none"
  502.       BusSelectionMode       off
  503.     }
  504.     Block {
  505.       BlockType       Derivative
  506.       LinearizePole       "inf"
  507.     }
  508.     Block {
  509.       BlockType       DiscreteIntegrator
  510.       IntegratorMethod       "Integration: Forward Euler"
  511.       gainval       "1.0"
  512.       ExternalReset       "none"
  513.       InitialConditionSource  "internal"
  514.       InitialCondition       "0"
  515.       InitialConditionMode    "State and output"
  516.       SampleTime       "1"
  517.       OutDataTypeMode       "Inherit via internal rule"
  518.       OutDataType       "sfix(16)"
  519.       OutScaling       "2^0"
  520.       LockScale       off
  521.       RndMeth       "Floor"
  522.       SaturateOnIntegerOverflow off
  523.       LimitOutput       off
  524.       UpperSaturationLimit    "inf"
  525.       LowerSaturationLimit    "-inf"
  526.       ShowSaturationPort      off
  527.       ShowStatePort       off
  528.       IgnoreLimit       off
  529.       StateMustResolveToSignalObject off
  530.       RTWStateStorageClass    "Auto"
  531.     }
  532.     Block {
  533.       BlockType       DiscreteStateSpace
  534.       A       "1"
  535.       B       "1"
  536.       C       "1"
  537.       D       "1"
  538.       X0       "0"
  539.       SampleTime       "1"
  540.       StateMustResolveToSignalObject off
  541.       RTWStateStorageClass    "Auto"
  542.       Realization       "auto"
  543.     }
  544.     Block {
  545.       BlockType       DiscreteTransferFcn
  546.       Numerator       "[1]"
  547.       Denominator       "[1 0.5]"
  548.       SampleTime       "1"
  549.       StateMustResolveToSignalObject off
  550.       RTWStateStorageClass    "Auto"
  551.       Realization       "auto"
  552.     }
  553.     Block {
  554.       BlockType       ElementaryMath
  555.       Operator       "sin"
  556.     }
  557.     Block {
  558.       BlockType       EnablePort
  559.       StatesWhenEnabling      "held"
  560.       ShowOutputPort       off
  561.       ZeroCross       on
  562.     }
  563.     Block {
  564.       BlockType       From
  565.       IconDisplay       "Tag"
  566.     }
  567.     Block {
  568.       BlockType       Fcn
  569.       Expr       "sin(u[1])"
  570.       SampleTime       "-1"
  571.     }
  572.     Block {
  573.       BlockType       Gain
  574.       Gain       "1"
  575.       Multiplication       "Element-wise(K.*u)"
  576.       ParameterDataTypeMode   "Same as input"
  577.       ParameterDataType       "sfix(16)"
  578.       ParameterScalingMode    "Best Precision: Matrix-wise"
  579.       ParameterScaling       "2^0"
  580.       OutDataTypeMode       "Same as input"
  581.       OutDataType       "sfix(16)"
  582.       OutScaling       "2^0"
  583.       LockScale       off
  584.       RndMeth       "Floor"
  585.       SaturateOnIntegerOverflow on
  586.       SampleTime       "-1"
  587.     }
  588.     Block {
  589.       BlockType       Goto
  590.       IconDisplay       "Tag"
  591.     }
  592.     Block {
  593.       BlockType       Ground
  594.     }
  595.     Block {
  596.       BlockType       HitCross
  597.       HitCrossingOffset       "0"
  598.       HitCrossingDirection    "either"
  599.       ShowOutputPort       on
  600.       ZeroCross       on
  601.       SampleTime       "-1"
  602.     }
  603.     Block {
  604.       BlockType       Inport
  605.       Port       "1"
  606.       UseBusObject       off
  607.       BusObject       "BusObject"
  608.       BusOutputAsStruct       off
  609.       PortDimensions       "-1"
  610.       SampleTime       "-1"
  611.       DataType       "auto"
  612.       OutDataType       "sfix(16)"
  613.       OutScaling       "2^0"
  614.       SignalType       "auto"
  615.       SamplingMode       "auto"
  616.       LatchByDelayingOutsideSignal off
  617.       LatchByCopyingInsideSignal off
  618.       Interpolate       on
  619.     }
  620.     Block {
  621.       BlockType       Integrator
  622.       ExternalReset       "none"
  623.       InitialConditionSource  "internal"
  624.       InitialCondition       "0"
  625.       LimitOutput       off
  626.       UpperSaturationLimit    "inf"
  627.       LowerSaturationLimit    "-inf"
  628.       ShowSaturationPort      off
  629.       ShowStatePort       off
  630.       AbsoluteTolerance       "auto"
  631.       IgnoreLimit       off
  632.       ZeroCross       on
  633.     }
  634.     Block {
  635.       BlockType       Logic
  636.       Operator       "AND"
  637.       Inputs       "2"
  638.       AllPortsSameDT       on
  639.       OutDataTypeMode       "Logical (see Configuration Parameters: Optimiza"
  640. "tion)"
  641.       LogicDataType       "uint(8)"
  642.       SampleTime       "-1"
  643.     }
  644.     Block {
  645.       BlockType       Lookup
  646.       InputValues       "[-4:5]"
  647.       OutputValues       " rand(1,10)-0.5"
  648.       LookUpMeth       "Interpolation-Extrapolation"
  649.       OutDataTypeMode       "Same as input"
  650.       OutDataType       "sfix(16)"
  651.       OutScaling       "2^0"
  652.       LockScale       off
  653.       RndMeth       "Floor"
  654.       SaturateOnIntegerOverflow on
  655.       SampleTime       "-1"
  656.       LUTDesignTableMode      "Redesign Table"
  657.       LUTDesignDataSource     "Block Dialog"
  658.       LUTDesignFunctionName   "sqrt(x)"
  659.       LUTDesignUseExistingBP  on
  660.       LUTDesignRelError       "0.01"
  661.       LUTDesignAbsError       "1e-6"
  662.     }
  663.     Block {
  664.       BlockType       Lookup2D
  665.       RowIndex       "[0 1]"
  666.       ColumnIndex       "[0 1]"
  667.       OutputValues       "[0 0;0 0]"
  668.       LookUpMeth       "Interpolation-Extrapolation"
  669.       InputSameDT       on
  670.       OutDataTypeMode       "Same as first input"
  671.       OutDataType       "sfix(16)"
  672.       OutScaling       "2^0"
  673.       LockScale       off
  674.       RndMeth       "Floor"
  675.       SaturateOnIntegerOverflow on
  676.       SampleTime       "-1"
  677.       LUTDesignTableMode      "Redesign Table"
  678.       LUTDesignDataSource     "Block Dialog"
  679.       LUTDesignFunctionName   "sqrt(x)"
  680.       LUTDesignUseExistingBP  on
  681.       LUTDesignRelError       "0.01"
  682.       LUTDesignAbsError       "1e-6"
  683.     }
  684.     Block {
  685.       BlockType       Math
  686.       Operator       "exp"
  687.       OutputSignalType       "auto"
  688.       SampleTime       "-1"
  689.       OutDataTypeMode       "Same as first input"
  690.       OutDataType       "sfix(16)"
  691.       OutScaling       "2^0"
  692.       LockScale       off
  693.       RndMeth       "Floor"
  694.       SaturateOnIntegerOverflow on
  695.     }
  696.     Block {
  697.       BlockType       MultiPortSwitch
  698.       Inputs       "4"
  699.       zeroidx       off
  700.       InputSameDT       on
  701.       OutDataTypeMode       "Inherit via internal rule"
  702.       RndMeth       "Floor"
  703.       SaturateOnIntegerOverflow on
  704.       SampleTime       "-1"
  705.     }
  706.     Block {
  707.       BlockType       Mux
  708.       Inputs       "4"
  709.       DisplayOption       "none"
  710.       UseBusObject       off
  711.       BusObject       "BusObject"
  712.       NonVirtualBus       off
  713.     }
  714.     Block {
  715.       BlockType       Outport
  716.       Port       "1"
  717.       UseBusObject       off
  718.       BusObject       "BusObject"
  719.       BusOutputAsStruct       off
  720.       PortDimensions       "-1"
  721.       SampleTime       "-1"
  722.       DataType       "auto"
  723.       OutDataType       "sfix(16)"
  724.       OutScaling       "2^0"
  725.       SignalType       "auto"
  726.       SamplingMode       "auto"
  727.       OutputWhenDisabled      "held"
  728.       InitialOutput       "[]"
  729.     }
  730.     Block {
  731.       BlockType       PMComponent
  732.       SubClassName       "unknown"
  733.     }
  734.     Block {
  735.       BlockType       PMIOPort
  736.     }
  737.     Block {
  738.       BlockType       Product
  739.       Inputs       "2"
  740.       Multiplication       "Element-wise(.*)"
  741.       InputSameDT       on
  742.       OutDataTypeMode       "Same as first input"
  743.       OutDataType       "sfix(16)"
  744.       OutScaling       "2^0"
  745.       LockScale       off
  746.       RndMeth       "Zero"
  747.       SaturateOnIntegerOverflow on
  748.       SampleTime       "-1"
  749.     }
  750.     Block {
  751.       BlockType       RelationalOperator
  752.       Operator       ">="
  753.       InputSameDT       on
  754.       LogicOutDataTypeMode    "Logical (see Configuration Parameters: Optimiza"
  755. "tion)"
  756.       LogicDataType       "uint(8)"
  757.       ZeroCross       on
  758.       SampleTime       "-1"
  759.     }
  760.     Block {
  761.       BlockType       Rounding
  762.       Operator       "floor"
  763.       SampleTime       "-1"
  764.     }
  765.     Block {
  766.       BlockType       Saturate
  767.       UpperLimit       "0.5"
  768.       LowerLimit       "-0.5"
  769.       LinearizeAsGain       on
  770.       ZeroCross       on
  771.       SampleTime       "-1"
  772.     }
  773.     Block {
  774.       BlockType       Scope
  775.       ModelBased       off
  776.       TickLabels       "OneTimeTick"
  777.       ZoomMode       "on"
  778.       Grid       "on"
  779.       TimeRange       "auto"
  780.       YMin       "-5"
  781.       YMax       "5"
  782.       SaveToWorkspace       off
  783.       SaveName       "ScopeData"
  784.       LimitDataPoints       on
  785.       MaxDataPoints       "5000"
  786.       Decimation       "1"
  787.       SampleInput       off
  788.       SampleTime       "-1"
  789.     }
  790.     Block {
  791.       BlockType       Selector
  792.       InputType       "Vector"
  793.       IndexMode       "One-based"
  794.       ElementSrc       "Internal"
  795.       Elements       "1"
  796.       RowSrc       "Internal"
  797.       Rows       "1"
  798.       ColumnSrc       "Internal"
  799.       Columns       "1"
  800.       InputPortWidth       "-1"
  801.       IndexIsStartValue       off
  802.       OutputPortSize       "1"
  803.     }
  804.     Block {
  805.       BlockType       "S-Function"
  806.       FunctionName       "system"
  807.       SFunctionModules       "''"
  808.       PortCounts       "[]"
  809.     }
  810.     Block {
  811.       BlockType       StateSpace
  812.       A       "1"
  813.       B       "1"
  814.       C       "1"
  815.       D       "1"
  816.       X0       "0"
  817.       AbsoluteTolerance       "auto"
  818.       Realization       "auto"
  819.     }
  820.     Block {
  821.       BlockType       Step
  822.       Time       "1"
  823.       Before       "0"
  824.       After       "1"
  825.       SampleTime       "-1"
  826.       VectorParams1D       on
  827.       ZeroCross       on
  828.     }
  829.     Block {
  830.       BlockType       SubSystem
  831.       ShowPortLabels       on
  832.       Permissions       "ReadWrite"
  833.       PermitHierarchicalResolution "All"
  834.       SystemSampleTime       "-1"
  835.       RTWFcnNameOpts       "Auto"
  836.       RTWFileNameOpts       "Auto"
  837.       SimViewingDevice       off
  838.       DataTypeOverride       "UseLocalSettings"
  839.       MinMaxOverflowLogging   "UseLocalSettings"
  840.     }
  841.     Block {
  842.       BlockType       Sum
  843.       IconShape       "rectangular"
  844.       Inputs       "++"
  845.       InputSameDT       on
  846.       OutDataTypeMode       "Same as first input"
  847.       OutDataType       "sfix(16)"
  848.       OutScaling       "2^0"
  849.       LockScale       off
  850.       RndMeth       "Floor"
  851.       SaturateOnIntegerOverflow on
  852.       SampleTime       "-1"
  853.     }
  854.     Block {
  855.       BlockType       Switch
  856.       Criteria       "u2 >= Threshold"
  857.       Threshold       "0"
  858.       InputSameDT       on
  859.       OutDataTypeMode       "Inherit via internal rule"
  860.       RndMeth       "Floor"
  861.       SaturateOnIntegerOverflow on
  862.       ZeroCross       on
  863.       SampleTime       "-1"
  864.     }
  865.     Block {
  866.       BlockType       Terminator
  867.     }
  868.     Block {
  869.       BlockType       Trigonometry
  870.       Operator       "sin"
  871.       OutputSignalType       "auto"
  872.       SampleTime       "-1"
  873.     }
  874.     Block {
  875.       BlockType       UnitDelay
  876.       X0       "0"
  877.       SampleTime       "1"
  878.       StateMustResolveToSignalObject off
  879.       RTWStateStorageClass    "Auto"
  880.     }
  881.   }
  882.   AnnotationDefaults {
  883.     HorizontalAlignment     "center"
  884.     VerticalAlignment     "middle"
  885.     ForegroundColor     "black"
  886.     BackgroundColor     "white"
  887.     DropShadow     off
  888.     FontName     "Helvetica"
  889.     FontSize     10
  890.     FontWeight     "normal"
  891.     FontAngle     "normal"
  892.   }
  893.   LineDefaults {
  894.     FontName     "Helvetica"
  895.     FontSize     9
  896.     FontWeight     "normal"
  897.     FontAngle     "normal"
  898.   }
  899.   System {
  900.     Name     "power_windgen"
  901.     Location     [73, 74, 899, 669]
  902.     Open     off
  903.     ModelBrowserVisibility  off
  904.     ModelBrowserWidth     212
  905.     ScreenColor     "white"
  906.     PaperOrientation     "landscape"
  907.     PaperPositionMode     "auto"
  908.     PaperType     "usletter"
  909.     PaperUnits     "inches"
  910.     ZoomFactor     "100"
  911.     ReportName     "simulink-default.rpt"
  912.     Block {
  913.       BlockType       Constant
  914.       Name       "0 kW"
  915.       Position       [40, 75, 60, 95]
  916.       Value       "0"
  917.     }
  918.     Block {
  919.       BlockType       Reference
  920.       Name       "3-Phase Breaker"
  921.       Ports       [0, 0, 0, 0, 0, 3, 3]
  922.       Position       [170, 305, 220, 355]
  923.       Orientation       "left"
  924.       AttributesFormatString  "\n"
  925.       SourceBlock       "powerlib/Elements/Three-Phase Breaker"
  926.       SourceType       "Three-Phase Breaker"
  927.       ShowPortLabels       on
  928.       InitialState       "open"
  929.       SwitchA       on
  930.       SwitchB       on
  931.       SwitchC       on
  932.       SwitchTimes       "[0.2]"
  933.       External       off
  934.       BreakerResistance       "0.001"
  935.       SnubberResistance       "1e6"
  936.       SnubberCapacitance      "inf"
  937.       Measurements       "None"
  938.     }
  939.     Block {
  940.       BlockType       Reference
  941.       Name       "Asynchronous Generatorn480V 275kVA"
  942.       Ports       [1, 1, 0, 0, 0, 3]
  943.       Position       [590, 63, 660, 137]
  944.       BackgroundColor       "lightBlue"
  945.       AttributesFormatString  "\n"
  946.       SourceBlock       "powerlib/Machines/Asynchronous Machinenpu Unit"
  947. "s"
  948.       SourceType       "Asynchronous Machine"
  949.       ShowPortLabels       on
  950.       PresetModel       "No"
  951.       MechanicalLoad       "Torque Tm"
  952.       ShowDetailedParameters  on
  953.       RotorType       "Squirrel-cage"
  954.       ReferenceFrame       "Rotor"
  955.       NominalParameters       "[ 275e3, 480, 60 ]"
  956.       Stator       "[ 0.016,0.06]"
  957.       Rotor       "[ 0.015,0.06]"
  958.       Lm       "3.5"
  959.       Mechanical       "[ 2,0,2 ]"
  960.       InitialConditions       "[-8.89496e-048 0 0.280896 0.280896 0.280896 -89"
  961. ".7425 150.258 30.2575]"
  962.       Units       "0"
  963.       LoadFlowParameters      "0"
  964.       SimulateSaturation      off
  965.       Saturation       "[ 0 0 ; 0 0 ]"
  966.     }
  967.     Block {
  968.       BlockType       BusSelector
  969.       Name       "BusnSelector"
  970.       Ports       [1, 1]
  971.       Position       [695, 81, 700, 119]
  972.       ShowName       off
  973.       OutputSignals       "Mechanical.Rotor speed (wm)"
  974.       Port {
  975. PortNumber 1
  976. Name "<Rotor speed (wm)>"
  977. RTWStorageClass "Auto"
  978. DataLoggingNameMode "SignalName"
  979.       }
  980.     }
  981.     Block {
  982.       BlockType       SubSystem
  983.       Name       "DiscretenFrequency Regulator"
  984.       Ports       [1, 1]
  985.       Position       [475, 320, 545, 360]
  986.       Orientation       "left"
  987.       BackgroundColor       "cyan"
  988.       DropShadow       on
  989.       TreatAsAtomicUnit       off
  990.       MinAlgLoopOccurrences   off
  991.       RTWSystemCode       "Auto"
  992.       MaskHideContents       off
  993.       MaskType       "Discrete Frequency Regulator"
  994.       MaskDescription       "Input : phase to ground voltagesnnOutput : 24"
  995. " logical signals for the control of the dump load"
  996.       MaskPromptString       "Reference frequency (Hz):|Regulator gains  [Kp "
  997. "Kd]:|Phase to phase voltage (Vrms):|Sample time (s):"
  998.       MaskStyleString       "edit,edit,edit,edit"
  999.       MaskTunableValueString  "on,on,on,on"
  1000.       MaskCallbackString      "|||"
  1001.       MaskEnableString       "on,on,on,on"
  1002.       MaskVisibilityString    "on,on,on,on"
  1003.       MaskToolTipString       "on,on,on,on"
  1004.       MaskVarAliasString      ",,,"
  1005.       MaskVariables       "Freq_ref=@1;gains_regulator=@2;Vpp_nom=@3;Ts=@4"
  1006. ";"
  1007.       MaskInitialization      "Vbase=Vpp_nom/sqrt(3);nKp=gains_regulator(1);"
  1008. "nKd=gains_regulator(2);n"
  1009.       MaskIconFrame       on
  1010.       MaskIconOpaque       on
  1011.       MaskIconRotate       "none"
  1012.       MaskIconUnits       "autoscale"
  1013.       MaskValueString       "60|[255 30]|480|200e-6"
  1014.       MaskTabNameString       ",,,"
  1015.       System {
  1016. Name "DiscretenFrequency Regulator"
  1017. Location [119, 161, 937, 402]
  1018. Open off
  1019. ModelBrowserVisibility off
  1020. ModelBrowserWidth 200
  1021. ScreenColor "white"
  1022. PaperOrientation "landscape"
  1023. PaperPositionMode "auto"
  1024. PaperType "usletter"
  1025. PaperUnits "inches"
  1026. ZoomFactor "100"
  1027. Block {
  1028.   BlockType   Inport
  1029.   Name   "Vabc"
  1030.   Position   [30, 98, 60, 112]
  1031.   IconDisplay   "Port number"
  1032. }
  1033. Block {
  1034.   BlockType   DeadZone
  1035.   Name   "+/- 0.005 Hz"
  1036.   Position   [320, 70, 350, 100]
  1037.   LowerValue   "-0.005"
  1038.   UpperValue   "0.005"
  1039. }
  1040. Block {
  1041.   BlockType   Reference
  1042.   Name   "Discreten3-phase PLL"
  1043.   Ports   [1, 3]
  1044.   Position   [80, 74, 140, 136]
  1045.   SourceBlock   "powerlib_extras/Discrete nControl Blocks/D"
  1046. "iscreten3-phase PLL"
  1047.   SourceType   "Discrete 3-phase PLL"
  1048.   ShowPortLabels   on
  1049.   Fmin   "45"
  1050.   Par_Init   "[0 Freq_ref]"
  1051.   ParK   "[60 1400]"
  1052.   Ts   "Ts"
  1053. }
  1054. Block {
  1055.   BlockType   Reference
  1056.   Name   "DiscretenPID Controller"
  1057.   Ports   [1, 1]
  1058.   Position   [470, 70, 500, 100]
  1059.   SourceBlock   "powerlib_extras/Discrete nControl Blocks/D"
  1060. "iscretenPID Controller"
  1061.   SourceType   "Discrete PID Controller"
  1062.   ShowPortLabels   on
  1063.   Kp   "Kp"
  1064.   Ki   "0"
  1065.   Kd   "Kd"
  1066.   TcD   "0.5e-3"
  1067.   Par_Limits   "[255 0]"
  1068.   Init   "0"
  1069.   Ts   "Ts"
  1070. }
  1071. Block {
  1072.   BlockType   DiscreteIntegrator
  1073.   Name   "Discrete-TimenIntegrator"
  1074.   Ports   [1, 1]
  1075.   Position   [390, 65, 425, 105]
  1076.   IntegratorMethod   "Integration: Forward Euler"
  1077.   ExternalReset   "none"
  1078.   InitialConditionSource  "internal"
  1079.   SampleTime   "Ts"
  1080.   LimitOutput   on
  1081.   UpperSaturationLimit   "1"
  1082.   LowerSaturationLimit   "0"
  1083.   IgnoreLimit   off
  1084.   ICPrevOutput   "DiscIntNeverNeededParam"
  1085.   ICPrevScaledInput   "DiscIntNeverNeededParam"
  1086. }
  1087. Block {
  1088.   BlockType   Goto
  1089.   Name   "Goto1"
  1090.   Position   [200, 42, 260, 58]
  1091.   ShowName   off
  1092.   GotoTag   "Freq"
  1093.   TagVisibility   "global"
  1094. }
  1095. Block {
  1096.   BlockType   SubSystem
  1097.   Name   "PulsesnDecoder"
  1098.   Ports   [1, 1]
  1099.   Position   [530, 59, 590, 111]
  1100.   TreatAsAtomicUnit   off
  1101.   MinAlgLoopOccurrences   off
  1102.   RTWSystemCode   "Auto"
  1103.   MaskHideContents   off
  1104.   MaskType   "Pulses Decoder"
  1105.   MaskDescription   "Decode the scalar input 'Code' into a vecto"
  1106. "r output 'Pulses' based on  the specified number of bits to decode.n(Element"
  1107. " 1 of vector output = least significant bit)n"
  1108.   MaskPromptString   "Number of bits to decode:"
  1109.   MaskStyleString   "edit"
  1110.   MaskTunableValueString  "on"
  1111.   MaskEnableString   "on"
  1112.   MaskVisibilityString   "on"
  1113.   MaskToolTipString   "on"
  1114.   MaskVariables   "n=@1;"
  1115.   MaskIconFrame   on
  1116.   MaskIconOpaque   on
  1117.   MaskIconRotate   "none"
  1118.   MaskIconUnits   "autoscale"
  1119.   MaskValueString   "8"
  1120.   System {
  1121.     Name     "PulsesnDecoder"
  1122.     Location     [303, 93, 861, 270]
  1123.     Open     off
  1124.     ModelBrowserVisibility  off
  1125.     ModelBrowserWidth     200
  1126.     ScreenColor     "white"
  1127.     PaperOrientation     "landscape"
  1128.     PaperPositionMode     "auto"
  1129.     PaperType     "usletter"
  1130.     PaperUnits     "inches"
  1131.     ZoomFactor     "100"
  1132.     Block {
  1133.       BlockType       Inport
  1134.       Name       "Code"
  1135.       Position       [40, 53, 70, 67]
  1136.       IconDisplay       "Port number"
  1137.     }
  1138.     Block {
  1139.       BlockType       Constant
  1140.       Name       "Constant"
  1141.       Position       [85, 71, 170, 99]
  1142.       ShowName       off
  1143.       Value       "pow2(0:-1:-(n-1))"
  1144.     }
  1145.     Block {
  1146.       BlockType       Constant
  1147.       Name       "Constant6"
  1148.       Position       [305, 91, 325, 109]
  1149.       ShowName       off
  1150.       Value       "2"
  1151.     }
  1152.     Block {
  1153.       BlockType       Math
  1154.       Name       "MathnFunction"
  1155.       Ports       [2, 1]
  1156.       Position       [355, 63, 385, 112]
  1157.       ShowName       off
  1158.       Operator       "rem"
  1159.     }
  1160.     Block {
  1161.       BlockType       Product
  1162.       Name       "Product"
  1163.       Ports       [2, 1]
  1164.       Position       [195, 46, 225, 99]
  1165.       ShowName       off
  1166.       RndMeth       "Floor"
  1167.     }
  1168.     Block {
  1169.       BlockType       Rounding
  1170.       Name       "RoundingnFunction"
  1171.       Position       [260, 60, 290, 90]
  1172.       ShowName       off
  1173.     }
  1174.     Block {
  1175.       BlockType       Outport
  1176.       Name       "Pulses"
  1177.       Position       [435, 83, 465, 97]
  1178.       IconDisplay       "Port number"
  1179.       BusOutputAsStruct       off
  1180.     }
  1181.     Line {
  1182.       SrcBlock       "MathnFunction"
  1183.       SrcPort       1
  1184.       DstBlock       "Pulses"
  1185.       DstPort       1
  1186.     }
  1187.     Line {
  1188.       SrcBlock       "RoundingnFunction"
  1189.       SrcPort       1
  1190.       DstBlock       "MathnFunction"
  1191.       DstPort       1
  1192.     }
  1193.     Line {
  1194.       SrcBlock       "Constant6"
  1195.       SrcPort       1
  1196.       DstBlock       "MathnFunction"
  1197.       DstPort       2
  1198.     }
  1199.     Line {
  1200.       SrcBlock       "Product"
  1201.       SrcPort       1
  1202.       DstBlock       "RoundingnFunction"
  1203.       DstPort       1
  1204.     }
  1205.     Line {
  1206.       SrcBlock       "Code"
  1207.       SrcPort       1
  1208.       DstBlock       "Product"
  1209.       DstPort       1
  1210.     }
  1211.     Line {
  1212.       SrcBlock       "Constant"
  1213.       SrcPort       1
  1214.       DstBlock       "Product"
  1215.       DstPort       2
  1216.     }
  1217.   }
  1218. }
  1219. Block {
  1220.   BlockType   Constant
  1221.   Name   "ReferencenFrequency"
  1222.   Position   [200, 109, 260, 131]
  1223.   Value   "Freq_ref"
  1224. }
  1225. Block {
  1226.   BlockType   SubSystem
  1227.   Name   "Sampling system"
  1228.   Ports   [1, 1]
  1229.   Position   [615, 71, 735, 99]
  1230.   TreatAsAtomicUnit   off
  1231.   MinAlgLoopOccurrences   off
  1232.   RTWSystemCode   "Auto"
  1233.   MaskHideContents   off
  1234.   System {
  1235.     Name     "Sampling system"
  1236.     Location     [91, 74, 893, 583]
  1237.     Open     off
  1238.     ModelBrowserVisibility  off
  1239.     ModelBrowserWidth     200
  1240.     ScreenColor     "white"
  1241.     PaperOrientation     "landscape"
  1242.     PaperPositionMode     "auto"
  1243.     PaperType     "usletter"
  1244.     PaperUnits     "inches"
  1245.     ZoomFactor     "100"
  1246.     Block {
  1247.       BlockType       Inport
  1248.       Name       "BITA0_7"
  1249.       Position       [230, 153, 260, 167]
  1250.       IconDisplay       "Port number"
  1251.     }
  1252.     Block {
  1253.       BlockType       Selector
  1254.       Name       " Bit ABC4"
  1255.       Ports       [1, 1]
  1256.       Position       [575, 266, 615, 304]
  1257.       Elements       "[13 14 15]"
  1258.       InputPortWidth       "24"
  1259.     }
  1260.     Block {
  1261.       BlockType       Selector
  1262.       Name       "Bit ABC0"
  1263.       Ports       [1, 1]
  1264.       Position       [575, 46, 615, 84]
  1265.       Elements       "[1 2 3]"
  1266.       InputPortWidth       "24"
  1267.     }
  1268.     Block {
  1269.       BlockType       Selector
  1270.       Name       "Bit ABC1"
  1271.       Ports       [1, 1]
  1272.       Position       [575, 101, 615, 139]
  1273.       Elements       "[4 5 6]"
  1274.       InputPortWidth       "24"
  1275.     }
  1276.     Block {
  1277.       BlockType       Selector
  1278.       Name       "Bit ABC2"
  1279.       Ports       [1, 1]
  1280.       Position       [575, 156, 615, 194]
  1281.       Elements       "[7 8 9]"
  1282.       InputPortWidth       "24"
  1283.     }
  1284.     Block {
  1285.       BlockType       Selector
  1286.       Name       "Bit ABC3"
  1287.       Ports       [1, 1]
  1288.       Position       [575, 211, 615, 249]
  1289.       Elements       "[10 11 12]"
  1290.       InputPortWidth       "24"
  1291.     }
  1292.     Block {
  1293.       BlockType       Selector
  1294.       Name       "Bit ABC5"
  1295.       Ports       [1, 1]
  1296.       Position       [575, 321, 615, 359]
  1297.       Elements       "[16 17 18]"
  1298.       InputPortWidth       "24"
  1299.     }
  1300.     Block {
  1301.       BlockType       Selector
  1302.       Name       "Bit ABC6"
  1303.       Ports       [1, 1]
  1304.       Position       [575, 376, 615, 414]
  1305.       Elements       "[19 20 21]"
  1306.       InputPortWidth       "24"
  1307.     }
  1308.     Block {
  1309.       BlockType       Selector
  1310.       Name       "Bit ABC7"
  1311.       Ports       [1, 1]
  1312.       Position       [575, 431, 615, 469]
  1313.       Elements       "[22 23 24]"
  1314.       InputPortWidth       "24"
  1315.     }
  1316.     Block {
  1317.       BlockType       Demux
  1318.       Name       "Demux"
  1319.       Ports       [1, 3]
  1320.       Position       [155, 188, 160, 342]
  1321.       BackgroundColor       "black"
  1322.       ShowName       off
  1323.       Outputs       "3"
  1324.     }
  1325.     Block {
  1326.       BlockType       From
  1327.       Name       "From4"
  1328.       Position       [75, 255, 135, 275]
  1329.       ShowName       off
  1330.       CloseFcn       "tagdialog Close"
  1331.       GotoTag       "Vabc_SL"
  1332.     }
  1333.     Block {
  1334.       BlockType       Mux
  1335.       Name       "Mux"
  1336.       Ports       [3, 1]
  1337.       Position       [480, 246, 485, 284]
  1338.       ShowName       off
  1339.       Inputs       "3"
  1340.       DisplayOption       "bar"
  1341.     }
  1342.     Block {
  1343.       BlockType       Mux
  1344.       Name       "Mux1"
  1345.       Ports       [8, 1]
  1346.       Position       [685, 29, 690, 486]
  1347.       ShowName       off
  1348.       Inputs       "8"
  1349.       DisplayOption       "bar"
  1350.     }
  1351.     Block {
  1352.       BlockType       Selector
  1353.       Name       "Selector"
  1354.       Ports       [1, 1]
  1355.       Position       [500, 246, 540, 284]
  1356.       Elements       "[1 9 17 2 10 18 3 11 19 4 12 20 5 13 21"
  1357. " 6 14 22 7 15 23 8 16 24]"
  1358.       InputPortWidth       "24"
  1359.     }
  1360.     Block {
  1361.       BlockType       Switch
  1362.       Name       "Switch"
  1363.       Position       [350, 155, 380, 185]
  1364.       Threshold       "0.5"
  1365.     }
  1366.     Block {
  1367.       BlockType       Switch
  1368.       Name       "Switch1"
  1369.       Position       [350, 250, 380, 280]
  1370.       Threshold       "0.5"
  1371.     }
  1372.     Block {
  1373.       BlockType       Switch
  1374.       Name       "Switch2"
  1375.       Position       [350, 350, 380, 380]
  1376.       Threshold       "0.5"
  1377.     }
  1378.     Block {
  1379.       BlockType       UnitDelay
  1380.       Name       "Unit Delay"
  1381.       Position       [195, 198, 220, 232]
  1382.       ShowName       off
  1383.       SampleTime       "Ts"
  1384.     }
  1385.     Block {
  1386.       BlockType       UnitDelay
  1387.       Name       "Unit Delay1"
  1388.       Position       [195, 248, 220, 282]
  1389.       ShowName       off
  1390.       SampleTime       "Ts"
  1391.     }
  1392.     Block {
  1393.       BlockType       UnitDelay
  1394.       Name       "Unit Delay2"
  1395.       Position       [195, 298, 220, 332]
  1396.       ShowName       off
  1397.       SampleTime       "Ts"
  1398.     }
  1399.     Block {
  1400.       BlockType       UnitDelay
  1401.       Name       "Unit Delay4"
  1402.       Position       [355, 203, 380, 237]
  1403.       Orientation       "left"
  1404.       ShowName       off
  1405.       SampleTime       "Ts"
  1406.     }
  1407.     Block {
  1408.       BlockType       UnitDelay
  1409.       Name       "Unit Delay5"
  1410.       Position       [355, 298, 380, 332]
  1411.       Orientation       "left"
  1412.       ShowName       off
  1413.       SampleTime       "Ts"
  1414.     }
  1415.     Block {
  1416.       BlockType       UnitDelay
  1417.       Name       "Unit Delay6"
  1418.       Position       [355, 398, 380, 432]
  1419.       Orientation       "left"
  1420.       ShowName       off
  1421.       SampleTime       "Ts"
  1422.     }
  1423.     Block {
  1424.       BlockType       HitCross
  1425.       Name       "Zero crossing"
  1426.       Ports       [1, 1]
  1427.       Position       [255, 200, 285, 230]
  1428.       HitCrossingDirection    "either"
  1429.     }
  1430.     Block {
  1431.       BlockType       HitCross
  1432.       Name       "Zero crossing1"
  1433.       Ports       [1, 1]
  1434.       Position       [255, 250, 285, 280]
  1435.       HitCrossingDirection    "either"
  1436.     }
  1437.     Block {
  1438.       BlockType       HitCross
  1439.       Name       "Zero crossing2"
  1440.       Ports       [1, 1]
  1441.       Position       [255, 300, 285, 330]
  1442.       HitCrossingDirection    "either"
  1443.     }
  1444.     Block {
  1445.       BlockType       Outport
  1446.       Name       "Pulses_ABC0_7"
  1447.       Position       [740, 253, 770, 267]
  1448.       IconDisplay       "Port number"
  1449.       BusOutputAsStruct       off
  1450.     }
  1451.     Line {
  1452.       SrcBlock       "BITA0_7"
  1453.       SrcPort       1
  1454.       Points       [60, 0]
  1455.       Branch {
  1456. Points [0, 95]
  1457. Branch {
  1458.   Points   [0, 100]
  1459.   DstBlock   "Switch2"
  1460.   DstPort   1
  1461. }
  1462. Branch {
  1463.   DstBlock   "Switch1"
  1464.   DstPort   1
  1465. }
  1466.       }
  1467.       Branch {
  1468. DstBlock "Switch"
  1469. DstPort 1
  1470.       }
  1471.     }
  1472.     Line {
  1473.       SrcBlock       "Demux"
  1474.       SrcPort       3
  1475.       DstBlock       "Unit Delay2"
  1476.       DstPort       1
  1477.     }
  1478.     Line {
  1479.       SrcBlock       "Demux"
  1480.       SrcPort       2
  1481.       DstBlock       "Unit Delay1"
  1482.       DstPort       1
  1483.     }
  1484.     Line {
  1485.       SrcBlock       "Demux"
  1486.       SrcPort       1
  1487.       DstBlock       "Unit Delay"
  1488.       DstPort       1
  1489.     }
  1490.     Line {
  1491.       SrcBlock       "Mux1"
  1492.       SrcPort       1
  1493.       DstBlock       "Pulses_ABC0_7"
  1494.       DstPort       1
  1495.     }
  1496.     Line {
  1497.       SrcBlock       "Bit ABC7"
  1498.       SrcPort       1
  1499.       DstBlock       "Mux1"
  1500.       DstPort       8
  1501.     }
  1502.     Line {
  1503.       SrcBlock       "Bit ABC6"
  1504.       SrcPort       1
  1505.       DstBlock       "Mux1"
  1506.       DstPort       7
  1507.     }
  1508.     Line {
  1509.       SrcBlock       "Bit ABC5"
  1510.       SrcPort       1
  1511.       DstBlock       "Mux1"
  1512.       DstPort       6
  1513.     }
  1514.     Line {
  1515.       SrcBlock       " Bit ABC4"
  1516.       SrcPort       1
  1517.       DstBlock       "Mux1"
  1518.       DstPort       5
  1519.     }
  1520.     Line {
  1521.       SrcBlock       "Bit ABC3"
  1522.       SrcPort       1
  1523.       DstBlock       "Mux1"
  1524.       DstPort       4
  1525.     }
  1526.     Line {
  1527.       SrcBlock       "Bit ABC2"
  1528.       SrcPort       1
  1529.       DstBlock       "Mux1"
  1530.       DstPort       3
  1531.     }
  1532.     Line {
  1533.       SrcBlock       "Bit ABC1"
  1534.       SrcPort       1
  1535.       DstBlock       "Mux1"
  1536.       DstPort       2
  1537.     }
  1538.     Line {
  1539.       SrcBlock       "Bit ABC0"
  1540.       SrcPort       1
  1541.       DstBlock       "Mux1"
  1542.       DstPort       1
  1543.     }
  1544.     Line {
  1545.       SrcBlock       "Selector"
  1546.       SrcPort       1
  1547.       Points       [15, 0; 0, -85]
  1548.       Branch {
  1549. Points [0, 0]
  1550. Branch {
  1551.   Points   [0, 85]
  1552.   Branch {
  1553.     Points     [0, 25]
  1554.     Branch {
  1555.     Points     [0, 55]
  1556.     Branch {
  1557.     Points     [0, 55]
  1558.     Branch {
  1559.     DstBlock     "Bit ABC7"
  1560.     DstPort     1
  1561.     }
  1562.     Branch {
  1563.     DstBlock     "Bit ABC6"
  1564.     DstPort     1
  1565.     }
  1566.     }
  1567.     Branch {
  1568.     DstBlock     "Bit ABC5"
  1569.     DstPort     1
  1570.     }
  1571.     }
  1572.     Branch {
  1573.     DstBlock     " Bit ABC4"
  1574.     DstPort     1
  1575.     }
  1576.   }
  1577.   Branch {
  1578.     DstBlock     "Bit ABC3"
  1579.     DstPort     1
  1580.   }
  1581. }
  1582. Branch {
  1583.   DstBlock   "Bit ABC2"
  1584.   DstPort   1
  1585. }
  1586.       }
  1587.       Branch {
  1588. Points [0, -60]
  1589. Branch {
  1590.   DstBlock   "Bit ABC0"
  1591.   DstPort   1
  1592. }
  1593. Branch {
  1594.   DstBlock   "Bit ABC1"
  1595.   DstPort   1
  1596. }
  1597.       }
  1598.     }
  1599.     Line {
  1600.       SrcBlock       "Mux"
  1601.       SrcPort       1
  1602.       DstBlock       "Selector"
  1603.       DstPort       1
  1604.     }
  1605.     Line {
  1606.       SrcBlock       "Unit Delay6"
  1607.       SrcPort       1
  1608.       Points       [-15, 0]
  1609.       DstBlock       "Switch2"
  1610.       DstPort       3
  1611.     }
  1612.     Line {
  1613.       SrcBlock       "Switch2"
  1614.       SrcPort       1
  1615.       Points       [0, 0; 35, 0]
  1616.       Branch {
  1617. Points [45, 0]
  1618. DstBlock "Mux"
  1619. DstPort 3
  1620.       }
  1621.       Branch {
  1622. Points [0, 50]
  1623. DstBlock "Unit Delay6"
  1624. DstPort 1
  1625.       }
  1626.     }
  1627.     Line {
  1628.       SrcBlock       "Unit Delay5"
  1629.       SrcPort       1
  1630.       Points       [-15, 0]
  1631.       DstBlock       "Switch1"
  1632.       DstPort       3
  1633.     }
  1634.     Line {
  1635.       SrcBlock       "Switch1"
  1636.       SrcPort       1
  1637.       Points       [0, 0; 35, 0]
  1638.       Branch {
  1639. DstBlock "Mux"
  1640. DstPort 2
  1641.       }
  1642.       Branch {
  1643. Points [0, 50]
  1644. DstBlock "Unit Delay5"
  1645. DstPort 1
  1646.       }
  1647.     }
  1648.     Line {
  1649.       SrcBlock       "Unit Delay4"
  1650.       SrcPort       1
  1651.       Points       [-15, 0]
  1652.       DstBlock       "Switch"
  1653.       DstPort       3
  1654.     }
  1655.     Line {
  1656.       SrcBlock       "Switch"
  1657.       SrcPort       1
  1658.       Points       [35, 0]
  1659.       Branch {
  1660. Points [45, 0]
  1661. DstBlock "Mux"
  1662. DstPort 1
  1663.       }
  1664.       Branch {
  1665. Points [0, 50]
  1666. DstBlock "Unit Delay4"
  1667. DstPort 1
  1668.       }
  1669.     }
  1670.     Line {
  1671.       SrcBlock       "Unit Delay"
  1672.       SrcPort       1
  1673.       DstBlock       "Zero crossing"
  1674.       DstPort       1
  1675.     }
  1676.     Line {
  1677.       SrcBlock       "Unit Delay2"
  1678.       SrcPort       1
  1679.       DstBlock       "Zero crossing2"
  1680.       DstPort       1
  1681.     }
  1682.     Line {
  1683.       SrcBlock       "Zero crossing"
  1684.       SrcPort       1
  1685.       Points       [40, 0; 0, -45]
  1686.       DstBlock       "Switch"
  1687.       DstPort       2
  1688.     }
  1689.     Line {
  1690.       SrcBlock       "Zero crossing1"
  1691.       SrcPort       1
  1692.       DstBlock       "Switch1"
  1693.       DstPort       2
  1694.     }
  1695.     Line {
  1696.       SrcBlock       "Zero crossing2"
  1697.       SrcPort       1
  1698.       Points       [25, 0; 0, 50]
  1699.       DstBlock       "Switch2"
  1700.       DstPort       2
  1701.     }
  1702.     Line {
  1703.       SrcBlock       "From4"
  1704.       SrcPort       1
  1705.       DstBlock       "Demux"
  1706.       DstPort       1
  1707.     }
  1708.     Line {
  1709.       SrcBlock       "Unit Delay1"
  1710.       SrcPort       1
  1711.       DstBlock       "Zero crossing1"
  1712.       DstPort       1
  1713.     }
  1714.     Annotation {
  1715.       Name       "T_ABC7"
  1716.       Position       [643, 437]
  1717.       UseDisplayTextAsClickCallback off
  1718.     }
  1719.     Annotation {
  1720.       Name       "T_ABC6"
  1721.       Position       [643, 384]
  1722.       UseDisplayTextAsClickCallback off
  1723.     }
  1724.     Annotation {
  1725.       Name       "T_ABC5"
  1726.       Position       [645, 327]
  1727.       UseDisplayTextAsClickCallback off
  1728.     }
  1729.     Annotation {
  1730.       Name       "T_ABC4"
  1731.       Position       [643, 274]
  1732.       UseDisplayTextAsClickCallback off
  1733.     }
  1734.     Annotation {
  1735.       Name       "T_ABC3"
  1736.       Position       [643, 219]
  1737.       UseDisplayTextAsClickCallback off
  1738.     }
  1739.     Annotation {
  1740.       Name       "T_ABC2"
  1741.       Position       [646, 163]
  1742.       UseDisplayTextAsClickCallback off
  1743.     }
  1744.     Annotation {
  1745.       Name       "T_ABC1"
  1746.       Position       [644, 108]
  1747.       UseDisplayTextAsClickCallback off
  1748.     }
  1749.     Annotation {
  1750.       Name       "T_ABC0"
  1751.       Position       [647, 54]
  1752.       UseDisplayTextAsClickCallback off
  1753.     }
  1754.     Annotation {
  1755.       Name       "Tc0_7"
  1756.       Position       [439, 353]
  1757.       UseDisplayTextAsClickCallback off
  1758.     }
  1759.     Annotation {
  1760.       Name       "Tb0_7"
  1761.       Position       [439, 253]
  1762.       UseDisplayTextAsClickCallback off
  1763.     }
  1764.     Annotation {
  1765.       Name       "Ta0_7"
  1766.       Position       [440, 161]
  1767.       UseDisplayTextAsClickCallback off
  1768.     }
  1769.   }
  1770. }
  1771. Block {
  1772.   BlockType   Sum
  1773.   Name   "Sum"
  1774.   Ports   [2, 1]
  1775.   Position   [275, 75, 295, 95]
  1776.   ShowName   off
  1777.   IconShape   "round"
  1778.   Inputs   "|+-"
  1779. }
  1780. Block {
  1781.   BlockType   Terminator
  1782.   Name   "Terminator"
  1783.   Position   [165, 100, 175, 110]
  1784.   ShowName   off
  1785. }
  1786. Block {
  1787.   BlockType   Terminator
  1788.   Name   "Terminator1"
  1789.   Position   [165, 120, 175, 130]
  1790.   ShowName   off
  1791. }
  1792. Block {
  1793.   BlockType   Outport
  1794.   Name   "Control"
  1795.   Position   [760, 78, 790, 92]
  1796.   IconDisplay   "Port number"
  1797.   BusOutputAsStruct   off
  1798. }
  1799. Line {
  1800.   SrcBlock   "Vabc"
  1801.   SrcPort   1
  1802.   DstBlock   "Discreten3-phase PLL"
  1803.   DstPort   1
  1804. }
  1805. Line {
  1806.   SrcBlock   "Discreten3-phase PLL"
  1807.   SrcPort   3
  1808.   DstBlock   "Terminator1"
  1809.   DstPort   1
  1810. }
  1811. Line {
  1812.   SrcBlock   "Discreten3-phase PLL"
  1813.   SrcPort   2
  1814.   DstBlock   "Terminator"
  1815.   DstPort   1
  1816. }
  1817. Line {
  1818.   SrcBlock   "Sampling system"
  1819.   SrcPort   1
  1820.   DstBlock   "Control"
  1821.   DstPort   1
  1822. }
  1823. Line {
  1824.   SrcBlock   "Discrete-TimenIntegrator"
  1825.   SrcPort   1
  1826.   DstBlock   "DiscretenPID Controller"
  1827.   DstPort   1
  1828. }
  1829. Line {
  1830.   SrcBlock   "ReferencenFrequency"
  1831.   SrcPort   1
  1832.   Points   [20, 0]
  1833.   DstBlock   "Sum"
  1834.   DstPort   2
  1835. }
  1836. Line {
  1837.   SrcBlock   "DiscretenPID Controller"
  1838.   SrcPort   1
  1839.   DstBlock   "PulsesnDecoder"
  1840.   DstPort   1
  1841. }
  1842. Line {
  1843.   SrcBlock   "Sum"
  1844.   SrcPort   1
  1845.   DstBlock   "+/- 0.005 Hz"
  1846.   DstPort   1
  1847. }
  1848. Line {
  1849.   SrcBlock   "PulsesnDecoder"
  1850.   SrcPort   1
  1851.   DstBlock   "Sampling system"
  1852.   DstPort   1
  1853. }
  1854. Line {
  1855.   SrcBlock   "+/- 0.005 Hz"
  1856.   SrcPort   1
  1857.   DstBlock   "Discrete-TimenIntegrator"
  1858.   DstPort   1
  1859. }
  1860. Line {
  1861.   SrcBlock   "Discreten3-phase PLL"
  1862.   SrcPort   1
  1863.   Points   [0, 0; 35, 0]
  1864.   Branch {
  1865.     DstBlock     "Sum"
  1866.     DstPort     1
  1867.   }
  1868.   Branch {
  1869.     Points     [0, -35]
  1870.     DstBlock     "Goto1"
  1871.     DstPort     1
  1872.   }
  1873. }
  1874.       }
  1875.     }
  1876.     Block {
  1877.       BlockType       SubSystem
  1878.       Name       "Double click here for info"
  1879.       Ports       []
  1880.       Position       [722, 521, 752, 550]
  1881.       DropShadow       on
  1882.       OpenFcn       "web('power_windgen.html')"
  1883.       TreatAsAtomicUnit       off
  1884.       MinAlgLoopOccurrences   off
  1885.       RTWSystemCode       "Auto"
  1886.       MaskHideContents       off
  1887.       MaskDisplay       "disp('?')"
  1888.       MaskIconFrame       on
  1889.       MaskIconOpaque       on
  1890.       MaskIconRotate       "none"
  1891.       MaskIconUnits       "autoscale"
  1892.       System {
  1893. Name "Double click here for info"
  1894. Location [30, 100, 1043, 723]
  1895. Open off
  1896. ModelBrowserVisibility off
  1897. ModelBrowserWidth 200
  1898. ScreenColor "white"
  1899. PaperOrientation "landscape"
  1900. PaperPositionMode "auto"
  1901. PaperType "usletter"
  1902. PaperUnits "inches"
  1903. ZoomFactor "100"
  1904.       }
  1905.     }
  1906.     Block {
  1907.       BlockType       SubSystem
  1908.       Name       "Excitation"
  1909.       Ports       [1, 1]
  1910.       Position       [90, 204, 140, 236]
  1911.       Orientation       "left"
  1912.       NamePlacement       "alternate"
  1913.       TreatAsAtomicUnit       off
  1914.       MinAlgLoopOccurrences   off
  1915.       RTWSystemCode       "Auto"
  1916.       MaskHideContents       off
  1917.       System {
  1918. Name "Excitation"
  1919. Location [707, 491, 1059, 779]
  1920. Open off
  1921. ModelBrowserVisibility off
  1922. ModelBrowserWidth 200
  1923. ScreenColor "white"
  1924. PaperOrientation "landscape"
  1925. PaperPositionMode "auto"
  1926. PaperType "usletter"
  1927. PaperUnits "inches"
  1928. ZoomFactor "100"
  1929. Block {
  1930.   BlockType   Inport
  1931.   Name   "m"
  1932.   Position   [300, 73, 330, 87]
  1933.   Orientation   "left"
  1934.   IconDisplay   "Port number"
  1935. }
  1936. Block {
  1937.   BlockType   BusSelector
  1938.   Name   "BusnSelector1"
  1939.   Ports   [1, 2]
  1940.   Position   [265, 54, 270, 101]
  1941.   Orientation   "left"
  1942.   NamePlacement   "alternate"
  1943.   ShowName   off
  1944.   OutputSignals   "dq0 components.Stator voltage  vd (pu),dq0 "
  1945. "components.Stator voltage  vq (pu)"
  1946.   Port {
  1947.     PortNumber     1
  1948.     Name     "<Stator voltage  vd (pu)>"
  1949.     RTWStorageClass     "Auto"
  1950.     DataLoggingNameMode     "SignalName"
  1951.   }
  1952.   Port {
  1953.     PortNumber     2
  1954.     Name     "<Stator voltage  vq (pu)>"
  1955.     RTWStorageClass     "Auto"
  1956.     DataLoggingNameMode     "SignalName"
  1957.   }
  1958. }
  1959. Block {
  1960.   BlockType   Constant
  1961.   Name   "Constant3"
  1962.   Position   [165, 15, 185, 35]
  1963.   Orientation   "left"
  1964.   NamePlacement   "alternate"
  1965.   ShowName   off
  1966. }
  1967. Block {
  1968.   BlockType   Reference
  1969.   Name   "ExcitationnSystem"
  1970.   Ports   [4, 1]
  1971.   Position   [75, 31, 130, 124]
  1972.   Orientation   "left"
  1973.   SourceBlock   "powerlib/Machines/ExcitationnSystem"
  1974.   SourceType   "Excitation System"
  1975.   ShowPortLabels   on
  1976.   tr   "20e-3"
  1977.   reg   "[ 300, 0.001 ]"
  1978.   exc   "[ 1, 0 ]"
  1979.   tgr   "[ 0, 0 ]"
  1980.   damp   "[ 0.001, 0.1 ]"
  1981.   sat   "[ 0, 0 ]"
  1982.   lim   "[ -11.5, 11.5, 0 ]"
  1983.   v0   "[1,2.71455]"
  1984. }
  1985. Block {
  1986.   BlockType   Ground
  1987.   Name   "Ground"
  1988.   Position   [170, 107, 185, 123]
  1989.   Orientation   "left"
  1990.   ShowName   off
  1991. }
  1992. Block {
  1993.   BlockType   Outport
  1994.   Name   "Vf"
  1995.   Position   [25, 73, 55, 87]
  1996.   Orientation   "left"
  1997.   IconDisplay   "Port number"
  1998.   BusOutputAsStruct   off
  1999. }
  2000. Line {
  2001.   SrcBlock   "Constant3"
  2002.   SrcPort   1
  2003.   Points   [0, 15]
  2004.   DstBlock   "ExcitationnSystem"
  2005.   DstPort   1
  2006. }
  2007. Line {
  2008.   SrcBlock   "Ground"
  2009.   SrcPort   1
  2010.   DstBlock   "ExcitationnSystem"
  2011.   DstPort   4
  2012. }
  2013. Line {
  2014.   SrcBlock   "m"
  2015.   SrcPort   1
  2016.   DstBlock   "BusnSelector1"
  2017.   DstPort   1
  2018. }
  2019. Line {
  2020.   SrcBlock   "ExcitationnSystem"
  2021.   SrcPort   1
  2022.   DstBlock   "Vf"
  2023.   DstPort   1
  2024. }
  2025. Line {
  2026.   Name   "<Stator voltage  vd (pu)>"
  2027.   Labels   [0, 0]
  2028.   SrcBlock   "BusnSelector1"
  2029.   SrcPort   1
  2030.   DstBlock   "ExcitationnSystem"
  2031.   DstPort   2
  2032. }
  2033. Line {
  2034.   Name   "<Stator voltage  vq (pu)>"
  2035.   Labels   [0, 0]
  2036.   SrcBlock   "BusnSelector1"
  2037.   SrcPort   2
  2038.   DstBlock   "ExcitationnSystem"
  2039.   DstPort   3
  2040. }
  2041.       }
  2042.     }
  2043.     Block {
  2044.       BlockType       From
  2045.       Name       "From1"
  2046.       Position       [25, 527, 85, 543]
  2047.       ShowName       off
  2048.       CloseFcn       "tagdialog Close"
  2049.       GotoTag       "Freq"
  2050.       Port {
  2051. PortNumber 1
  2052. Name "Frequency (Hz)"
  2053. RTWStorageClass "Auto"
  2054. DataLoggingNameMode "SignalName"
  2055.       }
  2056.     }
  2057.     Block {
  2058.       BlockType       From
  2059.       Name       "From2"
  2060.       Position       [25, 507, 85, 523]
  2061.       ShowName       off
  2062.       CloseFcn       "tagdialog Close"
  2063.       GotoTag       "Iabc_SL"
  2064.       Port {
  2065. PortNumber 1
  2066. Name "Iabc Sec. Load (pu/275 kVA)"
  2067. RTWStorageClass "Auto"
  2068. DataLoggingNameMode "SignalName"
  2069.       }
  2070.     }
  2071.     Block {
  2072.       BlockType       From
  2073.       Name       "From3"
  2074.       Position       [25, 487, 85, 503]
  2075.       ShowName       off
  2076.       CloseFcn       "tagdialog Close"
  2077.       GotoTag       "Vabc_SC"
  2078.       Port {
  2079. PortNumber 1
  2080. Name "Vabc (pu)"
  2081. RTWStorageClass "Auto"
  2082. DataLoggingNameMode "SignalName"
  2083.       }
  2084.     }
  2085.     Block {
  2086.       BlockType       From
  2087.       Name       "From4"
  2088.       Position       [590, 330, 650, 350]
  2089.       Orientation       "left"
  2090.       ShowName       off
  2091.       CloseFcn       "tagdialog Close"
  2092.       GotoTag       "Vabc_SL"
  2093.     }
  2094.     Block {
  2095.       BlockType       From
  2096.       Name       "From5"
  2097.       Position       [25, 547, 85, 563]
  2098.       ShowName       off
  2099.       CloseFcn       "tagdialog Close"
  2100.       GotoTag       "w_ASM"
  2101.       Port {
  2102. PortNumber 1
  2103. Name "ASM speed (pu)"
  2104. PropagatedSignals "Rotor speed (wm)"
  2105. RTWStorageClass "Auto"
  2106. DataLoggingNameMode "SignalName"
  2107.       }
  2108.     }
  2109.     Block {
  2110.       BlockType       Reference
  2111.       Name       "Load"
  2112.       Ports       [0, 0, 0, 0, 0, 3, 3]
  2113.       Position       [257, 285, 303, 290]
  2114.       Orientation       "down"
  2115.       BackgroundColor       "black"
  2116.       NamePlacement       "alternate"
  2117.       SourceBlock       "powerlib/Measurements/Three-PhasenV-I Measurem"
  2118. "ent"
  2119.       SourceType       "Three-Phase VI Measurement"
  2120.       ShowPortLabels       on
  2121.       VoltageMeasurement      "phase-to-ground"
  2122.       SetLabelV       on
  2123.       LabelV       "Vabc_Load"
  2124.       Vpu       on
  2125.       CurrentMeasurement      "yes"
  2126.       SetLabelI       on
  2127.       LabelI       "Iabc_Load"
  2128.       Ipu       on
  2129.       Pbase       "275e3"
  2130.       Vbase       "480"
  2131.       OutputType       "Magnitude"
  2132.       PhasorSimulation       off
  2133.       PSBequivalent       "0"
  2134.     }
  2135.     Block {
  2136.       BlockType       Reference
  2137.       Name       "Loadn25 kW"
  2138.       Ports       [0, 0, 0, 0, 0, 3]
  2139.       Position       [87, 380, 133, 450]
  2140.       Orientation       "down"
  2141.       BackgroundColor       "yellow"
  2142.       AttributesFormatString  "\n"
  2143.       SourceBlock       "powerlib/Elements/Three-PhasenParallel RLC Loa"
  2144. "d"
  2145.       SourceType       "Three-Phase Parallel RLC Load"
  2146.       PhysicalDomain       "powersysdomain"
  2147.       SubClassName       "unknown"
  2148.       LeftPortType       "p1"
  2149.       RightPortType       "p1"
  2150.       LConnTagsString       "A|B|C"
  2151.       Configuration       "Y (grounded)"
  2152.       NominalVoltage       "480"
  2153.       NominalFrequency       "60"
  2154.       ActivePower       "25e3"
  2155.       InductivePower       "0"
  2156.       CapacitivePower       "0"
  2157.       Measurements       "None"
  2158.     }
  2159.     Block {
  2160.       BlockType       Reference
  2161.       Name       "Main Loadn50 kW"
  2162.       Ports       [0, 0, 0, 0, 0, 3]
  2163.       Position       [256, 380, 304, 450]
  2164.       Orientation       "down"
  2165.       BackgroundColor       "yellow"
  2166.       NamePlacement       "alternate"
  2167.       AttributesFormatString  "\n"
  2168.       SourceBlock       "powerlib/Elements/Three-PhasenParallel RLC Loa"
  2169. "d"
  2170.       SourceType       "Three-Phase Parallel RLC Load"
  2171.       PhysicalDomain       "powersysdomain"
  2172.       SubClassName       "unknown"
  2173.       LeftPortType       "p1"
  2174.       RightPortType       "p1"
  2175.       LConnTagsString       "A|B|C"
  2176.       Configuration       "Y (grounded)"
  2177.       NominalVoltage       "480"
  2178.       NominalFrequency       "60"
  2179.       ActivePower       "50e3"
  2180.       InductivePower       "0"
  2181.       CapacitivePower       "0"
  2182.       Measurements       "None"
  2183.     }
  2184.     Block {
  2185.       BlockType       Reference
  2186.       Name       "PF CorrectionnCapacitorn75 kvar"
  2187.       Ports       [0, 0, 0, 0, 0, 3]
  2188.       Position       [442, 155, 488, 210]
  2189.       Orientation       "down"
  2190.       NamePlacement       "alternate"
  2191.       AttributesFormatString  "\n"
  2192.       SourceBlock       "powerlib/Elements/Three-PhasenParallel RLC Loa"
  2193. "d"
  2194.       SourceType       "Three-Phase Parallel RLC Load"
  2195.       PhysicalDomain       "powersysdomain"
  2196.       SubClassName       "unknown"
  2197.       LeftPortType       "p1"
  2198.       RightPortType       "p1"
  2199.       LConnTagsString       "A|B|C"
  2200.       Configuration       "Delta"
  2201.       NominalVoltage       "480"
  2202.       NominalFrequency       "60"
  2203.       ActivePower       "0"
  2204.       InductivePower       "0"
  2205.       CapacitivePower       "75e3"
  2206.       Measurements       "None"
  2207.     }
  2208.     Block {
  2209.       BlockType       SubSystem
  2210.       Name       "PowernComputation"
  2211.       Ports       [0, 4]
  2212.       Position       [290, 490, 330, 555]
  2213.       TreatAsAtomicUnit       off
  2214.       MinAlgLoopOccurrences   off
  2215.       RTWSystemCode       "Auto"
  2216.       MaskHideContents       off
  2217.       Port {
  2218. PortNumber 1
  2219. Name "P Wind Turb.  (kW)"
  2220. RTWStorageClass "Auto"
  2221. DataLoggingNameMode "SignalName"
  2222.       }
  2223.       Port {
  2224. PortNumber 2
  2225. Name "P Sec. Load  (kW)"
  2226. RTWStorageClass "Auto"
  2227. DataLoggingNameMode "SignalName"
  2228.       }
  2229.       Port {
  2230. PortNumber 3
  2231. Name "P Main Load (kW)"
  2232. RTWStorageClass "Auto"
  2233. DataLoggingNameMode "SignalName"
  2234.       }
  2235.       Port {
  2236. PortNumber 4
  2237. Name "Q Synch.  Condenser (kvar)"
  2238. RTWStorageClass "Auto"
  2239. DataLoggingNameMode "SignalName"
  2240.       }
  2241.       System {
  2242. Name "PowernComputation"
  2243. Location [191, 278, 988, 524]
  2244. Open off
  2245. ModelBrowserVisibility off
  2246. ModelBrowserWidth 200
  2247. ScreenColor "white"
  2248. PaperOrientation "landscape"
  2249. PaperPositionMode "auto"
  2250. PaperType "usletter"
  2251. PaperUnits "inches"
  2252. ZoomFactor "100"
  2253. Block {
  2254.   BlockType   Reference
  2255.   Name   "3-phase nInstantaneous nActive & Reactive"
  2256. " Power"
  2257.   Ports   [2, 1]
  2258.   Position   [495, 19, 545, 66]
  2259.   SourceBlock   "powerlib_extras/Measurements/3-phase nInst"
  2260. "antaneous nActive & Reactive Power"
  2261.   SourceType   "3-phase instantaneous active and reactive p"
  2262. "ower"
  2263.   ShowPortLabels   on
  2264. }
  2265. Block {
  2266.   BlockType   Reference
  2267.   Name   "3-phase nInstantaneous nActive & Reactive"
  2268. " Power1"
  2269.   Ports   [2, 1]
  2270.   Position   [150, 129, 200, 176]
  2271.   SourceBlock   "powerlib_extras/Measurements/3-phase nInst"
  2272. "antaneous nActive & Reactive Power"
  2273.   SourceType   "3-phase instantaneous active and reactive p"
  2274. "ower"
  2275.   ShowPortLabels   on
  2276. }
  2277. Block {
  2278.   BlockType   Reference
  2279.   Name   "3-phase nInstantaneous nActive & Reactive"
  2280. " Power2"
  2281.   Ports   [2, 1]
  2282.   Position   [155, 14, 205, 61]
  2283.   SourceBlock   "powerlib_extras/Measurements/3-phase nInst"
  2284. "antaneous nActive & Reactive Power"
  2285.   SourceType   "3-phase instantaneous active and reactive p"
  2286. "ower"
  2287.   ShowPortLabels   on
  2288. }
  2289. Block {
  2290.   BlockType   Reference
  2291.   Name   "3-phase nInstantaneous nActive & Reactive"
  2292. " Power3"
  2293.   Ports   [2, 1]
  2294.   Position   [500, 129, 550, 176]
  2295.   SourceBlock   "powerlib_extras/Measurements/3-phase nInst"
  2296. "antaneous nActive & Reactive Power"
  2297.   SourceType   "3-phase instantaneous active and reactive p"
  2298. "ower"
  2299.   ShowPortLabels   on
  2300. }
  2301. Block {
  2302.   BlockType   From
  2303.   Name   "From1"
  2304.   Position   [15, 132, 75, 148]
  2305.   ShowName   off
  2306.   CloseFcn   "tagdialog Close"
  2307.   GotoTag   "Vabc_Load"
  2308. }
  2309. Block {
  2310.   BlockType   From
  2311.   Name   "From2"
  2312.   Position   [15, 157, 75, 173]
  2313.   ShowName   off
  2314.   CloseFcn   "tagdialog Close"
  2315.   GotoTag   "Iabc_Load"
  2316. }
  2317. Block {
  2318.   BlockType   From
  2319.   Name   "From3"
  2320.   Position   [15, 17, 75, 33]
  2321.   ShowName   off
  2322.   CloseFcn   "tagdialog Close"
  2323.   GotoTag   "Vabc_WT"
  2324. }
  2325. Block {
  2326.   BlockType   From
  2327.   Name   "From4"
  2328.   Position   [15, 42, 75, 58]
  2329.   ShowName   off
  2330.   CloseFcn   "tagdialog Close"
  2331.   GotoTag   "Iabc_WT"
  2332. }
  2333. Block {
  2334.   BlockType   From
  2335.   Name   "From5"
  2336.   Position   [365, 22, 425, 38]
  2337.   ShowName   off
  2338.   CloseFcn   "tagdialog Close"
  2339.   GotoTag   "Vabc_SL"
  2340. }
  2341. Block {
  2342.   BlockType   From
  2343.   Name   "From6"
  2344.   Position   [365, 47, 425, 63]
  2345.   ShowName   off
  2346.   CloseFcn   "tagdialog Close"
  2347.   GotoTag   "Iabc_SL"
  2348. }
  2349. Block {
  2350.   BlockType   From
  2351.   Name   "From7"
  2352.   Position   [365, 132, 425, 148]
  2353.   ShowName   off
  2354.   CloseFcn   "tagdialog Close"
  2355.   GotoTag   "Vabc_SC"
  2356. }
  2357. Block {
  2358.   BlockType   From
  2359.   Name   "From8"
  2360.   Position   [365, 157, 425, 173]
  2361.   ShowName   off
  2362.   CloseFcn   "tagdialog Close"
  2363.   GotoTag   "Iabc_SC"
  2364. }
  2365. Block {
  2366.   BlockType   Gain
  2367.   Name   "Gain1"
  2368.   Position   [90, 131, 120, 149]
  2369.   ShowName   off
  2370.   Gain   "480/sqrt(3)*sqrt(2)"
  2371. }
  2372. Block {
  2373.   BlockType   Gain
  2374.   Name   "Gain10"
  2375.   Position   [270, 144, 285, 166]
  2376.   ShowName   off
  2377.   Gain   "1/1000"
  2378. }
  2379. Block {
  2380.   BlockType   Gain
  2381.   Name   "Gain11"
  2382.   Position   [615, 34, 630, 56]
  2383.   ShowName   off
  2384.   Gain   "1/1000"
  2385. }
  2386. Block {
  2387.   BlockType   Gain
  2388.   Name   "Gain12"
  2389.   Position   [620, 144, 635, 166]
  2390.   ShowName   off
  2391.   Gain   "1/1000"
  2392. }
  2393. Block {
  2394.   BlockType   Gain
  2395.   Name   "Gain2"
  2396.   Position   [445, 21, 475, 39]
  2397.   ShowName   off
  2398.   Gain   "480/sqrt(3)*sqrt(2)"
  2399. }
  2400. Block {
  2401.   BlockType   Gain
  2402.   Name   "Gain3"
  2403.   Position   [445, 131, 475, 149]
  2404.   ShowName   off
  2405.   Gain   "480/sqrt(3)*sqrt(2)"
  2406. }
  2407. Block {
  2408.   BlockType   Gain
  2409.   Name   "Gain4"
  2410.   Position   [95, 16, 125, 34]
  2411.   ShowName   off
  2412.   Gain   "480/sqrt(3)*sqrt(2)"
  2413. }
  2414. Block {
  2415.   BlockType   Gain
  2416.   Name   "Gain5"
  2417.   Position   [95, 41, 125, 59]
  2418.   ShowName   off
  2419.   Gain   "275e3/(sqrt(3)*480)*sqrt(2)"
  2420. }
  2421. Block {
  2422.   BlockType   Gain
  2423.   Name   "Gain6"
  2424.   Position   [90, 156, 120, 174]
  2425.   ShowName   off
  2426.   Gain   "275e3/(sqrt(3)*480)*sqrt(2)"
  2427. }
  2428. Block {
  2429.   BlockType   Gain
  2430.   Name   "Gain7"
  2431.   Position   [445, 46, 475, 64]
  2432.   ShowName   off
  2433.   Gain   "275e3/(sqrt(3)*480)*sqrt(2)"
  2434. }
  2435. Block {
  2436.   BlockType   Gain
  2437.   Name   "Gain8"
  2438.   Position   [270, 29, 285, 51]
  2439.   ShowName   off
  2440.   Gain   "-1/1000"
  2441. }
  2442. Block {
  2443.   BlockType   Gain
  2444.   Name   "Gain9"
  2445.   Position   [445, 156, 475, 174]
  2446.   ShowName   off
  2447.   Gain   "300e3/(sqrt(3)*480)*sqrt(2)"
  2448. }
  2449. Block {
  2450.   BlockType   Selector
  2451.   Name   "Selector"
  2452.   Ports   [1, 1]
  2453.   Position   [565, 26, 595, 64]
  2454.   Elements   "[1]"
  2455.   InputPortWidth   "2"
  2456. }
  2457. Block {
  2458.   BlockType   Selector
  2459.   Name   "Selector1"
  2460.   Ports   [1, 1]
  2461.   Position   [220, 136, 250, 174]
  2462.   Elements   "[1]"
  2463.   InputPortWidth   "2"
  2464. }
  2465. Block {
  2466.   BlockType   Selector
  2467.   Name   "Selector2"
  2468.   Ports   [1, 1]
  2469.   Position   [225, 21, 255, 59]
  2470.   Elements   "[1]"
  2471.   InputPortWidth   "2"
  2472. }
  2473. Block {
  2474.   BlockType   Selector
  2475.   Name   "Selector3"
  2476.   Ports   [1, 1]
  2477.   Position   [570, 136, 600, 174]
  2478.   Elements   "[2]"
  2479.   InputPortWidth   "2"
  2480. }
  2481. Block {
  2482.   BlockType   Outport
  2483.   Name   "P_WT"
  2484.   Position   [305, 33, 335, 47]
  2485.   IconDisplay   "Port number"
  2486.   BusOutputAsStruct   off
  2487. }
  2488. Block {
  2489.   BlockType   Outport
  2490.   Name   "P_SL"
  2491.   Position   [660, 38, 690, 52]
  2492.   Port   "2"
  2493.   IconDisplay   "Port number"
  2494.   BusOutputAsStruct   off
  2495. }
  2496. Block {
  2497.   BlockType   Outport
  2498.   Name   "P_Load"
  2499.   Position   [305, 148, 335, 162]
  2500.   Port   "3"
  2501.   IconDisplay   "Port number"
  2502.   BusOutputAsStruct   off
  2503. }
  2504. Block {
  2505.   BlockType   Outport
  2506.   Name   "Q_SC"
  2507.   Position   [660, 148, 690, 162]
  2508.   Port   "4"
  2509.   IconDisplay   "Port number"
  2510.   BusOutputAsStruct   off
  2511. }
  2512. Line {
  2513.   SrcBlock   "3-phase nInstantaneous nActive & Reactive"
  2514. " Power"
  2515.   SrcPort   1
  2516.   DstBlock   "Selector"
  2517.   DstPort   1
  2518. }
  2519. Line {
  2520.   SrcBlock   "Selector"
  2521.   SrcPort   1
  2522.   DstBlock   "Gain11"
  2523.   DstPort   1
  2524. }
  2525. Line {
  2526.   SrcBlock   "3-phase nInstantaneous nActive & Reactive"
  2527. " Power1"
  2528.   SrcPort   1
  2529.   DstBlock   "Selector1"
  2530.   DstPort   1
  2531. }
  2532. Line {
  2533.   SrcBlock   "3-phase nInstantaneous nActive & Reactive"
  2534. " Power2"
  2535.   SrcPort   1
  2536.   DstBlock   "Selector2"
  2537.   DstPort   1
  2538. }
  2539. Line {
  2540.   SrcBlock   "From3"
  2541.   SrcPort   1
  2542.   DstBlock   "Gain4"
  2543.   DstPort   1
  2544. }
  2545. Line {
  2546.   SrcBlock   "From4"
  2547.   SrcPort   1
  2548.   DstBlock   "Gain5"
  2549.   DstPort   1
  2550. }
  2551. Line {
  2552.   SrcBlock   "3-phase nInstantaneous nActive & Reactive"
  2553. " Power3"
  2554.   SrcPort   1
  2555.   DstBlock   "Selector3"
  2556.   DstPort   1
  2557. }
  2558. Line {
  2559.   SrcBlock   "Gain4"
  2560.   SrcPort   1
  2561.   DstBlock   "3-phase nInstantaneous nActive & Reactive"
  2562. " Power2"
  2563.   DstPort   1
  2564. }
  2565. Line {
  2566.   SrcBlock   "Gain5"
  2567.   SrcPort   1
  2568.   DstBlock   "3-phase nInstantaneous nActive & Reactive"
  2569. " Power2"
  2570.   DstPort   2
  2571. }
  2572. Line {
  2573.   SrcBlock   "From1"
  2574.   SrcPort   1
  2575.   DstBlock   "Gain1"
  2576.   DstPort   1
  2577. }
  2578. Line {
  2579.   SrcBlock   "From2"
  2580.   SrcPort   1
  2581.   DstBlock   "Gain6"
  2582.   DstPort   1
  2583. }
  2584. Line {
  2585.   SrcBlock   "Gain1"
  2586.   SrcPort   1
  2587.   DstBlock   "3-phase nInstantaneous nActive & Reactive"
  2588. " Power1"
  2589.   DstPort   1
  2590. }
  2591. Line {
  2592.   SrcBlock   "Gain6"
  2593.   SrcPort   1
  2594.   DstBlock   "3-phase nInstantaneous nActive & Reactive"
  2595. " Power1"
  2596.   DstPort   2
  2597. }
  2598. Line {
  2599.   SrcBlock   "From5"
  2600.   SrcPort   1
  2601.   DstBlock   "Gain2"
  2602.   DstPort   1
  2603. }
  2604. Line {
  2605.   SrcBlock   "From6"
  2606.   SrcPort   1
  2607.   DstBlock   "Gain7"
  2608.   DstPort   1
  2609. }
  2610. Line {
  2611.   SrcBlock   "Gain2"
  2612.   SrcPort   1
  2613.   DstBlock   "3-phase nInstantaneous nActive & Reactive"
  2614. " Power"
  2615.   DstPort   1
  2616. }
  2617. Line {
  2618.   SrcBlock   "Gain7"
  2619.   SrcPort   1
  2620.   DstBlock   "3-phase nInstantaneous nActive & Reactive"
  2621. " Power"
  2622.   DstPort   2
  2623. }
  2624. Line {
  2625.   SrcBlock   "Selector1"
  2626.   SrcPort   1
  2627.   DstBlock   "Gain10"
  2628.   DstPort   1
  2629. }
  2630. Line {
  2631.   SrcBlock   "Selector2"
  2632.   SrcPort   1
  2633.   DstBlock   "Gain8"
  2634.   DstPort   1
  2635. }
  2636. Line {
  2637.   SrcBlock   "Gain8"
  2638.   SrcPort   1
  2639.   DstBlock   "P_WT"
  2640.   DstPort   1
  2641. }
  2642. Line {
  2643.   SrcBlock   "Selector3"
  2644.   SrcPort   1
  2645.   DstBlock   "Gain12"
  2646.   DstPort   1
  2647. }
  2648. Line {
  2649.   SrcBlock   "From7"
  2650.   SrcPort   1
  2651.   DstBlock   "Gain3"
  2652.   DstPort   1
  2653. }
  2654. Line {
  2655.   SrcBlock   "From8"
  2656.   SrcPort   1
  2657.   DstBlock   "Gain9"
  2658.   DstPort   1
  2659. }
  2660. Line {
  2661.   SrcBlock   "Gain3"
  2662.   SrcPort   1
  2663.   DstBlock   "3-phase nInstantaneous nActive & Reactive"
  2664. " Power3"
  2665.   DstPort   1
  2666. }
  2667. Line {
  2668.   SrcBlock   "Gain9"
  2669.   SrcPort   1
  2670.   DstBlock   "3-phase nInstantaneous nActive & Reactive"
  2671. " Power3"
  2672.   DstPort   2
  2673. }
  2674. Line {
  2675.   SrcBlock   "Gain10"
  2676.   SrcPort   1
  2677.   DstBlock   "P_Load"
  2678.   DstPort   1
  2679. }
  2680. Line {
  2681.   SrcBlock   "Gain11"
  2682.   SrcPort   1
  2683.   DstBlock   "P_SL"
  2684.   DstPort   1
  2685. }
  2686. Line {
  2687.   SrcBlock   "Gain12"
  2688.   SrcPort   1
  2689.   DstBlock   "Q_SC"
  2690.   DstPort   1
  2691. }
  2692.       }
  2693.     }
  2694.     Block {
  2695.       BlockType       Reference
  2696.       Name       "SC"
  2697.       Ports       [0, 0, 0, 0, 0, 3, 3]
  2698.       Position       [215, 78, 220, 142]
  2699.       BackgroundColor       "black"
  2700.       SourceBlock       "powerlib/Measurements/Three-PhasenV-I Measurem"
  2701. "ent"
  2702.       SourceType       "Three-Phase VI Measurement"
  2703.       ShowPortLabels       on
  2704.       VoltageMeasurement      "phase-to-ground"
  2705.       SetLabelV       on
  2706.       LabelV       "Vabc_SC"
  2707.       Vpu       on
  2708.       CurrentMeasurement      "yes"
  2709.       SetLabelI       on
  2710.       LabelI       "Iabc_SC"
  2711.       Ipu       on
  2712.       Pbase       "300e3"
  2713.       Vbase       "480"
  2714.       OutputType       "Magnitude"
  2715.       PhasorSimulation       off
  2716.       PSBequivalent       "0"
  2717.     }
  2718.     Block {
  2719.       BlockType       Reference
  2720.       Name       "SL"
  2721.       Ports       [0, 0, 0, 0, 0, 3, 3]
  2722.       Position       [330, 227, 335, 273]
  2723.       BackgroundColor       "black"
  2724.       SourceBlock       "powerlib/Measurements/Three-PhasenV-I Measurem"
  2725. "ent"
  2726.       SourceType       "Three-Phase VI Measurement"
  2727.       ShowPortLabels       on
  2728.       VoltageMeasurement      "phase-to-ground"
  2729.       SetLabelV       on
  2730.       LabelV       "Vabc_SL"
  2731.       Vpu       on
  2732.       CurrentMeasurement      "yes"
  2733.       SetLabelI       on
  2734.       LabelI       "Iabc_SL"
  2735.       Ipu       on
  2736.       Pbase       "275e3"
  2737.       Vbase       "480"
  2738.       OutputType       "Magnitude"
  2739.       PhasorSimulation       off
  2740.       PSBequivalent       "0"
  2741.     }
  2742.     Block {
  2743.       BlockType       Scope
  2744.       Name       "Scope1"
  2745.       Ports       [4]
  2746.       Position       [230, 486, 270, 564]
  2747.       BackgroundColor       "green"
  2748.       Floating       off
  2749.       Location       [27, 91, 495, 693]
  2750.       Open       off
  2751.       NumInputPorts       "4"
  2752.       ZoomMode       "xonly"
  2753.       List {
  2754. ListType AxesTitles
  2755. axes1 "%<SignalLabel>"
  2756. axes2 "%<SignalLabel>"
  2757. axes3 "%<SignalLabel>"
  2758. axes4 "%<SignalLabel>"
  2759.       }
  2760.       TimeRange       "5"
  2761.       YMin       "-1.25~-0.75~59.8~1.008"
  2762.       YMax       "1.25~0.75~60.1~1.013"
  2763.       SaveName       "Vabc"
  2764.       DataFormat       "StructureWithTime"
  2765.       LimitDataPoints       off
  2766.       SampleTime       "0"
  2767.     }
  2768.     Block {
  2769.       BlockType       Scope
  2770.       Name       "Scope2"
  2771.       Ports       [4]
  2772.       Position       [495, 488, 535, 557]
  2773.       BackgroundColor       "green"
  2774.       Floating       off
  2775.       Location       [510, 92, 1023, 694]
  2776.       Open       off
  2777.       NumInputPorts       "4"
  2778.       ZoomMode       "yonly"
  2779.       List {
  2780. ListType AxesTitles
  2781. axes1 "%<SignalLabel>"
  2782. axes2 "%<SignalLabel>"
  2783. axes3 "%<SignalLabel>"
  2784. axes4 "%<SignalLabel>"
  2785.       }
  2786.       TimeRange       "5"
  2787.       YMin       "180~100~50~18"
  2788.       YMax       "240~160~80~30"
  2789.       SaveName       "Power"
  2790.       DataFormat       "Array"
  2791.       LimitDataPoints       off
  2792.       SampleTime       "0"
  2793.     }
  2794.     Block {
  2795.       BlockType       SubSystem
  2796.       Name       "SecondarynLoadn(0-446.25 kW)"
  2797.       Ports       [1, 0, 0, 0, 0, 3]
  2798.       Position       [365, 380, 430, 450]
  2799.       Orientation       "down"
  2800.       BackgroundColor       "yellow"
  2801.       DropShadow       on
  2802.       TreatAsAtomicUnit       off
  2803.       MinAlgLoopOccurrences   off
  2804.       RTWSystemCode       "Auto"
  2805.       MaskHideContents       off
  2806.       MaskType       "8-step Variable Load"
  2807.       MaskDescription       "This block implements a variable, three-phase r"
  2808. "esistive load. The load variation uses an eight-bit binary progression so tha"
  2809. "t the load power can be varied by steps from 0 to 255*Pstep.nnThe eight thr"
  2810. "ee-phase resistors are connected in series with ideal switches simulating for"
  2811. "ced-commutated power electronic switches.nnThe Pulses input is a vector con"
  2812. "taining the eight bits (0/1) controlling the eight three-phase switches. Firs"
  2813. "t value is the less significant bit."
  2814.       MaskPromptString       "Nominal L-L voltage (Vrms):|Nominal frequency ("
  2815. "Hz):|Power per step Pstep (W):|Initial power  (W) :"
  2816.       MaskStyleString       "edit,edit,edit,edit"
  2817.       MaskTunableValueString  "on,on,on,on"
  2818.       MaskCallbackString      "|||"
  2819.       MaskEnableString       "on,on,on,on"
  2820.       MaskVisibilityString    "on,on,on,on"
  2821.       MaskToolTipString       "on,on,on,on"
  2822.       MaskVarAliasString      ",,,"
  2823.       MaskVariables       "Vphase_phase_lissage=@1;Freq=@2;P_lissage_min=@"
  2824. "3;Pin_3phase=@4;"
  2825.       MaskInitialization      "Ron_switch=1e-6;nRs_snubber=inf;nCs_snubber=0"
  2826. ";nn_niveaux=8;nPmax=((2^n_niveaux)-1)*P_lissage_min;nPin_normalise=min([(P"
  2827. "in_3phase/Pmax)*((2^n_niveaux)-1) ((2^n_niveaux)-1)]);ndiscret1=pow2(0:-1:-("
  2828. "n_niveaux-1))*Pin_normalise;ndiscret2=floor(discret1);nStatus=rem(discret2,"
  2829. "2);"
  2830.       MaskIconFrame       on
  2831.       MaskIconOpaque       on
  2832.       MaskIconRotate       "none"
  2833.       MaskIconUnits       "autoscale"
  2834.       MaskValueString       "480|60|1.75e3|50e3"
  2835.       MaskTabNameString       ",,,"
  2836.       System {
  2837. Name "SecondarynLoadn(0-446.25 kW)"
  2838. Location [82, 75, 498, 666]
  2839. Open off
  2840. ModelBrowserVisibility off
  2841. ModelBrowserWidth 200
  2842. ScreenColor "white"
  2843. PaperOrientation "landscape"
  2844. PaperPositionMode "auto"
  2845. PaperType "usletter"
  2846. PaperUnits "inches"
  2847. ZoomFactor "100"
  2848. Block {
  2849.   BlockType   Inport
  2850.   Name   "Control"
  2851.   Position   [30, 203, 60, 217]
  2852.   IconDisplay   "Port number"
  2853. }
  2854. Block {
  2855.   BlockType   Demux
  2856.   Name   "Demux"
  2857.   Ports   [1, 8]
  2858.   Position   [100, 27, 105, 388]
  2859.   BackgroundColor   "black"
  2860.   ShowName   off
  2861.   Outputs   "8"
  2862. }
  2863. Block {
  2864.   BlockType   SubSystem
  2865.   Name   "ResistivenLoads"
  2866.   Ports   [0, 0, 0, 0, 0, 24]
  2867.   Position   [285, 34, 320, 516]
  2868.   TreatAsAtomicUnit   off
  2869.   MinAlgLoopOccurrences   off
  2870.   RTWSystemCode   "Auto"
  2871.   MaskHideContents   off
  2872.   System {
  2873.     Name     "ResistivenLoads"
  2874.     Location     [76, 75, 786, 589]
  2875.     Open     off
  2876.     ModelBrowserVisibility  off
  2877.     ModelBrowserWidth     200
  2878.     ScreenColor     "white"
  2879.     PaperOrientation     "landscape"
  2880.     PaperPositionMode     "auto"
  2881.     PaperType     "usletter"
  2882.     PaperUnits     "inches"
  2883.     ZoomFactor     "100"
  2884.     Block {
  2885.       BlockType       Reference
  2886.       Name       "Bit 0"
  2887.       Ports       [0, 0, 0, 0, 0, 3]
  2888.       Position       [106, 170, 174, 220]
  2889.       Orientation       "down"
  2890.       AttributesFormatString  "\n"
  2891.       SourceBlock       "powerlib/Elements/Three-PhasenParallel"
  2892. " RLC Load"
  2893.       SourceType       "Three-Phase Parallel RLC Load"
  2894.       PhysicalDomain       "powersysdomain"
  2895.       SubClassName       "unknown"
  2896.       LeftPortType       "p1"
  2897.       RightPortType       "p1"
  2898.       LConnTagsString       "A|B|C"
  2899.       Configuration       "Y (grounded)"
  2900.       NominalVoltage       "Vphase_phase_lissage"
  2901.       NominalFrequency       "Freq"
  2902.       ActivePower       "P_lissage_min"
  2903.       InductivePower       "0"
  2904.       CapacitivePower       "0"
  2905.       Measurements       "None"
  2906.     }
  2907.     Block {
  2908.       BlockType       Reference
  2909.       Name       "Bit 1"
  2910.       Ports       [0, 0, 0, 0, 0, 3]
  2911.       Position       [231, 170, 299, 220]
  2912.       Orientation       "down"
  2913.       AttributesFormatString  "\n"
  2914.       SourceBlock       "powerlib/Elements/Three-PhasenParallel"
  2915. " RLC Load"
  2916.       SourceType       "Three-Phase Parallel RLC Load"
  2917.       PhysicalDomain       "powersysdomain"
  2918.       SubClassName       "unknown"
  2919.       LeftPortType       "p1"
  2920.       RightPortType       "p1"
  2921.       LConnTagsString       "A|B|C"
  2922.       Configuration       "Y (grounded)"
  2923.       NominalVoltage       "Vphase_phase_lissage"
  2924.       NominalFrequency       "Freq"
  2925.       ActivePower       "2*P_lissage_min"
  2926.       InductivePower       "0"
  2927.       CapacitivePower       "0"
  2928.       Measurements       "None"
  2929.     }
  2930.     Block {
  2931.       BlockType       Reference
  2932.       Name       "Bit 2"
  2933.       Ports       [0, 0, 0, 0, 0, 3]
  2934.       Position       [361, 170, 429, 220]
  2935.       Orientation       "down"
  2936.       AttributesFormatString  "\n"
  2937.       SourceBlock       "powerlib/Elements/Three-PhasenParallel"
  2938. " RLC Load"
  2939.       SourceType       "Three-Phase Parallel RLC Load"
  2940.       PhysicalDomain       "powersysdomain"
  2941.       SubClassName       "unknown"
  2942.       LeftPortType       "p1"
  2943.       RightPortType       "p1"
  2944.       LConnTagsString       "A|B|C"
  2945.       Configuration       "Y (grounded)"
  2946.       NominalVoltage       "Vphase_phase_lissage"
  2947.       NominalFrequency       "Freq"
  2948.       ActivePower       "2^2*P_lissage_min"
  2949.       InductivePower       "0"
  2950.       CapacitivePower       "0"
  2951.       Measurements       "None"
  2952.     }
  2953.     Block {
  2954.       BlockType       Reference
  2955.       Name       "Bit 3"
  2956.       Ports       [0, 0, 0, 0, 0, 3]
  2957.       Position       [486, 170, 554, 220]
  2958.       Orientation       "down"
  2959.       AttributesFormatString  "\n"
  2960.       SourceBlock       "powerlib/Elements/Three-PhasenParallel"
  2961. " RLC Load"
  2962.       SourceType       "Three-Phase Parallel RLC Load"
  2963.       PhysicalDomain       "powersysdomain"
  2964.       SubClassName       "unknown"
  2965.       LeftPortType       "p1"
  2966.       RightPortType       "p1"
  2967.       LConnTagsString       "A|B|C"
  2968.       Configuration       "Y (grounded)"
  2969.       NominalVoltage       "Vphase_phase_lissage"
  2970.       NominalFrequency       "Freq"
  2971.       ActivePower       "2^3*P_lissage_min"
  2972.       InductivePower       "0"
  2973.       CapacitivePower       "0"
  2974.       Measurements       "None"
  2975.     }
  2976.     Block {
  2977.       BlockType       Reference
  2978.       Name       "Bit 4"
  2979.       Ports       [0, 0, 0, 0, 0, 3]
  2980.       Position       [106, 355, 174, 405]
  2981.       Orientation       "down"
  2982.       AttributesFormatString  "\n"
  2983.       SourceBlock       "powerlib/Elements/Three-PhasenParallel"
  2984. " RLC Load"
  2985.       SourceType       "Three-Phase Parallel RLC Load"
  2986.       PhysicalDomain       "powersysdomain"
  2987.       SubClassName       "unknown"
  2988.       LeftPortType       "p1"
  2989.       RightPortType       "p1"
  2990.       LConnTagsString       "A|B|C"
  2991.       Configuration       "Y (grounded)"
  2992.       NominalVoltage       "Vphase_phase_lissage"
  2993.       NominalFrequency       "Freq"
  2994.       ActivePower       "2^4*P_lissage_min"
  2995.       InductivePower       "0"
  2996.       CapacitivePower       "0"
  2997.       Measurements       "None"
  2998.     }
  2999.     Block {
  3000.       BlockType       Reference
  3001.       Name       "Bit 5"
  3002.       Ports       [0, 0, 0, 0, 0, 3]
  3003.       Position       [231, 355, 299, 405]
  3004.       Orientation       "down"
  3005.       AttributesFormatString  "\n"
  3006.       SourceBlock       "powerlib/Elements/Three-PhasenParallel"
  3007. " RLC Load"
  3008.       SourceType       "Three-Phase Parallel RLC Load"
  3009.       PhysicalDomain       "powersysdomain"
  3010.       SubClassName       "unknown"
  3011.       LeftPortType       "p1"
  3012.       RightPortType       "p1"
  3013.       LConnTagsString       "A|B|C"
  3014.       Configuration       "Y (grounded)"
  3015.       NominalVoltage       "Vphase_phase_lissage"
  3016.       NominalFrequency       "Freq"
  3017.       ActivePower       "2^5*P_lissage_min"
  3018.       InductivePower       "0"
  3019.       CapacitivePower       "0"
  3020.       Measurements       "None"
  3021.     }
  3022.     Block {
  3023.       BlockType       Reference
  3024.       Name       "Bit 6"
  3025.       Ports       [0, 0, 0, 0, 0, 3]
  3026.       Position       [361, 355, 429, 405]
  3027.       Orientation       "down"
  3028.       AttributesFormatString  "\n"
  3029.       SourceBlock       "powerlib/Elements/Three-PhasenParallel"
  3030. " RLC Load"
  3031.       SourceType       "Three-Phase Parallel RLC Load"
  3032.       PhysicalDomain       "powersysdomain"
  3033.       SubClassName       "unknown"
  3034.       LeftPortType       "p1"
  3035.       RightPortType       "p1"
  3036.       LConnTagsString       "A|B|C"
  3037.       Configuration       "Y (grounded)"
  3038.       NominalVoltage       "Vphase_phase_lissage"
  3039.       NominalFrequency       "Freq"
  3040.       ActivePower       "2^6*P_lissage_min"
  3041.       InductivePower       "0"
  3042.       CapacitivePower       "0"
  3043.       Measurements       "None"
  3044.     }
  3045.     Block {
  3046.       BlockType       Reference
  3047.       Name       "Bit 7"
  3048.       Ports       [0, 0, 0, 0, 0, 3]
  3049.       Position       [486, 355, 554, 405]
  3050.       Orientation       "down"
  3051.       AttributesFormatString  "\n"
  3052.       SourceBlock       "powerlib/Elements/Three-PhasenParallel"
  3053. " RLC Load"
  3054.       SourceType       "Three-Phase Parallel RLC Load"
  3055.       PhysicalDomain       "powersysdomain"
  3056.       SubClassName       "unknown"
  3057.       LeftPortType       "p1"
  3058.       RightPortType       "p1"
  3059.       LConnTagsString       "A|B|C"
  3060.       Configuration       "Y (grounded)"
  3061.       NominalVoltage       "Vphase_phase_lissage"
  3062.       NominalFrequency       "Freq"
  3063.       ActivePower       "2^7*P_lissage_min"
  3064.       InductivePower       "0"
  3065.       CapacitivePower       "0"
  3066.       Measurements       "None"
  3067.     }
  3068.     Block {
  3069.       BlockType       PMIOPort
  3070.       Name       "A0"
  3071.       Position       [113, 55, 127, 75]
  3072.       Orientation       "down"
  3073.       Port       "1"
  3074.       Side       "Left"
  3075.     }
  3076.     Block {
  3077.       BlockType       PMIOPort
  3078.       Name       "B0"
  3079.       Position       [133, 95, 147, 115]
  3080.       Orientation       "down"
  3081.       Port       "2"
  3082.       Side       "Left"
  3083.     }
  3084.     Block {
  3085.       BlockType       PMIOPort
  3086.       Name       "C0"
  3087.       Position       [153, 130, 167, 150]
  3088.       Orientation       "down"
  3089.       Port       "3"
  3090.       Side       "Left"
  3091.     }
  3092.     Block {
  3093.       BlockType       PMIOPort
  3094.       Name       "A1"
  3095.       Position       [238, 55, 252, 75]
  3096.       Orientation       "down"
  3097.       Port       "4"
  3098.       Side       "Left"
  3099.     }
  3100.     Block {
  3101.       BlockType       PMIOPort
  3102.       Name       "B1"
  3103.       Position       [258, 95, 272, 115]
  3104.       Orientation       "down"
  3105.       Port       "5"
  3106.       Side       "Left"
  3107.     }
  3108.     Block {
  3109.       BlockType       PMIOPort
  3110.       Name       "C1"
  3111.       Position       [278, 130, 292, 150]
  3112.       Orientation       "down"
  3113.       Port       "6"
  3114.       Side       "Left"
  3115.     }
  3116.     Block {
  3117.       BlockType       PMIOPort
  3118.       Name       "A2"
  3119.       Position       [368, 55, 382, 75]
  3120.       Orientation       "down"
  3121.       Port       "7"
  3122.       Side       "Left"
  3123.     }
  3124.     Block {
  3125.       BlockType       PMIOPort
  3126.       Name       "B2"
  3127.       Position       [388, 95, 402, 115]
  3128.       Orientation       "down"
  3129.       Port       "8"
  3130.       Side       "Left"
  3131.     }
  3132.     Block {
  3133.       BlockType       PMIOPort
  3134.       Name       "C2"
  3135.       Position       [408, 130, 422, 150]
  3136.       Orientation       "down"
  3137.       Port       "9"
  3138.       Side       "Left"
  3139.     }
  3140.     Block {
  3141.       BlockType       PMIOPort
  3142.       Name       "A3"
  3143.       Position       [493, 55, 507, 75]
  3144.       Orientation       "down"
  3145.       Port       "10"
  3146.       Side       "Left"
  3147.     }
  3148.     Block {
  3149.       BlockType       PMIOPort
  3150.       Name       "B3"
  3151.       Position       [513, 95, 527, 115]
  3152.       Orientation       "down"
  3153.       Port       "11"
  3154.       Side       "Left"
  3155.     }
  3156.     Block {
  3157.       BlockType       PMIOPort
  3158.       Name       "C3"
  3159.       Position       [533, 130, 547, 150]
  3160.       Orientation       "down"
  3161.       Port       "12"
  3162.       Side       "Left"
  3163.     }
  3164.     Block {
  3165.       BlockType       PMIOPort
  3166.       Name       "A4"
  3167.       Position       [113, 240, 127, 260]
  3168.       Orientation       "down"
  3169.       Port       "13"
  3170.       Side       "Left"
  3171.     }
  3172.     Block {
  3173.       BlockType       PMIOPort
  3174.       Name       "B4"
  3175.       Position       [133, 280, 147, 300]
  3176.       Orientation       "down"
  3177.       Port       "14"
  3178.       Side       "Left"
  3179.     }
  3180.     Block {
  3181.       BlockType       PMIOPort
  3182.       Name       "C4"
  3183.       Position       [153, 315, 167, 335]
  3184.       Orientation       "down"
  3185.       Port       "15"
  3186.       Side       "Left"
  3187.     }
  3188.     Block {
  3189.       BlockType       PMIOPort
  3190.       Name       "A5"
  3191.       Position       [238, 240, 252, 260]
  3192.       Orientation       "down"
  3193.       Port       "16"
  3194.       Side       "Left"
  3195.     }
  3196.     Block {
  3197.       BlockType       PMIOPort
  3198.       Name       "B5"
  3199.       Position       [258, 280, 272, 300]
  3200.       Orientation       "down"
  3201.       Port       "17"
  3202.       Side       "Left"
  3203.     }
  3204.     Block {
  3205.       BlockType       PMIOPort
  3206.       Name       "C5"
  3207.       Position       [278, 315, 292, 335]
  3208.       Orientation       "down"
  3209.       Port       "18"
  3210.       Side       "Left"
  3211.     }
  3212.     Block {
  3213.       BlockType       PMIOPort
  3214.       Name       "A6"
  3215.       Position       [368, 240, 382, 260]
  3216.       Orientation       "down"
  3217.       Port       "19"
  3218.       Side       "Left"
  3219.     }
  3220.     Block {
  3221.       BlockType       PMIOPort
  3222.       Name       "B6"
  3223.       Position       [388, 280, 402, 300]
  3224.       Orientation       "down"
  3225.       Port       "20"
  3226.       Side       "Left"
  3227.     }
  3228.     Block {
  3229.       BlockType       PMIOPort
  3230.       Name       "C6"
  3231.       Position       [408, 315, 422, 335]
  3232.       Orientation       "down"
  3233.       Port       "21"
  3234.       Side       "Left"
  3235.     }
  3236.     Block {
  3237.       BlockType       PMIOPort
  3238.       Name       "A7"
  3239.       Position       [493, 240, 507, 260]
  3240.       Orientation       "down"
  3241.       Port       "22"
  3242.       Side       "Left"
  3243.     }
  3244.     Block {
  3245.       BlockType       PMIOPort
  3246.       Name       "B7"
  3247.       Position       [513, 280, 527, 300]
  3248.       Orientation       "down"
  3249.       Port       "23"
  3250.       Side       "Left"
  3251.     }
  3252.     Block {
  3253.       BlockType       PMIOPort
  3254.       Name       "C7"
  3255.       Position       [533, 315, 547, 335]
  3256.       Orientation       "down"
  3257.       Port       "24"
  3258.       Side       "Left"
  3259.     }
  3260.     Line {
  3261.       LineType       "Connection"
  3262.       SrcBlock       "C7"
  3263.       SrcPort       RConn1
  3264.       DstBlock       "Bit 7"
  3265.       DstPort       LConn3
  3266.     }
  3267.     Line {
  3268.       LineType       "Connection"
  3269.       SrcBlock       "B7"
  3270.       SrcPort       RConn1
  3271.       DstBlock       "Bit 7"
  3272.       DstPort       LConn2
  3273.     }
  3274.     Line {
  3275.       LineType       "Connection"
  3276.       SrcBlock       "A7"
  3277.       SrcPort       RConn1
  3278.       DstBlock       "Bit 7"
  3279.       DstPort       LConn1
  3280.     }
  3281.     Line {
  3282.       LineType       "Connection"
  3283.       SrcBlock       "C6"
  3284.       SrcPort       RConn1
  3285.       DstBlock       "Bit 6"
  3286.       DstPort       LConn3
  3287.     }
  3288.     Line {
  3289.       LineType       "Connection"
  3290.       SrcBlock       "B6"
  3291.       SrcPort       RConn1
  3292.       DstBlock       "Bit 6"
  3293.       DstPort       LConn2
  3294.     }
  3295.     Line {
  3296.       LineType       "Connection"
  3297.       SrcBlock       "A6"
  3298.       SrcPort       RConn1
  3299.       DstBlock       "Bit 6"
  3300.       DstPort       LConn1
  3301.     }
  3302.     Line {
  3303.       LineType       "Connection"
  3304.       SrcBlock       "C5"
  3305.       SrcPort       RConn1
  3306.       DstBlock       "Bit 5"
  3307.       DstPort       LConn3
  3308.     }
  3309.     Line {
  3310.       LineType       "Connection"
  3311.       SrcBlock       "B5"
  3312.       SrcPort       RConn1
  3313.       DstBlock       "Bit 5"
  3314.       DstPort       LConn2
  3315.     }
  3316.     Line {
  3317.       LineType       "Connection"
  3318.       SrcBlock       "A5"
  3319.       SrcPort       RConn1
  3320.       DstBlock       "Bit 5"
  3321.       DstPort       LConn1
  3322.     }
  3323.     Line {
  3324.       LineType       "Connection"
  3325.       SrcBlock       "C4"
  3326.       SrcPort       RConn1
  3327.       DstBlock       "Bit 4"
  3328.       DstPort       LConn3
  3329.     }
  3330.     Line {
  3331.       LineType       "Connection"
  3332.       SrcBlock       "B4"
  3333.       SrcPort       RConn1
  3334.       DstBlock       "Bit 4"
  3335.       DstPort       LConn2
  3336.     }
  3337.     Line {
  3338.       LineType       "Connection"
  3339.       SrcBlock       "A4"
  3340.       SrcPort       RConn1
  3341.       DstBlock       "Bit 4"
  3342.       DstPort       LConn1
  3343.     }
  3344.     Line {
  3345.       LineType       "Connection"
  3346.       SrcBlock       "C3"
  3347.       SrcPort       RConn1
  3348.       DstBlock       "Bit 3"
  3349.       DstPort       LConn3
  3350.     }
  3351.     Line {
  3352.       LineType       "Connection"
  3353.       SrcBlock       "B3"
  3354.       SrcPort       RConn1
  3355.       DstBlock       "Bit 3"
  3356.       DstPort       LConn2
  3357.     }
  3358.     Line {
  3359.       LineType       "Connection"
  3360.       SrcBlock       "A3"
  3361.       SrcPort       RConn1
  3362.       DstBlock       "Bit 3"
  3363.       DstPort       LConn1
  3364.     }
  3365.     Line {
  3366.       LineType       "Connection"
  3367.       SrcBlock       "C2"
  3368.       SrcPort       RConn1
  3369.       DstBlock       "Bit 2"
  3370.       DstPort       LConn3
  3371.     }
  3372.     Line {
  3373.       LineType       "Connection"
  3374.       SrcBlock       "B2"
  3375.       SrcPort       RConn1
  3376.       DstBlock       "Bit 2"
  3377.       DstPort       LConn2
  3378.     }
  3379.     Line {
  3380.       LineType       "Connection"
  3381.       SrcBlock       "A2"
  3382.       SrcPort       RConn1
  3383.       DstBlock       "Bit 2"
  3384.       DstPort       LConn1
  3385.     }
  3386.     Line {
  3387.       LineType       "Connection"
  3388.       SrcBlock       "C1"
  3389.       SrcPort       RConn1
  3390.       DstBlock       "Bit 1"
  3391.       DstPort       LConn3
  3392.     }
  3393.     Line {
  3394.       LineType       "Connection"
  3395.       SrcBlock       "B1"
  3396.       SrcPort       RConn1
  3397.       DstBlock       "Bit 1"
  3398.       DstPort       LConn2
  3399.     }
  3400.     Line {
  3401.       LineType       "Connection"
  3402.       SrcBlock       "A1"
  3403.       SrcPort       RConn1
  3404.       DstBlock       "Bit 1"
  3405.       DstPort       LConn1
  3406.     }
  3407.     Line {
  3408.       LineType       "Connection"
  3409.       SrcBlock       "C0"
  3410.       SrcPort       RConn1
  3411.       DstBlock       "Bit 0"
  3412.       DstPort       LConn3
  3413.     }
  3414.     Line {
  3415.       LineType       "Connection"
  3416.       SrcBlock       "B0"
  3417.       SrcPort       RConn1
  3418.       DstBlock       "Bit 0"
  3419.       DstPort       LConn2
  3420.     }
  3421.     Line {
  3422.       LineType       "Connection"
  3423.       SrcBlock       "A0"
  3424.       SrcPort       RConn1
  3425.       DstBlock       "Bit 0"
  3426.       DstPort       LConn1
  3427.     }
  3428.   }
  3429. }
  3430. Block {
  3431.   BlockType   SubSystem
  3432.   Name   "Switches"
  3433.   Ports   [8, 0, 0, 0, 0, 3, 24]
  3434.   Position   [155, 17, 225, 533]
  3435.   TreatAsAtomicUnit   off
  3436.   MinAlgLoopOccurrences   off
  3437.   RTWSystemCode   "Auto"
  3438.   MaskHideContents   off
  3439.   System {
  3440.     Name     "Switches"
  3441.     Location     [566, 75, 1001, 745]
  3442.     Open     off
  3443.     ModelBrowserVisibility  off
  3444.     ModelBrowserWidth     200
  3445.     ScreenColor     "white"
  3446.     PaperOrientation     "landscape"
  3447.     PaperPositionMode     "auto"
  3448.     PaperType     "usletter"
  3449.     PaperUnits     "inches"
  3450.     ZoomFactor     "100"
  3451.     Block {
  3452.       BlockType       Inport
  3453.       Name       "P_ABC0"
  3454.       Position       [30, 43, 60, 57]
  3455.       IconDisplay       "Port number"
  3456.     }
  3457.     Block {
  3458.       BlockType       Inport
  3459.       Name       "P_ABC1"
  3460.       Position       [30, 143, 60, 157]
  3461.       Port       "2"
  3462.       IconDisplay       "Port number"
  3463.     }
  3464.     Block {
  3465.       BlockType       Inport
  3466.       Name       "P_ABC2"
  3467.       Position       [30, 243, 60, 257]
  3468.       Port       "3"
  3469.       IconDisplay       "Port number"
  3470.     }
  3471.     Block {
  3472.       BlockType       Inport
  3473.       Name       "P_ABC3"
  3474.       Position       [35, 343, 65, 357]
  3475.       Port       "4"
  3476.       IconDisplay       "Port number"
  3477.     }
  3478.     Block {
  3479.       BlockType       Inport
  3480.       Name       "P_ABC4"
  3481.       Position       [30, 443, 60, 457]
  3482.       Port       "5"
  3483.       IconDisplay       "Port number"
  3484.     }
  3485.     Block {
  3486.       BlockType       Inport
  3487.       Name       "P_ABC5"
  3488.       Position       [30, 543, 60, 557]
  3489.       Port       "6"
  3490.       IconDisplay       "Port number"
  3491.     }
  3492.     Block {
  3493.       BlockType       Inport
  3494.       Name       "P_ABC6"
  3495.       Position       [35, 643, 65, 657]
  3496.       Port       "7"
  3497.       IconDisplay       "Port number"
  3498.     }
  3499.     Block {
  3500.       BlockType       Inport
  3501.       Name       "P_ABC7"
  3502.       Position       [35, 743, 65, 757]
  3503.       Port       "8"
  3504.       IconDisplay       "Port number"
  3505.     }
  3506.     Block {
  3507.       BlockType       SubSystem
  3508.       Name       "Switches ABC0"
  3509.       Ports       [1, 0, 0, 0, 0, 3, 3]
  3510.       Position       [185, 37, 250, 123]
  3511.       TreatAsAtomicUnit       off
  3512.       MinAlgLoopOccurrences   off
  3513.       RTWSystemCode       "Auto"
  3514.       MaskHideContents       off
  3515.       System {
  3516. Name "Switches ABC0"
  3517. Location [152, 96, 612, 478]
  3518. Open off
  3519. ModelBrowserVisibility off
  3520. ModelBrowserWidth 200
  3521. ScreenColor "white"
  3522. PaperOrientation "landscape"
  3523. PaperPositionMode "auto"
  3524. PaperType "usletter"
  3525. PaperUnits "inches"
  3526. ZoomFactor "100"
  3527. Block {
  3528.   BlockType   Inport
  3529.   Name   "P_ABC"
  3530.   Position   [40, 178, 70, 192]
  3531.   IconDisplay   "Port number"
  3532. }
  3533. Block {
  3534.   BlockType   Demux
  3535.   Name   "Demux"
  3536.   Ports   [1, 3]
  3537.   Position   [95, 166, 100, 204]
  3538.   BackgroundColor   "black"
  3539.   ShowName   off
  3540.   Outputs   "3"
  3541. }
  3542. Block {
  3543.   BlockType   Reference
  3544.   Name   "Switch A"
  3545.   Ports   [1, 1, 0, 0, 0, 1, 1]
  3546.   Position   [225, 36, 270, 69]
  3547.   AttributesFormatString  "\n"
  3548.   SourceBlock   "powerlib/PowernElectronics/Ideal S"
  3549. "witch"
  3550.   SourceType   "Ideal Switch"
  3551.   ShowPortLabels   on
  3552.   Ron   "Ron_switch"
  3553.   Lon   "0"
  3554.   IC   "Status(1)"
  3555.   Rs   "Rs_snubber"
  3556.   Cs   "Cs_snubber"
  3557.   Measurements   off
  3558. }
  3559. Block {
  3560.   BlockType   Reference
  3561.   Name   "Switch B"
  3562.   Ports   [1, 1, 0, 0, 0, 1, 1]
  3563.   Position   [220, 176, 265, 209]
  3564.   AttributesFormatString  "\n"
  3565.   SourceBlock   "powerlib/PowernElectronics/Ideal S"
  3566. "witch"
  3567.   SourceType   "Ideal Switch"
  3568.   ShowPortLabels   on
  3569.   Ron   "Ron_switch"
  3570.   Lon   "0"
  3571.   IC   "Status(1)"
  3572.   Rs   "Rs_snubber"
  3573.   Cs   "Cs_snubber"
  3574.   Measurements   off
  3575. }
  3576. Block {
  3577.   BlockType   Reference
  3578.   Name   "Switch C"
  3579.   Ports   [1, 1, 0, 0, 0, 1, 1]
  3580.   Position   [220, 306, 265, 339]
  3581.   AttributesFormatString  "\n"
  3582.   SourceBlock   "powerlib/PowernElectronics/Ideal S"
  3583. "witch"
  3584.   SourceType   "Ideal Switch"
  3585.   ShowPortLabels   on
  3586.   Ron   "Ron_switch"
  3587.   Lon   "0"
  3588.   IC   "Status(1)"
  3589.   Rs   "Rs_snubber"
  3590.   Cs   "Cs_snubber"
  3591.   Measurements   off
  3592. }
  3593. Block {
  3594.   BlockType   PMIOPort
  3595.   Name   "A"
  3596.   Position   [165, 53, 195, 67]
  3597.   Port   "1"
  3598.   Side   "Left"
  3599. }
  3600. Block {
  3601.   BlockType   PMIOPort
  3602.   Name   "B"
  3603.   Position   [165, 193, 195, 207]
  3604.   Port   "2"
  3605.   Side   "Left"
  3606. }
  3607. Block {
  3608.   BlockType   PMIOPort
  3609.   Name   "C"
  3610.   Position   [165, 323, 195, 337]
  3611.   Port   "3"
  3612.   Side   "Left"
  3613. }
  3614. Block {
  3615.   BlockType   PMIOPort
  3616.   Name   "A "
  3617.   Position   [325, 48, 355, 62]
  3618.   Orientation   "left"
  3619.   Port   "4"
  3620.   Side   "Right"
  3621. }
  3622. Block {
  3623.   BlockType   PMIOPort
  3624.   Name   "B "
  3625.   Position   [320, 188, 350, 202]
  3626.   Orientation   "left"
  3627.   Port   "5"
  3628.   Side   "Right"
  3629. }
  3630. Block {
  3631.   BlockType   PMIOPort
  3632.   Name   "C "
  3633.   Position   [315, 318, 345, 332]
  3634.   Orientation   "left"
  3635.   Port   "6"
  3636.   Side   "Right"
  3637. }
  3638. Line {
  3639.   SrcBlock   "P_ABC"
  3640.   SrcPort   1
  3641.   DstBlock   "Demux"
  3642.   DstPort   1
  3643. }
  3644. Line {
  3645.   LineType   "Connection"
  3646.   SrcBlock   "Switch C"
  3647.   SrcPort   RConn1
  3648.   Points   [0, -5]
  3649.   DstBlock   "C "
  3650.   DstPort   RConn1
  3651. }
  3652. Line {
  3653.   LineType   "Connection"
  3654.   SrcBlock   "Switch B"
  3655.   SrcPort   RConn1
  3656.   Points   [0, -5]
  3657.   DstBlock   "B "
  3658.   DstPort   RConn1
  3659. }
  3660. Line {
  3661.   LineType   "Connection"
  3662.   SrcBlock   "Switch A"
  3663.   SrcPort   RConn1
  3664.   Points   [0, -5]
  3665.   DstBlock   "A "
  3666.   DstPort   RConn1
  3667. }
  3668. Line {
  3669.   LineType   "Connection"
  3670.   SrcBlock   "C"
  3671.   SrcPort   RConn1
  3672.   DstBlock   "Switch C"
  3673.   DstPort   LConn1
  3674. }
  3675. Line {
  3676.   LineType   "Connection"
  3677.   SrcBlock   "B"
  3678.   SrcPort   RConn1
  3679.   DstBlock   "Switch B"
  3680.   DstPort   LConn1
  3681. }
  3682. Line {
  3683.   LineType   "Connection"
  3684.   SrcBlock   "A"
  3685.   SrcPort   RConn1
  3686.   DstBlock   "Switch A"
  3687.   DstPort   LConn1
  3688. }
  3689. Line {
  3690.   SrcBlock   "Demux"
  3691.   SrcPort   3
  3692.   Points   [20, 0; 0, 120]
  3693.   DstBlock   "Switch C"
  3694.   DstPort   1
  3695. }
  3696. Line {
  3697.   SrcBlock   "Demux"
  3698.   SrcPort   2
  3699.   DstBlock   "Switch B"
  3700.   DstPort   1
  3701. }
  3702. Line {
  3703.   SrcBlock   "Demux"
  3704.   SrcPort   1
  3705.   Points   [25, 0; 0, -130]
  3706.   DstBlock   "Switch A"
  3707.   DstPort   1
  3708. }
  3709.       }
  3710.     }
  3711.     Block {
  3712.       BlockType       SubSystem
  3713.       Name       "Switches ABC1"
  3714.       Ports       [1, 0, 0, 0, 0, 3, 3]
  3715.       Position       [185, 137, 250, 223]
  3716.       TreatAsAtomicUnit       off
  3717.       MinAlgLoopOccurrences   off
  3718.       RTWSystemCode       "Auto"
  3719.       MaskHideContents       off
  3720.       System {
  3721. Name "Switches ABC1"
  3722. Location [152, 96, 628, 478]
  3723. Open off
  3724. ModelBrowserVisibility off
  3725. ModelBrowserWidth 200
  3726. ScreenColor "white"
  3727. PaperOrientation "landscape"
  3728. PaperPositionMode "auto"
  3729. PaperType "usletter"
  3730. PaperUnits "inches"
  3731. ZoomFactor "100"
  3732. Block {
  3733.   BlockType   Inport
  3734.   Name   "P_ABC"
  3735.   Position   [40, 178, 70, 192]
  3736.   IconDisplay   "Port number"
  3737. }
  3738. Block {
  3739.   BlockType   Demux
  3740.   Name   "Demux"
  3741.   Ports   [1, 3]
  3742.   Position   [95, 166, 100, 204]
  3743.   BackgroundColor   "black"
  3744.   ShowName   off
  3745.   Outputs   "3"
  3746. }
  3747. Block {
  3748.   BlockType   Reference
  3749.   Name   "Switch A"
  3750.   Ports   [1, 1, 0, 0, 0, 1, 1]
  3751.   Position   [225, 40, 270, 75]
  3752.   AttributesFormatString  "\n"
  3753.   SourceBlock   "powerlib/PowernElectronics/Ideal S"
  3754. "witch"
  3755.   SourceType   "Ideal Switch"
  3756.   ShowPortLabels   on
  3757.   Ron   "Ron_switch"
  3758.   Lon   "0"
  3759.   IC   "Status(2)"
  3760.   Rs   "Rs_snubber"
  3761.   Cs   "Cs_snubber"
  3762.   Measurements   off
  3763. }
  3764. Block {
  3765.   BlockType   Reference
  3766.   Name   "Switch B"
  3767.   Ports   [1, 1, 0, 0, 0, 1, 1]
  3768.   Position   [220, 175, 265, 210]
  3769.   AttributesFormatString  "\n"
  3770.   SourceBlock   "powerlib/PowernElectronics/Ideal S"
  3771. "witch"
  3772.   SourceType   "Ideal Switch"
  3773.   ShowPortLabels   on
  3774.   Ron   "Ron_switch"
  3775.   Lon   "0"
  3776.   IC   "Status(2)"
  3777.   Rs   "Rs_snubber"
  3778.   Cs   "Cs_snubber"
  3779.   Measurements   off
  3780. }
  3781. Block {
  3782.   BlockType   Reference
  3783.   Name   "Switch C"
  3784.   Ports   [1, 1, 0, 0, 0, 1, 1]
  3785.   Position   [220, 300, 265, 335]
  3786.   AttributesFormatString  "\n"
  3787.   SourceBlock   "powerlib/PowernElectronics/Ideal S"
  3788. "witch"
  3789.   SourceType   "Ideal Switch"
  3790.   ShowPortLabels   on
  3791.   Ron   "Ron_switch"
  3792.   Lon   "0"
  3793.   IC   "Status(2)"
  3794.   Rs   "Rs_snubber"
  3795.   Cs   "Cs_snubber"
  3796.   Measurements   off
  3797. }
  3798. Block {
  3799.   BlockType   PMIOPort
  3800.   Name   "A"
  3801.   Position   [165, 58, 195, 72]
  3802.   Port   "1"
  3803.   Side   "Left"
  3804. }
  3805. Block {
  3806.   BlockType   PMIOPort
  3807.   Name   "B"
  3808.   Position   [145, 193, 175, 207]
  3809.   Port   "2"
  3810.   Side   "Left"
  3811. }
  3812. Block {
  3813.   BlockType   PMIOPort
  3814.   Name   "C"
  3815.   Position   [150, 318, 180, 332]
  3816.   Port   "3"
  3817.   Side   "Left"
  3818. }
  3819. Block {
  3820.   BlockType   PMIOPort
  3821.   Name   "A "
  3822.   Position   [325, 53, 355, 67]
  3823.   Orientation   "left"
  3824.   Port   "4"
  3825.   Side   "Right"
  3826. }
  3827. Block {
  3828.   BlockType   PMIOPort
  3829.   Name   "B "
  3830.   Position   [320, 188, 350, 202]
  3831.   Orientation   "left"
  3832.   Port   "5"
  3833.   Side   "Right"
  3834. }
  3835. Block {
  3836.   BlockType   PMIOPort
  3837.   Name   "C "
  3838.   Position   [315, 313, 345, 327]
  3839.   Orientation   "left"
  3840.   Port   "6"
  3841.   Side   "Right"
  3842. }
  3843. Line {
  3844.   SrcBlock   "Demux"
  3845.   SrcPort   1
  3846.   Points   [25, 0; 0, -125]
  3847.   DstBlock   "Switch A"
  3848.   DstPort   1
  3849. }
  3850. Line {
  3851.   SrcBlock   "Demux"
  3852.   SrcPort   2
  3853.   DstBlock   "Switch B"
  3854.   DstPort   1
  3855. }
  3856. Line {
  3857.   SrcBlock   "Demux"
  3858.   SrcPort   3
  3859.   Points   [20, 0; 0, 115]
  3860.   DstBlock   "Switch C"
  3861.   DstPort   1
  3862. }
  3863. Line {
  3864.   LineType   "Connection"
  3865.   SrcBlock   "A"
  3866.   SrcPort   RConn1
  3867.   DstBlock   "Switch A"
  3868.   DstPort   LConn1
  3869. }
  3870. Line {
  3871.   LineType   "Connection"
  3872.   SrcBlock   "B"
  3873.   SrcPort   RConn1
  3874.   DstBlock   "Switch B"
  3875.   DstPort   LConn1
  3876. }
  3877. Line {
  3878.   LineType   "Connection"
  3879.   SrcBlock   "Switch A"
  3880.   SrcPort   RConn1
  3881.   Points   [0, -5]
  3882.   DstBlock   "A "
  3883.   DstPort   RConn1
  3884. }
  3885. Line {
  3886.   LineType   "Connection"
  3887.   SrcBlock   "Switch B"
  3888.   SrcPort   RConn1
  3889.   Points   [0, -5]
  3890.   DstBlock   "B "
  3891.   DstPort   RConn1
  3892. }
  3893. Line {
  3894.   LineType   "Connection"
  3895.   SrcBlock   "Switch C"
  3896.   SrcPort   RConn1
  3897.   Points   [0, -5]
  3898.   DstBlock   "C "
  3899.   DstPort   RConn1
  3900. }
  3901. Line {
  3902.   SrcBlock   "P_ABC"
  3903.   SrcPort   1
  3904.   DstBlock   "Demux"
  3905.   DstPort   1
  3906. }
  3907. Line {
  3908.   LineType   "Connection"
  3909.   SrcBlock   "C"
  3910.   SrcPort   RConn1
  3911.   DstBlock   "Switch C"
  3912.   DstPort   LConn1
  3913. }
  3914.       }
  3915.     }
  3916.     Block {
  3917.       BlockType       SubSystem
  3918.       Name       "Switches ABC2"
  3919.       Ports       [1, 0, 0, 0, 0, 3, 3]
  3920.       Position       [185, 237, 250, 323]
  3921.       TreatAsAtomicUnit       off
  3922.       MinAlgLoopOccurrences   off
  3923.       RTWSystemCode       "Auto"
  3924.       MaskHideContents       off
  3925.       System {
  3926. Name "Switches ABC2"
  3927. Location [152, 96, 628, 478]
  3928. Open off
  3929. ModelBrowserVisibility off
  3930. ModelBrowserWidth 200
  3931. ScreenColor "white"
  3932. PaperOrientation "landscape"
  3933. PaperPositionMode "auto"
  3934. PaperType "usletter"
  3935. PaperUnits "inches"
  3936. ZoomFactor "100"
  3937. Block {
  3938.   BlockType   Inport
  3939.   Name   "P_ABC"
  3940.   Position   [40, 178, 70, 192]
  3941.   IconDisplay   "Port number"
  3942. }
  3943. Block {
  3944.   BlockType   Demux
  3945.   Name   "Demux"
  3946.   Ports   [1, 3]
  3947.   Position   [95, 166, 100, 204]
  3948.   BackgroundColor   "black"
  3949.   ShowName   off
  3950.   Outputs   "3"
  3951. }
  3952. Block {
  3953.   BlockType   Reference
  3954.   Name   "Switch A"
  3955.   Ports   [1, 1, 0, 0, 0, 1, 1]
  3956.   Position   [225, 42, 270, 78]
  3957.   AttributesFormatString  "\n"
  3958.   SourceBlock   "powerlib/PowernElectronics/Ideal S"
  3959. "witch"
  3960.   SourceType   "Ideal Switch"
  3961.   ShowPortLabels   on
  3962.   Ron   "Ron_switch"
  3963.   Lon   "0"
  3964.   IC   "Status(3)"
  3965.   Rs   "Rs_snubber"
  3966.   Cs   "Cs_snubber"
  3967.   Measurements   off
  3968. }
  3969. Block {
  3970.   BlockType   Reference
  3971.   Name   "Switch B"
  3972.   Ports   [1, 1, 0, 0, 0, 1, 1]
  3973.   Position   [220, 177, 265, 213]
  3974.   AttributesFormatString  "\n"
  3975.   SourceBlock   "powerlib/PowernElectronics/Ideal S"
  3976. "witch"
  3977.   SourceType   "Ideal Switch"
  3978.   ShowPortLabels   on
  3979.   Ron   "Ron_switch"
  3980.   Lon   "0"
  3981.   IC   "Status(3)"
  3982.   Rs   "Rs_snubber"
  3983.   Cs   "Cs_snubber"
  3984.   Measurements   off
  3985. }
  3986. Block {
  3987.   BlockType   Reference
  3988.   Name   "Switch C"
  3989.   Ports   [1, 1, 0, 0, 0, 1, 1]
  3990.   Position   [220, 302, 265, 338]
  3991.   AttributesFormatString  "\n"
  3992.   SourceBlock   "powerlib/PowernElectronics/Ideal S"
  3993. "witch"
  3994.   SourceType   "Ideal Switch"
  3995.   ShowPortLabels   on
  3996.   Ron   "Ron_switch"
  3997.   Lon   "0"
  3998.   IC   "Status(3)"
  3999.   Rs   "Rs_snubber"
  4000.   Cs   "Cs_snubber"
  4001.   Measurements   off
  4002. }
  4003. Block {
  4004.   BlockType   PMIOPort
  4005.   Name   "A"
  4006.   Position   [165, 63, 195, 77]
  4007.   Port   "1"
  4008.   Side   "Left"
  4009. }
  4010. Block {
  4011.   BlockType   PMIOPort
  4012.   Name   "B"
  4013.   Position   [145, 198, 175, 212]
  4014.   Port   "2"
  4015.   Side   "Left"
  4016. }
  4017. Block {
  4018.   BlockType   PMIOPort
  4019.   Name   "C"
  4020.   Position   [150, 323, 180, 337]
  4021.   Port   "3"
  4022.   Side   "Left"
  4023. }
  4024. Block {
  4025.   BlockType   PMIOPort
  4026.   Name   "A "
  4027.   Position   [325, 53, 355, 67]
  4028.   Orientation   "left"
  4029.   Port   "4"
  4030.   Side   "Right"
  4031. }
  4032. Block {
  4033.   BlockType   PMIOPort
  4034.   Name   "B "
  4035.   Position   [320, 188, 350, 202]
  4036.   Orientation   "left"
  4037.   Port   "5"
  4038.   Side   "Right"
  4039. }
  4040. Block {
  4041.   BlockType   PMIOPort
  4042.   Name   "C "
  4043.   Position   [315, 313, 345, 327]
  4044.   Orientation   "left"
  4045.   Port   "6"
  4046.   Side   "Right"
  4047. }
  4048. Line {
  4049.   SrcBlock   "P_ABC"
  4050.   SrcPort   1
  4051.   DstBlock   "Demux"
  4052.   DstPort   1
  4053. }
  4054. Line {
  4055.   LineType   "Connection"
  4056.   SrcBlock   "Switch C"
  4057.   SrcPort   RConn1
  4058.   Points   [0, -10]
  4059.   DstBlock   "C "
  4060.   DstPort   RConn1
  4061. }
  4062. Line {
  4063.   LineType   "Connection"
  4064.   SrcBlock   "Switch B"
  4065.   SrcPort   RConn1
  4066.   Points   [0, -10]
  4067.   DstBlock   "B "
  4068.   DstPort   RConn1
  4069. }
  4070. Line {
  4071.   LineType   "Connection"
  4072.   SrcBlock   "Switch A"
  4073.   SrcPort   RConn1
  4074.   Points   [0, -10]
  4075.   DstBlock   "A "
  4076.   DstPort   RConn1
  4077. }
  4078. Line {
  4079.   LineType   "Connection"
  4080.   SrcBlock   "A"
  4081.   SrcPort   RConn1
  4082.   DstBlock   "Switch A"
  4083.   DstPort   LConn1
  4084. }
  4085. Line {
  4086.   SrcBlock   "Demux"
  4087.   SrcPort   3
  4088.   Points   [20, 0; 0, 115]
  4089.   DstBlock   "Switch C"
  4090.   DstPort   1
  4091. }
  4092. Line {
  4093.   SrcBlock   "Demux"
  4094.   SrcPort   2
  4095.   DstBlock   "Switch B"
  4096.   DstPort   1
  4097. }
  4098. Line {
  4099.   SrcBlock   "Demux"
  4100.   SrcPort   1
  4101.   Points   [25, 0; 0, -125]
  4102.   DstBlock   "Switch A"
  4103.   DstPort   1
  4104. }
  4105. Line {
  4106.   LineType   "Connection"
  4107.   SrcBlock   "B"
  4108.   SrcPort   RConn1
  4109.   DstBlock   "Switch B"
  4110.   DstPort   LConn1
  4111. }
  4112. Line {
  4113.   LineType   "Connection"
  4114.   SrcBlock   "C"
  4115.   SrcPort   RConn1
  4116.   DstBlock   "Switch C"
  4117.   DstPort   LConn1
  4118. }
  4119.       }
  4120.     }
  4121.     Block {
  4122.       BlockType       SubSystem
  4123.       Name       "Switches ABC3"
  4124.       Ports       [1, 0, 0, 0, 0, 3, 3]
  4125.       Position       [185, 337, 250, 423]
  4126.       TreatAsAtomicUnit       off
  4127.       MinAlgLoopOccurrences   off
  4128.       RTWSystemCode       "Auto"
  4129.       MaskHideContents       off
  4130.       System {
  4131. Name "Switches ABC3"
  4132. Location [152, 96, 628, 478]
  4133. Open off
  4134. ModelBrowserVisibility off
  4135. ModelBrowserWidth 200
  4136. ScreenColor "white"
  4137. PaperOrientation "landscape"
  4138. PaperPositionMode "auto"
  4139. PaperType "usletter"
  4140. PaperUnits "inches"
  4141. ZoomFactor "100"
  4142. Block {
  4143.   BlockType   Inport
  4144.   Name   "P_ABC"
  4145.   Position   [40, 178, 70, 192]
  4146.   IconDisplay   "Port number"
  4147. }
  4148. Block {
  4149.   BlockType   Demux
  4150.   Name   "Demux"
  4151.   Ports   [1, 3]
  4152.   Position   [95, 166, 100, 204]
  4153.   BackgroundColor   "black"
  4154.   ShowName   off
  4155.   Outputs   "3"
  4156. }
  4157. Block {
  4158.   BlockType   Reference
  4159.   Name   "Switch A"
  4160.   Ports   [1, 1, 0, 0, 0, 1, 1]
  4161.   Position   [225, 42, 270, 78]
  4162.   AttributesFormatString  "\n"
  4163.   SourceBlock   "powerlib/PowernElectronics/Ideal S"
  4164. "witch"
  4165.   SourceType   "Ideal Switch"
  4166.   ShowPortLabels   on
  4167.   Ron   "Ron_switch"
  4168.   Lon   "0"
  4169.   IC   "Status(4)"
  4170.   Rs   "Rs_snubber"
  4171.   Cs   "Cs_snubber"
  4172.   Measurements   off
  4173. }
  4174. Block {
  4175.   BlockType   Reference
  4176.   Name   "Switch B"
  4177.   Ports   [1, 1, 0, 0, 0, 1, 1]
  4178.   Position   [220, 177, 265, 213]
  4179.   AttributesFormatString  "\n"
  4180.   SourceBlock   "powerlib/PowernElectronics/Ideal S"
  4181. "witch"
  4182.   SourceType   "Ideal Switch"
  4183.   ShowPortLabels   on
  4184.   Ron   "Ron_switch"
  4185.   Lon   "0"
  4186.   IC   "Status(4)"
  4187.   Rs   "Rs_snubber"
  4188.   Cs   "Cs_snubber"
  4189.   Measurements   off
  4190. }
  4191. Block {
  4192.   BlockType   Reference
  4193.   Name   "Switch C"
  4194.   Ports   [1, 1, 0, 0, 0, 1, 1]
  4195.   Position   [220, 302, 265, 338]
  4196.   AttributesFormatString  "\n"
  4197.   SourceBlock   "powerlib/PowernElectronics/Ideal S"
  4198. "witch"
  4199.   SourceType   "Ideal Switch"
  4200.   ShowPortLabels   on
  4201.   Ron   "Ron_switch"
  4202.   Lon   "0"
  4203.   IC   "Status(4)"
  4204.   Rs   "Rs_snubber"
  4205.   Cs   "Cs_snubber"
  4206.   Measurements   off
  4207. }
  4208. Block {
  4209.   BlockType   PMIOPort
  4210.   Name   "A"
  4211.   Position   [165, 63, 195, 77]
  4212.   Port   "1"
  4213.   Side   "Left"
  4214. }
  4215. Block {
  4216.   BlockType   PMIOPort
  4217.   Name   "B"
  4218.   Position   [145, 198, 175, 212]
  4219.   Port   "2"
  4220.   Side   "Left"
  4221. }
  4222. Block {
  4223.   BlockType   PMIOPort
  4224.   Name   "C"
  4225.   Position   [150, 323, 180, 337]
  4226.   Port   "3"
  4227.   Side   "Left"
  4228. }
  4229. Block {
  4230.   BlockType   PMIOPort
  4231.   Name   "A "
  4232.   Position   [325, 53, 355, 67]
  4233.   Orientation   "left"
  4234.   Port   "4"
  4235.   Side   "Right"
  4236. }
  4237. Block {
  4238.   BlockType   PMIOPort
  4239.   Name   "B "
  4240.   Position   [320, 188, 350, 202]
  4241.   Orientation   "left"
  4242.   Port   "5"
  4243.   Side   "Right"
  4244. }
  4245. Block {
  4246.   BlockType   PMIOPort
  4247.   Name   "C "
  4248.   Position   [315, 313, 345, 327]
  4249.   Orientation   "left"
  4250.   Port   "6"
  4251.   Side   "Right"
  4252. }
  4253. Line {
  4254.   LineType   "Connection"
  4255.   SrcBlock   "C"
  4256.   SrcPort   RConn1
  4257.   Points   [0, 0]
  4258.   DstBlock   "Switch C"
  4259.   DstPort   LConn1
  4260. }
  4261. Line {
  4262.   LineType   "Connection"