Model {
  Name			  "EMULADOR_TURBINA_ONE"
  Version		  7.4
  MdlSubVersion		  0
  GraphicalInterface {
    NumRootInports	    0
    NumRootOutports	    0
    ParameterArgumentNames  ""
    ComputedModelVersion    "1.62"
    NumModelReferences	    0
    NumTestPointedSignals   0
  }
  SavedCharacterEncoding  "windows-1252"
  SaveDefaultBlockParams  on
  ScopeRefreshTime	  0.035000
  OverrideScopeRefreshTime on
  DisableAllScopes	  off
  DataTypeOverride	  "UseLocalSettings"
  MinMaxOverflowLogging	  "UseLocalSettings"
  MinMaxOverflowArchiveMode "Overwrite"
  MaxMDLFileLineLength	  120
  Created		  "Wed Nov 09 08:41:11 2011"
  Creator		  "joarpe4"
  UpdateHistory		  "UpdateHistoryNever"
  ModifiedByFormat	  "%<Auto>"
  LastModifiedBy	  "joarpe4"
  ModifiedDateFormat	  "%<Auto>"
  LastModifiedDate	  "Tue Dec 13 13:37:39 2011"
  RTWModifiedTimeStamp	  245684258
  ModelVersionFormat	  "1.%<AutoIncrement:62>"
  ConfigurationManager	  "None"
  SampleTimeColors	  off
  SampleTimeAnnotations	  off
  LibraryLinkDisplay	  "none"
  WideLines		  off
  ShowLineDimensions	  off
  ShowPortDataTypes	  off
  ShowLoopsOnError	  on
  IgnoreBidirectionalLines off
  ShowStorageClass	  off
  ShowTestPointIcons	  on
  ShowSignalResolutionIcons on
  ShowViewerIcons	  on
  SortedOrder		  off
  ExecutionContextIcon	  off
  ShowLinearizationAnnotations on
  BlockNameDataTip	  off
  BlockParametersDataTip  off
  BlockDescriptionStringDataTip	off
  ToolBar		  on
  StatusBar		  on
  BrowserShowLibraryLinks off
  BrowserLookUnderMasks	  off
  SimulationMode	  "normal"
  LinearizationMsg	  "none"
  Profile		  off
  ParamWorkspaceSource	  "MATLABWorkspace"
  AccelSystemTargetFile	  "accel.tlc"
  AccelTemplateMakefile	  "accel_default_tmf"
  AccelMakeCommand	  "make_rtw"
  TryForcingSFcnDF	  off
  RecordCoverage	  off
  CovPath		  "/"
  CovSaveName		  "covdata"
  CovMetricSettings	  "dw"
  CovNameIncrementing	  off
  CovHtmlReporting	  on
  CovForceBlockReductionOff on
  covSaveCumulativeToWorkspaceVar on
  CovSaveSingleToWorkspaceVar on
  CovCumulativeVarName	  "covCumulativeData"
  CovCumulativeReport	  off
  CovReportOnPause	  on
  CovModelRefEnable	  "Off"
  CovExternalEMLEnable	  off
  ExtModeBatchMode	  off
  ExtModeEnableFloating	  on
  ExtModeTrigType	  "manual"
  ExtModeTrigMode	  "normal"
  ExtModeTrigPort	  "1"
  ExtModeTrigElement	  "any"
  ExtModeTrigDuration	  10000
  ExtModeTrigDurationFloating "auto"
  ExtModeTrigHoldOff	  0
  ExtModeTrigDelay	  0
  ExtModeTrigDirection	  "rising"
  ExtModeTrigLevel	  0
  ExtModeArchiveMode	  "off"
  ExtModeAutoIncOneShot	  off
  ExtModeIncDirWhenArm	  off
  ExtModeAddSuffixToVar	  off
  ExtModeWriteAllDataToWs off
  ExtModeArmWhenConnect	  on
  ExtModeSkipDownloadWhenConnect off
  ExtModeLogAll		  off
  ExtModeAutoUpdateStatusClock on
  BufferReuse		  on
  ShowModelReferenceBlockVersion off
  ShowModelReferenceBlockIO off
  Array {
    Type		    "Handle"
    Dimension		    1
    Simulink.ConfigSet {
      $ObjectID		      1
      Version		      "1.6.0"
      Array {
	Type			"Handle"
	Dimension		9
	Simulink.SolverCC {
	  $ObjectID		  2
	  Version		  "1.6.0"
	  StartTime		  "0.0"
	  StopTime		  "600"
	  AbsTol		  "auto"
	  FixedStep		  "0.1"
	  InitialStep		  "auto"
	  MaxNumMinSteps	  "-1"
	  MaxOrder		  5
	  ZcThreshold		  "auto"
	  ConsecutiveZCsStepRelTol "10*128*eps"
	  MaxConsecutiveZCs	  "1000"
	  ExtrapolationOrder	  4
	  NumberNewtonIterations  1
	  MaxStep		  "auto"
	  MinStep		  "auto"
	  MaxConsecutiveMinStep	  "1"
	  RelTol		  "1e-3"
	  SolverMode		  "Auto"
	  Solver		  "ode5"
	  SolverName		  "ode5"
	  ShapePreserveControl	  "DisableAll"
	  ZeroCrossControl	  "UseLocalSettings"
	  ZeroCrossAlgorithm	  "Nonadaptive"
	  AlgebraicLoopSolver	  "TrustRegion"
	  SolverResetMethod	  "Fast"
	  PositivePriorityOrder	  off
	  AutoInsertRateTranBlk	  off
	  SampleTimeConstraint	  "Unconstrained"
	  InsertRTBMode		  "Whenever possible"
	}
	Simulink.DataIOCC {
	  $ObjectID		  3
	  Version		  "1.6.0"
	  Decimation		  "1"
	  ExternalInput		  "[t, u]"
	  FinalStateName	  "xFinal"
	  InitialState		  "xInitial"
	  LimitDataPoints	  off
	  MaxDataPoints		  "1000"
	  LoadExternalInput	  off
	  LoadInitialState	  off
	  SaveFinalState	  off
	  SaveCompleteFinalSimState off
	  SaveFormat		  "Array"
	  SaveOutput		  on
	  SaveState		  off
	  SignalLogging		  on
	  InspectSignalLogs	  off
	  SaveTime		  on
	  ReturnWorkspaceOutputs  off
	  StateSaveName		  "xout"
	  TimeSaveName		  "tout"
	  OutputSaveName	  "yout"
	  SignalLoggingName	  "logsout"
	  OutputOption		  "RefineOutputTimes"
	  OutputTimes		  "[]"
	  ReturnWorkspaceOutputsName "out"
	  Refine		  "1"
	}
	Simulink.OptimizationCC {
	  $ObjectID		  4
	  Version		  "1.6.0"
	  Array {
	    Type		    "Cell"
	    Dimension		    7
	    Cell		    "BooleansAsBitfields"
	    Cell		    "PassReuseOutputArgsAs"
	    Cell		    "PassReuseOutputArgsThreshold"
	    Cell		    "ZeroExternalMemoryAtStartup"
	    Cell		    "ZeroInternalMemoryAtStartup"
	    Cell		    "OptimizeModelRefInitCode"
	    Cell		    "NoFixptDivByZeroProtection"
	    PropName		    "DisabledProps"
	  }
	  BlockReduction	  on
	  BooleanDataType	  on
	  ConditionallyExecuteInputs on
	  InlineParams		  off
	  UseIntDivNetSlope	  off
	  InlineInvariantSignals  off
	  OptimizeBlockIOStorage  on
	  BufferReuse		  on
	  EnhancedBackFolding	  off
	  StrengthReduction	  off
	  EnforceIntegerDowncast  on
	  ExpressionFolding	  on
	  BooleansAsBitfields	  off
	  EnableMemcpy		  on
	  MemcpyThreshold	  64
	  PassReuseOutputArgsAs	  "Structure reference"
	  ExpressionDepthLimit	  2147483647
	  FoldNonRolledExpr	  on
	  LocalBlockOutputs	  on
	  RollThreshold		  5
	  SystemCodeInlineAuto	  off
	  StateBitsets		  off
	  DataBitsets		  off
	  UseTempVars		  off
	  ZeroExternalMemoryAtStartup on
	  ZeroInternalMemoryAtStartup on
	  InitFltsAndDblsToZero	  off
	  NoFixptDivByZeroProtection off
	  EfficientFloat2IntCast  off
	  EfficientMapNaN2IntZero on
	  OptimizeModelRefInitCode off
	  LifeSpan		  "inf"
	  BufferReusableBoundary  on
	  SimCompilerOptimization "Off"
	  AccelVerboseBuild	  off
	}
	Simulink.DebuggingCC {
	  $ObjectID		  5
	  Version		  "1.6.0"
	  RTPrefix		  "error"
	  ConsistencyChecking	  "none"
	  ArrayBoundsChecking	  "none"
	  SignalInfNanChecking	  "none"
	  SignalRangeChecking	  "none"
	  ReadBeforeWriteMsg	  "UseLocalSettings"
	  WriteAfterWriteMsg	  "UseLocalSettings"
	  WriteAfterReadMsg	  "UseLocalSettings"
	  AlgebraicLoopMsg	  "warning"
	  ArtificialAlgebraicLoopMsg "warning"
	  SaveWithDisabledLinksMsg "warning"
	  SaveWithParameterizedLinksMsg	"warning"
	  CheckSSInitialOutputMsg on
	  UnderspecifiedInitializationDetection	"Classic"
	  MergeDetectMultiDrivingBlocksExec "none"
	  CheckExecutionContextPreStartOutputMsg off
	  CheckExecutionContextRuntimeOutputMsg	off
	  SignalResolutionControl "UseLocalSettings"
	  BlockPriorityViolationMsg "warning"
	  MinStepSizeMsg	  "warning"
	  TimeAdjustmentMsg	  "none"
	  MaxConsecutiveZCsMsg	  "error"
	  SolverPrmCheckMsg	  "warning"
	  InheritedTsInSrcMsg	  "warning"
	  DiscreteInheritContinuousMsg "warning"
	  MultiTaskDSMMsg	  "error"
	  MultiTaskCondExecSysMsg "error"
	  MultiTaskRateTransMsg	  "error"
	  SingleTaskRateTransMsg  "none"
	  TasksWithSamePriorityMsg "warning"
	  SigSpecEnsureSampleTimeMsg "warning"
	  CheckMatrixSingularityMsg "none"
	  IntegerOverflowMsg	  "warning"
	  Int32ToFloatConvMsg	  "warning"
	  ParameterDowncastMsg	  "error"
	  ParameterOverflowMsg	  "error"
	  ParameterUnderflowMsg	  "none"
	  ParameterPrecisionLossMsg "warning"
	  ParameterTunabilityLossMsg "warning"
	  FixptConstUnderflowMsg  "none"
	  FixptConstOverflowMsg	  "none"
	  FixptConstPrecisionLossMsg "none"
	  UnderSpecifiedDataTypeMsg "none"
	  UnnecessaryDatatypeConvMsg "none"
	  VectorMatrixConversionMsg "none"
	  InvalidFcnCallConnMsg	  "error"
	  FcnCallInpInsideContextMsg "Use local settings"
	  SignalLabelMismatchMsg  "none"
	  UnconnectedInputMsg	  "warning"
	  UnconnectedOutputMsg	  "warning"
	  UnconnectedLineMsg	  "warning"
	  SFcnCompatibilityMsg	  "none"
	  UniqueDataStoreMsg	  "none"
	  BusObjectLabelMismatch  "warning"
	  RootOutportRequireBusObject "warning"
	  AssertControl		  "UseLocalSettings"
	  EnableOverflowDetection off
	  ModelReferenceIOMsg	  "none"
	  ModelReferenceVersionMismatchMessage "none"
	  ModelReferenceIOMismatchMessage "none"
	  ModelReferenceCSMismatchMessage "none"
	  UnknownTsInhSupMsg	  "warning"
	  ModelReferenceDataLoggingMessage "warning"
	  ModelReferenceSymbolNameMessage "warning"
	  ModelReferenceExtraNoncontSigs "error"
	  StateNameClashWarn	  "warning"
	  SimStateInterfaceChecksumMismatchMsg "warning"
	  StrictBusMsg		  "Warning"
	  LoggingUnavailableSignals "error"
	  BlockIODiagnostic	  "none"
	}
	Simulink.HardwareCC {
	  $ObjectID		  6
	  Version		  "1.6.0"
	  ProdBitPerChar	  8
	  ProdBitPerShort	  16
	  ProdBitPerInt		  32
	  ProdBitPerLong	  32
	  ProdIntDivRoundTo	  "Undefined"
	  ProdEndianess		  "Unspecified"
	  ProdWordSize		  32
	  ProdShiftRightIntArith  on
	  ProdHWDeviceType	  "32-bit Generic"
	  TargetBitPerChar	  8
	  TargetBitPerShort	  16
	  TargetBitPerInt	  32
	  TargetBitPerLong	  32
	  TargetShiftRightIntArith on
	  TargetIntDivRoundTo	  "Undefined"
	  TargetEndianess	  "Unspecified"
	  TargetWordSize	  32
	  TargetTypeEmulationWarnSuppressLevel 0
	  TargetPreprocMaxBitsSint 32
	  TargetPreprocMaxBitsUint 32
	  TargetHWDeviceType	  "Specified"
	  TargetUnknown		  off
	  ProdEqTarget		  on
	}
	Simulink.ModelReferenceCC {
	  $ObjectID		  7
	  Version		  "1.6.0"
	  UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange"
	  CheckModelReferenceTargetMessage "error"
	  ModelReferenceNumInstancesAllowed "Multi"
	  ModelReferencePassRootInputsByReference on
	  ModelReferenceMinAlgLoopOccurrences off
	}
	Simulink.SFSimCC {
	  $ObjectID		  8
	  Version		  "1.6.0"
	  SFSimEnableDebug	  on
	  SFSimOverflowDetection  on
	  SFSimEcho		  on
	  SimBlas		  on
	  SimCtrlC		  on
	  SimExtrinsic		  on
	  SimIntegrity		  on
	  SimUseLocalCustomCode	  off
	  SimBuildMode		  "sf_incremental_build"
	}
	Simulink.RTWCC {
	  $BackupClass		  "Simulink.RTWCC"
	  $ObjectID		  9
	  Version		  "1.6.0"
	  Array {
	    Type		    "Cell"
	    Dimension		    6
	    Cell		    "IncludeHyperlinkInReport"
	    Cell		    "GenerateTraceInfo"
	    Cell		    "GenerateTraceReport"
	    Cell		    "GenerateTraceReportSl"
	    Cell		    "GenerateTraceReportSf"
	    Cell		    "GenerateTraceReportEml"
	    PropName		    "DisabledProps"
	  }
	  SystemTargetFile	  "rtwin.tlc"
	  GenCodeOnly		  off
	  MakeCommand		  "make_rtw"
	  GenerateMakefile	  on
	  TemplateMakefile	  "rtwin.tmf"
	  Description		  "Real-Time Windows Target"
	  GenerateReport	  on
	  SaveLog		  off
	  RTWVerbose		  off
	  RetainRTWFile		  off
	  ProfileTLC		  off
	  TLCDebug		  off
	  TLCCoverage		  off
	  TLCAssert		  off
	  ProcessScriptMode	  "Default"
	  ConfigurationMode	  "Optimized"
	  ProcessScript		  "rtwin_make_rtw_hook"
	  ConfigAtBuild		  off
	  RTWUseLocalCustomCode	  off
	  RTWUseSimCustomCode	  on
	  IncludeHyperlinkInReport off
	  LaunchReport		  on
	  TargetLang		  "C"
	  IncludeBusHierarchyInRTWFileBlockHierarchyMap	off
	  IncludeERTFirstTime	  off
	  GenerateTraceInfo	  off
	  GenerateTraceReport	  off
	  GenerateTraceReportSl	  off
	  GenerateTraceReportSf	  off
	  GenerateTraceReportEml  off
	  GenerateCodeInfo	  off
	  RTWCompilerOptimization "Off"
	  CheckMdlBeforeBuild	  "Off"
	  Array {
	    Type		    "Handle"
	    Dimension		    2
	    Simulink.CodeAppCC {
	      $ObjectID		      10
	      Version		      "1.6.0"
	      Array {
		Type			"Cell"
		Dimension		19
		Cell			"IgnoreCustomStorageClasses"
		Cell			"IgnoreTestpoints"
		Cell			"InsertBlockDesc"
		Cell			"SFDataObjDesc"
		Cell			"SimulinkDataObjDesc"
		Cell			"DefineNamingRule"
		Cell			"SignalNamingRule"
		Cell			"ParamNamingRule"
		Cell			"InlinedPrmAccess"
		Cell			"CustomSymbolStr"
		Cell			"CustomSymbolStrGlobalVar"
		Cell			"CustomSymbolStrType"
		Cell			"CustomSymbolStrField"
		Cell			"CustomSymbolStrFcn"
		Cell			"CustomSymbolStrFcnArg"
		Cell			"CustomSymbolStrBlkIO"
		Cell			"CustomSymbolStrTmpVar"
		Cell			"CustomSymbolStrMacro"
		Cell			"ReqsInCode"
		PropName		"DisabledProps"
	      }
	      ForceParamTrailComments on
	      GenerateComments	      on
	      IgnoreCustomStorageClasses on
	      IgnoreTestpoints	      off
	      IncHierarchyInIds	      off
	      MaxIdLength	      31
	      PreserveName	      off
	      PreserveNameWithParent  off
	      ShowEliminatedStatement on
	      IncAutoGenComments      off
	      SimulinkDataObjDesc     off
	      SFDataObjDesc	      off
	      IncDataTypeInIds	      off
	      MangleLength	      1
	      CustomSymbolStrGlobalVar "$R$N$M"
	      CustomSymbolStrType     "$N$R$M"
	      CustomSymbolStrField    "$N$M"
	      CustomSymbolStrFcn      "$R$N$M$F"
	      CustomSymbolStrFcnArg   "rt$I$N$M"
	      CustomSymbolStrBlkIO    "rtb_$N$M"
	      CustomSymbolStrTmpVar   "$N$M"
	      CustomSymbolStrMacro    "$R$N$M"
	      DefineNamingRule	      "None"
	      ParamNamingRule	      "None"
	      SignalNamingRule	      "None"
	      InsertBlockDesc	      off
	      SimulinkBlockComments   on
	      EnableCustomComments    off
	      InlinedPrmAccess	      "Literals"
	      ReqsInCode	      off
	      UseSimReservedNames     off
	    }
	    RTWinTarget.RTWinTargetCC {
	      $BackupClass	      "Simulink.TargetCC"
	      $ObjectID		      11
	      Version		      "1.6.0"
	      Array {
		Type			"Cell"
		Dimension		17
		Cell			"GeneratePreprocessorConditionals"
		Cell			"IncludeMdlTerminateFcn"
		Cell			"CombineOutputUpdateFcns"
		Cell			"SuppressErrorStatus"
		Cell			"ERTCustomFileBanners"
		Cell			"GenerateSampleERTMain"
		Cell			"GenerateTestInterfaces"
		Cell			"ModelStepFunctionPrototypeControlCompliant"
		Cell			"CPPClassGenCompliant"
		Cell			"MultiInstanceERTCode"
		Cell			"PurelyIntegerCode"
		Cell			"SupportNonFinite"
		Cell			"SupportComplex"
		Cell			"SupportAbsoluteTime"
		Cell			"SupportContinuousTime"
		Cell			"SupportNonInlinedSFcns"
		Cell			"PortableWordSizes"
		PropName		"DisabledProps"
	      }
	      TargetFcnLib	      "ansi_tfl_table_tmw.mat"
	      TargetLibSuffix	      "_rtwin.lib"
	      TargetPreCompLibLocation "C:\\Archivos de programa\\MATLAB\\R2009b\\toolbox\\rtw\\targets\\rtwin\\lib"
	      TargetFunctionLibrary   "ANSI_C"
	      UtilityFuncGeneration   "Auto"
	      ERTMultiwordTypeDef     "System defined"
	      ERTMultiwordLength      256
	      MultiwordLength	      2048
	      GenerateFullHeader      on
	      GenerateSampleERTMain   off
	      GenerateTestInterfaces  off
	      IsPILTarget	      off
	      ModelReferenceCompliant on
	      ParMdlRefBuildCompliant off
	      CompOptLevelCompliant   on
	      IncludeMdlTerminateFcn  on
	      GeneratePreprocessorConditionals "Disable all"
	      CombineOutputUpdateFcns off
	      SuppressErrorStatus     off
	      ERTFirstTimeCompliant   off
	      IncludeFileDelimiter    "Auto"
	      ERTCustomFileBanners    off
	      SupportAbsoluteTime     on
	      LogVarNameModifier      "rt_"
	      MatFileLogging	      off
	      MultiInstanceERTCode    off
	      SupportNonFinite	      on
	      SupportComplex	      on
	      PurelyIntegerCode	      off
	      SupportContinuousTime   on
	      SupportNonInlinedSFcns  on
	      SupportVariableSizeSignals off
	      EnableShiftOperators    on
	      ParenthesesLevel	      "Nominal"
	      PortableWordSizes	      off
	      ModelStepFunctionPrototypeControlCompliant off
	      CPPClassGenCompliant    off
	      AutosarCompliant	      off
	      CCListing		      on
	      RebuildAll	      off
	      ExtMode		      on
	      ExtModeTransport	      0
	      ExtModeStaticAlloc      off
	      ExtModeStaticAllocSize  1000000
	      ExtModeTesting	      off
	      ExtModeMexFile	      "rtwinext"
	      ExtModeIntrfLevel	      "Level1"
	    }
	    PropName		    "Components"
	  }
	}
	hdlcoderui.hdlcc {
	  $ObjectID		  12
	  Version		  "1.6.0"
	  Description		  "HDL Coder custom configuration component"
	  Name			  "HDL Coder"
	  Array {
	    Type		    "Cell"
	    Dimension		    1
	    Cell		    ""
	    PropName		    "HDLConfigFile"
	  }
	  HDLCActiveTab		  "0"
	}
	PropName		"Components"
      }
      Name		      "Configuration"
      ExtraOptions	      "-aGenerateTraceInfo=0 -aIgnoreTestpoints=0 "
      CurrentDlgPage	      "Real-Time Workshop/Report"
      ConfigPrmDlgPosition    " [ 136, 117, 1016, 747 ] "
    }
    PropName		    "ConfigurationSets"
  }
  Simulink.ConfigSet {
    $PropName		    "ActiveConfigurationSet"
    $ObjectID		    1
  }
  BlockDefaults {
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    NamePlacement	    "normal"
    FontName		    "Helvetica"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
    ShowName		    on
    BlockRotation	    0
    BlockMirror		    off
  }
  AnnotationDefaults {
    HorizontalAlignment	    "center"
    VerticalAlignment	    "middle"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    FontName		    "Helvetica"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
    UseDisplayTextAsClickCallback off
  }
  LineDefaults {
    FontName		    "Helvetica"
    FontSize		    9
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  BlockParameterDefaults {
    Block {
      BlockType		      Constant
      Value		      "1"
      VectorParams1D	      on
      SamplingMode	      "Sample based"
      OutMin		      "[]"
      OutMax		      "[]"
      OutDataTypeMode	      "Inherit from 'Constant value'"
      OutDataType	      "fixdt(1,16,0)"
      ConRadixGroup	      "Use specified scaling"
      OutScaling	      "[]"
      OutDataTypeStr	      "Inherit: Inherit from 'Constant value'"
      LockScale		      off
      SampleTime	      "inf"
      FramePeriod	      "inf"
    }
    Block {
      BlockType		      Demux
      Outputs		      "4"
      DisplayOption	      "none"
      BusSelectionMode	      off
    }
    Block {
      BlockType		      Fcn
      Expr		      "sin(u[1])"
      SampleTime	      "-1"
    }
    Block {
      BlockType		      FromWorkspace
      VariableName	      "simulink_input"
      SampleTime	      "-1"
      Interpolate	      on
      ZeroCross		      off
      OutputAfterFinalValue   "Extrapolation"
    }
    Block {
      BlockType		      Gain
      Gain		      "1"
      Multiplication	      "Element-wise(K.*u)"
      ParamMin		      "[]"
      ParamMax		      "[]"
      ParameterDataTypeMode   "Same as input"
      ParameterDataType	      "fixdt(1,16,0)"
      ParameterScalingMode    "Best Precision: Matrix-wise"
      ParameterScaling	      "[]"
      ParamDataTypeStr	      "Inherit: Same as input"
      OutMin		      "[]"
      OutMax		      "[]"
      OutDataTypeMode	      "Same as input"
      OutDataType	      "fixdt(1,16,0)"
      OutScaling	      "[]"
      OutDataTypeStr	      "Inherit: Same as input"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Inport
      Port		      "1"
      UseBusObject	      off
      BusObject		      "BusObject"
      BusOutputAsStruct	      off
      PortDimensions	      "-1"
      VarSizeSig	      "Inherit"
      SampleTime	      "-1"
      OutMin		      "[]"
      OutMax		      "[]"
      DataType		      "auto"
      OutDataType	      "fixdt(1,16,0)"
      OutScaling	      "[]"
      OutDataTypeStr	      "Inherit: auto"
      LockScale		      off
      SignalType	      "auto"
      SamplingMode	      "auto"
      LatchByDelayingOutsideSignal off
      LatchByCopyingInsideSignal off
      Interpolate	      on
    }
    Block {
      BlockType		      Integrator
      ExternalReset	      "none"
      InitialConditionSource  "internal"
      InitialCondition	      "0"
      LimitOutput	      off
      UpperSaturationLimit    "inf"
      LowerSaturationLimit    "-inf"
      ShowSaturationPort      off
      ShowStatePort	      off
      AbsoluteTolerance	      "auto"
      IgnoreLimit	      off
      ZeroCross		      on
      ContinuousStateAttributes	"''"
    }
    Block {
      BlockType		      Outport
      Port		      "1"
      UseBusObject	      off
      BusObject		      "BusObject"
      BusOutputAsStruct	      off
      PortDimensions	      "-1"
      VarSizeSig	      "Inherit"
      SampleTime	      "-1"
      OutMin		      "[]"
      OutMax		      "[]"
      DataType		      "auto"
      OutDataType	      "fixdt(1,16,0)"
      OutScaling	      "[]"
      OutDataTypeStr	      "Inherit: auto"
      LockScale		      off
      SignalType	      "auto"
      SamplingMode	      "auto"
      SourceOfInitialOutputValue "Dialog"
      OutputWhenDisabled      "held"
      InitialOutput	      "[]"
    }
    Block {
      BlockType		      Product
      Inputs		      "2"
      Multiplication	      "Element-wise(.*)"
      CollapseMode	      "All dimensions"
      CollapseDim	      "1"
      InputSameDT	      on
      OutMin		      "[]"
      OutMax		      "[]"
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "fixdt(1,16,0)"
      OutScaling	      "[]"
      OutDataTypeStr	      "Inherit: Same as first input"
      LockScale		      off
      RndMeth		      "Zero"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      RateLimiter
      RisingSlewLimit	      "1"
      FallingSlewLimit	      "-1"
      SampleTimeMode	      "continuous"
      InitialCondition	      "0"
      LinearizeAsGain	      on
    }
    Block {
      BlockType		      "S-Function"
      FunctionName	      "system"
      SFunctionModules	      "''"
      PortCounts	      "[]"
      SFunctionDeploymentMode off
    }
    Block {
      BlockType		      Saturate
      UpperLimit	      "0.5"
      LowerLimit	      "-0.5"
      LinearizeAsGain	      on
      ZeroCross		      on
      SampleTime	      "-1"
      OutMin		      "[]"
      OutMax		      "[]"
      OutDataTypeMode	      "Same as input"
      OutDataType	      "fixdt(1,16,0)"
      OutScaling	      "[]"
      OutDataTypeStr	      "Inherit: Same as input"
      LockScale		      off
      RndMeth		      "Floor"
    }
    Block {
      BlockType		      Scope
      ModelBased	      off
      TickLabels	      "OneTimeTick"
      ZoomMode		      "on"
      Grid		      "on"
      TimeRange		      "auto"
      YMin		      "-5"
      YMax		      "5"
      SaveToWorkspace	      off
      SaveName		      "ScopeData"
      LimitDataPoints	      on
      MaxDataPoints	      "5000"
      Decimation	      "1"
      SampleInput	      off
      SampleTime	      "-1"
    }
    Block {
      BlockType		      SubSystem
      ShowPortLabels	      "FromPortIcon"
      Permissions	      "ReadWrite"
      PermitHierarchicalResolution "All"
      TreatAsAtomicUnit	      off
      CheckFcnCallInpInsideContextMsg off
      SystemSampleTime	      "-1"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      SimViewingDevice	      off
      DataTypeOverride	      "UseLocalSettings"
      MinMaxOverflowLogging   "UseLocalSettings"
    }
    Block {
      BlockType		      Sum
      IconShape		      "rectangular"
      Inputs		      "++"
      CollapseMode	      "All dimensions"
      CollapseDim	      "1"
      InputSameDT	      on
      AccumDataTypeStr	      "Inherit: Inherit via internal rule"
      OutMin		      "[]"
      OutMax		      "[]"
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "fixdt(1,16,0)"
      OutScaling	      "[]"
      OutDataTypeStr	      "Inherit: Same as first input"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Terminator
    }
    Block {
      BlockType		      TransferFcn
      Numerator		      "[1]"
      Denominator	      "[1 2 1]"
      AbsoluteTolerance	      "auto"
      ContinuousStateAttributes	"''"
      Realization	      "auto"
    }
  }
  System {
    Name		    "EMULADOR_TURBINA_ONE"
    Location		    [370, 90, 1195, 630]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "A4"
    PaperUnits		    "centimeters"
    TiledPaperMargins	    [1.270000, 1.270000, 1.270000, 1.270000]
    TiledPageScale	    1
    ShowPageBoundaries	    off
    ZoomFactor		    "107"
    ReportName		    "simulink-default.rpt"
    SIDHighWatermark	    128
    Block {
      BlockType		      Reference
      Name		      "Analog Output"
      SID		      93
      Ports		      [1]
      Position		      [695, 380, 750, 420]
      AttributesFormatString  "Advantech\\nPCI-1711 [auto]"
      LibraryVersion	      "1.118"
      SourceBlock	      "rtwinlib/Analog Output"
      SourceType	      "RTWin Analog Output"
      SampleTime	      "0.1"
      DrvName		      "Advantech/PCI-1711"
      DrvAddress	      "4294967295"
      DrvOptions	      "zeros(1,0)"
      Channels		      "1"
      RangeMode		      "1"
      VoltRange		      "2"
      InitialValue	      "[]"
      FinalValue	      "0"
    }
    Block {
      BlockType		      Reference
      Name		      "From Altivar71"
      SID		      90
      Ports		      [0, 1]
      Position		      [25, 380, 80, 420]
      AttributesFormatString  "Advantech\\nPCI-1711 [auto]"
      LibraryVersion	      "1.118"
      SourceBlock	      "rtwinlib/Analog Input"
      SourceType	      "RTWin Analog Input"
      SampleTime	      "0.1"
      DrvName		      "Advantech/PCI-1711"
      DrvAddress	      "4294967295"
      DrvOptions	      "zeros(1,0)"
      Channels		      "1"
      RangeMode		      "1"
      VoltRange		      "1"
      DataType		      "1"
    }
    Block {
      BlockType		      Gain
      Name		      "Gain"
      SID		      94
      Position		      [630, 385, 660, 415]
      Gain		      "5"
      ParameterDataTypeMode   "Inherit via internal rule"
      ParameterDataType	      "fixdt(1, 16)"
      ParameterScaling	      "2^0"
      ParamDataTypeStr	      "Inherit: Inherit via internal rule"
      OutDataTypeMode	      "Inherit via internal rule"
      OutDataType	      "fixdt(1, 16)"
      OutScaling	      "2^0"
      OutDataTypeStr	      "Inherit: Inherit via internal rule"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Gain
      Name		      "Gain1"
      SID		      91
      Position		      [115, 383, 190, 417]
      Gain		      "1/4.9965"
      ParameterDataTypeMode   "Inherit via internal rule"
      ParameterDataType	      "fixdt(1, 16)"
      ParameterScaling	      "2^0"
      ParamDataTypeStr	      "Inherit: Inherit via internal rule"
      OutDataTypeMode	      "Inherit via internal rule"
      OutDataType	      "fixdt(1, 16)"
      OutScaling	      "2^0"
      OutDataTypeStr	      "Inherit: Inherit via internal rule"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      SubSystem
      Name		      "Modelo Generador"
      SID		      47
      Ports		      [1, 1]
      Position		      [330, 212, 425, 268]
      FontName		      "Calibri"
      FontSize		      12
      FontWeight	      "bold"
      MinAlgLoopOccurrences   off
      PropExecContextOutsideSubsystem off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      Opaque		      off
      RequestExecContextInheritance off
      MaskHideContents	      off
      System {
	Name			"Modelo Generador"
	Location		[610, 165, 846, 271]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	TiledPaperMargins	[1.270000, 1.270000, 1.270000, 1.270000]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Te_ref"
	  SID			  48
	  Position		  [25, 38, 55, 52]
	  FontName		  "Calibri"
	  FontSize		  12
	  FontWeight		  "bold"
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  TransferFcn
	  Name			  "Dinámica\n Generador/Convertidor"
	  SID			  49
	  Position		  [80, 27, 140, 63]
	  FontName		  "Calibri"
	  FontSize		  12
	  FontWeight		  "bold"
	  Denominator		  "[0.05 1]"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Te"
	  SID			  50
	  Position		  [165, 38, 195, 52]
	  FontName		  "Calibri"
	  FontSize		  12
	  FontWeight		  "bold"
	  IconDisplay		  "Port number"
	}
	Line {
	  SrcBlock		  "Dinámica\n Generador/Convertidor"
	  SrcPort		  1
	  DstBlock		  "Te"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Te_ref"
	  SrcPort		  1
	  DstBlock		  "Dinámica\n Generador/Convertidor"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Modelo aerodinámico"
      SID		      24
      Ports		      [3, 1]
      Position		      [290, 80, 470, 180]
      FontName		      "Calibri"
      FontSize		      12
      FontWeight	      "bold"
      MinAlgLoopOccurrences   off
      PropExecContextOutsideSubsystem off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      Opaque		      off
      RequestExecContextInheritance off
      MaskHideContents	      off
      MaskPromptString	      "R= Radio de las palas (m)|wt_base (rad/s)|rho=densidad aire (kg/m3)|Potencia nominal bas"
      "e (W)"
      MaskStyleString	      "edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on"
      MaskCallbackString      "|||"
      MaskEnableString	      "on,on,on,on"
      MaskVisibilityString    "on,on,on,on"
      MaskToolTipString	      "on,on,on,on"
      MaskVariables	      "R=@1;wt_base=@2;rho=@3;P_base=@4;"
      MaskInitialization      "rho=1.225;"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskPortRotate	      "default"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "38.5|1.47|1.225|1.5e6"
      System {
	Name			"Modelo aerodinámico"
	Location		[5, 82, 956, 331]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	TiledPaperMargins	[1.270000, 1.270000, 1.270000, 1.270000]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "wt_pu"
	  SID			  27
	  Position		  [25, 138, 55, 152]
	  FontName		  "Calibri"
	  FontSize		  12
	  FontWeight		  "bold"
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Inport
	  Name			  "v_wind (m/s)"
	  SID			  25
	  Position		  [25, 23, 55, 37]
	  FontName		  "Calibri"
	  FontSize		  12
	  FontWeight		  "bold"
	  Port			  "2"
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Inport
	  Name			  "beta"
	  SID			  26
	  Position		  [215, 138, 245, 152]
	  FontName		  "Calibri"
	  FontSize		  12
	  FontWeight		  "bold"
	  Port			  "3"
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Saturate
	  Name			  "Avoid division\n by zero"
	  SID			  28
	  Position		  [355, 180, 385, 210]
	  FontName		  "Calibri"
	  FontSize		  12
	  FontWeight		  "bold"
	  UpperLimit		  "inf"
	  LowerLimit		  "0"
	  OutDataType		  "fixdt(1, 16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Saturate
	  Name			  "Avoid division\n by zero1"
	  SID			  29
	  Position		  [130, 60, 160, 90]
	  FontName		  "Calibri"
	  FontSize		  12
	  FontWeight		  "bold"
	  UpperLimit		  "inf"
	  LowerLimit		  "0.0001"
	  OutDataType		  "fixdt(1, 16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Scope
	  Name			  "Cp"
	  SID			  87
	  Ports			  [1]
	  Position		  [495, 129, 525, 161]
	  Floating		  off
	  Location		  [359, 55, 675, 313]
	  Open			  off
	  NumInputPorts		  "1"
	  ZoomMode		  "yonly"
	  List {
	    ListType		    AxesTitles
	    axes1		    "%<SignalLabel>"
	  }
	  YMin			  "-0.2"
	  YMax			  "0.5"
	  SaveName		  "ScopeData5"
	  DataFormat		  "StructureWithTime"
	  SampleTime		  "0"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Cp (lambda,theta)"
	  SID			  30
	  Ports			  [2, 1]
	  Position		  [300, 74, 440, 121]
	  LibraryVersion	  "1.30"
	  FontName		  "Calibri"
	  FontSize		  12
	  FontWeight		  "bold"
	  PermitHierarchicalResolution "ExplicitOnly"
	  MinAlgLoopOccurrences	  off
	  PropExecContextOutsideSubsystem off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  Opaque		  off
	  RequestExecContextInheritance	off
	  MaskHideContents	  off
	  MaskType		  "Stateflow"
	  MaskDescription	  "Embedded MATLAB block"
	  MaskDisplay		  "disp('Cp_clark');"
	  MaskSelfModifiable	  on
	  MaskIconFrame		  on
	  MaskIconOpaque	  off
	  MaskIconRotate	  "none"
	  MaskPortRotate	  "default"
	  MaskIconUnits		  "autoscale"
	  System {
	    Name		    "Cp (lambda,theta)"
	    Location		    [257, 457, 812, 717]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    TiledPaperMargins	    [1.270000, 1.270000, 1.270000, 1.270000]
	    TiledPageScale	    1
	    ShowPageBoundaries	    off
	    ZoomFactor		    "100"
	    SIDHighWatermark	    10
	    Block {
	      BlockType		      Inport
	      Name		      "lambda"
	      SID		      10
	      Position		      [20, 101, 40, 119]
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "beta"
	      SID		      1
	      Position		      [20, 136, 40, 154]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Demux
	      Name		      " Demux "
	      SID		      7
	      Ports		      [1, 1]
	      Position		      [270, 160, 320, 200]
	      Outputs		      "1"
	    }
	    Block {
	      BlockType		      "S-Function"
	      Name		      " SFunction "
	      SID		      6
	      Tag		      "Stateflow S-Function EMULADOR_TURBINA_ONE 2"
	      Ports		      [2, 2]
	      Position		      [180, 100, 230, 160]
	      FunctionName	      "sf_sfun"
	      PortCounts	      "[2 2]"
	      EnableBusSupport	      on
	      Port {
		PortNumber		2
		Name			"Cpc"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
	      }
	    }
	    Block {
	      BlockType		      Terminator
	      Name		      " Terminator "
	      SID		      9
	      Position		      [460, 171, 480, 189]
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Cpc"
	      SID		      5
	      Position		      [460, 101, 480, 119]
	      IconDisplay	      "Port number"
	      OutDataType	      "sfix(16)"
	      OutScaling	      "2^0"
	    }
	    Line {
	      SrcBlock		      " Demux "
	      SrcPort		      1
	      DstBlock		      " Terminator "
	      DstPort		      1
	    }
	    Line {
	      Name		      "Cpc"
	      Labels		      [0, 0]
	      SrcBlock		      " SFunction "
	      SrcPort		      2
	      DstBlock		      "Cpc"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "beta"
	      SrcPort		      1
	      DstBlock		      " SFunction "
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "lambda"
	      SrcPort		      1
	      DstBlock		      " SFunction "
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      " SFunction "
	      SrcPort		      1
	      DstBlock		      " Demux "
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Product
	  Name			  "Divide"
	  SID			  31
	  Ports			  [2, 1]
	  Position		  [725, 87, 755, 118]
	  FontName		  "Calibri"
	  FontSize		  12
	  FontWeight		  "bold"
	  Inputs		  "*/"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "fixdt(1, 16)"
	  OutScaling		  "2^-10"
	  OutDataTypeStr	  "Inherit: Inherit via internal rule"
	  RndMeth		  "Floor"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Product
	  Name			  "Divide1"
	  SID			  32
	  Ports			  [2, 1]
	  Position		  [215, 67, 245, 98]
	  FontName		  "Calibri"
	  FontSize		  12
	  FontWeight		  "bold"
	  Inputs		  "/*"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "fixdt(1, 16)"
	  OutScaling		  "2^-10"
	  OutDataTypeStr	  "Inherit: Inherit via internal rule"
	  RndMeth		  "Floor"
	  SaturateOnIntegerOverflow off
	  Port {
	    PortNumber		    1
	    Name		    "lambda"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	  }
	}
	Block {
	  BlockType		  Gain
	  Name			  "K_potencia"
	  SID			  33
	  Position		  [560, 15, 675, 65]
	  FontName		  "Calibri"
	  FontSize		  12
	  FontWeight		  "bold"
	  Gain			  "0.5*rho*pi*R^2"
	  ParameterDataTypeMode	  "Inherit via internal rule"
	  ParameterDataType	  "fixdt(1, 16)"
	  ParameterScaling	  "2^0"
	  ParamDataTypeStr	  "Inherit: Inherit via internal rule"
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "fixdt(1, 16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "Inherit: Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	  Port {
	    PortNumber		    1
	    Name		    "Pt"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	  }
	}
	Block {
	  BlockType		  Constant
	  Name			  "P_base"
	  SID			  34
	  Position		  [560, 95, 605, 125]
	  FontName		  "Calibri"
	  FontSize		  12
	  FontWeight		  "bold"
	  Value			  "P_base"
	  OutDataType		  "fixdt(1, 16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Product
	  Name			  "Product"
	  SID			  35
	  Ports			  [2, 1]
	  Position		  [495, 22, 525, 53]
	  FontName		  "Calibri"
	  FontSize		  12
	  FontWeight		  "bold"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "fixdt(1, 16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "Inherit: Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Product
	  Name			  "calculo del \npar"
	  SID			  36
	  Ports			  [2, 1]
	  Position		  [825, 172, 855, 203]
	  FontName		  "Calibri"
	  FontSize		  12
	  FontWeight		  "bold"
	  Inputs		  "*/"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "fixdt(1, 16)"
	  OutScaling		  "2^-10"
	  OutDataTypeStr	  "Inherit: Inherit via internal rule"
	  RndMeth		  "Floor"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Gain
	  Name			  "kb"
	  SID			  37
	  Position		  [95, 123, 185, 167]
	  FontName		  "Calibri"
	  FontSize		  12
	  FontWeight		  "bold"
	  Gain			  "R*wt_base"
	  ParameterDataTypeMode	  "Inherit via internal rule"
	  ParameterDataType	  "fixdt(1, 16)"
	  ParameterScaling	  "2^0"
	  ParamDataTypeStr	  "Inherit: Inherit via internal rule"
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "fixdt(1, 16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "Inherit: Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  Fcn
	  Name			  "v_wind^3"
	  SID			  38
	  Position		  [200, 15, 260, 45]
	  FontName		  "Calibri"
	  FontSize		  12
	  FontWeight		  "bold"
	  Expr			  "u(1)^3"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Tt_pu"
	  SID			  39
	  Position		  [910, 183, 940, 197]
	  FontName		  "Calibri"
	  FontSize		  12
	  FontWeight		  "bold"
	  IconDisplay		  "Port number"
	}
	Line {
	  SrcBlock		  "wt_pu"
	  SrcPort		  1
	  Points		  [15, 0]
	  Branch {
	    Points		    [0, 50]
	    DstBlock		    "Avoid division\n by zero"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "kb"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "beta"
	  SrcPort		  1
	  Points		  [25, 0; 0, -35]
	  DstBlock		  "Cp (lambda,theta)"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Divide"
	  SrcPort		  1
	  Points		  [35, 0; 0, 75]
	  DstBlock		  "calculo del \npar"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Cp (lambda,theta)"
	  SrcPort		  1
	  Points		  [20, 0]
	  Branch {
	    Points		    [0, -55]
	    DstBlock		    "Product"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [0, 45]
	    DstBlock		    "Cp"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "P_base"
	  SrcPort		  1
	  DstBlock		  "Divide"
	  DstPort		  2
	}
	Line {
	  Name			  "Pt"
	  FontName		  "Calibri"
	  FontSize		  12
	  FontWeight		  "bold"
	  Labels		  [0, 0]
	  SrcBlock		  "K_potencia"
	  SrcPort		  1
	  Points		  [20, 0; 0, 55]
	  DstBlock		  "Divide"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "calculo del \npar"
	  SrcPort		  1
	  DstBlock		  "Tt_pu"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Avoid division\n by zero"
	  SrcPort		  1
	  DstBlock		  "calculo del \npar"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Product"
	  SrcPort		  1
	  DstBlock		  "K_potencia"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "v_wind^3"
	  SrcPort		  1
	  DstBlock		  "Product"
	  DstPort		  1
	}
	Line {
	  Name			  "lambda"
	  FontName		  "Calibri"
	  FontSize		  12
	  FontWeight		  "bold"
	  Labels		  [0, 0]
	  SrcBlock		  "Divide1"
	  SrcPort		  1
	  DstBlock		  "Cp (lambda,theta)"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "kb"
	  SrcPort		  1
	  Points		  [10, 0]
	  DstBlock		  "Divide1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Avoid division\n by zero1"
	  SrcPort		  1
	  DstBlock		  "Divide1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "v_wind (m/s)"
	  SrcPort		  1
	  Points		  [15, 0]
	  Branch {
	    DstBlock		    "v_wind^3"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 45]
	    DstBlock		    "Avoid division\n by zero1"
	    DstPort		    1
	  }
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Modelo del Control"
      SID		      99
      Ports		      [2, 2]
      Position		      [115, 195, 210, 255]
      FontName		      "Calibri"
      FontSize		      12
      FontWeight	      "bold"
      MinAlgLoopOccurrences   off
      PropExecContextOutsideSubsystem off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      Opaque		      off
      RequestExecContextInheritance off
      MaskHideContents	      off
      System {
	Name			"Modelo del Control"
	Location		[289, 170, 881, 372]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	TiledPaperMargins	[1.270000, 1.270000, 1.270000, 1.270000]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "wg_pu"
	  SID			  100
	  Position		  [25, 93, 55, 107]
	  FontName		  "Calibri"
	  FontSize		  12
	  FontWeight		  "bold"
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Inport
	  Name			  "Pe"
	  SID			  101
	  Position		  [25, 58, 55, 72]
	  FontName		  "Calibri"
	  FontSize		  12
	  FontWeight		  "bold"
	  Port			  "2"
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Control Pitch"
	  SID			  102
	  Ports			  [2, 1]
	  Position		  [345, 72, 440, 128]
	  FontName		  "Calibri"
	  FontSize		  12
	  FontWeight		  "bold"
	  MinAlgLoopOccurrences	  off
	  PropExecContextOutsideSubsystem off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  Opaque		  off
	  RequestExecContextInheritance	off
	  MaskHideContents	  off
	  System {
	    Name		    "Control Pitch"
	    Location		    [514, 102, 1115, 326]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    TiledPaperMargins	    [1.270000, 1.270000, 1.270000, 1.270000]
	    TiledPageScale	    1
	    ShowPageBoundaries	    off
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Pe"
	      SID		      103
	      Position		      [20, 123, 50, 137]
	      FontName		      "Calibri"
	      FontSize		      12
	      FontWeight	      "bold"
	      IconDisplay	      "Port number"
	      OutDataType	      "fixdt(1, 16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "wg"
	      SID		      104
	      Position		      [20, 28, 50, 42]
	      FontName		      "Calibri"
	      FontSize		      12
	      FontWeight	      "bold"
	      Port		      "2"
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      TransferFcn
	      Name		      "Dinámica palas"
	      SID		      105
	      Position		      [315, 17, 375, 53]
	      FontName		      "Calibri"
	      FontSize		      12
	      FontWeight	      "bold"
	      Denominator	      "[0.3 1]"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "P_max"
	      SID		      106
	      Position		      [55, 160, 85, 190]
	      FontName		      "Calibri"
	      FontSize		      12
	      FontWeight	      "bold"
	      Value		      "1.12"
	      OutDataType	      "fixdt(1, 16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Pitch compensation"
	      SID		      107
	      Ports		      [1, 1]
	      Position		      [165, 112, 205, 148]
	      LibraryVersion	      "1.762"
	      DialogController	      "pidpack.PIDConfig.pidDDGCreate"
	      DialogControllerArgs    "DataTag0"
	      FontName		      "Calibri"
	      FontSize		      12
	      FontWeight	      "bold"
	      SourceBlock	      "simulink/Continuous/PID Controller"
	      SourceType	      "PID 1dof"
	      ShowPortLabels	      "FromPortIcon"
	      SystemSampleTime	      "-1"
	      FunctionWithSeparateData off
	      RTWMemSecFuncInitTerm   "Inherit from model"
	      RTWMemSecFuncExecute    "Inherit from model"
	      RTWMemSecDataConstants  "Inherit from model"
	      RTWMemSecDataInternal   "Inherit from model"
	      RTWMemSecDataParameters "Inherit from model"
	      Controller	      "PI"
	      TimeDomain	      "Continuous-time"
	      SampleTime	      "1"
	      IntegratorMethod	      "Forward Euler"
	      FilterMethod	      "Forward Euler"
	      Form		      "Parallel"
	      P			      "3"
	      I			      "30"
	      D			      "0"
	      N			      "100"
	      InitialConditionSource  "internal"
	      InitialConditionForIntegrator "0"
	      InitialConditionForFilter	"0"
	      ExternalReset	      "none"
	      IgnoreLimit	      off
	      ZeroCross		      on
	      LimitOutput	      on
	      UpperSaturationLimit    "27"
	      LowerSaturationLimit    "0"
	      LinearizeAsGain	      off
	      AntiWindupMode	      "clamping"
	      Kb		      "1"
	      TrackingMode	      off
	      Kt		      "1"
	      RndMeth		      "Floor"
	      SaturateOnIntegerOverflow	off
	      LockScale		      off
	      PParamMin		      "[]"
	      PParamMax		      "[]"
	      PParamDataTypeStr	      "Inherit: Inherit via internal rule"
	      IParamMin		      "[]"
	      IParamMax		      "[]"
	      IParamDataTypeStr	      "Inherit: Inherit via internal rule"
	      DParamMin		      "[]"
	      DParamMax		      "[]"
	      DParamDataTypeStr	      "Inherit: Inherit via internal rule"
	      NParamMin		      "[]"
	      NParamMax		      "[]"
	      NParamDataTypeStr	      "Inherit: Inherit via internal rule"
	      KbParamMin	      "[]"
	      KbParamMax	      "[]"
	      KbParamDataTypeStr      "Inherit: Inherit via internal rule"
	      KtParamMin	      "[]"
	      KtParamMax	      "[]"
	      KtParamDataTypeStr      "Inherit: Inherit via internal rule"
	      POutMin		      "[]"
	      POutMax		      "[]"
	      POutDataTypeStr	      "Inherit: Inherit via internal rule"
	      IOutMin		      "[]"
	      IOutMax		      "[]"
	      IOutDataTypeStr	      "Inherit: Inherit via internal rule"
	      DOutMin		      "[]"
	      DOutMax		      "[]"
	      DOutDataTypeStr	      "Inherit: Inherit via internal rule"
	      NOutMin		      "[]"
	      NOutMax		      "[]"
	      NOutDataTypeStr	      "Inherit: Inherit via internal rule"
	      KbOutMin		      "[]"
	      KbOutMax		      "[]"
	      KbOutDataTypeStr	      "Inherit: Inherit via internal rule"
	      KtOutMin		      "[]"
	      KtOutMax		      "[]"
	      KtOutDataTypeStr	      "Inherit: Inherit via internal rule"
	      IntegratorOutMin	      "[]"
	      IntegratorOutMax	      "[]"
	      IntegratorOutDataTypeStr "Inherit: Inherit via internal rule"
	      FilterOutMin	      "[]"
	      FilterOutMax	      "[]"
	      FilterOutDataTypeStr    "Inherit: Inherit via internal rule"
	      SumOutMin		      "[]"
	      SumOutMax		      "[]"
	      SumOutDataTypeStr	      "Inherit: Inherit via internal rule"
	      SumI1OutMin	      "[]"
	      SumI1OutMax	      "[]"
	      SumI1OutDataTypeStr     "Inherit: Inherit via internal rule"
	      SumI2OutMin	      "[]"
	      SumI2OutMax	      "[]"
	      SumI2OutDataTypeStr     "Inherit: Inherit via internal rule"
	      SumI3OutMin	      "[]"
	      SumI3OutMax	      "[]"
	      SumI3OutDataTypeStr     "Inherit: Inherit via internal rule"
	      SumDOutMin	      "[]"
	      SumDOutMax	      "[]"
	      SumDOutDataTypeStr      "Inherit: Inherit via internal rule"
	      SumAccumDataTypeStr     "Inherit: Inherit via internal rule"
	      SumI1AccumDataTypeStr   "Inherit: Inherit via internal rule"
	      SumI2AccumDataTypeStr   "Inherit: Inherit via internal rule"
	      SumI3AccumDataTypeStr   "Inherit: Inherit via internal rule"
	      SumDAccumDataTypeStr    "Inherit: Inherit via internal rule"
	      SaturationOutMin	      "[]"
	      SaturationOutMax	      "[]"
	      SaturationOutDataTypeStr "Inherit: Same as input"
	      IntegratorContinuousStateAttributes "''"
	      IntegratorStateMustResolveToSignalObject off
	      IntegratorRTWStateStorageClass "Auto"
	      FilterContinuousStateAttributes "''"
	      FilterStateMustResolveToSignalObject off
	      FilterRTWStateStorageClass "Auto"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Pitch control"
	      SID		      108
	      Ports		      [1, 1]
	      Position		      [165, 17, 205, 53]
	      LibraryVersion	      "1.762"
	      DialogController	      "pidpack.PIDConfig.pidDDGCreate"
	      DialogControllerArgs    "DataTag1"
	      FontName		      "Calibri"
	      FontSize		      12
	      FontWeight	      "bold"
	      SourceBlock	      "simulink/Continuous/PID Controller"
	      SourceType	      "PID 1dof"
	      ShowPortLabels	      "FromPortIcon"
	      SystemSampleTime	      "-1"
	      FunctionWithSeparateData off
	      RTWMemSecFuncInitTerm   "Inherit from model"
	      RTWMemSecFuncExecute    "Inherit from model"
	      RTWMemSecDataConstants  "Inherit from model"
	      RTWMemSecDataInternal   "Inherit from model"
	      RTWMemSecDataParameters "Inherit from model"
	      Controller	      "PI"
	      TimeDomain	      "Continuous-time"
	      SampleTime	      "1"
	      IntegratorMethod	      "Forward Euler"
	      FilterMethod	      "Forward Euler"
	      Form		      "Parallel"
	      P			      "150"
	      I			      "25"
	      D			      "0"
	      N			      "100"
	      InitialConditionSource  "internal"
	      InitialConditionForIntegrator "0"
	      InitialConditionForFilter	"0"
	      ExternalReset	      "none"
	      IgnoreLimit	      off
	      ZeroCross		      on
	      LimitOutput	      on
	      UpperSaturationLimit    "27"
	      LowerSaturationLimit    "0"
	      LinearizeAsGain	      off
	      AntiWindupMode	      "clamping"
	      Kb		      "1"
	      TrackingMode	      off
	      Kt		      "1"
	      RndMeth		      "Floor"
	      SaturateOnIntegerOverflow	off
	      LockScale		      off
	      PParamMin		      "[]"
	      PParamMax		      "[]"
	      PParamDataTypeStr	      "Inherit: Inherit via internal rule"
	      IParamMin		      "[]"
	      IParamMax		      "[]"
	      IParamDataTypeStr	      "Inherit: Inherit via internal rule"
	      DParamMin		      "[]"
	      DParamMax		      "[]"
	      DParamDataTypeStr	      "Inherit: Inherit via internal rule"
	      NParamMin		      "[]"
	      NParamMax		      "[]"
	      NParamDataTypeStr	      "Inherit: Inherit via internal rule"
	      KbParamMin	      "[]"
	      KbParamMax	      "[]"
	      KbParamDataTypeStr      "Inherit: Inherit via internal rule"
	      KtParamMin	      "[]"
	      KtParamMax	      "[]"
	      KtParamDataTypeStr      "Inherit: Inherit via internal rule"
	      POutMin		      "[]"
	      POutMax		      "[]"
	      POutDataTypeStr	      "Inherit: Inherit via internal rule"
	      IOutMin		      "[]"
	      IOutMax		      "[]"
	      IOutDataTypeStr	      "Inherit: Inherit via internal rule"
	      DOutMin		      "[]"
	      DOutMax		      "[]"
	      DOutDataTypeStr	      "Inherit: Inherit via internal rule"
	      NOutMin		      "[]"
	      NOutMax		      "[]"
	      NOutDataTypeStr	      "Inherit: Inherit via internal rule"
	      KbOutMin		      "[]"
	      KbOutMax		      "[]"
	      KbOutDataTypeStr	      "Inherit: Inherit via internal rule"
	      KtOutMin		      "[]"
	      KtOutMax		      "[]"
	      KtOutDataTypeStr	      "Inherit: Inherit via internal rule"
	      IntegratorOutMin	      "[]"
	      IntegratorOutMax	      "[]"
	      IntegratorOutDataTypeStr "Inherit: Inherit via internal rule"
	      FilterOutMin	      "[]"
	      FilterOutMax	      "[]"
	      FilterOutDataTypeStr    "Inherit: Inherit via internal rule"
	      SumOutMin		      "[]"
	      SumOutMax		      "[]"
	      SumOutDataTypeStr	      "Inherit: Inherit via internal rule"
	      SumI1OutMin	      "[]"
	      SumI1OutMax	      "[]"
	      SumI1OutDataTypeStr     "Inherit: Inherit via internal rule"
	      SumI2OutMin	      "[]"
	      SumI2OutMax	      "[]"
	      SumI2OutDataTypeStr     "Inherit: Inherit via internal rule"
	      SumI3OutMin	      "[]"
	      SumI3OutMax	      "[]"
	      SumI3OutDataTypeStr     "Inherit: Inherit via internal rule"
	      SumDOutMin	      "[]"
	      SumDOutMax	      "[]"
	      SumDOutDataTypeStr      "Inherit: Inherit via internal rule"
	      SumAccumDataTypeStr     "Inherit: Inherit via internal rule"
	      SumI1AccumDataTypeStr   "Inherit: Inherit via internal rule"
	      SumI2AccumDataTypeStr   "Inherit: Inherit via internal rule"
	      SumI3AccumDataTypeStr   "Inherit: Inherit via internal rule"
	      SumDAccumDataTypeStr    "Inherit: Inherit via internal rule"
	      SaturationOutMin	      "[]"
	      SaturationOutMax	      "[]"
	      SaturationOutDataTypeStr "Inherit: Same as input"
	      IntegratorContinuousStateAttributes "''"
	      IntegratorStateMustResolveToSignalObject off
	      IntegratorRTWStateStorageClass "Auto"
	      FilterContinuousStateAttributes "''"
	      FilterStateMustResolveToSignalObject off
	      FilterRTWStateStorageClass "Auto"
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      SID		      109
	      Ports		      [2, 1]
	      Position		      [100, 120, 120, 140]
	      ShowName		      off
	      FontName		      "Calibri"
	      FontSize		      12
	      FontWeight	      "bold"
	      IconShape		      "round"
	      Inputs		      "|+-"
	      InputSameDT	      off
	      OutDataTypeMode	      "Inherit via internal rule"
	      OutDataType	      "fixdt(1, 16)"
	      OutScaling	      "2^0"
	      OutDataTypeStr	      "Inherit: Inherit via internal rule"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum1"
	      SID		      110
	      Ports		      [2, 1]
	      Position		      [100, 25, 120, 45]
	      ShowName		      off
	      FontName		      "Calibri"
	      FontSize		      12
	      FontWeight	      "bold"
	      IconShape		      "round"
	      Inputs		      "|+-"
	      InputSameDT	      off
	      OutDataTypeMode	      "Inherit via internal rule"
	      OutDataType	      "fixdt(1, 16)"
	      OutScaling	      "2^0"
	      OutDataTypeStr	      "Inherit: Inherit via internal rule"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum2"
	      SID		      111
	      Ports		      [2, 1]
	      Position		      [245, 25, 265, 45]
	      ShowName		      off
	      FontName		      "Calibri"
	      FontSize		      12
	      FontWeight	      "bold"
	      IconShape		      "round"
	      Inputs		      "|++"
	      InputSameDT	      off
	      OutDataTypeMode	      "Inherit via internal rule"
	      OutDataType	      "fixdt(1, 16)"
	      OutScaling	      "2^0"
	      OutDataTypeStr	      "Inherit: Inherit via internal rule"
	      SaturateOnIntegerOverflow	off
	    }
	    Block {
	      BlockType		      Saturate
	      Name		      "beta limits"
	      SID		      112
	      Position		      [415, 20, 445, 50]
	      FontName		      "Calibri"
	      FontSize		      12
	      FontWeight	      "bold"
	      UpperLimit	      "54"
	      LowerLimit	      "0"
	      OutDataType	      "fixdt(1, 16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      RateLimiter
	      Name		      "dbeta/dt"
	      SID		      113
	      Position		      [475, 20, 505, 50]
	      FontName		      "Calibri"
	      FontSize		      12
	      FontWeight	      "bold"
	      RisingSlewLimit	      "10"
	      FallingSlewLimit	      "-10"
	      SampleTimeMode	      "inherited"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "wg_max"
	      SID		      114
	      Position		      [55, 60, 85, 90]
	      FontName		      "Calibri"
	      FontSize		      12
	      FontWeight	      "bold"
	      Value		      "1.2"
	      OutDataType	      "fixdt(1, 16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "beta"
	      SID		      115
	      Position		      [560, 28, 590, 42]
	      FontName		      "Calibri"
	      FontSize		      12
	      FontWeight	      "bold"
	      IconDisplay	      "Port number"
	    }
	    Line {
	      SrcBlock		      "Pitch control"
	      SrcPort		      1
	      DstBlock		      "Sum2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Sum2"
	      SrcPort		      1
	      DstBlock		      "Dinámica palas"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      DstBlock		      "Pitch compensation"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Pe"
	      SrcPort		      1
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "P_max"
	      SrcPort		      1
	      Points		      [20, 0]
	      DstBlock		      "Sum"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Dinámica palas"
	      SrcPort		      1
	      DstBlock		      "beta limits"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "beta limits"
	      SrcPort		      1
	      DstBlock		      "dbeta/dt"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "dbeta/dt"
	      SrcPort		      1
	      DstBlock		      "beta"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Pitch compensation"
	      SrcPort		      1
	      Points		      [45, 0]
	      DstBlock		      "Sum2"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "wg_max"
	      SrcPort		      1
	      Points		      [20, 0]
	      DstBlock		      "Sum1"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Sum1"
	      SrcPort		      1
	      DstBlock		      "Pitch control"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "wg"
	      SrcPort		      1
	      DstBlock		      "Sum1"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Control de Par"
	  SID			  116
	  Ports			  [2, 1]
	  Position		  [110, 45, 235, 120]
	  FontName		  "Calibri"
	  FontSize		  12
	  FontWeight		  "bold"
	  MinAlgLoopOccurrences	  off
	  PropExecContextOutsideSubsystem off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  Opaque		  off
	  RequestExecContextInheritance	off
	  MaskHideContents	  off
	  System {
	    Name		    "Control de Par"
	    Location		    [43, 129, 786, 290]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    TiledPaperMargins	    [1.270000, 1.270000, 1.270000, 1.270000]
	    TiledPageScale	    1
	    ShowPageBoundaries	    off
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Pe"
	      SID		      117
	      Position		      [20, 63, 50, 77]
	      FontName		      "Calibri"
	      FontSize		      12
	      FontWeight	      "bold"
	      IconDisplay	      "Port number"
	      OutDataType	      "fixdt(1, 16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "wg_pu"
	      SID		      118
	      Position		      [20, 118, 50, 132]
	      FontName		      "Calibri"
	      FontSize		      12
	      FontWeight	      "bold"
	      Port		      "2"
	      IconDisplay	      "Port number"
	      OutDataType	      "fixdt(1, 16)"
	      OutScaling	      "2^0"
	      Port {
		PortNumber		1
		Name			"wg"
		PropagatedSignals	"w_pu"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
	      }
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "PI Controller"
	      SID		      119
	      Ports		      [1, 1]
	      Position		      [535, 52, 575, 88]
	      LibraryVersion	      "1.762"
	      DialogController	      "pidpack.PIDConfig.pidDDGCreate"
	      DialogControllerArgs    "DataTag2"
	      FontName		      "Calibri"
	      FontSize		      12
	      FontWeight	      "bold"
	      SourceBlock	      "simulink/Continuous/PID Controller"
	      SourceType	      "PID 1dof"
	      ShowPortLabels	      "FromPortIcon"
	      SystemSampleTime	      "-1"
	      FunctionWithSeparateData off
	      RTWMemSecFuncInitTerm   "Inherit from model"
	      RTWMemSecFuncExecute    "Inherit from model"
	      RTWMemSecDataConstants  "Inherit from model"
	      RTWMemSecDataInternal   "Inherit from model"
	      RTWMemSecDataParameters "Inherit from model"
	      Controller	      "PI"
	      TimeDomain	      "Continuous-time"
	      SampleTime	      "1"
	      IntegratorMethod	      "Forward Euler"
	      FilterMethod	      "Forward Euler"
	      Form		      "Parallel"
	      P			      "3"
	      I			      "0.6"
	      D			      "0"
	      N			      "100"
	      InitialConditionSource  "internal"
	      InitialConditionForIntegrator "0"
	      InitialConditionForFilter	"0"
	      ExternalReset	      "none"
	      IgnoreLimit	      off
	      ZeroCross		      on
	      LimitOutput	      on
	      UpperSaturationLimit    "1"
	      LowerSaturationLimit    "-inf"
	      LinearizeAsGain	      off
	      AntiWindupMode	      "clamping"
	      Kb		      "1"
	      TrackingMode	      off
	      Kt		      "1"
	      RndMeth		      "Floor"
	      SaturateOnIntegerOverflow	off
	      LockScale		      off
	      PParamMin		      "[]"
	      PParamMax		      "[]"
	      PParamDataTypeStr	      "Inherit: Inherit via internal rule"
	      IParamMin		      "[]"
	      IParamMax		      "[]"
	      IParamDataTypeStr	      "Inherit: Inherit via internal rule"
	      DParamMin		      "[]"
	      DParamMax		      "[]"
	      DParamDataTypeStr	      "Inherit: Inherit via internal rule"
	      NParamMin		      "[]"
	      NParamMax		      "[]"
	      NParamDataTypeStr	      "Inherit: Inherit via internal rule"
	      KbParamMin	      "[]"
	      KbParamMax	      "[]"
	      KbParamDataTypeStr      "Inherit: Inherit via internal rule"
	      KtParamMin	      "[]"
	      KtParamMax	      "[]"
	      KtParamDataTypeStr      "Inherit: Inherit via internal rule"
	      POutMin		      "[]"
	      POutMax		      "[]"
	      POutDataTypeStr	      "Inherit: Inherit via internal rule"
	      IOutMin		      "[]"
	      IOutMax		      "[]"
	      IOutDataTypeStr	      "Inherit: Inherit via internal rule"
	      DOutMin		      "[]"
	      DOutMax		      "[]"
	      DOutDataTypeStr	      "Inherit: Inherit via internal rule"
	      NOutMin		      "[]"
	      NOutMax		      "[]"
	      NOutDataTypeStr	      "Inherit: Inherit via internal rule"
	      KbOutMin		      "[]"
	      KbOutMax		      "[]"
	      KbOutDataTypeStr	      "Inherit: Inherit via internal rule"
	      KtOutMin		      "[]"
	      KtOutMax		      "[]"
	      KtOutDataTypeStr	      "Inherit: Inherit via internal rule"
	      IntegratorOutMin	      "[]"
	      IntegratorOutMax	      "[]"
	      IntegratorOutDataTypeStr "Inherit: Inherit via internal rule"
	      FilterOutMin	      "[]"
	      FilterOutMax	      "[]"
	      FilterOutDataTypeStr    "Inherit: Inherit via internal rule"
	      SumOutMin		      "[]"
	      SumOutMax		      "[]"
	      SumOutDataTypeStr	      "Inherit: Inherit via internal rule"
	      SumI1OutMin	      "[]"
	      SumI1OutMax	      "[]"
	      SumI1OutDataTypeStr     "Inherit: Inherit via internal rule"
	      SumI2OutMin	      "[]"
	      SumI2OutMax	      "[]"
	      SumI2OutDataTypeStr     "Inherit: Inherit via internal rule"
	      SumI3OutMin	      "[]"
	      SumI3OutMax	      "[]"
	      SumI3OutDataTypeStr     "Inherit: Inherit via internal rule"
	      SumDOutMin	      "[]"
	      SumDOutMax	      "[]"
	      SumDOutDataTypeStr      "Inherit: Inherit via internal rule"
	      SumAccumDataTypeStr     "Inherit: Inherit via internal rule"
	      SumI1AccumDataTypeStr   "Inherit: Inherit via internal rule"
	      SumI2AccumDataTypeStr   "Inherit: Inherit via internal rule"
	      SumI3AccumDataTypeStr   "Inherit: Inherit via internal rule"
	      SumDAccumDataTypeStr    "Inherit: Inherit via internal rule"
	      SaturationOutMin	      "[]"
	      SaturationOutMax	      "[]"
	      SaturationOutDataTypeStr "Inherit: Same as input"
	      IntegratorContinuousStateAttributes "''"
	      IntegratorStateMustResolveToSignalObject off
	      IntegratorRTWStateStorageClass "Auto"
	      FilterContinuousStateAttributes "''"
	      FilterStateMustResolveToSignalObject off
	      FilterRTWStateStorageClass "Auto"
	      Port {
		PortNumber		1
		Name			"Te_ref"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
	      }
	    }
	    Block {
	      BlockType		      TransferFcn
	      Name		      "Retardo generador"
	      SID		      120
	      Position		      [355, 52, 415, 88]
	      FontName		      "Calibri"
	      FontSize		      12
	      FontWeight	      "bold"
	      Denominator	      "[5 1]"
	      Port {
		PortNumber		1
		Name			"w_ref"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
	      }
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      SID		      121
	      Ports		      [2, 1]
	      Position		      [465, 60, 485, 80]
	      ShowName		      off
	      FontName		      "Calibri"
	      FontSize		      12
	      FontWeight	      "bold"
	      IconShape		      "round"
	      Inputs		      "|-+"
	      InputSameDT	      off
	      OutDataTypeMode	      "Inherit via internal rule"
	      OutDataType	      "fixdt(1, 16)"
	      OutScaling	      "2^0"
	      OutDataTypeStr	      "Inherit: Inherit via internal rule"
	      SaturateOnIntegerOverflow	off
	      Port {
		PortNumber		1
		Name			"w_er"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
	      }
	    }
	    Block {
	      BlockType		      RateLimiter
	      Name		      "dTe/dt"
	      SID		      122
	      Position		      [630, 55, 660, 85]
	      FontName		      "Calibri"
	      FontSize		      12
	      FontWeight	      "bold"
	      RisingSlewLimit	      "0.45"
	      FallingSlewLimit	      "-0.45"
	      SampleTimeMode	      "inherited"
	    }
	    Block {
	      BlockType		      Saturate
	      Name		      "limites wg"
	      SID		      123
	      Position		      [290, 55, 320, 85]
	      FontName		      "Calibri"
	      FontSize		      12
	      FontWeight	      "bold"
	      UpperLimit	      "1.2"
	      LowerLimit	      "0.7"
	      OutDataType	      "fixdt(1, 16)"
	      OutScaling	      "2^0"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "speed_setpoint"
	      SID		      124
	      Ports		      [1, 1]
	      Position		      [75, 45, 235, 95]
	      LibraryVersion	      "1.30"
	      FontName		      "Calibri"
	      FontSize		      12
	      FontWeight	      "bold"
	      PermitHierarchicalResolution "ExplicitOnly"
	      MinAlgLoopOccurrences   off
	      PropExecContextOutsideSubsystem off
	      RTWSystemCode	      "Auto"
	      FunctionWithSeparateData off
	      Opaque		      off
	      RequestExecContextInheritance off
	      MaskHideContents	      off
	      MaskType		      "Stateflow"
	      MaskDescription	      "Embedded MATLAB block"
	      MaskDisplay	      "disp('speed_setpoint');"
	      MaskSelfModifiable      on
	      MaskIconFrame	      on
	      MaskIconOpaque	      off
	      MaskIconRotate	      "none"
	      MaskPortRotate	      "default"
	      MaskIconUnits	      "autoscale"
	      Port {
		PortNumber		1
		Name			"w_opt"
		PropagatedSignals	"w_opt"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
	      }
	      System {
		Name			"speed_setpoint"
		Location		[257, 457, 812, 717]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"A4"
		PaperUnits		"centimeters"
		TiledPaperMargins	[1.270000, 1.270000, 1.270000, 1.270000]
		TiledPageScale		1
		ShowPageBoundaries	off
		ZoomFactor		"100"
		SIDHighWatermark	9
		Block {
		  BlockType		  Inport
		  Name			  "Pe"
		  SID			  1
		  Position		  [20, 101, 40, 119]
		  IconDisplay		  "Port number"
		  OutDataType		  "sfix(16)"
		  OutScaling		  "2^0"
		}
		Block {
		  BlockType		  Demux
		  Name			  " Demux "
		  SID			  7
		  Ports			  [1, 1]
		  Position		  [270, 160, 320, 200]
		  Outputs		  "1"
		}
		Block {
		  BlockType		  "S-Function"
		  Name			  " SFunction "
		  SID			  6
		  Tag			  "Stateflow S-Function EMULADOR_TURBINA_ONE 3"
		  Ports			  [1, 2]
		  Position		  [180, 100, 230, 160]
		  FunctionName		  "sf_sfun"
		  PortCounts		  "[1 2]"
		  EnableBusSupport	  on
		  Port {
		    PortNumber		    2
		    Name		    "w_opt"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		  }
		}
		Block {
		  BlockType		  Terminator
		  Name			  " Terminator "
		  SID			  9
		  Position		  [460, 171, 480, 189]
		}
		Block {
		  BlockType		  Outport
		  Name			  "w_opt"
		  SID			  5
		  Position		  [460, 101, 480, 119]
		  IconDisplay		  "Port number"
		  OutDataType		  "sfix(16)"
		  OutScaling		  "2^0"
		}
		Line {
		  SrcBlock		  " Demux "
		  SrcPort		  1
		  DstBlock		  " Terminator "
		  DstPort		  1
		}
		Line {
		  Name			  "w_opt"
		  Labels		  [0, 0]
		  SrcBlock		  " SFunction "
		  SrcPort		  2
		  DstBlock		  "w_opt"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Pe"
		  SrcPort		  1
		  DstBlock		  " SFunction "
		  DstPort		  1
		}
		Line {
		  SrcBlock		  " SFunction "
		  SrcPort		  1
		  DstBlock		  " Demux "
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      Scope
	      Name		      "w_ref"
	      SID		      125
	      Ports		      [1]
	      Position		      [460, 14, 490, 46]
	      Floating		      off
	      Location		      [743, 392, 1067, 631]
	      Open		      off
	      NumInputPorts	      "1"
	      List {
		ListType		AxesTitles
		axes1			"%<SignalLabel>"
	      }
	      SaveName		      "ScopeData6"
	      DataFormat	      "StructureWithTime"
	      SampleTime	      "0"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Te_ref"
	      SID		      126
	      Position		      [695, 63, 725, 77]
	      FontName		      "Calibri"
	      FontSize		      12
	      FontWeight	      "bold"
	      IconDisplay	      "Port number"
	      OutDataType	      "fixdt(1, 16)"
	      OutScaling	      "2^0"
	    }
	    Line {
	      Name		      "wg"
	      FontName		      "Calibri"
	      FontSize		      12
	      FontWeight	      "bold"
	      Labels		      [2, 0]
	      SrcBlock		      "wg_pu"
	      SrcPort		      1
	      Points		      [420, 0]
	      DstBlock		      "Sum"
	      DstPort		      2
	    }
	    Line {
	      Name		      "w_er"
	      FontName		      "Calibri"
	      FontSize		      12
	      FontWeight	      "bold"
	      Labels		      [0, 0]
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      DstBlock		      "PI Controller"
	      DstPort		      1
	    }
	    Line {
	      Name		      "w_ref"
	      FontName		      "Calibri"
	      FontSize		      12
	      FontWeight	      "bold"
	      Labels		      [0, 0]
	      SrcBlock		      "Retardo generador"
	      SrcPort		      1
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      Name		      "w_opt"
	      FontName		      "Calibri"
	      FontSize		      12
	      FontWeight	      "bold"
	      Labels		      [0, 1]
	      SrcBlock		      "speed_setpoint"
	      SrcPort		      1
	      DstBlock		      "limites wg"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "limites wg"
	      SrcPort		      1
	      Points		      [10, 0]
	      Branch {
		DstBlock		"Retardo generador"
		DstPort			1
	      }
	      Branch {
		Points			[0, -40]
		DstBlock		"w_ref"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Pe"
	      SrcPort		      1
	      DstBlock		      "speed_setpoint"
	      DstPort		      1
	    }
	    Line {
	      Name		      "Te_ref"
	      FontName		      "Calibri"
	      FontSize		      12
	      FontWeight	      "bold"
	      Labels		      [0, 0]
	      SrcBlock		      "PI Controller"
	      SrcPort		      1
	      DstBlock		      "dTe/dt"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "dTe/dt"
	      SrcPort		      1
	      DstBlock		      "Te_ref"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Outport
	  Name			  "beta"
	  SID			  127
	  Position		  [475, 93, 505, 107]
	  FontName		  "Calibri"
	  FontSize		  12
	  FontWeight		  "bold"
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Te_ref"
	  SID			  128
	  Position		  [260, 78, 290, 92]
	  FontName		  "Calibri"
	  FontSize		  12
	  FontWeight		  "bold"
	  Port			  "2"
	  IconDisplay		  "Port number"
	}
	Line {
	  SrcBlock		  "Control de Par"
	  SrcPort		  1
	  DstBlock		  "Te_ref"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "wg_pu"
	  SrcPort		  1
	  Points		  [15, 0]
	  Branch {
	    DstBlock		    "Control de Par"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [0, 70; 255, 0]
	    DstBlock		    "Control Pitch"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "Control Pitch"
	  SrcPort		  1
	  DstBlock		  "beta"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Pe"
	  SrcPort		  1
	  Points		  [15, 0]
	  Branch {
	    DstBlock		    "Control de Par"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, -45; 255, 0]
	    DstBlock		    "Control Pitch"
	    DstPort		    1
	  }
	}
      }
    }
    Block {
      BlockType		      Scope
      Name		      "Pe"
      SID		      83
      Ports		      [1]
      Position		      [495, 259, 525, 291]
      Floating		      off
      Location		      [6, 259, 289, 468]
      Open		      off
      NumInputPorts	      "1"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      TimeRange		      "100"
      YMin		      "0"
      YMax		      "0.5"
      SaveName		      "Pe_one_mass"
      DataFormat	      "Array"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Product
      Name		      "Product"
      SID		      79
      Ports		      [2, 1]
      Position		      [597, 270, 628, 300]
      BlockRotation	      270
      BlockMirror	      on
      NamePlacement	      "alternate"
      InputSameDT	      off
      OutDataTypeMode	      "Inherit via internal rule"
      OutDataType	      "fixdt(1, 16)"
      OutScaling	      "2^0"
      OutDataTypeStr	      "Inherit: Inherit via internal rule"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Scope
      Name		      "Tt"
      SID		      84
      Ports		      [1]
      Position		      [580, 54, 610, 86]
      Floating		      off
      Location		      [537, 295, 861, 534]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      SaveName		      "ScopeData3"
      DataFormat	      "StructureWithTime"
      SampleTime	      "0"
    }
    Block {
      BlockType		      Scope
      Name		      "beta"
      SID		      85
      Ports		      [1]
      Position		      [290, 194, 320, 226]
      ExtModeUploadOption     "log"
      Floating		      off
      Location		      [12, 528, 336, 767]
      Open		      on
      NumInputPorts	      "1"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      TimeRange		      "600"
      YMin		      "0"
      YMax		      "20"
      SaveToWorkspace	      on
      SaveName		      "beta_one"
      DataFormat	      "Array"
      LimitDataPoints	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      FromWorkspace
      Name		      "datos_viento"
      SID		      80
      Position		      [115, 118, 180, 142]
      FontName		      "Calibri"
      FontSize		      12
      FontWeight	      "bold"
      VariableName	      "wind01"
      SampleTime	      "0"
      ZeroCross		      on
    }
    Block {
      BlockType		      SubSystem
      Name		      "sist_mecanico_onemass"
      SID		      40
      Ports		      [2, 1]
      Position		      [545, 112, 675, 183]
      FontName		      "Calibri"
      FontSize		      12
      FontWeight	      "bold"
      MinAlgLoopOccurrences   off
      PropExecContextOutsideSubsystem off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      Opaque		      off
      RequestExecContextInheritance off
      MaskHideContents	      off
      MaskPromptString	      "H=Constante de inercia total (s)"
      MaskStyleString	      "edit"
      MaskTunableValueString  "on"
      MaskEnableString	      "on"
      MaskVisibilityString    "on"
      MaskToolTipString	      "on"
      MaskVariables	      "H=@1;"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskPortRotate	      "default"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "5.29"
      System {
	Name			"sist_mecanico_onemass"
	Location		[490, 379, 841, 517]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	TiledPaperMargins	[1.270000, 1.270000, 1.270000, 1.270000]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Tt_pu"
	  SID			  41
	  Position		  [15, 33, 45, 47]
	  FontName		  "Calibri"
	  FontSize		  12
	  FontWeight		  "bold"
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Inport
	  Name			  "Te_pu"
	  SID			  42
	  Position		  [65, 110, 95, 125]
	  BlockRotation		  270
	  FontName		  "Calibri"
	  FontSize		  12
	  FontWeight		  "bold"
	  Port			  "2"
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Integrator
	  Name			  "Integrator"
	  SID			  43
	  Ports			  [1, 1]
	  Position		  [225, 25, 255, 55]
	  FontName		  "Calibri"
	  FontSize		  12
	  FontWeight		  "bold"
	  InitialCondition	  "0.5"
	  Port {
	    PortNumber		    1
	    Name		    "w_pu"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	  }
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum1"
	  SID			  44
	  Ports			  [2, 1]
	  Position		  [70, 30, 90, 50]
	  ShowName		  off
	  FontName		  "Calibri"
	  FontSize		  12
	  FontWeight		  "bold"
	  IconShape		  "round"
	  Inputs		  "|+-"
	  InputSameDT		  off
	  OutDataTypeMode	  "Inherit via internal rule"
	  OutDataType		  "fixdt(1, 16)"
	  OutScaling		  "2^0"
	  OutDataTypeStr	  "Inherit: Inherit via internal rule"
	  SaturateOnIntegerOverflow off
	}
	Block {
	  BlockType		  TransferFcn
	  Name			  "Transfer Fcn"
	  SID			  45
	  Position		  [125, 12, 165, 68]
	  FontName		  "Calibri"
	  FontSize		  12
	  FontWeight		  "bold"
	  Denominator		  "[2*H]"
	  AbsoluteTolerance	  "1"
	  Port {
	    PortNumber		    1
	    Name		    "dw/dt"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	  }
	}
	Block {
	  BlockType		  Outport
	  Name			  "w_pu"
	  SID			  46
	  Position		  [305, 33, 335, 47]
	  FontName		  "Calibri"
	  FontSize		  12
	  FontWeight		  "bold"
	  IconDisplay		  "Port number"
	  OutDataType		  "fixdt(1, 16)"
	  OutScaling		  "2^0"
	}
	Line {
	  Name			  "w_pu"
	  FontName		  "Calibri"
	  FontSize		  12
	  FontWeight		  "bold"
	  Labels		  [0, 0]
	  SrcBlock		  "Integrator"
	  SrcPort		  1
	  DstBlock		  "w_pu"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Tt_pu"
	  SrcPort		  1
	  DstBlock		  "Sum1"
	  DstPort		  1
	}
	Line {
	  Name			  "dw/dt"
	  FontName		  "Calibri"
	  FontSize		  12
	  FontWeight		  "bold"
	  Labels		  [0, 0]
	  SrcBlock		  "Transfer Fcn"
	  SrcPort		  1
	  DstBlock		  "Integrator"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum1"
	  SrcPort		  1
	  DstBlock		  "Transfer Fcn"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Te_pu"
	  SrcPort		  1
	  DstBlock		  "Sum1"
	  DstPort		  2
	}
      }
    }
    Block {
      BlockType		      Scope
      Name		      "viento"
      SID		      81
      Ports		      [1]
      Position		      [250, 14, 280, 46]
      ExtModeUploadOption     "log"
      Floating		      off
      Location		      [6, 53, 295, 233]
      Open		      on
      NumInputPorts	      "1"
      ZoomMode		      "yonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      TimeRange		      "600"
      YMin		      "6"
      YMax		      "12"
      SaveToWorkspace	      on
      SaveName		      "viento"
      DataFormat	      "Array"
      LimitDataPoints	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      Scope
      Name		      "w_motor"
      SID		      92
      Ports		      [1]
      Position		      [225, 384, 255, 416]
      ExtModeUploadOption     "log"
      Floating		      off
      Location		      [346, 528, 668, 767]
      Open		      on
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      TimeRange		      "600"
      YMin		      "0.8"
      YMax		      "1.4"
      SaveToWorkspace	      on
      SaveName		      "w_real"
      DataFormat	      "Array"
      LimitDataPoints	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      Scope
      Name		      "wg_pu"
      SID		      82
      Ports		      [1]
      Position		      [735, 69, 765, 101]
      ExtModeUploadOption     "log"
      Floating		      off
      Location		      [678, 528, 1002, 765]
      Open		      on
      NumInputPorts	      "1"
      ZoomMode		      "xonly"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      TimeRange		      "600"
      YMin		      "0.8"
      YMax		      "1.4"
      SaveToWorkspace	      on
      SaveName		      "wg_one"
      DataFormat	      "Array"
      LimitDataPoints	      off
      SampleTime	      "0"
    }
    Line {
      SrcBlock		      "Modelo aerodinámico"
      SrcPort		      1
      Points		      [30, 0]
      Branch {
	DstBlock		"sist_mecanico_onemass"
	DstPort			1
      }
      Branch {
	Points			[0, -60]
	DstBlock		"Tt"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Modelo del Control"
      SrcPort		      2
      DstBlock		      "Modelo Generador"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Modelo del Control"
      SrcPort		      1
      Points		      [30, 0; 0, -5]
      Branch {
	Points			[0, 5]
	DstBlock		"beta"
	DstPort			1
      }
      Branch {
	Points			[0, -40]
	DstBlock		"Modelo aerodinámico"
	DstPort			3
      }
    }
    Line {
      SrcBlock		      "Modelo Generador"
      SrcPort		      1
      Points		      [75, 0]
      Branch {
	Points			[0, -75]
	DstBlock		"sist_mecanico_onemass"
	DstPort			2
      }
      Branch {
	Points			[100, 0]
	DstBlock		"Product"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "sist_mecanico_onemass"
      SrcPort		      1
      Points		      [30, 0]
      Branch {
	Points			[0, 90]
	Branch {
	  Points		  [-90, 0]
	  DstBlock		  "Product"
	  DstPort		  2
	}
	Branch {
	  Points		  [0, 115; -120, 0]
	  Branch {
	    Points		    [0, 45]
	    DstBlock		    "Gain"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [-535, 0; 0, -145]
	    DstBlock		    "Modelo del Control"
	    DstPort		    1
	  }
	}
      }
      Branch {
	Points			[0, -65]
	Branch {
	  Labels		  [3, 0]
	  Points		  [0, -35; -460, 0; 0, 45]
	  DstBlock		  "Modelo aerodinámico"
	  DstPort		  1
	}
	Branch {
	  DstBlock		  "wg_pu"
	  DstPort		  1
	}
      }
    }
    Line {
      SrcBlock		      "Product"
      SrcPort		      1
      Points		      [0, 25; -155, 0]
      Branch {
	Points			[0, -55]
	DstBlock		"Pe"
	DstPort			1
      }
      Branch {
	Points			[-370, 0; 0, -90]
	DstBlock		"Modelo del Control"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "datos_viento"
      SrcPort		      1
      Points		      [40, 0]
      Branch {
	DstBlock		"Modelo aerodinámico"
	DstPort			2
      }
      Branch {
	Points			[0, -100]
	DstBlock		"viento"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "From Altivar71"
      SrcPort		      1
      DstBlock		      "Gain1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Gain1"
      SrcPort		      1
      DstBlock		      "w_motor"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Gain"
      SrcPort		      1
      DstBlock		      "Analog Output"
      DstPort		      1
    }
  }
}
MatData {
  NumRecords		  3
  DataRecord {
    Tag			    DataTag2
    Data		    "  %)30     .    :     8    (     0         %    \"     $    !     0         .    .     8    (    !     "
    "     %    \"     $    '     0         0    !P   $]P96Y&8VX "
  }
  DataRecord {
    Tag			    DataTag1
    Data		    "  %)30     .    :     8    (     0         %    \"     $    !     0         .    .     8    (    !     "
    "     %    \"     $    '     0         0    !P   $]P96Y&8VX "
  }
  DataRecord {
    Tag			    DataTag0
    Data		    "  %)30     .    :     8    (     0         %    \"     $    !     0         .    .     8    (    !     "
    "     %    \"     $    '     0         0    !P   $]P96Y&8VX "
  }
}
# Finite State Machines
#
#    Stateflow Version 7.1 (R2009a) dated Jul 17 2009, 10:24:20
#
#


Stateflow {
  machine {
    id			    1
    name		    "EMULADOR_TURBINA_ONE"
    created		    "09-Nov-2011 09:03:23"
    isLibrary		    0
    firstTarget		    17
    sfVersion		    71014000.00001
  }
  chart {
    id			    2
    name		    "Modelo aerodinámico/Cp (lambda,theta)"
    windowPosition	    [326.813 309 200.25 189.75]
    viewLimits		    [0 156.75 0 153.75]
    screen		    [1 1 1280 800 1.333333333333333]
    treeNode		    [0 3 0 0]
    firstTransition	    5
    firstJunction	    4
    viewObj		    2
    machine		    1
    ssIdHighWaterMark	    6
    decomposition	    CLUSTER_CHART
    type		    EML_CHART
    firstData		    6
    chartFileNumber	    2
    disableImplicitCasting  1
    eml {
      name		      "Cp_clark"
    }
  }
  state {
    id			    3
    labelString		    "eML_blk_kernel()"
    position		    [18 64.5 118 66]
    fontSize		    12
    chart		    2
    treeNode		    [2 0 0 0]
    superState		    SUBCHART
    subviewer		    2
    ssIdNumber		    1
    type		    FUNC_STATE
    decomposition	    CLUSTER_STATE
    eml {
      isEML		      1
      script		      "function Cpc = Cp_clark(lambda, beta)%eml\n% Calcula el valor de Cp para la turbina tipo GE de 1."
      "5MW\n% theta = angulo de pitch\n% lambda = tip speed ratio\nA=[-4.1909e-001, 2.1808e-001,-1.2406e-002,-1.3365e-0"
      "04, 1.1524e-005;\n   -6.7606e-002, 6.0405e-002,-1.3934e-002, 1.0683e-003,-2.3895e-005;\n    1.5727e-002,-1.0996e"
      "-002, 2.1495e-003,-1.4855e-004, 2.7937e-006;\n   -8.6018e-004, 5.7051e-004,-1.0479e-004, 5.9924e-006,-8.9194e-00"
      "8;\n    1.4787e-005,-9.4839e-006, 1.6167e-006,-7.1535e-008, 4.9686e-010;];\nCpc=0;\nfor i=0:4,\n    for j=0:4,\n"
      "        Cpc=Cpc+(A(i+1,j+1)*(beta^i)*(lambda^j));\n    end\nend"
      editorLayout	      "100 M4x1[135 109 1080 733]"
    }
  }
  junction {
    id			    4
    position		    [23.5747 49.5747 7]
    chart		    2
    linkNode		    [2 0 0]
    subviewer		    2
    ssIdNumber		    3
    type		    CONNECTIVE_JUNCTION
  }
  transition {
    id			    5
    labelString		    "{eML_blk_kernel();}"
    labelPosition	    [32.125 19.875 102.544 14.964]
    fontSize		    12
    src {
      intersection	      [0 0 1 0 23.5747 14.625 0 0]
    }
    dst {
      id		      4
      intersection	      [7 0 -1 -1 23.5747 42.5747 0 0]
    }
    midPoint		    [23.5747 24.9468]
    chart		    2
    linkNode		    [2 0 0]
    dataLimits		    [23.575 23.575 14.625 34.575]
    subviewer		    2
    drawStyle		    SMART
    executionOrder	    1
    ssIdNumber		    2
  }
  data {
    id			    6
    ssIdNumber		    6
    name		    "lambda"
    linkNode		    [2 0 7]
    scope		    INPUT_DATA
    machine		    1
    props {
      array {
	size			"-1"
      }
      type {
	method			SF_INHERITED_TYPE
	primitive		SF_DOUBLE_TYPE
	isSigned		1
	wordLength		"16"
      }
      complexity	      SF_COMPLEX_INHERITED
      frame		      SF_FRAME_INHERITED
    }
    dataType		    "Inherit: Same as Simulink"
  }
  data {
    id			    7
    ssIdNumber		    4
    name		    "beta"
    linkNode		    [2 6 8]
    scope		    INPUT_DATA
    machine		    1
    props {
      array {
	size			"-1"
      }
      type {
	method			SF_INHERITED_TYPE
	primitive		SF_DOUBLE_TYPE
      }
      complexity	      SF_COMPLEX_INHERITED
    }
    dataType		    "Inherit: Same as Simulink"
  }
  data {
    id			    8
    ssIdNumber		    5
    name		    "Cpc"
    linkNode		    [2 7 0]
    scope		    OUTPUT_DATA
    machine		    1
    props {
      array {
	size			"-1"
      }
      type {
	method			SF_INHERITED_TYPE
	primitive		SF_DOUBLE_TYPE
      }
      complexity	      SF_COMPLEX_INHERITED
      frame		      SF_FRAME_NO
    }
    dataType		    "Inherit: Same as Simulink"
  }
  instance {
    id			    9
    name		    "Modelo aerodinámico/Cp (lambda,theta)"
    machine		    1
    chart		    2
  }
  chart {
    id			    10
    name		    "Modelo del Control/Control de Par/speed_setpoint"
    windowPosition	    [401.813 234 200.25 189.75]
    viewLimits		    [0 156.75 0 153.75]
    screen		    [1 1 1280 800 1.333333333333333]
    treeNode		    [0 11 0 0]
    firstTransition	    13
    firstJunction	    12
    viewObj		    10
    machine		    1
    ssIdHighWaterMark	    5
    decomposition	    CLUSTER_CHART
    type		    EML_CHART
    firstData		    14
    chartFileNumber	    3
    disableImplicitCasting  1
    eml {
      name		      "speed_setpoint"
    }
  }
  state {
    id			    11
    labelString		    "eML_blk_kernel()"
    position		    [18 64.5 118 66]
    fontSize		    12
    chart		    10
    treeNode		    [10 0 0 0]
    superState		    SUBCHART
    subviewer		    10
    ssIdNumber		    1
    type		    FUNC_STATE
    decomposition	    CLUSTER_STATE
    eml {
      isEML		      1
      script		      "function w_opt=speed_setpoint(Pe)%#eml\nw_opt=-0.75*Pe^2+1.59*Pe+0.63;\n"
      editorLayout	      "100 M4x1[205 227 1080 733]"
    }
  }
  junction {
    id			    12
    position		    [23.5747 49.5747 7]
    chart		    10
    linkNode		    [10 0 0]
    subviewer		    10
    ssIdNumber		    3
    type		    CONNECTIVE_JUNCTION
  }
  transition {
    id			    13
    labelString		    "{eML_blk_kernel();}"
    labelPosition	    [32.125 19.875 102.544 14.964]
    fontSize		    12
    src {
      intersection	      [0 0 1 0 23.5747 14.625 0 0]
    }
    dst {
      id		      12
      intersection	      [7 0 -1 -1 23.5747 42.5747 0 0]
    }
    midPoint		    [23.5747 24.9468]
    chart		    10
    linkNode		    [10 0 0]
    dataLimits		    [23.575 23.575 14.625 34.575]
    subviewer		    10
    drawStyle		    SMART
    executionOrder	    1
    ssIdNumber		    2
  }
  data {
    id			    14
    ssIdNumber		    4
    name		    "Pe"
    linkNode		    [10 0 15]
    scope		    INPUT_DATA
    machine		    1
    props {
      array {
	size			"-1"
      }
      type {
	method			SF_INHERITED_TYPE
	primitive		SF_DOUBLE_TYPE
      }
      complexity	      SF_COMPLEX_INHERITED
    }
    dataType		    "Inherit: Same as Simulink"
  }
  data {
    id			    15
    ssIdNumber		    5
    name		    "w_opt"
    linkNode		    [10 14 0]
    scope		    OUTPUT_DATA
    machine		    1
    props {
      array {
	size			"-1"
      }
      type {
	method			SF_INHERITED_TYPE
	primitive		SF_DOUBLE_TYPE
      }
      complexity	      SF_COMPLEX_INHERITED
      frame		      SF_FRAME_NO
    }
    dataType		    "Inherit: Same as Simulink"
  }
  instance {
    id			    16
    name		    "Modelo del Control/Control de Par/speed_setpoint"
    machine		    1
    chart		    10
  }
  target {
    id			    17
    name		    "sfun"
    description		    "Default Simulink S-Function Target."
    machine		    1
    linkNode		    [1 0 18]
  }
  target {
    id			    18
    name		    "rtw"
    machine		    1
    linkNode		    [1 17 0]
  }
}
