From e2bca6133189cfa591c1dee3c435cbece39a6f26 Mon Sep 17 00:00:00 2001 From: dzalkind Date: Fri, 13 May 2022 15:09:08 -0600 Subject: [PATCH 1/2] Remove matlab/rotor position control stuff --- Matlab_Toolbox/Simulink/ROSCO.mdl | 2514 ++++-------------- Matlab_Toolbox/Utilities/Pl_FastPlots.m | 8 +- Matlab_Toolbox/Utilities/load_ROSCO_params.m | 10 - Matlab_Toolbox/runFAST.m | 6 +- 4 files changed, 535 insertions(+), 2003 deletions(-) diff --git a/Matlab_Toolbox/Simulink/ROSCO.mdl b/Matlab_Toolbox/Simulink/ROSCO.mdl index 2d81e89d..279ec45a 100644 --- a/Matlab_Toolbox/Simulink/ROSCO.mdl +++ b/Matlab_Toolbox/Simulink/ROSCO.mdl @@ -6,9 +6,9 @@ Model { NumRootInports 0 NumRootOutports 0 ParameterArgumentNames "" - ComputedModelVersion "1.1923" + ComputedModelVersion "1.1879" NumModelReferences 0 - NumTestPointedSignals 37 + NumTestPointedSignals 34 TestPointedSignal { SignalName "" FullBlockPath "ROSCO/Extract Signals" @@ -40,27 +40,6 @@ Model { MaxPoints 5000 Decimation 2 } - TestPointedSignal { - SignalName "current_WS" - FullBlockPath "ROSCO/OL BldPitch" - LogSignal 1 - MaxPoints 5000 - Decimation 2 - } - TestPointedSignal { - SignalName "current_WS" - FullBlockPath "ROSCO/OL BldPitch1" - LogSignal 1 - MaxPoints 5000 - Decimation 2 - } - TestPointedSignal { - SignalName "current_WS" - FullBlockPath "ROSCO/OL BldPitch2" - LogSignal 1 - MaxPoints 5000 - Decimation 2 - } TestPointedSignal { SignalName "WE_Vw" FullBlockPath "ROSCO/Wind Speed Estimator" @@ -282,7 +261,7 @@ Model { PreCompExecutionDomainType "Unset" IsExportFunctionModel 0 NumParameterArguments 0 - NumExternalFileReferences 12 + NumExternalFileReferences 10 ExternalFileReference { Reference "simulink/Logic and Bit\nOperations/Compare\nTo Zero" Path "ROSCO/BldPitch Controller/Compare To Zero1" @@ -319,24 +298,12 @@ Model { SID "1354" Type "LIBRARY_BLOCK" } - ExternalFileReference { - Reference "simulink/Discrete/Discrete Derivative" - Path "ROSCO/Discrete Derivative" - SID "1589" - Type "LIBRARY_BLOCK" - } ExternalFileReference { Reference "simulink/Discontinuities/Saturation\nDynamic" Path "ROSCO/Fl_PD/Integral/Saturate Integral Term" SID "738" Type "LIBRARY_BLOCK" } - ExternalFileReference { - Reference "simulink/Discontinuities/Saturation\nDynamic" - Path "ROSCO/Integral/Saturate Integral Term" - SID "1579" - Type "LIBRARY_BLOCK" - } ExternalFileReference { Reference "simulink/Discontinuities/Saturation\nDynamic" Path "ROSCO/PitchSaturation/Integral/Saturate Integral Term" @@ -406,9 +373,9 @@ Model { IsActive [0] ViewObjType "SimulinkSubsys" LoadSaveID "376" - Extents [1882.0, 802.0] - ZoomFactor [1.5] - Offset [-511.14873563634592, 143.60225714561574] + Extents [1754.0, 921.0] + ZoomFactor [1.25] + Offset [22.501264363654059, 211.03559047894908] } Object { $ObjectID 6 @@ -416,8 +383,8 @@ Model { ViewObjType "SimulinkTopLevel" LoadSaveID "0" Extents [1882.0, 802.0] - ZoomFactor [0.8] - Offset [-979.69285714286821, -704.1357142857147] + ZoomFactor [1.25] + Offset [-28.600000000000364, 81.39999999999992] } Object { $ObjectID 7 @@ -469,7 +436,7 @@ Model { IsActive [0] ViewObjType "SimulinkSubsys" LoadSaveID "674" - Extents [1882.0, 802.0] + Extents [1754.0, 921.0] ZoomFactor [1.0] Offset [-401.8984375, -238.0] } @@ -478,9 +445,9 @@ Model { IsActive [0] ViewObjType "SimulinkSubsys" LoadSaveID "215" - Extents [1882.0, 802.0] - ZoomFactor [1.0] - Offset [-277.78175212437168, -56.435888464416735] + Extents [1882.0, 801.0] + ZoomFactor [0.95381759309228276] + Offset [-318.93746801371117, -79.0957414481943] } Object { $ObjectID 14 @@ -496,7 +463,7 @@ Model { IsActive [0] ViewObjType "SimulinkSubsys" LoadSaveID "219" - Extents [1882.0, 802.0] + Extents [1882.0, 801.0] ZoomFactor [1.140460339769928] Offset [-181.39453081924967, -153.78282236176466] } @@ -541,7 +508,7 @@ Model { IsActive [0] ViewObjType "SimulinkSubsys" LoadSaveID "859" - Extents [1882.0, 802.0] + Extents [1754.0, 921.0] ZoomFactor [1.0] Offset [-314.1953125, 509.0] } @@ -617,9 +584,9 @@ Model { ModifiedByFormat "%" LastModifiedBy "dzalkind" ModifiedDateFormat "%" - LastModifiedDate "Thu Apr 21 11:47:54 2022" - RTWModifiedTimeStamp 572442473 - ModelVersionFormat "1.%" + LastModifiedDate "Tue Mar 15 16:37:05 2022" + RTWModifiedTimeStamp 569263022 + ModelVersionFormat "1.%" SampleTimeColors on SampleTimeAnnotations on LibraryLinkDisplay "disabled" @@ -697,7 +664,7 @@ Model { $ClassName "Simulink.HMI.InstrumentedSignals" Array { Type "Struct" - Dimension 39 + Dimension 36 MATStruct { UUID "99768b01-3e28-48ea-bf57-afab4791ffe6" BlockPath_ "Extract Signals" @@ -1526,75 +1493,6 @@ Model { } VisualType_ "" } - MATStruct { - UUID "eb51291b-77e1-42ef-ba20-d1f090e5cbe3" - BlockPath_ "OL BldPitch" - SID_ "1554" - SubPath_ "" - OutputPortIndex_ [1.0] - LogicalPortIndex_ [0.0] - SignalName_ "" - SubSysPath_ "" - Decimation_ [1.0] - MaxPoints_ [0.0] - TargetBufferedStreaming_ [0.0] - IsFrameBased_ [0.0] - DomainType_ "" - Array { - Type "Struct" - Dimension 1 - MATStruct { - } - PropName "DomainParams_" - } - VisualType_ "" - } - MATStruct { - UUID "70c4927e-708c-4711-9438-356cff93f58e" - BlockPath_ "OL BldPitch1" - SID_ "1555" - SubPath_ "" - OutputPortIndex_ [1.0] - LogicalPortIndex_ [0.0] - SignalName_ "" - SubSysPath_ "" - Decimation_ [1.0] - MaxPoints_ [0.0] - TargetBufferedStreaming_ [0.0] - IsFrameBased_ [0.0] - DomainType_ "" - Array { - Type "Struct" - Dimension 1 - MATStruct { - } - PropName "DomainParams_" - } - VisualType_ "" - } - MATStruct { - UUID "c6867d8b-e590-460b-97de-21d5ba0196ad" - BlockPath_ "OL BldPitch2" - SID_ "1567" - SubPath_ "" - OutputPortIndex_ [1.0] - LogicalPortIndex_ [0.0] - SignalName_ "" - SubSysPath_ "" - Decimation_ [1.0] - MaxPoints_ [0.0] - TargetBufferedStreaming_ [0.0] - IsFrameBased_ [0.0] - DomainType_ "" - Array { - Type "Struct" - Dimension 1 - MATStruct { - } - PropName "DomainParams_" - } - VisualType_ "" - } PropName "Persistence" } } @@ -14507,15 +14405,6 @@ Model { Expr "sin(u[1])" SampleTime "-1" } - Block { - BlockType FromWorkspace - VariableName "simulink_input" - OutDataTypeStr "Inherit: auto" - SampleTime "-1" - Interpolate on - ZeroCross off - OutputAfterFinalValue "Extrapolation" - } Block { BlockType Gain Gain "1" @@ -15017,9 +14906,9 @@ Model { TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off - ZoomFactor "80" + ZoomFactor "125" ReportName "simulink-default.rpt" - SIDHighWatermark "1592" + SIDHighWatermark "1553" Block { BlockType SubSystem Name "AirFoil Controller" @@ -15083,7 +14972,7 @@ Model { RequestExecContextInheritance off System { Name "BldPitch Controller" - Location [0, 23, 1920, 1003] + Location [0, 23, 1920, 1001] Open on PortBlocksUseCompactNotation off SetExecutionDomain off @@ -15098,7 +14987,7 @@ Model { TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off - ZoomFactor "150" + ZoomFactor "125" Block { BlockType Inport Name "omega_g,ref" @@ -15207,7 +15096,7 @@ Model { ContentPreviewEnabled on System { Name "Integral" - Location [0, 23, 1920, 1003] + Location [0, 23, 1920, 1001] Open on PortBlocksUseCompactNotation off SetExecutionDomain off @@ -16170,43 +16059,6 @@ Model { } } } - Block { - BlockType Constant - Name "Constant1" - SID "1588" - Position [970, -180, 1055, -160] - ZOrder 534 - BlockMirror on - BackgroundColor "[0.800000, 0.800000, 0.800000]" - Value "0" - } - Block { - BlockType Constant - Name "Constant2" - SID "1570" - Position [715, -430, 800, -410] - ZOrder 529 - BackgroundColor "[0.800000, 0.800000, 0.800000]" - Value "R.VS_KP * 3" - } - Block { - BlockType Constant - Name "Constant3" - SID "1571" - Position [715, -375, 800, -355] - ZOrder 530 - BackgroundColor "[0.800000, 0.800000, 0.800000]" - Value "R.VS_KI * 3" - } - Block { - BlockType Constant - Name "Constant4" - SID "1591" - Position [755, -725, 840, -705] - ZOrder 537 - BackgroundColor "[0.800000, 0.800000, 0.800000]" - Value "R.VS_KP * 3" - } Block { BlockType SubSystem Name "Cyclic Pitch controller" @@ -16220,7 +16072,7 @@ Model { RequestExecContextInheritance off System { Name "Cyclic Pitch controller" - Location [0, 23, 1920, 1003] + Location [0, 23, 1920, 1001] Open on PortBlocksUseCompactNotation off SetExecutionDomain off @@ -16286,7 +16138,7 @@ Model { RequestExecContextInheritance off System { Name "1P Cyclic Pitch Controller1" - Location [0, 23, 1920, 1003] + Location [0, 23, 1920, 1001] Open on PortBlocksUseCompactNotation off SetExecutionDomain off @@ -20681,7 +20533,7 @@ Model { RequestExecContextInheritance off System { Name "Norm" - Location [0, 23, 1920, 1003] + Location [0, 23, 1920, 1001] Open on PortBlocksUseCompactNotation off SetExecutionDomain off @@ -22859,7 +22711,7 @@ Model { RequestExecContextInheritance off System { Name "2P Cyclic Pitch Controller2" - Location [0, 23, 1920, 1003] + Location [0, 23, 1920, 1001] Open on PortBlocksUseCompactNotation off SetExecutionDomain off @@ -22992,7 +22844,7 @@ Model { } System { Name "1P IPCDQ Filtering1" - Location [0, 23, 1920, 1003] + Location [0, 23, 1920, 1001] Open on PortBlocksUseCompactNotation off SetExecutionDomain off @@ -27873,7 +27725,7 @@ Model { } System { Name "PI - Q" - Location [0, 23, 1920, 1003] + Location [0, 23, 1920, 1001] Open on PortBlocksUseCompactNotation off SetExecutionDomain off @@ -29854,69 +29706,6 @@ Model { InputPortMap "u0" DelayLength "1" } - Block { - BlockType Delay - Name "Delay2" - SID "1563" - Ports [1, 1] - Position [50, -277, 85, -243] - ZOrder 519 - BlockMirror on - InputPortMap "u0" - DelayLength "1" - InitialCondition "0" - SampleTime "simu.dt" - } - Block { - BlockType Delay - Name "Delay3" - SID "1564" - Ports [1, 1] - Position [50, -217, 85, -183] - ZOrder 520 - BlockMirror on - InputPortMap "u0" - DelayLength "1" - InitialCondition "0" - SampleTime "simu.dt" - } - Block { - BlockType Reference - Name "Discrete Derivative" - SID "1589" - Ports [1, 1] - Position [1030, -653, 1090, -617] - ZOrder 535 - LibraryVersion "1.444" - SourceBlock "simulink/Discrete/Discrete Derivative" - SourceType "Discrete Derivative" - SourceProductName "Simulink" - SourceProductBaseCode "SL" - ContentPreviewEnabled on - gainval "1.0" - ICPrevScaledInput "0.0" - InputProcessing "Elements as channels (sample based)" - OutMin "[]" - OutMax "[]" - OutDataTypeStr "Inherit: Inherit via internal rule" - OutputDataTypeScalingMode "Inherit via internal rule" - OutDataType "fixdt(1, 16)" - OutScaling "2^-10" - LockScale off - RndMeth "Floor" - DoSatur off - } - Block { - BlockType DiscreteFilter - Name "Discrete Filter" - SID "1592" - Ports [1, 1] - Position [910, -653, 970, -617] - ZOrder 538 - InputPortMap "u0" - Numerator "[0.09516]" - Denominator "[1 -0.9048]" - } Block { BlockType Constant Name "Dummy Yaw" @@ -29949,7 +29738,7 @@ Model { } System { Name "Extract Signals" - Location [0, 23, 1920, 1003] + Location [0, 23, 1920, 1001] Open on PortBlocksUseCompactNotation off SetExecutionDomain off @@ -30572,7 +30361,7 @@ Model { RequestExecContextInheritance off System { Name "Filter GenSpeed" - Location [0, 23, 1920, 1003] + Location [0, 23, 1920, 1001] Open on PortBlocksUseCompactNotation off SetExecutionDomain off @@ -30619,20 +30408,20 @@ Model { ScopeSpecificationString "Simulink.scopes.TimeScopeBlockCfg('CurrentConfiguration', extmgr.ConfigurationSet(extmgr." "Configuration('Core','General UI',true),extmgr.Configuration('Core','Source UI',true),extmgr.Configuration('Sources" "','WiredSimulink',true,'DataLoggingVariableName','ScopeData2'),extmgr.Configuration('Visuals','Time Domain',true,'S" - "erializedDisplays',{struct('MinYLimReal','-78.87711','MaxYLimReal','182.48312','YLabelReal','','MinYLimMag','0.0000" - "0','MaxYLimMag','182.48312','LegendVisibility','off','XGrid',true,'YGrid',true,'PlotMagPhase',false,'AxesColor',[0 " - "0 0],'AxesTickColor',[0.686274509803922 0.686274509803922 0.686274509803922],'ColorOrder',[1 1 0.0666666666666667;0" - ".0745098039215686 0.623529411764706 1;1 0.411764705882353 0.16078431372549;0.392156862745098 0.831372549019608 0.07" - "45098039215686;0.717647058823529 0.274509803921569 1;0.0588235294117647 1 1;1 0.0745098039215686 0.650980392156863]" - ",'Title','%','LinePropertiesCache',{{}},'UserDefinedChannelNames',{{}},'NumLines',2,'LineNames',{{'Gen" - "Speed','Discrete Filter'}},'ShowContent',true,'Placement',1)},'DisplayPropertyDefaults',struct('MinYLimReal','-78.8" - "7711','MaxYLimReal','182.48312','YLabelReal','','MinYLimMag','0.00000','MaxYLimMag','182.48312','LegendVisibility'," - "'off','XGrid',true,'YGrid',true,'PlotMagPhase',false,'AxesColor',[0 0 0],'AxesTickColor',[0.686274509803922 0.68627" - "4509803922 0.686274509803922],'ColorOrder',[0.0745098039215686 0.623529411764706 1;1 0.411764705882353 0.1607843137" - "2549;1 1 0.0666666666666667;0.717647058823529 0.274509803921569 1;0.392156862745098 0.831372549019608 0.07450980392" - "15686;0.0588235294117647 1 1;1 0.0745098039215686 0.650980392156863])),extmgr.Configuration('Tools','Plot Navigatio" - "n',true,'PreviousAutoscale','XY'),extmgr.Configuration('Tools','Measurements',true,'Version','2018b')),'Version','2" - "018b','Position',[1 1 792 478],'VisibleAtModelOpen','on')" + "erializedDisplays',{struct('MinYLimReal','122.90957','MaxYLimReal','122.90968','YLabelReal','','MinYLimMag','122.90" + "957','MaxYLimMag','122.90968','LegendVisibility','off','XGrid',true,'YGrid',true,'PlotMagPhase',false,'AxesColor',[" + "0 0 0],'AxesTickColor',[0.686274509803922 0.686274509803922 0.686274509803922],'ColorOrder',[1 1 0.0666666666666667" + ";0.0745098039215686 0.623529411764706 1;1 0.411764705882353 0.16078431372549;0.392156862745098 0.831372549019608 0." + "0745098039215686;0.717647058823529 0.274509803921569 1;0.0588235294117647 1 1;1 0.0745098039215686 0.65098039215686" + "3],'Title','%','LinePropertiesCache',{{}},'UserDefinedChannelNames',{{}},'NumLines',2,'LineNames',{{'G" + "enSpeed','Discrete Filter'}},'ShowContent',true,'Placement',1)},'DisplayPropertyDefaults',struct('MinYLimReal','122" + ".90957','MaxYLimReal','122.90968','YLabelReal','','MinYLimMag','122.90957','MaxYLimMag','122.90968','LegendVisibili" + "ty','off','XGrid',true,'YGrid',true,'PlotMagPhase',false,'AxesColor',[0 0 0],'AxesTickColor',[0.686274509803922 0.6" + "86274509803922 0.686274509803922],'ColorOrder',[0.0745098039215686 0.623529411764706 1;1 0.411764705882353 0.160784" + "31372549;1 1 0.0666666666666667;0.717647058823529 0.274509803921569 1;0.392156862745098 0.831372549019608 0.0745098" + "039215686;0.0588235294117647 1 1;1 0.0745098039215686 0.650980392156863])),extmgr.Configuration('Tools','Plot Navig" + "ation',true,'PreviousAutoscale','XY'),extmgr.Configuration('Tools','Measurements',true,'Version','2018b')),'Version" + "','2018b','Position',[1 1 618 478],'VisibleAtModelOpen','on')" NumInputPorts "2" Floating off } @@ -30716,7 +30505,7 @@ Model { RequestExecContextInheritance off System { Name "Filter WindSpeed" - Location [0, 23, 1920, 1003] + Location [0, 23, 1920, 1001] Open on PortBlocksUseCompactNotation off SetExecutionDomain off @@ -30814,7 +30603,7 @@ Model { ContentPreviewEnabled on System { Name "Fl_PD" - Location [0, 23, 1920, 1001] + Location [1920, 23, 3712, 1120] Open off PortBlocksUseCompactNotation off SetExecutionDomain off @@ -31047,7 +30836,7 @@ Model { "098039215686 0.623529411764706 1;1 0.411764705882353 0.16078431372549;0.392156862745098 0.831372549019608 0.074" "5098039215686;0.717647058823529 0.274509803921569 1;0.0588235294117647 1 1;1 0.0745098039215686 0.6509803921568" "63],'Title','%'),'DisplayContentCache',[]),extmgr.Configuration('Tools','Plot Navigation',true),ex" - "tmgr.Configuration('Tools','Measurements',true,'Version','2018b')),'Version','2018b','Position',[1 1 792 478],'" + "tmgr.Configuration('Tools','Measurements',true,'Version','2018b')),'Version','2018b','Position',[1 1 618 478],'" "VisibleAtModelOpen','on')" NumInputPorts "2" Floating off @@ -31345,457 +31134,6 @@ Model { } } } - Block { - BlockType SubSystem - Name "Integral" - SID "1572" - Ports [2, 1] - Position [1015, -536, 1110, -489] - ZOrder 526 - RequestExecContextInheritance off - ContentPreviewEnabled on - System { - Name "Integral" - Location [0, 23, 1920, 1001] - Open off - PortBlocksUseCompactNotation off - SetExecutionDomain off - ExecutionDomainType "Deduce" - ModelBrowserVisibility off - ModelBrowserWidth 200 - ScreenColor "white" - PaperOrientation "landscape" - PaperPositionMode "auto" - PaperType "usletter" - PaperUnits "inches" - TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] - TiledPageScale 1 - ShowPageBoundaries off - ZoomFactor "114" - Block { - BlockType Inport - Name "SpeedErr" - SID "1573" - Position [20, 135, 35, 165] - ZOrder 274 - IconDisplay "Port number" - } - Block { - BlockType Inport - Name "Gain" - SID "1574" - Position [100, 215, 115, 245] - ZOrder 278 - Port "2" - IconDisplay "Port number" - } - Block { - BlockType Gain - Name "Gain1" - SID "1575" - Position [125, 135, 155, 165] - ZOrder 273 - Gain "simu.dt" - ParamDataTypeStr "Inherit: Inherit via internal rule" - OutDataTypeStr "Inherit: Inherit via internal rule" - SaturateOnIntegerOverflow off - } - Block { - BlockType Constant - Name "Maximum Torque" - SID "1576" - Position [275, 22, 380, 48] - ZOrder 265 - BackgroundColor "green" - NamePlacement "alternate" - Value "Inf" - } - Block { - BlockType Constant - Name "Minimum Torque" - SID "1577" - Position [270, 82, 380, 108] - ZOrder 266 - BackgroundColor "green" - NamePlacement "alternate" - Value "-inf" - } - Block { - BlockType Product - Name "Multiply" - SID "1578" - Ports [2, 1] - Position [230, 143, 255, 172] - ZOrder 279 - InputSameDT off - OutDataTypeStr "Inherit: Inherit via internal rule" - RndMeth "Floor" - SaturateOnIntegerOverflow off - } - Block { - BlockType Reference - Name "Saturate Integral\nTerm" - SID "1579" - Ports [3, 1] - Position [515, 140, 595, 180] - ZOrder 261 - LibraryVersion "1.444" - SourceBlock "simulink/Discontinuities/Saturation\nDynamic" - SourceType "Saturation Dynamic" - SourceProductBaseCode "SL" - ContentPreviewEnabled off - OutMin "[]" - OutMax "[]" - OutDataTypeStr "Inherit: Same as second input" - OutputDataTypeScalingMode "Same as second input" - OutDataType "fixdt(1, 16)" - OutScaling "2^-10" - LockScale off - RndMeth "Nearest" - DoSatur off - } - Block { - BlockType Sum - Name "Sum" - SID "1580" - Ports [2, 1] - Position [320, 150, 340, 170] - ZOrder 271 - ShowName off - IconShape "round" - Inputs "|++" - InputSameDT off - OutDataTypeStr "Inherit: Inherit via internal rule" - SaturateOnIntegerOverflow off - } - Block { - BlockType UnitDelay - Name "Unit Delay" - SID "1581" - Position [440, 238, 475, 272] - ZOrder 272 - BlockMirror on - NamePlacement "alternate" - InputProcessing "Elements as channels (sample based)" - SampleTime "-1" - } - Block { - BlockType Outport - Name "IntSpdErr" - SID "1582" - Position [890, 153, 920, 167] - ZOrder 275 - IconDisplay "Port number" - } - Line { - ZOrder 1 - SrcBlock "Maximum Torque" - SrcPort 1 - Points [29, 0; 0, 110] - DstBlock "Saturate Integral\nTerm" - DstPort 1 - } - Line { - ZOrder 2 - SrcBlock "Unit Delay" - SrcPort 1 - Points [-105, 0] - DstBlock "Sum" - DstPort 2 - } - Line { - ZOrder 3 - SrcBlock "Minimum Torque" - SrcPort 1 - Points [63, 0; 0, 80] - DstBlock "Saturate Integral\nTerm" - DstPort 3 - } - Line { - ZOrder 4 - SrcBlock "Sum" - SrcPort 1 - DstBlock "Saturate Integral\nTerm" - DstPort 2 - } - Line { - ZOrder 5 - SrcBlock "SpeedErr" - SrcPort 1 - DstBlock "Gain1" - DstPort 1 - } - Line { - ZOrder 6 - SrcBlock "Gain" - SrcPort 1 - Points [94, 0; 0, -65] - DstBlock "Multiply" - DstPort 2 - } - Line { - ZOrder 7 - SrcBlock "Saturate Integral\nTerm" - SrcPort 1 - Points [130, 0] - Branch { - ZOrder 8 - DstBlock "IntSpdErr" - DstPort 1 - } - Branch { - ZOrder 9 - Points [0, 95] - DstBlock "Unit Delay" - DstPort 1 - } - } - Line { - ZOrder 10 - SrcBlock "Gain1" - SrcPort 1 - DstBlock "Multiply" - DstPort 1 - } - Line { - ZOrder 11 - SrcBlock "Multiply" - SrcPort 1 - DstBlock "Sum" - DstPort 1 - } - } - } - Block { - BlockType SubSystem - Name "MATLAB Function" - SID "1562" - Ports [4, 3] - Position [-15, -506, 150, -314] - ZOrder 518 - LibraryVersion "1.32" - ErrorFcn "Stateflow.Translate.translate" - PermitHierarchicalResolution "ExplicitOnly" - TreatAsAtomicUnit on - RequestExecContextInheritance off - SFBlockType "MATLAB Function" - System { - Name "MATLAB Function" - Location [223, 338, 826, 833] - Open off - PortBlocksUseCompactNotation off - SetExecutionDomain off - ExecutionDomainType "Deduce" - ModelBrowserVisibility off - ModelBrowserWidth 200 - ScreenColor "white" - PaperOrientation "landscape" - PaperPositionMode "auto" - PaperType "usletter" - PaperUnits "inches" - TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] - TiledPageScale 1 - ShowPageBoundaries off - ZoomFactor "100" - SIDHighWatermark "36" - Block { - BlockType Inport - Name "Azimuth" - SID "1562::19" - Position [20, 101, 40, 119] - ZOrder 10 - IconDisplay "Port number" - } - Block { - BlockType Inport - Name "prevCycleCount" - SID "1562::26" - Position [20, 136, 40, 154] - ZOrder 17 - Port "2" - IconDisplay "Port number" - } - Block { - BlockType Inport - Name "last_Azimuth " - SID "1562::28" - Position [20, 171, 40, 189] - ZOrder 19 - Port "3" - IconDisplay "Port number" - } - Block { - BlockType Inport - Name "time" - SID "1562::33" - Position [20, 206, 40, 224] - ZOrder 24 - Port "4" - IconDisplay "Port number" - } - Block { - BlockType Demux - Name " Demux " - SID "1562::35" - Ports [1, 1] - Position [270, 245, 320, 285] - ZOrder 26 - Outputs "1" - } - Block { - BlockType S-Function - Name " SFunction " - SID "1562::34" - Tag "Stateflow S-Function ROSCO 3" - Ports [4, 4] - Position [180, 107, 230, 208] - ZOrder 25 - FunctionName "sf_sfun" - PortCounts "[4 4]" - SFunctionDeploymentMode off - EnableBusSupport on - SFcnIsStateOwnerBlock off - Port { - PortNumber 2 - Name "unmod_az" - } - Port { - PortNumber 3 - Name "cycleCount" - } - Port { - PortNumber 4 - Name "last_Azimuth" - } - } - Block { - BlockType Terminator - Name " Terminator " - SID "1562::36" - Position [460, 256, 480, 274] - ZOrder 27 - } - Block { - BlockType Outport - Name "unmod_az" - SID "1562::5" - Position [460, 101, 480, 119] - ZOrder -5 - IconDisplay "Port number" - } - Block { - BlockType Outport - Name "cycleCount" - SID "1562::27" - Position [460, 136, 480, 154] - ZOrder 18 - Port "2" - IconDisplay "Port number" - } - Block { - BlockType Outport - Name "last_Azimuth" - SID "1562::22" - Position [460, 171, 480, 189] - ZOrder 13 - Port "3" - IconDisplay "Port number" - } - Line { - ZOrder 154 - SrcBlock "Azimuth" - SrcPort 1 - DstBlock " SFunction " - DstPort 1 - } - Line { - ZOrder 155 - SrcBlock "prevCycleCount" - SrcPort 1 - DstBlock " SFunction " - DstPort 2 - } - Line { - ZOrder 156 - SrcBlock "last_Azimuth " - SrcPort 1 - DstBlock " SFunction " - DstPort 3 - } - Line { - ZOrder 157 - SrcBlock "time" - SrcPort 1 - DstBlock " SFunction " - DstPort 4 - } - Line { - Name "unmod_az" - ZOrder 158 - Labels [0, 0] - SrcBlock " SFunction " - SrcPort 2 - DstBlock "unmod_az" - DstPort 1 - } - Line { - Name "cycleCount" - ZOrder 159 - Labels [0, 0] - SrcBlock " SFunction " - SrcPort 3 - DstBlock "cycleCount" - DstPort 1 - } - Line { - Name "last_Azimuth" - ZOrder 160 - Labels [0, 0] - SrcBlock " SFunction " - SrcPort 4 - DstBlock "last_Azimuth" - DstPort 1 - } - Line { - ZOrder 161 - SrcBlock " Demux " - SrcPort 1 - DstBlock " Terminator " - DstPort 1 - } - Line { - ZOrder 162 - SrcBlock " SFunction " - SrcPort 1 - DstBlock " Demux " - DstPort 1 - } - } - } - Block { - BlockType ManualSwitch - Name "Manual Switch" - SID "1560" - Position [520, -63, 550, -27] - ZOrder 516 - CurrentSetting "0" - } - Block { - BlockType ManualSwitch - Name "Manual Switch1" - SID "1561" - Position [520, -3, 550, 33] - ZOrder 517 - CurrentSetting "0" - } - Block { - BlockType ManualSwitch - Name "Manual Switch2" - SID "1587" - Position [885, -198, 915, -162] - ZOrder 533 - BlockMirror on - } Block { BlockType SubSystem Name "Monitor" @@ -31958,30 +31296,6 @@ Model { RndMeth "Floor" SaturateOnIntegerOverflow off } - Block { - BlockType Product - Name "Multiply1" - SID "1583" - Ports [2, 1] - Position [1115, -443, 1145, -412] - ZOrder 528 - InputSameDT off - OutDataTypeStr "Inherit: Inherit via internal rule" - RndMeth "Floor" - SaturateOnIntegerOverflow off - } - Block { - BlockType Product - Name "Multiply2" - SID "1590" - Ports [2, 1] - Position [1115, -723, 1145, -692] - ZOrder 536 - InputSameDT off - OutDataTypeStr "Inherit: Inherit via internal rule" - RndMeth "Floor" - SaturateOnIntegerOverflow off - } Block { BlockType Mux Name "Mux" @@ -32015,51 +31329,6 @@ Model { Inputs "3" DisplayOption "bar" } - Block { - BlockType FromWorkspace - Name "OL BldPitch" - SID "1554" - Position [305, -327, 465, -303] - ZOrder 510 - BackgroundColor "[0.666667, 0.666667, 0.498039]" - VariableName "[R.OL.Time,R.OL.BldPitch]" - SampleTime "simu.dt" - ZeroCross on - Port { - PortNumber 1 - Name "current_WS" - } - } - Block { - BlockType FromWorkspace - Name "OL BldPitch1" - SID "1555" - Position [50, -117, 210, -93] - ZOrder 511 - BackgroundColor "[0.666667, 0.666667, 0.498039]" - VariableName "[R.OL.Time,R.OL.GenTq]" - SampleTime "simu.dt" - ZeroCross on - Port { - PortNumber 1 - Name "current_WS" - } - } - Block { - BlockType FromWorkspace - Name "OL BldPitch2" - SID "1567" - Position [45, -627, 205, -603] - ZOrder 523 - BackgroundColor "[0.666667, 0.666667, 0.498039]" - VariableName "[R.OL.Time,R.OL.Azimuth]" - SampleTime "simu.dt" - ZeroCross on - Port { - PortNumber 1 - Name "current_WS" - } - } Block { BlockType SubSystem Name "PitchSaturation" @@ -32072,7 +31341,7 @@ Model { ContentPreviewEnabled on System { Name "PitchSaturation" - Location [0, 23, 1920, 1003] + Location [0, 23, 1920, 1001] Open on PortBlocksUseCompactNotation off SetExecutionDomain off @@ -32300,21 +31569,21 @@ Model { ScopeSpecificationString "Simulink.scopes.TimeScopeBlockCfg('CurrentConfiguration', extmgr.ConfigurationSet(ext" "mgr.Configuration('Core','General UI',true),extmgr.Configuration('Core','Source UI',true),extmgr.Configuration(" "'Sources','WiredSimulink',true,'DataLoggingVariableName','ScopeData3'),extmgr.Configuration('Visuals','Time Dom" - "ain',true,'SerializedDisplays',{struct('MinYLimReal','-0.932','MaxYLimReal','1.3281','YLabelReal','','MinYLimMa" - "g','0.00000','MaxYLimMag','1.3281','LegendVisibility','Off','XGrid',true,'YGrid',true,'PlotMagPhase',false,'Axe" - "sColor',[0 0 0],'AxesTickColor',[0.686274509803922 0.686274509803922 0.686274509803922],'ColorOrder',[1 1 0.066" - "6666666666667;0.0745098039215686 0.623529411764706 1;1 0.411764705882353 0.16078431372549;0.392156862745098 0.8" - "31372549019608 0.0745098039215686;0.717647058823529 0.274509803921569 1;0.0588235294117647 1 1;1 0.074509803921" - "5686 0.650980392156863],'Title','%','LinePropertiesCache',{{}},'UserDefinedChannelNames',{{}},'Num" - "Lines',2,'LineNames',{{'x','Saturate Integral Term'}},'ShowContent',true,'Placement',1)},'DisplayPropertyDefaul" - "ts',struct('MinYLimReal','-0.932','MaxYLimReal','1.3281','YLabelReal','','MinYLimMag','0.00000','MaxYLimMag','1" - ".3281','LegendVisibility','Off','XGrid',true,'YGrid',true,'PlotMagPhase',false,'AxesColor',[0 0 0],'AxesTickCol" - "or',[0.686274509803922 0.686274509803922 0.686274509803922],'ColorOrder',[1 1 0.0666666666666667;0.074509803921" - "5686 0.623529411764706 1;1 0.411764705882353 0.16078431372549;0.392156862745098 0.831372549019608 0.07450980392" - "15686;0.717647058823529 0.274509803921569 1;0.0588235294117647 1 1;1 0.0745098039215686 0.650980392156863],'Tit" - "le','%'),'DisplayContentCache',[]),extmgr.Configuration('Tools','Plot Navigation',true),extmgr.Con" - "figuration('Tools','Measurements',true,'Version','2018b')),'Version','2018b','Position',[1 1 792 478],'VisibleA" - "tModelOpen','on')" + "ain',true,'SerializedDisplays',{struct('MinYLimReal','-0.31025','MaxYLimReal','0.03064','YLabelReal','','MinYLi" + "mMag','0.00000','MaxYLimMag','0.31025','LegendVisibility','Off','XGrid',true,'YGrid',true,'PlotMagPhase',false," + "'AxesColor',[0 0 0],'AxesTickColor',[0.686274509803922 0.686274509803922 0.686274509803922],'ColorOrder',[1 1 0" + ".0666666666666667;0.0745098039215686 0.623529411764706 1;1 0.411764705882353 0.16078431372549;0.392156862745098" + " 0.831372549019608 0.0745098039215686;0.717647058823529 0.274509803921569 1;0.0588235294117647 1 1;1 0.07450980" + "39215686 0.650980392156863],'Title','%','LinePropertiesCache',{{}},'UserDefinedChannelNames',{{}}," + "'NumLines',2,'LineNames',{{'x','Saturate Integral Term'}},'ShowContent',true,'Placement',1)},'DisplayPropertyDe" + "faults',struct('MinYLimReal','-0.31025','MaxYLimReal','0.03064','YLabelReal','','MinYLimMag','0.00000','MaxYLim" + "Mag','0.31025','LegendVisibility','Off','XGrid',true,'YGrid',true,'PlotMagPhase',false,'AxesColor',[0 0 0],'Axe" + "sTickColor',[0.686274509803922 0.686274509803922 0.686274509803922],'ColorOrder',[1 1 0.0666666666666667;0.0745" + "098039215686 0.623529411764706 1;1 0.411764705882353 0.16078431372549;0.392156862745098 0.831372549019608 0.074" + "5098039215686;0.717647058823529 0.274509803921569 1;0.0588235294117647 1 1;1 0.0745098039215686 0.6509803921568" + "63],'Title','%'),'DisplayContentCache',[]),extmgr.Configuration('Tools','Plot Navigation',true),ex" + "tmgr.Configuration('Tools','Measurements',true,'Version','2018b')),'Version','2018b','Position',[1 1 618 478],'" + "VisibleAtModelOpen','on')" NumInputPorts "2" Floating off } @@ -32968,20 +32237,21 @@ Model { ScopeSpecificationString "Simulink.scopes.TimeScopeBlockCfg('CurrentConfiguration', extmgr.ConfigurationSet(extm" "gr.Configuration('Core','General UI',true),extmgr.Configuration('Core','Source UI',true),extmgr.Configuration('S" "ources','WiredSimulink',true,'DataLoggingVariableName','ScopeData1'),extmgr.Configuration('Visuals','Time Domain" - "',true,'SerializedDisplays',{struct('MinYLimReal','-1.00000','MaxYLimReal','1.00000','YLabelReal','','MinYLimMag" - "','0.00000','MaxYLimMag','1.00000','LegendVisibility','off','XGrid',true,'YGrid',true,'PlotMagPhase',false,'Axes" - "Color',[0 0 0],'AxesTickColor',[0.686274509803922 0.686274509803922 0.686274509803922],'ColorOrder',[1 1 0.06666" - "66666666667;0.0745098039215686 0.623529411764706 1;1 0.411764705882353 0.16078431372549;0.392156862745098 0.8313" - "72549019608 0.0745098039215686;0.717647058823529 0.274509803921569 1;0.0588235294117647 1 1;1 0.0745098039215686" - " 0.650980392156863],'Title','%','LinePropertiesCache',{{}},'UserDefinedChannelNames',{{}},'NumLines" - "',1,'LineNames',{{'Channel 1'}},'ShowContent',true,'Placement',1)},'DisplayPropertyDefaults',struct('MinYLimReal" - "','-1.00000','MaxYLimReal','1.00000','YLabelReal','','MinYLimMag','0.00000','MaxYLimMag','1.00000','LegendVisibi" - "lity','off','XGrid',true,'YGrid',true,'PlotMagPhase',false,'AxesColor',[0 0 0],'AxesTickColor',[0.68627450980392" - "2 0.686274509803922 0.686274509803922],'ColorOrder',[0.0745098039215686 0.623529411764706 1;1 0.411764705882353 " - "0.16078431372549;1 1 0.0666666666666667;0.717647058823529 0.274509803921569 1;0.392156862745098 0.83137254901960" - "8 0.0745098039215686;0.0588235294117647 1 1;1 0.0745098039215686 0.650980392156863])),extmgr.Configuration('Tool" - "s','Plot Navigation',true,'PreviousAutoscale','XY'),extmgr.Configuration('Tools','Measurements',true,'Version','" - "2018b')),'Version','2018b','Position',[1 1 792 478],'VisibleAtModelOpen','on')" + "',true,'SerializedDisplays',{struct('MinYLimReal','33093.51876','MaxYLimReal','53093.51876','YLabelReal','','Min" + "YLimMag','33093.51876','MaxYLimMag','53093.51876','LegendVisibility','off','XGrid',true,'YGrid',true,'PlotMagPha" + "se',false,'AxesColor',[0 0 0],'AxesTickColor',[0.686274509803922 0.686274509803922 0.686274509803922],'ColorOrde" + "r',[1 1 0.0666666666666667;0.0745098039215686 0.623529411764706 1;1 0.411764705882353 0.16078431372549;0.3921568" + "62745098 0.831372549019608 0.0745098039215686;0.717647058823529 0.274509803921569 1;0.0588235294117647 1 1;1 0.0" + "745098039215686 0.650980392156863],'Title','%','LinePropertiesCache',{{}},'UserDefinedChannelNames'" + ",{{}},'NumLines',1,'LineNames',{{'Torque Controller'}},'ShowContent',true,'Placement',1)},'DisplayPropertyDefaul" + "ts',struct('MinYLimReal','33093.51876','MaxYLimReal','53093.51876','YLabelReal','','MinYLimMag','33093.51876','M" + "axYLimMag','53093.51876','LegendVisibility','off','XGrid',true,'YGrid',true,'PlotMagPhase',false,'AxesColor',[0 " + "0 0],'AxesTickColor',[0.686274509803922 0.686274509803922 0.686274509803922],'ColorOrder',[0.0745098039215686 0." + "623529411764706 1;1 0.411764705882353 0.16078431372549;1 1 0.0666666666666667;0.717647058823529 0.27450980392156" + "9 1;0.392156862745098 0.831372549019608 0.0745098039215686;0.0588235294117647 1 1;1 0.0745098039215686 0.6509803" + "92156863])),extmgr.Configuration('Tools','Plot Navigation',true,'PreviousAutoscale','XY'),extmgr.Configuration('" + "Tools','Measurements',true,'Version','2018b')),'Version','2018b','Position',[1 1 618 478],'VisibleAtModelOpen','" + "on')" NumInputPorts "1" Floating off } @@ -33009,145 +32279,7 @@ Model { "0.717647058823529 0.274509803921569 1;0.392156862745098 0.831372549019608 0.0745098039215686;0.0588235294117647 " "1 1;1 0.0745098039215686 0.650980392156863])),extmgr.Configuration('Tools','Plot Navigation',true,'PreviousAutos" "cale','XY'),extmgr.Configuration('Tools','Measurements',true,'Version','2018b')),'Version','2018b','Position',[1" - " 1 792 478],'VisibleAtModelOpen','on')" - NumInputPorts "1" - Floating off - } - Block { - BlockType Scope - Name "Scope2" - SID "1556" - Ports [1] - Position [575, -171, 605, -139] - ZOrder 512 - ScopeSpecificationString "Simulink.scopes.TimeScopeBlockCfg('CurrentConfiguration', extmgr.ConfigurationSet(extm" - "gr.Configuration('Core','General UI',true),extmgr.Configuration('Core','Source UI',true),extmgr.Configuration('S" - "ources','WiredSimulink',true,'DataLoggingVariableName','ScopeData1'),extmgr.Configuration('Visuals','Time Domain" - "',true,'SerializedDisplays',{struct('MinYLimReal','-1.00000','MaxYLimReal','1.00000','YLabelReal','','MinYLimMag" - "','0.00000','MaxYLimMag','1.00000','LegendVisibility','off','XGrid',true,'YGrid',true,'PlotMagPhase',false,'Axes" - "Color',[0 0 0],'AxesTickColor',[0.686274509803922 0.686274509803922 0.686274509803922],'ColorOrder',[1 1 0.06666" - "66666666667;0.0745098039215686 0.623529411764706 1;1 0.411764705882353 0.16078431372549;0.392156862745098 0.8313" - "72549019608 0.0745098039215686;0.717647058823529 0.274509803921569 1;0.0588235294117647 1 1;1 0.0745098039215686" - " 0.650980392156863],'Title','%','LinePropertiesCache',{{}},'UserDefinedChannelNames',{{}},'NumLines" - "',1,'LineNames',{{'current_WS'}},'ShowContent',true,'Placement',1)},'DisplayPropertyDefaults',struct('MinYLimRea" - "l','-1.00000','MaxYLimReal','1.00000','YLabelReal','','MinYLimMag','0.00000','MaxYLimMag','1.00000','LegendVisib" - "ility','off','XGrid',true,'YGrid',true,'PlotMagPhase',false,'AxesColor',[0 0 0],'AxesTickColor',[0.6862745098039" - "22 0.686274509803922 0.686274509803922],'ColorOrder',[0.0745098039215686 0.623529411764706 1;1 0.411764705882353" - " 0.16078431372549;1 1 0.0666666666666667;0.717647058823529 0.274509803921569 1;0.392156862745098 0.8313725490196" - "08 0.0745098039215686;0.0588235294117647 1 1;1 0.0745098039215686 0.650980392156863])),extmgr.Configuration('Too" - "ls','Plot Navigation',true),extmgr.Configuration('Tools','Measurements',true,'Version','2018b')),'Version','2018" - "b','Position',[1 1 792 478],'VisibleAtModelOpen','on')" - NumInputPorts "1" - Floating off - } - Block { - BlockType Scope - Name "Scope3" - SID "1557" - Ports [2] - Position [575, -119, 605, -86] - ZOrder 513 - ScopeSpecificationString "Simulink.scopes.TimeScopeBlockCfg('CurrentConfiguration', extmgr.ConfigurationSet(extm" - "gr.Configuration('Core','General UI',true),extmgr.Configuration('Core','Source UI',true),extmgr.Configuration('S" - "ources','WiredSimulink',true,'DataLoggingVariableName','ScopeData2'),extmgr.Configuration('Visuals','Time Domain" - "',true,'SerializedDisplays',{struct('MinYLimReal','1063.61053','MaxYLimReal','13861.21155','YLabelReal','','MinY" - "LimMag','1063.61053','MaxYLimMag','13861.21155','LegendVisibility','Off','XGrid',true,'YGrid',true,'PlotMagPhase" - "',false,'AxesColor',[0 0 0],'AxesTickColor',[0.686274509803922 0.686274509803922 0.686274509803922],'ColorOrder'" - ",[1 1 0.0666666666666667;0.0745098039215686 0.623529411764706 1;1 0.411764705882353 0.16078431372549;0.392156862" - "745098 0.831372549019608 0.0745098039215686;0.717647058823529 0.274509803921569 1;0.0588235294117647 1 1;1 0.074" - "5098039215686 0.650980392156863],'Title','%','LinePropertiesCache',{{}},'UserDefinedChannelNames',{" - "{}},'NumLines',2,'LineNames',{{'current_WS','Sum4'}},'ShowContent',true,'Placement',1)},'DisplayPropertyDefaults" - "',struct('MinYLimReal','1063.61053','MaxYLimReal','13861.21155','YLabelReal','','MinYLimMag','1063.61053','MaxYL" - "imMag','13861.21155','LegendVisibility','Off','XGrid',true,'YGrid',true,'PlotMagPhase',false,'AxesColor',[0 0 0]" - ",'AxesTickColor',[0.686274509803922 0.686274509803922 0.686274509803922],'ColorOrder',[0.0745098039215686 0.6235" - "29411764706 1;1 0.411764705882353 0.16078431372549;1 1 0.0666666666666667;0.717647058823529 0.274509803921569 1;" - "0.392156862745098 0.831372549019608 0.0745098039215686;0.0588235294117647 1 1;1 0.0745098039215686 0.65098039215" - "6863])),extmgr.Configuration('Tools','Plot Navigation',true),extmgr.Configuration('Tools','Measurements',true,'V" - "ersion','2018b')),'Version','2018b','Position',[1 1 792 478],'VisibleAtModelOpen','on')" - NumInputPorts "2" - Floating off - } - Block { - BlockType Scope - Name "Scope4" - SID "1566" - Ports [2] - Position [555, -489, 585, -456] - ZOrder 522 - ScopeSpecificationString "Simulink.scopes.TimeScopeBlockCfg('CurrentConfiguration', extmgr.ConfigurationSet(extm" - "gr.Configuration('Core','General UI',true),extmgr.Configuration('Core','Source UI',true),extmgr.Configuration('S" - "ources','WiredSimulink',true,'DataLoggingVariableName','ScopeData3'),extmgr.Configuration('Visuals','Time Domain" - "',true,'SerializedDisplays',{struct('MinYLimReal','-1159.14583','MaxYLimReal','10432.31247','YLabelReal','','Min" - "YLimMag',' 0.00000','MaxYLimMag','10432.31247','LegendVisibility','Off','XGrid',true,'YGrid',true,'PlotMagPhase" - "',false,'AxesColor',[0 0 0],'AxesTickColor',[0.686274509803922 0.686274509803922 0.686274509803922],'ColorOrder'" - ",[1 1 0.0666666666666667;0.0745098039215686 0.623529411764706 1;1 0.411764705882353 0.16078431372549;0.392156862" - "745098 0.831372549019608 0.0745098039215686;0.717647058823529 0.274509803921569 1;0.0588235294117647 1 1;1 0.074" - "5098039215686 0.650980392156863],'Title','%','LinePropertiesCache',{{}},'UserDefinedChannelNames',{" - "{}},'NumLines',2,'LineNames',{{'MATLAB Function/unmod_az','current_WS'}},'ShowContent',true,'Placement',1)},'Dis" - "playPropertyDefaults',struct('MinYLimReal','-1159.14583','MaxYLimReal','10432.31247','YLabelReal','','MinYLimMag" - "',' 0.00000','MaxYLimMag','10432.31247','LegendVisibility','Off','XGrid',true,'YGrid',true,'PlotMagPhase',false" - ",'AxesColor',[0 0 0],'AxesTickColor',[0.686274509803922 0.686274509803922 0.686274509803922],'ColorOrder',[0.074" - "5098039215686 0.623529411764706 1;1 0.411764705882353 0.16078431372549;1 1 0.0666666666666667;0.717647058823529 " - "0.274509803921569 1;0.392156862745098 0.831372549019608 0.0745098039215686;0.0588235294117647 1 1;1 0.0745098039" - "215686 0.650980392156863])),extmgr.Configuration('Tools','Plot Navigation',true,'PreviousAutoscale','XY'),extmgr" - ".Configuration('Tools','Measurements',true,'Version','2018b')),'Version','2018b','Position',[1 1 792 478],'Visib" - "leAtModelOpen','on')" - NumInputPorts "2" - Floating off - } - Block { - BlockType Scope - Name "Scope5" - SID "1569" - Ports [1] - Position [545, -701, 575, -669] - ZOrder 525 - ScopeSpecificationString "Simulink.scopes.TimeScopeBlockCfg('CurrentConfiguration', extmgr.ConfigurationSet(extm" - "gr.Configuration('Core','General UI',true),extmgr.Configuration('Core','Source UI',true),extmgr.Configuration('S" - "ources','WiredSimulink',true,'DataLoggingVariableName','ScopeData4'),extmgr.Configuration('Visuals','Time Domain" - "',true,'SerializedDisplays',{struct('MinYLimReal','-52.66805','MaxYLimReal','49.12529','YLabelReal','','MinYLimM" - "ag','0.00000','MaxYLimMag','52.66805','LegendVisibility','off','XGrid',true,'YGrid',true,'PlotMagPhase',false,'A" - "xesColor',[0 0 0],'AxesTickColor',[0.686274509803922 0.686274509803922 0.686274509803922],'ColorOrder',[1 1 0.06" - "66666666666667;0.0745098039215686 0.623529411764706 1;1 0.411764705882353 0.16078431372549;0.392156862745098 0.8" - "31372549019608 0.0745098039215686;0.717647058823529 0.274509803921569 1;0.0588235294117647 1 1;1 0.0745098039215" - "686 0.650980392156863],'Title','%','LinePropertiesCache',{{}},'UserDefinedChannelNames',{{}},'NumLi" - "nes',1,'LineNames',{{'Sum2'}},'ShowContent',true,'Placement',1)},'DisplayPropertyDefaults',struct('MinYLimReal'," - "'-52.66805','MaxYLimReal','49.12529','YLabelReal','','MinYLimMag','0.00000','MaxYLimMag','52.66805','LegendVisib" - "ility','off','XGrid',true,'YGrid',true,'PlotMagPhase',false,'AxesColor',[0 0 0],'AxesTickColor',[0.6862745098039" - "22 0.686274509803922 0.686274509803922],'ColorOrder',[0.0745098039215686 0.623529411764706 1;1 0.411764705882353" - " 0.16078431372549;1 1 0.0666666666666667;0.717647058823529 0.274509803921569 1;0.392156862745098 0.8313725490196" - "08 0.0745098039215686;0.0588235294117647 1 1;1 0.0745098039215686 0.650980392156863])),extmgr.Configuration('Too" - "ls','Plot Navigation',true,'OnceAtStop',false,'PreviousZoomMode','ZoomY','PreviousAutoscale','XY'),extmgr.Config" - "uration('Tools','Measurements',true,'Version','2018b')),'Version','2018b','Position',[1 1 792 478],'VisibleAtMod" - "elOpen','on')" - NumInputPorts "1" - Floating off - } - Block { - BlockType Scope - Name "Scope6" - SID "1585" - Ports [1] - Position [1295, -651, 1325, -619] - ZOrder 531 - ScopeSpecificationString "Simulink.scopes.TimeScopeBlockCfg('CurrentConfiguration', extmgr.ConfigurationSet(extm" - "gr.Configuration('Core','General UI',true),extmgr.Configuration('Core','Source UI',true),extmgr.Configuration('S" - "ources','WiredSimulink',true,'DataLoggingVariableName','ScopeData5'),extmgr.Configuration('Visuals','Time Domain" - "',true,'SerializedDisplays',{struct('MinYLimReal','-1803906.20254','MaxYLimReal','1024507.77992','YLabelReal',''" - ",'MinYLimMag',' 0.00000','MaxYLimMag','1803906.20254','LegendVisibility','off','XGrid',true,'YGrid',true,'Pl" - "otMagPhase',false,'AxesColor',[0 0 0],'AxesTickColor',[0.686274509803922 0.686274509803922 0.686274509803922],'C" - "olorOrder',[1 1 0.0666666666666667;0.0745098039215686 0.623529411764706 1;1 0.411764705882353 0.16078431372549;0" - ".392156862745098 0.831372549019608 0.0745098039215686;0.717647058823529 0.274509803921569 1;0.0588235294117647 1" - " 1;1 0.0745098039215686 0.650980392156863],'Title','%','LinePropertiesCache',{{}},'UserDefinedChann" - "elNames',{{}},'NumLines',1,'LineNames',{{'Sum3'}},'ShowContent',true,'Placement',1)},'DisplayPropertyDefaults',s" - "truct('MinYLimReal','-1803906.20254','MaxYLimReal','1024507.77992','YLabelReal','','MinYLimMag',' 0.00000','" - "MaxYLimMag','1803906.20254','LegendVisibility','off','XGrid',true,'YGrid',true,'PlotMagPhase',false,'AxesColor'," - "[0 0 0],'AxesTickColor',[0.686274509803922 0.686274509803922 0.686274509803922],'ColorOrder',[0.0745098039215686" - " 0.623529411764706 1;1 0.411764705882353 0.16078431372549;1 1 0.0666666666666667;0.717647058823529 0.27450980392" - "1569 1;0.392156862745098 0.831372549019608 0.0745098039215686;0.0588235294117647 1 1;1 0.0745098039215686 0.6509" - "80392156863])),extmgr.Configuration('Tools','Plot Navigation',true,'PreviousAutoscale','XY'),extmgr.Configuratio" - "n('Tools','Measurements',true,'Version','2018b')),'Version','2018b','Position',[1 1 792 478],'VisibleAtModelOpen" - "','on')" + " 1 618 478],'VisibleAtModelOpen','on')" NumInputPorts "1" Floating off } @@ -33163,7 +32295,7 @@ Model { ContentPreviewEnabled on System { Name "SetpointSmoother" - Location [0, 23, 1920, 1003] + Location [0, 23, 1920, 1001] Open on PortBlocksUseCompactNotation off SetExecutionDomain off @@ -33645,45 +32777,6 @@ Model { OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } - Block { - BlockType Sum - Name "Sum2" - SID "1568" - Ports [2, 1] - Position [390, -580, 420, -540] - ZOrder 524 - ShowName off - Inputs "+-" - InputSameDT off - OutDataTypeStr "Inherit: Inherit via internal rule" - SaturateOnIntegerOverflow off - } - Block { - BlockType Sum - Name "Sum3" - SID "1584" - Ports [3, 1] - Position [1180, -520, 1200, -500] - ZOrder 527 - ShowName off - IconShape "round" - Inputs "+++" - InputSameDT off - OutDataTypeStr "Inherit: Inherit via internal rule" - SaturateOnIntegerOverflow off - } - Block { - BlockType Sum - Name "Sum4" - SID "1586" - Ports [2, 1] - Position [370, -135, 400, -95] - ZOrder 532 - ShowName off - InputSameDT off - OutDataTypeStr "Inherit: Inherit via internal rule" - SaturateOnIntegerOverflow off - } Block { BlockType ToWorkspace Name "To Workspace" @@ -33725,7 +32818,7 @@ Model { RequestExecContextInheritance off System { Name "Torque Controller" - Location [0, 23, 1920, 1003] + Location [0, 23, 1920, 1001] Open on PortBlocksUseCompactNotation off SetExecutionDomain off @@ -33740,7 +32833,7 @@ Model { TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off - ZoomFactor "100" + ZoomFactor "95" Block { BlockType Inport Name "GenSpeedF" @@ -33828,7 +32921,7 @@ Model { ContentPreviewEnabled on System { Name "Integral" - Location [0, 23, 1920, 1003] + Location [0, 23, 1920, 1001] Open on PortBlocksUseCompactNotation off SetExecutionDomain off @@ -34233,7 +33326,7 @@ Model { Name "To Workspace" SID "548" Ports [1] - Position [625, 155, 685, 185] + Position [570, 295, 630, 325] ZOrder 326 BackgroundColor "[0.850980, 0.325490, 0.098039]" VariableName "VSdiff" @@ -34273,7 +33366,7 @@ Model { } System { Name "VS_OmegaRef" - Location [0, 23, 1920, 1003] + Location [0, 23, 1920, 1001] Open on PortBlocksUseCompactNotation off SetExecutionDomain off @@ -34308,7 +33401,7 @@ Model { RequestExecContextInheritance off System { Name "Omega_opt" - Location [0, 23, 1920, 1003] + Location [0, 23, 1920, 1001] Open on PortBlocksUseCompactNotation off SetExecutionDomain off @@ -34769,7 +33862,7 @@ Model { Points [179, 0] Branch { ZOrder 493 - Points [0, -210] + Points [0, -70] DstBlock "To Workspace" DstPort 1 } @@ -34817,20 +33910,20 @@ Model { ScopeSpecificationString "Simulink.scopes.TimeScopeBlockCfg('CurrentConfiguration', extmgr.ConfigurationSet(extm" "gr.Configuration('Core','General UI',true),extmgr.Configuration('Core','Source UI',true),extmgr.Configuration('S" "ources','WiredSimulink',true,'DataLoggingVariableName','ScopeData2'),extmgr.Configuration('Visuals','Time Domain" - "',true,'SerializedDisplays',{struct('MinYLimReal','-1.419','MaxYLimReal','14.37989','YLabelReal','','MinYLimMag'" - ",'0.00000','MaxYLimMag','14.37989','LegendVisibility','Off','XGrid',true,'YGrid',true,'PlotMagPhase',false,'Axes" - "Color',[0 0 0],'AxesTickColor',[0.686274509803922 0.686274509803922 0.686274509803922],'ColorOrder',[1 1 0.06666" - "66666666667;0.0745098039215686 0.623529411764706 1;1 0.411764705882353 0.16078431372549;0.392156862745098 0.8313" - "72549019608 0.0745098039215686;0.717647058823529 0.274509803921569 1;0.0588235294117647 1 1;1 0.0745098039215686" - " 0.650980392156863],'Title','%','LinePropertiesCache',{{}},'UserDefinedChannelNames',{{}},'NumLines" - "',2,'LineNames',{{'Extract Signals/2','WE_Vw'}},'ShowContent',true,'Placement',1)},'DisplayPropertyDefaults',str" - "uct('MinYLimReal','-1.419','MaxYLimReal','14.37989','YLabelReal','','MinYLimMag','0.00000','MaxYLimMag','14.3798" - "9','LegendVisibility','Off','XGrid',true,'YGrid',true,'PlotMagPhase',false,'AxesColor',[0 0 0],'AxesTickColor',[" - "0.686274509803922 0.686274509803922 0.686274509803922],'ColorOrder',[0.0745098039215686 0.623529411764706 1;1 0." - "411764705882353 0.16078431372549;1 1 0.0666666666666667;0.717647058823529 0.274509803921569 1;0.392156862745098 " - "0.831372549019608 0.0745098039215686;0.0588235294117647 1 1;1 0.0745098039215686 0.650980392156863])),extmgr.Con" - "figuration('Tools','Plot Navigation',true,'PreviousAutoscale','XY'),extmgr.Configuration('Tools','Measurements'," - "true,'Version','2018b')),'Version','2018b','Position',[1 1 792 478],'VisibleAtModelOpen','on')" + "',true,'SerializedDisplays',{struct('MinYLimReal','7.9','MaxYLimReal','8.9','YLabelReal','','MinYLimMag','7.9','" + "MaxYLimMag','8.9','LegendVisibility','Off','XGrid',true,'YGrid',true,'PlotMagPhase',false,'AxesColor',[0 0 0],'A" + "xesTickColor',[0.686274509803922 0.686274509803922 0.686274509803922],'ColorOrder',[1 1 0.0666666666666667;0.074" + "5098039215686 0.623529411764706 1;1 0.411764705882353 0.16078431372549;0.392156862745098 0.831372549019608 0.074" + "5098039215686;0.717647058823529 0.274509803921569 1;0.0588235294117647 1 1;1 0.0745098039215686 0.65098039215686" + "3],'Title','%','LinePropertiesCache',{{}},'UserDefinedChannelNames',{{}},'NumLines',2,'LineNames',{" + "{'Extract Signals/2','WE_Vw'}},'ShowContent',true,'Placement',1)},'DisplayPropertyDefaults',struct('MinYLimReal'" + ",'7.9','MaxYLimReal','8.9','YLabelReal','','MinYLimMag','7.9','MaxYLimMag','8.9','LegendVisibility','Off','XGrid" + "',true,'YGrid',true,'PlotMagPhase',false,'AxesColor',[0 0 0],'AxesTickColor',[0.686274509803922 0.68627450980392" + "2 0.686274509803922],'ColorOrder',[0.0745098039215686 0.623529411764706 1;1 0.411764705882353 0.16078431372549;1" + " 1 0.0666666666666667;0.717647058823529 0.274509803921569 1;0.392156862745098 0.831372549019608 0.07450980392156" + "86;0.0588235294117647 1 1;1 0.0745098039215686 0.650980392156863])),extmgr.Configuration('Tools','Plot Navigatio" + "n',true,'PreviousAutoscale','XY'),extmgr.Configuration('Tools','Measurements',true,'Version','2018b')),'Version'" + ",'2018b','Position',[1 1 618 478],'VisibleAtModelOpen','on')" NumInputPorts "2" Floating off } @@ -34850,7 +33943,7 @@ Model { } System { Name "Wind Speed Estimator" - Location [0, 23, 1920, 1003] + Location [0, 23, 1920, 1001] Open on PortBlocksUseCompactNotation off SetExecutionDomain off @@ -35824,7 +34917,7 @@ Model { ContentPreviewEnabled on System { Name "WE_Params" - Location [0, 23, 1920, 1003] + Location [0, 23, 1920, 1001] Open on PortBlocksUseCompactNotation off SetExecutionDomain off @@ -35942,13 +35035,13 @@ Model { ScopeSpecificationString "Simulink.scopes.TimeScopeBlockCfg('CurrentConfiguration', extmgr.ConfigurationSet(extmgr." "Configuration('Core','General UI',true),extmgr.Configuration('Core','Source UI',true),extmgr.Configuration('Sources" "','WiredSimulink',true,'DataLoggingVariableName','ScopeData1'),extmgr.Configuration('Visuals','Time Domain',true,'S" - "erializedDisplays',{struct('MinYLimReal','-0.66947','MaxYLimReal','1.62961','YLabelReal','','MinYLimMag','0.00000'," - "'MaxYLimMag','1.62961','LegendVisibility','Off','XGrid',true,'YGrid',true,'PlotMagPhase',false,'AxesColor',[0 0 0]," - "'AxesTickColor',[0.686274509803922 0.686274509803922 0.686274509803922],'ColorOrder',[1 1 0.0666666666666667;0.0745" - "098039215686 0.623529411764706 1;1 0.411764705882353 0.16078431372549;0.392156862745098 0.831372549019608 0.0745098" - "039215686;0.717647058823529 0.274509803921569 1;0.0588235294117647 1 1;1 0.0745098039215686 0.650980392156863],'Tit" - "le','%','LinePropertiesCache',{{}},'UserDefinedChannelNames',{{}},'NumLines',1,'LineNames',{{'WE_w'}}," - "'ShowContent',true,'Placement',1),struct('MinYLimReal','-174.70028','MaxYLimReal','20742.91568','YLabelReal','','Mi" + "erializedDisplays',{struct('MinYLimReal','0.26711','MaxYLimReal','2.26711','YLabelReal','','MinYLimMag','0.26711','" + "MaxYLimMag','2.26711','LegendVisibility','Off','XGrid',true,'YGrid',true,'PlotMagPhase',false,'AxesColor',[0 0 0],'" + "AxesTickColor',[0.686274509803922 0.686274509803922 0.686274509803922],'ColorOrder',[1 1 0.0666666666666667;0.07450" + "98039215686 0.623529411764706 1;1 0.411764705882353 0.16078431372549;0.392156862745098 0.831372549019608 0.07450980" + "39215686;0.717647058823529 0.274509803921569 1;0.0588235294117647 1 1;1 0.0745098039215686 0.650980392156863],'Titl" + "e','%','LinePropertiesCache',{{}},'UserDefinedChannelNames',{{}},'NumLines',1,'LineNames',{{'WE_w'}},'" + "ShowContent',true,'Placement',1),struct('MinYLimReal','33089.42197','MaxYLimReal','53089.42197','YLabelReal','','Mi" "nYLimMag','0','MaxYLimMag','10','LegendVisibility','off','XGrid',true,'YGrid',true,'PlotMagPhase',false,'AxesColor'" ",[0 0 0],'AxesTickColor',[0.686274509803922 0.686274509803922 0.686274509803922],'ColorOrder',[1 1 0.06666666666666" "67;0.0745098039215686 0.623529411764706 1;1 0.411764705882353 0.16078431372549;0.392156862745098 0.831372549019608 " @@ -35964,9 +35057,9 @@ Model { ",'AxesTickColor',[0.686274509803922 0.686274509803922 0.686274509803922],'ColorOrder',[0.0745098039215686 0.6235294" "11764706 1;1 0.411764705882353 0.16078431372549;1 1 0.0666666666666667;0.717647058823529 0.274509803921569 1;0.3921" "56862745098 0.831372549019608 0.0745098039215686;0.0588235294117647 1 1;1 0.0745098039215686 0.650980392156863]),'D" - "isplayLayoutDimensions',[3 1],'DisplayContentCache',[]),extmgr.Configuration('Tools','Plot Navigation',true,'Previo" - "usAutoscale','XY'),extmgr.Configuration('Tools','Measurements',true,'Version','2018b')),'Version','2018b','Position" - "',[1 1 792 478],'VisibleAtModelOpen','on')" + "isplayLayoutDimensions',[3 1],'DisplayContentCache',[]),extmgr.Configuration('Tools','Plot Navigation',true),extmgr" + ".Configuration('Tools','Measurements',true,'Version','2018b')),'Version','2018b','Position',[1 1 618 478],'VisibleA" + "tModelOpen','on')" NumInputPorts "3" Floating off } @@ -36294,14 +35387,6 @@ Model { } } } - Block { - BlockType Fcn - Name "extract Azimuth" - SID "1565" - Position [-455, -493, -410, -477] - ZOrder 521 - Expr "u(strmatch('Azimuth',OutList))" - } Line { ZOrder 1770 SrcBlock "FAST Nonlinear Wind Turbine" @@ -36370,6 +35455,34 @@ Model { DstBlock "Filter GenSpeed" DstPort 1 } + Line { + ZOrder 779 + SrcBlock "Torque Controller" + SrcPort 1 + Points [57, 0] + Branch { + ZOrder 1095 + Points [76, 0] + Branch { + ZOrder 1505 + Points [0, -115] + DstBlock "Scope" + DstPort 1 + } + Branch { + ZOrder 1502 + Points [102, 0] + DstBlock "Mux" + DstPort 1 + } + } + Branch { + ZOrder 999 + Points [0, 55] + DstBlock "Multiply" + DstPort 1 + } + } Line { ZOrder 974 SrcBlock "Extract Signals" @@ -36503,18 +35616,9 @@ Model { } Branch { ZOrder 1555 - Points [-509, 0; 0, -545; 2, 0] - Branch { - ZOrder 1874 - Points [0, -690] - DstBlock "extract Azimuth" - DstPort 1 - } - Branch { - ZOrder 1873 - DstBlock "Extract Signals" - DstPort 1 - } + Points [-509, 0; 0, -545] + DstBlock "Extract Signals" + DstPort 1 } } Line { @@ -36548,6 +35652,39 @@ Model { DstBlock "PitchSaturation" DstPort 1 } + Line { + ZOrder 1377 + SrcBlock "PitchSaturation" + SrcPort 1 + Points [26, 0] + Branch { + ZOrder 1464 + Points [0, 365] + DstBlock "Delay1" + DstPort 1 + } + Branch { + ZOrder 1462 + Points [0, -5; 14, 0] + Branch { + ZOrder 1384 + Points [0, 10] + DstBlock "Mux2" + DstPort 3 + } + Branch { + ZOrder 1383 + Points [0, -10] + DstBlock "Mux2" + DstPort 1 + } + Branch { + ZOrder 1382 + DstBlock "Mux2" + DstPort 2 + } + } + } Line { ZOrder 1391 SrcBlock "PitchSaturation" @@ -36730,335 +35867,6 @@ Model { DstBlock "FAST Nonlinear Wind Turbine" DstPort 7 } - Line { - Name "current_WS" - ZOrder 1849 - Labels [0, 0] - SrcBlock "OL BldPitch" - SrcPort 1 - Points [36, 0; 0, 160] - Branch { - ZOrder 1859 - Points [0, 120] - DstBlock "Manual Switch" - DstPort 2 - } - Branch { - ZOrder 1858 - DstBlock "Scope2" - DstPort 1 - } - } - Line { - ZOrder 1851 - SrcBlock "Torque Controller" - SrcPort 1 - Points [123, 0; 0, -80] - DstBlock "Manual Switch1" - DstPort 1 - } - Line { - ZOrder 1854 - SrcBlock "Manual Switch1" - SrcPort 1 - Points [9, 0; 0, 27; -235, 0; 0, 53] - Branch { - ZOrder 1856 - Points [0, 79; -134, 0; 0, -34] - DstBlock "Multiply" - DstPort 1 - } - Branch { - ZOrder 1855 - DstBlock "Mux" - DstPort 1 - } - } - Line { - ZOrder 1860 - SrcBlock "Manual Switch" - SrcPort 1 - Points [23, 0; 0, 120; -171, 0; 0, 210] - Branch { - ZOrder 1862 - Points [0, 10] - Branch { - ZOrder 1864 - Points [0, 10; 1, 0] - Branch { - ZOrder 1868 - Points [0, 360] - DstBlock "Delay1" - DstPort 1 - } - Branch { - ZOrder 1867 - DstBlock "Mux2" - DstPort 3 - } - } - Branch { - ZOrder 1863 - DstBlock "Mux2" - DstPort 2 - } - } - Branch { - ZOrder 1861 - DstBlock "Mux2" - DstPort 1 - } - } - Line { - ZOrder 1866 - SrcBlock "PitchSaturation" - SrcPort 1 - Points [51, 0; 0, -355] - DstBlock "Manual Switch" - DstPort 1 - } - Line { - ZOrder 1869 - SrcBlock "MATLAB Function" - SrcPort 3 - Points [9, 0; 0, 85] - DstBlock "Delay2" - DstPort 1 - } - Line { - ZOrder 1870 - SrcBlock "Delay2" - SrcPort 1 - Points [-75, 0] - DstBlock "MATLAB Function" - DstPort 3 - } - Line { - ZOrder 1871 - SrcBlock "MATLAB Function" - SrcPort 2 - Points [33, 0; 0, 210] - DstBlock "Delay3" - DstPort 1 - } - Line { - ZOrder 1872 - SrcBlock "Delay3" - SrcPort 1 - Points [-89, 0; 0, -235] - DstBlock "MATLAB Function" - DstPort 2 - } - Line { - ZOrder 1875 - SrcBlock "extract Azimuth" - SrcPort 1 - DstBlock "MATLAB Function" - DstPort 1 - } - Line { - ZOrder 1876 - SrcBlock "MATLAB Function" - SrcPort 1 - Points [0, -52; 85, 0] - Branch { - ZOrder 1880 - Points [0, 47] - DstBlock "Scope4" - DstPort 1 - } - Branch { - ZOrder 1879 - Points [0, -23] - DstBlock "Sum2" - DstPort 2 - } - } - Line { - Name "current_WS" - ZOrder 1877 - Labels [0, 0] - SrcBlock "OL BldPitch2" - SrcPort 1 - Points [88, 0; 0, 45] - Branch { - ZOrder 1951 - Points [0, 105] - DstBlock "Scope4" - DstPort 2 - } - Branch { - ZOrder 1950 - DstBlock "Sum2" - DstPort 1 - } - } - Line { - ZOrder 1882 - SrcBlock "Constant3" - SrcPort 1 - Points [146, 0; 0, -135] - DstBlock "Integral" - DstPort 2 - } - Line { - ZOrder 1957 - SrcBlock "Multiply1" - SrcPort 1 - Points [40, 0] - DstBlock "Sum3" - DstPort 3 - } - Line { - ZOrder 1886 - SrcBlock "Constant2" - SrcPort 1 - DstBlock "Multiply1" - DstPort 2 - } - Line { - ZOrder 1881 - SrcBlock "Sum2" - SrcPort 1 - Points [48, 0] - Branch { - ZOrder 1896 - Points [0, 35; 384, 0] - Branch { - ZOrder 1954 - Points [0, -110] - DstBlock "Discrete Filter" - DstPort 1 - } - Branch { - ZOrder 1953 - Points [46, 0] - Branch { - ZOrder 1888 - DstBlock "Integral" - DstPort 1 - } - Branch { - ZOrder 1887 - Points [0, 90] - DstBlock "Multiply1" - DstPort 1 - } - } - } - Branch { - ZOrder 1895 - Points [0, -125] - DstBlock "Scope5" - DstPort 1 - } - } - Line { - ZOrder 1958 - SrcBlock "Integral" - SrcPort 1 - DstBlock "Sum3" - DstPort 2 - } - Line { - ZOrder 1897 - SrcBlock "Sum3" - SrcPort 1 - Points [43, 0] - Branch { - ZOrder 1902 - Points [0, 320] - DstBlock "Manual Switch2" - DstPort 1 - } - Branch { - ZOrder 1900 - Points [2, 0; 0, -125] - DstBlock "Scope6" - DstPort 1 - } - } - Line { - Name "current_WS" - ZOrder 1898 - Labels [0, 0] - SrcBlock "OL BldPitch1" - SrcPort 1 - Points [98, 0] - Branch { - ZOrder 1979 - Points [0, 24; 200, 0; 0, -29] - DstBlock "Scope3" - DstPort 1 - } - Branch { - ZOrder 1978 - DstBlock "Sum4" - DstPort 2 - } - } - Line { - ZOrder 1899 - SrcBlock "Sum4" - SrcPort 1 - Points [48, 0; 0, 20] - Branch { - ZOrder 1981 - DstBlock "Scope3" - DstPort 2 - } - Branch { - ZOrder 1980 - Points [0, 120] - DstBlock "Manual Switch1" - DstPort 2 - } - } - Line { - ZOrder 1903 - SrcBlock "Constant1" - SrcPort 1 - DstBlock "Manual Switch2" - DstPort 2 - } - Line { - ZOrder 1904 - SrcBlock "Manual Switch2" - SrcPort 1 - Points [-525, 0] - DstBlock "Sum4" - DstPort 1 - } - Line { - ZOrder 1955 - SrcBlock "Discrete Derivative" - SrcPort 1 - Points [3, 0; 0, -65] - DstBlock "Multiply2" - DstPort 2 - } - Line { - ZOrder 1956 - SrcBlock "Constant4" - SrcPort 1 - DstBlock "Multiply2" - DstPort 1 - } - Line { - ZOrder 1959 - SrcBlock "Multiply2" - SrcPort 1 - Points [40, 0] - DstBlock "Sum3" - DstPort 1 - } - Line { - ZOrder 1960 - SrcBlock "Discrete Filter" - SrcPort 1 - DstBlock "Discrete Derivative" - DstPort 1 - } } } #Finite State Machines @@ -37073,7 +35881,7 @@ Stateflow { created "06-Dec-2016 12:34:55" isLibrary 0 sfVersion 80000014 - firstTarget 159 + firstTarget 147 } chart { id 2 @@ -37727,25 +36535,25 @@ Stateflow { chart { id 31 machine 1 - name "MATLAB Function" + name "Wind Speed Estimator/Soft Start" windowPosition [422 539.941 189 413] viewLimits [0 156.75 0 153.75] screen [1 1 3600 1200 1.180555555555556] treeNode [0 32 0 0] viewObj 31 - ssIdHighWaterMark 18 + ssIdHighWaterMark 9 decomposition CLUSTER_CHART type EML_CHART updateMethod DISCRETE sampleTime "simu.dt" - chartFileNumber 3 + chartFileNumber 4 disableImplicitCasting 1 eml { - name "fcn" + name "softStart" } firstData 33 - firstTransition 41 - firstJunction 40 + firstTransition 40 + firstJunction 39 } state { id 32 @@ -37759,270 +36567,6 @@ Stateflow { ssIdNumber 1 type FUNC_STATE decomposition CLUSTER_STATE - eml { - isEML 1 - script "function [unmod_az,cycleCount,last_Azimuth] = fcn(Azimuth,prevCycleCount,last_Azimuth,time)\n%#co" - "degen\n%% Debug\nif time > 10\n a = 1;\nend\n%% Cycle Count\ndAz = 2 * pi * prevCycleCount + Azimuth - last_A" - "zimuth;\n\nif dAz < 0\n cycleCount = prevCycleCount + 1;\nelse\n cycleCount = prevCycleCount;\nend\n\nlast" - "_Azimuth = Azimuth;\n\nunmod_az = 360 * cycleCount + Azimuth;\n\n% %% Full azimuth position, shift register\n% %" - " psi\n% \n% psi_bar = [psi_bar_(2:end);\n% 2 * pi * cycleCount + Azimuth];\n% \n% \n% \n% %% Select psi for " - "integration\n% % psi(i)\n% \n% useInd = psi_bar > (psi_bar(end) - 2 * pi * N_P);\n% psi_i = psi_bar(useInd);\n" - "% \n% \n% %% Signal Shift Register\n% \n% a_hat_bar = [a_hat_bar_(2:end);\n% a_hat];\n% " - " \n% a_hat_i = a_hat_bar(useInd);\n% \n% %% Get Harmonic Amplitudes\n% \n% % mean\n% a_0 = trapz(ps" - "i_i,a_hat_i)/(2 * pi * N_P);\n% % \n% % \n% NHarmonics = 1;\n% a_c = zeros(NHarmonics,1);\n% a_s " - " = zeros(NHarmonics,1);\n% \n% %sin/cos\n% for iHarmonic = 1:NHarmonics\n% a_c(iHarmonic) = 2*trapz(psi_i,(" - "a_hat_i-a_0).*cos(iHarmonic*psi_i))/(2 * pi * N_P);\n% a_s(iHarmonic) = 2*trapz(psi_i,(a_hat_i-a_0).*sin(iHa" - "rmonic*psi_i))/(2 * pi * N_P);\n% end\n\n" - editorLayout "100 M4x1[10 5 700 500]" - } - } - data { - id 33 - ssIdNumber 5 - name "unmod_az" - 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 - unit { - name "inherit" - } - } - dataType "Inherit: Same as Simulink" - linkNode [31 0 34] - } - data { - id 34 - ssIdNumber 8 - name "cycleCount" - scope OUTPUT_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_NO - unit { - name "inherit" - } - } - dataType "Inherit: Same as Simulink" - linkNode [31 33 35] - } - data { - id 35 - ssIdNumber 6 - name "Azimuth" - 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 - unit { - name "inherit" - } - } - dataType "Inherit: Same as Simulink" - linkNode [31 34 36] - } - data { - id 36 - ssIdNumber 13 - name "prevCycleCount" - 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 - unit { - name "inherit" - } - } - dataType "Inherit: Same as Simulink" - linkNode [31 35 37] - } - data { - id 37 - ssIdNumber 14 - name "last_Azimuth" - 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 - unit { - name "inherit" - } - } - dataType "Inherit: Same as Simulink" - linkNode [31 36 38] - } - data { - id 38 - ssIdNumber 9 - name "last_Azimuth" - scope OUTPUT_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_NO - unit { - name "inherit" - } - } - dataType "Inherit: Same as Simulink" - linkNode [31 37 39] - } - data { - id 39 - ssIdNumber 18 - name "time" - 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 - unit { - name "inherit" - } - } - dataType "Inherit: Same as Simulink" - linkNode [31 38 0] - } - junction { - id 40 - position [23.5747 49.5747 7] - chart 31 - subviewer 31 - ssIdNumber 3 - type CONNECTIVE_JUNCTION - linkNode [31 0 0] - } - transition { - id 41 - labelString "{eML_blk_kernel();}" - labelPosition [28.125 13.875 102.544 14.964] - fontSize 12 - src { - intersection [0 0 1 0 23.5747 14.625 0 0] - } - dst { - id 40 - intersection [1 0 -1 0 23.5747 42.5747 0 0] - } - midPoint [23.5747 24.9468] - chart 31 - dataLimits [21.175 25.975 14.625 42.575] - subviewer 31 - drawStyle SMART - slide { - sticky BOTH_STICK - } - executionOrder 1 - ssIdNumber 2 - linkNode [31 0 0] - } - instance { - id 42 - machine 1 - name "MATLAB Function" - chart 31 - } - chart { - id 43 - machine 1 - name "Wind Speed Estimator/Soft Start" - windowPosition [422 539.941 189 413] - viewLimits [0 156.75 0 153.75] - screen [1 1 3600 1200 1.180555555555556] - treeNode [0 44 0 0] - viewObj 43 - ssIdHighWaterMark 9 - decomposition CLUSTER_CHART - type EML_CHART - updateMethod DISCRETE - sampleTime "simu.dt" - chartFileNumber 4 - disableImplicitCasting 1 - eml { - name "softStart" - } - firstData 45 - firstTransition 52 - firstJunction 51 - } - state { - id 44 - labelString "eML_blk_kernel()" - position [18 64.5 118 66] - fontSize 12 - chart 43 - treeNode [43 0 0 0] - superState SUBCHART - subviewer 43 - ssIdNumber 1 - type FUNC_STATE - decomposition CLUSTER_STATE eml { isEML 1 script "function out = softStart(startTime,endTime,time,generic,actual)\n\nas = Af_sigma(startTime,endTi" @@ -38033,7 +36577,7 @@ Stateflow { } } data { - id 45 + id 33 ssIdNumber 4 name "startTime" scope INPUT_DATA @@ -38052,10 +36596,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [43 0 46] + linkNode [31 0 34] } data { - id 46 + id 34 ssIdNumber 5 name "out" scope OUTPUT_DATA @@ -38075,10 +36619,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [43 45 47] + linkNode [31 33 35] } data { - id 47 + id 35 ssIdNumber 6 name "endTime" scope INPUT_DATA @@ -38100,10 +36644,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [43 46 48] + linkNode [31 34 36] } data { - id 48 + id 36 ssIdNumber 7 name "time" scope INPUT_DATA @@ -38125,10 +36669,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [43 47 49] + linkNode [31 35 37] } data { - id 49 + id 37 ssIdNumber 8 name "generic" scope INPUT_DATA @@ -38150,10 +36694,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [43 48 50] + linkNode [31 36 38] } data { - id 50 + id 38 ssIdNumber 9 name "actual" scope INPUT_DATA @@ -38175,19 +36719,19 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [43 49 0] + linkNode [31 37 0] } junction { - id 51 + id 39 position [23.5747 49.5747 7] - chart 43 - subviewer 43 + chart 31 + subviewer 31 ssIdNumber 3 type CONNECTIVE_JUNCTION - linkNode [43 0 0] + linkNode [31 0 0] } transition { - id 52 + id 40 labelString "{eML_blk_kernel();}" labelPosition [28.125 13.875 102.544 14.964] fontSize 12 @@ -38195,36 +36739,36 @@ Stateflow { intersection [0 0 1 0 23.5747 14.625 0 0] } dst { - id 51 + id 39 intersection [1 0 -1 0 23.5747 42.5747 0 0] } midPoint [23.5747 24.9468] - chart 43 + chart 31 dataLimits [21.175 25.975 14.625 42.575] - subviewer 43 + subviewer 31 drawStyle SMART slide { sticky BOTH_STICK } executionOrder 1 ssIdNumber 2 - linkNode [43 0 0] + linkNode [31 0 0] } instance { - id 53 + id 41 machine 1 name "Wind Speed Estimator/Soft Start" - chart 43 + chart 31 } chart { - id 54 + id 42 machine 1 name "PitchSaturation/Variable Saturator1" windowPosition [422 539.941 189 413] viewLimits [0 156.75 0 153.75] screen [1 1 3600 1200 1.180555555555556] - treeNode [0 55 0 0] - viewObj 54 + treeNode [0 43 0 0] + viewObj 42 ssIdHighWaterMark 8 decomposition CLUSTER_CHART type EML_CHART @@ -38233,19 +36777,19 @@ Stateflow { eml { name "variableSat" } - firstData 56 - firstTransition 62 - firstJunction 61 + firstData 44 + firstTransition 50 + firstJunction 49 } state { - id 55 + id 43 labelString "eML_blk_kernel()" position [18 64.5 118 66] fontSize 12 - chart 54 - treeNode [54 0 0 0] + chart 42 + treeNode [42 0 0 0] superState SUBCHART - subviewer 54 + subviewer 42 ssIdNumber 1 type FUNC_STATE decomposition CLUSTER_STATE @@ -38259,7 +36803,7 @@ Stateflow { } } data { - id 56 + id 44 ssIdNumber 4 name "pitchCommand" scope INPUT_DATA @@ -38278,10 +36822,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [54 0 57] + linkNode [42 0 45] } data { - id 57 + id 45 ssIdNumber 7 name "lowerLimit" scope INPUT_DATA @@ -38303,10 +36847,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [54 56 58] + linkNode [42 44 46] } data { - id 58 + id 46 ssIdNumber 5 name "pitchCommandOut" scope OUTPUT_DATA @@ -38326,10 +36870,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [54 57 59] + linkNode [42 45 47] } data { - id 59 + id 47 ssIdNumber 6 name "upperLimit" scope INPUT_DATA @@ -38351,10 +36895,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [54 58 60] + linkNode [42 46 48] } data { - id 60 + id 48 ssIdNumber 8 name "atLimit" scope OUTPUT_DATA @@ -38376,19 +36920,19 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [54 59 0] + linkNode [42 47 0] } junction { - id 61 + id 49 position [23.5747 49.5747 7] - chart 54 - subviewer 54 + chart 42 + subviewer 42 ssIdNumber 3 type CONNECTIVE_JUNCTION - linkNode [54 0 0] + linkNode [42 0 0] } transition { - id 62 + id 50 labelString "{eML_blk_kernel();}" labelPosition [28.125 13.875 102.544 14.964] fontSize 12 @@ -38396,36 +36940,36 @@ Stateflow { intersection [0 0 1 0 23.5747 14.625 0 0] } dst { - id 61 + id 49 intersection [1 0 -1 0 23.5747 42.5747 0 0] } midPoint [23.5747 24.9468] - chart 54 + chart 42 dataLimits [21.175 25.975 14.625 42.575] - subviewer 54 + subviewer 42 drawStyle SMART slide { sticky BOTH_STICK } executionOrder 1 ssIdNumber 2 - linkNode [54 0 0] + linkNode [42 0 0] } instance { - id 63 + id 51 machine 1 name "PitchSaturation/Variable Saturator1" - chart 54 + chart 42 } chart { - id 64 + id 52 machine 1 name "BldPitch Controller/Pitch GS" windowPosition [422 539.941 189 413] viewLimits [0 156.75 0 153.75] screen [1 1 3600 1200 1.180555555555556] - treeNode [0 65 0 0] - viewObj 64 + treeNode [0 53 0 0] + viewObj 52 ssIdHighWaterMark 32 decomposition CLUSTER_CHART type EML_CHART @@ -38434,19 +36978,19 @@ Stateflow { eml { name "GainSchedule" } - firstData 66 - firstTransition 73 - firstJunction 72 + firstData 54 + firstTransition 61 + firstJunction 60 } state { - id 65 + id 53 labelString "eML_blk_kernel()" position [18 64.5 118 66] fontSize 12 - chart 64 - treeNode [64 0 0 0] + chart 52 + treeNode [52 0 0 0] superState SUBCHART - subviewer 64 + subviewer 52 ssIdNumber 1 type FUNC_STATE decomposition CLUSTER_STATE @@ -38466,7 +37010,7 @@ Stateflow { } } data { - id 66 + id 54 ssIdNumber 6 name "Ki" scope OUTPUT_DATA @@ -38488,10 +37032,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [64 0 67] + linkNode [52 0 55] } data { - id 67 + id 55 ssIdNumber 28 name "Beta" scope INPUT_DATA @@ -38513,10 +37057,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [64 66 68] + linkNode [52 54 56] } data { - id 68 + id 56 ssIdNumber 26 name "Kp_pc" scope INPUT_DATA @@ -38538,10 +37082,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [64 67 69] + linkNode [52 55 57] } data { - id 69 + id 57 ssIdNumber 5 name "Kp" scope OUTPUT_DATA @@ -38561,10 +37105,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [64 68 70] + linkNode [52 56 58] } data { - id 70 + id 58 ssIdNumber 31 name "Ki_pc" scope INPUT_DATA @@ -38586,10 +37130,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [64 69 71] + linkNode [52 57 59] } data { - id 71 + id 59 ssIdNumber 32 name "PC_beta" scope INPUT_DATA @@ -38611,19 +37155,19 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [64 70 0] + linkNode [52 58 0] } junction { - id 72 + id 60 position [23.5747 49.5747 7] - chart 64 - subviewer 64 + chart 52 + subviewer 52 ssIdNumber 3 type CONNECTIVE_JUNCTION - linkNode [64 0 0] + linkNode [52 0 0] } transition { - id 73 + id 61 labelString "{eML_blk_kernel();}" labelPosition [28.125 13.875 102.544 14.964] fontSize 12 @@ -38631,36 +37175,36 @@ Stateflow { intersection [0 0 1 0 23.5747 14.625 0 0] } dst { - id 72 + id 60 intersection [1 0 -1 0 23.5747 42.5747 0 0] } midPoint [23.5747 24.9468] - chart 64 + chart 52 dataLimits [21.175 25.975 14.625 42.575] - subviewer 64 + subviewer 52 drawStyle SMART slide { sticky BOTH_STICK } executionOrder 1 ssIdNumber 2 - linkNode [64 0 0] + linkNode [52 0 0] } instance { - id 74 + id 62 machine 1 name "BldPitch Controller/Pitch GS" - chart 64 + chart 52 } chart { - id 75 + id 63 machine 1 name "Cyclic Pitch controller/1P Cyclic Pitch Controller1/Lead Correction" windowPosition [609.524 74.5 318 488] viewLimits [0 156.75 0 153.75] screen [1 1 1920 1200 2] - treeNode [0 76 0 0] - viewObj 75 + treeNode [0 64 0 0] + viewObj 63 ssIdHighWaterMark 8 decomposition CLUSTER_CHART type EML_CHART @@ -38670,19 +37214,19 @@ Stateflow { name "fcn" } supportVariableSizing 0 - firstData 77 - firstTransition 82 - firstJunction 81 + firstData 65 + firstTransition 70 + firstJunction 69 } state { - id 76 + id 64 labelString "eML_blk_kernel()" position [18 64.5 118 66] fontSize 12 - chart 75 - treeNode [75 0 0 0] + chart 63 + treeNode [63 0 0 0] superState SUBCHART - subviewer 75 + subviewer 63 ssIdNumber 1 type FUNC_STATE decomposition CLUSTER_STATE @@ -38697,7 +37241,7 @@ Stateflow { } } data { - id 77 + id 65 ssIdNumber 4 name "bdq" scope INPUT_DATA @@ -38716,10 +37260,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [75 0 78] + linkNode [63 0 66] } data { - id 78 + id 66 ssIdNumber 5 name "b_cos" scope OUTPUT_DATA @@ -38739,10 +37283,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [75 77 79] + linkNode [63 65 67] } data { - id 79 + id 67 ssIdNumber 6 name "psi_o" scope INPUT_DATA @@ -38764,10 +37308,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [75 78 80] + linkNode [63 66 68] } data { - id 80 + id 68 ssIdNumber 7 name "b_sin" scope OUTPUT_DATA @@ -38789,19 +37333,19 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [75 79 0] + linkNode [63 67 0] } junction { - id 81 + id 69 position [23.5747 49.5747 7] - chart 75 - subviewer 75 + chart 63 + subviewer 63 ssIdNumber 3 type CONNECTIVE_JUNCTION - linkNode [75 0 0] + linkNode [63 0 0] } transition { - id 82 + id 70 labelString "{eML_blk_kernel();}" labelPosition [32.125 19.875 102.544 14.964] fontSize 12 @@ -38809,36 +37353,36 @@ Stateflow { intersection [0 0 1 0 23.5747 14.625 0 0] } dst { - id 81 + id 69 intersection [1 0 -1 0 23.5747 42.5747 0 0] } midPoint [23.5747 24.9468] - chart 75 + chart 63 dataLimits [21.175 25.975 14.625 42.575] - subviewer 75 + subviewer 63 drawStyle SMART slide { sticky BOTH_STICK } executionOrder 1 ssIdNumber 2 - linkNode [75 0 0] + linkNode [63 0 0] } instance { - id 83 + id 71 machine 1 name "Cyclic Pitch controller/1P Cyclic Pitch Controller1/Lead Correction" - chart 75 + chart 63 } chart { - id 84 + id 72 machine 1 name "Cyclic Pitch controller/1P Cyclic Pitch Controller1/d-q transformation" windowPosition [586.667 74.5 318 488] viewLimits [0 156.75 0 153.75] screen [1 1 1920 1200 2] - treeNode [0 85 0 0] - viewObj 84 + treeNode [0 73 0 0] + viewObj 72 ssIdHighWaterMark 8 decomposition CLUSTER_CHART type EML_CHART @@ -38848,19 +37392,19 @@ Stateflow { name "fwdMBC2" } supportVariableSizing 0 - firstData 86 - firstTransition 92 - firstJunction 91 + firstData 74 + firstTransition 80 + firstJunction 79 } state { - id 85 + id 73 labelString "eML_blk_kernel()" position [18 64.5 118 66] fontSize 12 - chart 84 - treeNode [84 0 0 0] + chart 72 + treeNode [72 0 0 0] superState SUBCHART - subviewer 84 + subviewer 72 ssIdNumber 1 type FUNC_STATE decomposition CLUSTER_STATE @@ -38878,7 +37422,7 @@ Stateflow { } } data { - id 86 + id 74 ssIdNumber 4 name "RootMyb" scope INPUT_DATA @@ -38897,10 +37441,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [84 0 87] + linkNode [72 0 75] } data { - id 87 + id 75 ssIdNumber 5 name "M_tilt" scope OUTPUT_DATA @@ -38920,10 +37464,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [84 86 88] + linkNode [72 74 76] } data { - id 88 + id 76 ssIdNumber 6 name "Az" scope INPUT_DATA @@ -38945,10 +37489,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [84 87 89] + linkNode [72 75 77] } data { - id 89 + id 77 ssIdNumber 7 name "M_yaw" scope OUTPUT_DATA @@ -38970,10 +37514,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [84 88 90] + linkNode [72 76 78] } data { - id 90 + id 78 ssIdNumber 8 name "NumBl" scope INPUT_DATA @@ -38995,19 +37539,19 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [84 89 0] + linkNode [72 77 0] } junction { - id 91 + id 79 position [23.5747 49.5747 7] - chart 84 - subviewer 84 + chart 72 + subviewer 72 ssIdNumber 3 type CONNECTIVE_JUNCTION - linkNode [84 0 0] + linkNode [72 0 0] } transition { - id 92 + id 80 labelString "{eML_blk_kernel();}" labelPosition [32.125 19.875 102.544 14.964] fontSize 12 @@ -39015,36 +37559,36 @@ Stateflow { intersection [0 0 1 0 23.5747 14.625 0 0] } dst { - id 91 + id 79 intersection [1 0 -1 0 23.5747 42.5747 0 0] } midPoint [23.5747 24.9468] - chart 84 + chart 72 dataLimits [21.175 25.975 14.625 42.575] - subviewer 84 + subviewer 72 drawStyle SMART slide { sticky BOTH_STICK } executionOrder 1 ssIdNumber 2 - linkNode [84 0 0] + linkNode [72 0 0] } instance { - id 93 + id 81 machine 1 name "Cyclic Pitch controller/1P Cyclic Pitch Controller1/d-q transformation" - chart 84 + chart 72 } chart { - id 94 + id 82 machine 1 name "Cyclic Pitch controller/1P Cyclic Pitch Controller1/inverse d-q transformation" windowPosition [609.524 74.5 318 488] viewLimits [0 156.75 0 153.75] screen [1 1 1920 1200 2] - treeNode [0 95 0 0] - viewObj 94 + treeNode [0 83 0 0] + viewObj 82 ssIdHighWaterMark 10 decomposition CLUSTER_CHART type EML_CHART @@ -39054,19 +37598,19 @@ Stateflow { name "bckMBC2" } supportVariableSizing 0 - firstData 96 - firstTransition 103 - firstJunction 102 + firstData 84 + firstTransition 91 + firstJunction 90 } state { - id 95 + id 83 labelString "eML_blk_kernel()" position [18 64.5 118 66] fontSize 12 - chart 94 - treeNode [94 0 0 0] + chart 82 + treeNode [82 0 0 0] superState SUBCHART - subviewer 94 + subviewer 82 ssIdNumber 1 type FUNC_STATE decomposition CLUSTER_STATE @@ -39083,7 +37627,7 @@ Stateflow { } } data { - id 96 + id 84 ssIdNumber 4 name "bdq" scope INPUT_DATA @@ -39102,10 +37646,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [94 0 97] + linkNode [82 0 85] } data { - id 97 + id 85 ssIdNumber 5 name "b1" scope OUTPUT_DATA @@ -39125,10 +37669,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [94 96 98] + linkNode [82 84 86] } data { - id 98 + id 86 ssIdNumber 6 name "Az" scope INPUT_DATA @@ -39150,10 +37694,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [94 97 99] + linkNode [82 85 87] } data { - id 99 + id 87 ssIdNumber 7 name "b2" scope OUTPUT_DATA @@ -39175,10 +37719,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [94 98 100] + linkNode [82 86 88] } data { - id 100 + id 88 ssIdNumber 9 name "NumBl" scope INPUT_DATA @@ -39200,10 +37744,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [94 99 101] + linkNode [82 87 89] } data { - id 101 + id 89 ssIdNumber 10 name "b3" scope OUTPUT_DATA @@ -39225,19 +37769,19 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [94 100 0] + linkNode [82 88 0] } junction { - id 102 + id 90 position [23.5747 49.5747 7] - chart 94 - subviewer 94 + chart 82 + subviewer 82 ssIdNumber 3 type CONNECTIVE_JUNCTION - linkNode [94 0 0] + linkNode [82 0 0] } transition { - id 103 + id 91 labelString "{eML_blk_kernel();}" labelPosition [32.125 19.875 102.544 14.964] fontSize 12 @@ -39245,36 +37789,36 @@ Stateflow { intersection [0 0 1 0 23.5747 14.625 0 0] } dst { - id 102 + id 90 intersection [1 0 -1 0 23.5747 42.5747 0 0] } midPoint [23.5747 24.9468] - chart 94 + chart 82 dataLimits [21.175 25.975 14.625 42.575] - subviewer 94 + subviewer 82 drawStyle SMART slide { sticky BOTH_STICK } executionOrder 1 ssIdNumber 2 - linkNode [94 0 0] + linkNode [82 0 0] } instance { - id 104 + id 92 machine 1 name "Cyclic Pitch controller/1P Cyclic Pitch Controller1/inverse d-q transformation" - chart 94 + chart 82 } chart { - id 105 + id 93 machine 1 name "Cyclic Pitch controller/1P Cyclic Pitch Controller1/saturation\n(limit schedule)1" windowPosition [632.381 74.5 318 488] viewLimits [0 156.75 0 153.75] screen [1 1 1920 1200 2] - treeNode [0 106 0 0] - viewObj 105 + treeNode [0 94 0 0] + viewObj 93 ssIdHighWaterMark 15 decomposition CLUSTER_CHART type EML_CHART @@ -39284,19 +37828,19 @@ Stateflow { name "fcn" } supportVariableSizing 0 - firstData 107 - firstTransition 115 - firstJunction 114 + firstData 95 + firstTransition 103 + firstJunction 102 } state { - id 106 + id 94 labelString "eML_blk_kernel()" position [18 64.5 118 66] fontSize 12 - chart 105 - treeNode [105 0 0 0] + chart 93 + treeNode [93 0 0 0] superState SUBCHART - subviewer 105 + subviewer 93 ssIdNumber 1 type FUNC_STATE decomposition CLUSTER_STATE @@ -39323,7 +37867,7 @@ Stateflow { } } data { - id 107 + id 95 ssIdNumber 9 name "bdq_unsat" scope INPUT_DATA @@ -39345,10 +37889,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [105 0 108] + linkNode [93 0 96] } data { - id 108 + id 96 ssIdNumber 4 name "bdq" scope OUTPUT_DATA @@ -39368,10 +37912,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [105 107 109] + linkNode [93 95 97] } data { - id 109 + id 97 ssIdNumber 6 name "b_avg" scope INPUT_DATA @@ -39393,10 +37937,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [105 108 110] + linkNode [93 96 98] } data { - id 110 + id 98 ssIdNumber 12 name "M0" scope INPUT_DATA @@ -39418,10 +37962,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [105 109 111] + linkNode [93 97 99] } data { - id 111 + id 99 ssIdNumber 14 name "minPitch" scope INPUT_DATA @@ -39443,10 +37987,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [105 110 112] + linkNode [93 98 100] } data { - id 112 + id 100 ssIdNumber 13 name "k" scope OUTPUT_DATA @@ -39468,10 +38012,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [105 111 113] + linkNode [93 99 101] } data { - id 113 + id 101 ssIdNumber 15 name "Params" scope INPUT_DATA @@ -39493,19 +38037,19 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [105 112 0] + linkNode [93 100 0] } junction { - id 114 + id 102 position [23.5747 49.5747 7] - chart 105 - subviewer 105 + chart 93 + subviewer 93 ssIdNumber 3 type CONNECTIVE_JUNCTION - linkNode [105 0 0] + linkNode [93 0 0] } transition { - id 115 + id 103 labelString "{eML_blk_kernel();}" labelPosition [32.125 19.875 102.544 14.964] fontSize 12 @@ -39513,36 +38057,36 @@ Stateflow { intersection [0 0 1 0 23.5747 14.625 0 0] } dst { - id 114 + id 102 intersection [1 0 -1 0 23.5747 42.5747 0 0] } midPoint [23.5747 24.9468] - chart 105 + chart 93 dataLimits [21.175 25.975 14.625 42.575] - subviewer 105 + subviewer 93 drawStyle SMART slide { sticky BOTH_STICK } executionOrder 1 ssIdNumber 2 - linkNode [105 0 0] + linkNode [93 0 0] } instance { - id 116 + id 104 machine 1 name "Cyclic Pitch controller/1P Cyclic Pitch Controller1/saturation\n(limit schedule)1" - chart 105 + chart 93 } chart { - id 117 + id 105 machine 1 name "Cyclic Pitch controller/2P Cyclic Pitch Controller2/Lead Correction" windowPosition [609.524 74.5 318 488] viewLimits [0 156.75 0 153.75] screen [1 1 1920 1200 2] - treeNode [0 118 0 0] - viewObj 117 + treeNode [0 106 0 0] + viewObj 105 ssIdHighWaterMark 8 decomposition CLUSTER_CHART type EML_CHART @@ -39552,19 +38096,19 @@ Stateflow { name "fcn" } supportVariableSizing 0 - firstData 119 - firstTransition 124 - firstJunction 123 + firstData 107 + firstTransition 112 + firstJunction 111 } state { - id 118 + id 106 labelString "eML_blk_kernel()" position [18 64.5 118 66] fontSize 12 - chart 117 - treeNode [117 0 0 0] + chart 105 + treeNode [105 0 0 0] superState SUBCHART - subviewer 117 + subviewer 105 ssIdNumber 1 type FUNC_STATE decomposition CLUSTER_STATE @@ -39579,7 +38123,7 @@ Stateflow { } } data { - id 119 + id 107 ssIdNumber 4 name "bdq" scope INPUT_DATA @@ -39598,10 +38142,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [117 0 120] + linkNode [105 0 108] } data { - id 120 + id 108 ssIdNumber 5 name "b_cos" scope OUTPUT_DATA @@ -39621,10 +38165,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [117 119 121] + linkNode [105 107 109] } data { - id 121 + id 109 ssIdNumber 6 name "psi_o" scope INPUT_DATA @@ -39646,10 +38190,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [117 120 122] + linkNode [105 108 110] } data { - id 122 + id 110 ssIdNumber 7 name "b_sin" scope OUTPUT_DATA @@ -39671,19 +38215,19 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [117 121 0] + linkNode [105 109 0] } junction { - id 123 + id 111 position [23.5747 49.5747 7] - chart 117 - subviewer 117 + chart 105 + subviewer 105 ssIdNumber 3 type CONNECTIVE_JUNCTION - linkNode [117 0 0] + linkNode [105 0 0] } transition { - id 124 + id 112 labelString "{eML_blk_kernel();}" labelPosition [32.125 19.875 102.544 14.964] fontSize 12 @@ -39691,36 +38235,36 @@ Stateflow { intersection [0 0 1 0 23.5747 14.625 0 0] } dst { - id 123 + id 111 intersection [1 0 -1 0 23.5747 42.5747 0 0] } midPoint [23.5747 24.9468] - chart 117 + chart 105 dataLimits [21.175 25.975 14.625 42.575] - subviewer 117 + subviewer 105 drawStyle SMART slide { sticky BOTH_STICK } executionOrder 1 ssIdNumber 2 - linkNode [117 0 0] + linkNode [105 0 0] } instance { - id 125 + id 113 machine 1 name "Cyclic Pitch controller/2P Cyclic Pitch Controller2/Lead Correction" - chart 117 + chart 105 } chart { - id 126 + id 114 machine 1 name "Cyclic Pitch controller/2P Cyclic Pitch Controller2/d-q transformation" windowPosition [586.667 74.5 318 488] viewLimits [0 156.75 0 153.75] screen [1 1 1920 1200 2] - treeNode [0 127 0 0] - viewObj 126 + treeNode [0 115 0 0] + viewObj 114 ssIdHighWaterMark 8 decomposition CLUSTER_CHART type EML_CHART @@ -39730,19 +38274,19 @@ Stateflow { name "fwdMBC2" } supportVariableSizing 0 - firstData 128 - firstTransition 134 - firstJunction 133 + firstData 116 + firstTransition 122 + firstJunction 121 } state { - id 127 + id 115 labelString "eML_blk_kernel()" position [18 64.5 118 66] fontSize 12 - chart 126 - treeNode [126 0 0 0] + chart 114 + treeNode [114 0 0 0] superState SUBCHART - subviewer 126 + subviewer 114 ssIdNumber 1 type FUNC_STATE decomposition CLUSTER_STATE @@ -39760,7 +38304,7 @@ Stateflow { } } data { - id 128 + id 116 ssIdNumber 4 name "RootMyb" scope INPUT_DATA @@ -39779,10 +38323,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [126 0 129] + linkNode [114 0 117] } data { - id 129 + id 117 ssIdNumber 5 name "M_tilt" scope OUTPUT_DATA @@ -39802,10 +38346,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [126 128 130] + linkNode [114 116 118] } data { - id 130 + id 118 ssIdNumber 6 name "Az" scope INPUT_DATA @@ -39827,10 +38371,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [126 129 131] + linkNode [114 117 119] } data { - id 131 + id 119 ssIdNumber 7 name "M_yaw" scope OUTPUT_DATA @@ -39852,10 +38396,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [126 130 132] + linkNode [114 118 120] } data { - id 132 + id 120 ssIdNumber 8 name "NumBl" scope INPUT_DATA @@ -39877,19 +38421,19 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [126 131 0] + linkNode [114 119 0] } junction { - id 133 + id 121 position [23.5747 49.5747 7] - chart 126 - subviewer 126 + chart 114 + subviewer 114 ssIdNumber 3 type CONNECTIVE_JUNCTION - linkNode [126 0 0] + linkNode [114 0 0] } transition { - id 134 + id 122 labelString "{eML_blk_kernel();}" labelPosition [32.125 19.875 102.544 14.964] fontSize 12 @@ -39897,36 +38441,36 @@ Stateflow { intersection [0 0 1 0 23.5747 14.625 0 0] } dst { - id 133 + id 121 intersection [1 0 -1 0 23.5747 42.5747 0 0] } midPoint [23.5747 24.9468] - chart 126 + chart 114 dataLimits [21.175 25.975 14.625 42.575] - subviewer 126 + subviewer 114 drawStyle SMART slide { sticky BOTH_STICK } executionOrder 1 ssIdNumber 2 - linkNode [126 0 0] + linkNode [114 0 0] } instance { - id 135 + id 123 machine 1 name "Cyclic Pitch controller/2P Cyclic Pitch Controller2/d-q transformation" - chart 126 + chart 114 } chart { - id 136 + id 124 machine 1 name "Cyclic Pitch controller/2P Cyclic Pitch Controller2/inverse d-q transformation" windowPosition [609.524 74.5 318 488] viewLimits [0 156.75 0 153.75] screen [1 1 1920 1200 2] - treeNode [0 137 0 0] - viewObj 136 + treeNode [0 125 0 0] + viewObj 124 ssIdHighWaterMark 10 decomposition CLUSTER_CHART type EML_CHART @@ -39936,19 +38480,19 @@ Stateflow { name "bckMBC2" } supportVariableSizing 0 - firstData 138 - firstTransition 145 - firstJunction 144 + firstData 126 + firstTransition 133 + firstJunction 132 } state { - id 137 + id 125 labelString "eML_blk_kernel()" position [18 64.5 118 66] fontSize 12 - chart 136 - treeNode [136 0 0 0] + chart 124 + treeNode [124 0 0 0] superState SUBCHART - subviewer 136 + subviewer 124 ssIdNumber 1 type FUNC_STATE decomposition CLUSTER_STATE @@ -39965,7 +38509,7 @@ Stateflow { } } data { - id 138 + id 126 ssIdNumber 4 name "bdq" scope INPUT_DATA @@ -39984,10 +38528,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [136 0 139] + linkNode [124 0 127] } data { - id 139 + id 127 ssIdNumber 5 name "b1" scope OUTPUT_DATA @@ -40007,10 +38551,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [136 138 140] + linkNode [124 126 128] } data { - id 140 + id 128 ssIdNumber 6 name "Az" scope INPUT_DATA @@ -40032,10 +38576,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [136 139 141] + linkNode [124 127 129] } data { - id 141 + id 129 ssIdNumber 7 name "b2" scope OUTPUT_DATA @@ -40057,10 +38601,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [136 140 142] + linkNode [124 128 130] } data { - id 142 + id 130 ssIdNumber 9 name "NumBl" scope INPUT_DATA @@ -40082,10 +38626,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [136 141 143] + linkNode [124 129 131] } data { - id 143 + id 131 ssIdNumber 10 name "b3" scope OUTPUT_DATA @@ -40107,19 +38651,19 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [136 142 0] + linkNode [124 130 0] } junction { - id 144 + id 132 position [23.5747 49.5747 7] - chart 136 - subviewer 136 + chart 124 + subviewer 124 ssIdNumber 3 type CONNECTIVE_JUNCTION - linkNode [136 0 0] + linkNode [124 0 0] } transition { - id 145 + id 133 labelString "{eML_blk_kernel();}" labelPosition [32.125 19.875 102.544 14.964] fontSize 12 @@ -40127,36 +38671,36 @@ Stateflow { intersection [0 0 1 0 23.5747 14.625 0 0] } dst { - id 144 + id 132 intersection [1 0 -1 0 23.5747 42.5747 0 0] } midPoint [23.5747 24.9468] - chart 136 + chart 124 dataLimits [21.175 25.975 14.625 42.575] - subviewer 136 + subviewer 124 drawStyle SMART slide { sticky BOTH_STICK } executionOrder 1 ssIdNumber 2 - linkNode [136 0 0] + linkNode [124 0 0] } instance { - id 146 + id 134 machine 1 name "Cyclic Pitch controller/2P Cyclic Pitch Controller2/inverse d-q transformation" - chart 136 + chart 124 } chart { - id 147 + id 135 machine 1 name "Cyclic Pitch controller/2P Cyclic Pitch Controller2/saturation\n(limit schedule)1" windowPosition [632.381 74.5 318 488] viewLimits [0 156.75 0 153.75] screen [1 1 1920 1200 2] - treeNode [0 148 0 0] - viewObj 147 + treeNode [0 136 0 0] + viewObj 135 ssIdHighWaterMark 15 decomposition CLUSTER_CHART type EML_CHART @@ -40166,19 +38710,19 @@ Stateflow { name "fcn" } supportVariableSizing 0 - firstData 149 - firstTransition 157 - firstJunction 156 + firstData 137 + firstTransition 145 + firstJunction 144 } state { - id 148 + id 136 labelString "eML_blk_kernel()" position [18 64.5 118 66] fontSize 12 - chart 147 - treeNode [147 0 0 0] + chart 135 + treeNode [135 0 0 0] superState SUBCHART - subviewer 147 + subviewer 135 ssIdNumber 1 type FUNC_STATE decomposition CLUSTER_STATE @@ -40204,7 +38748,7 @@ Stateflow { } } data { - id 149 + id 137 ssIdNumber 9 name "bdq_unsat" scope INPUT_DATA @@ -40226,10 +38770,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [147 0 150] + linkNode [135 0 138] } data { - id 150 + id 138 ssIdNumber 4 name "bdq" scope OUTPUT_DATA @@ -40249,10 +38793,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [147 149 151] + linkNode [135 137 139] } data { - id 151 + id 139 ssIdNumber 6 name "b_avg" scope INPUT_DATA @@ -40274,10 +38818,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [147 150 152] + linkNode [135 138 140] } data { - id 152 + id 140 ssIdNumber 12 name "M0" scope INPUT_DATA @@ -40299,10 +38843,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [147 151 153] + linkNode [135 139 141] } data { - id 153 + id 141 ssIdNumber 14 name "minPitch" scope INPUT_DATA @@ -40324,10 +38868,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [147 152 154] + linkNode [135 140 142] } data { - id 154 + id 142 ssIdNumber 13 name "k" scope OUTPUT_DATA @@ -40349,10 +38893,10 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [147 153 155] + linkNode [135 141 143] } data { - id 155 + id 143 ssIdNumber 15 name "Params" scope INPUT_DATA @@ -40374,19 +38918,19 @@ Stateflow { } } dataType "Inherit: Same as Simulink" - linkNode [147 154 0] + linkNode [135 142 0] } junction { - id 156 + id 144 position [23.5747 49.5747 7] - chart 147 - subviewer 147 + chart 135 + subviewer 135 ssIdNumber 3 type CONNECTIVE_JUNCTION - linkNode [147 0 0] + linkNode [135 0 0] } transition { - id 157 + id 145 labelString "{eML_blk_kernel();}" labelPosition [32.125 19.875 102.544 14.964] fontSize 12 @@ -40394,29 +38938,29 @@ Stateflow { intersection [0 0 1 0 23.5747 14.625 0 0] } dst { - id 156 + id 144 intersection [1 0 -1 0 23.5747 42.5747 0 0] } midPoint [23.5747 24.9468] - chart 147 + chart 135 dataLimits [21.175 25.975 14.625 42.575] - subviewer 147 + subviewer 135 drawStyle SMART slide { sticky BOTH_STICK } executionOrder 1 ssIdNumber 2 - linkNode [147 0 0] + linkNode [135 0 0] } instance { - id 158 + id 146 machine 1 name "Cyclic Pitch controller/2P Cyclic Pitch Controller2/saturation\n(limit schedule)1" - chart 147 + chart 135 } target { - id 159 + id 147 machine 1 name "sfun" description "Default Simulink S-Function Target." diff --git a/Matlab_Toolbox/Utilities/Pl_FastPlots.m b/Matlab_Toolbox/Utilities/Pl_FastPlots.m index 118b107d..1f551a4c 100644 --- a/Matlab_Toolbox/Utilities/Pl_FastPlots.m +++ b/Matlab_Toolbox/Utilities/Pl_FastPlots.m @@ -16,8 +16,8 @@ function Pl_FastPlots(varargin) %% Cases to plot % Switches to turn on/off some categories of plots. Cases are defined in % the next section -plsw.MI = 1; % MI, Main Inputs -plsw.DTO = 1; % DTO, Drivetrain Outputs +plsw.MI = 0; % MI, Main Inputs +plsw.DTO = 0; % DTO, Drivetrain Outputs plsw.B1 = 1; % B1, Baseline1 plsw.PD = 1; % PD, Primary Dynamics plsw.RO = 0; % RO, Rotor Performance Outputs @@ -29,8 +29,8 @@ function Pl_FastPlots(varargin) %% Plot Cases % Everything defined here should have a switch above -pc.MI = {'Wind1VelX', 'BldPitch1', 'GenTq','GenSpeed','Azimuth','RootMyc1'}; -pc.DTO = {'GenPwr', 'RotSpeed', 'GenSpeed','Azimuth'}; +pc.MI = {'Wind1VelX', 'BldPitch1', 'GenTq'}; +pc.DTO = {'GenPwr', 'RotSpeed', 'GenSpeed'}; pc.B1 = {'Wind1VelX', 'BldPitch1', 'GenTq', 'RotSpeed', 'GenPwr'}; pc.PD = {'BldPitch1', 'GenTq', 'GenSpeed'}; pc.RO = {'RtTSR','RtAeroCp'}; diff --git a/Matlab_Toolbox/Utilities/load_ROSCO_params.m b/Matlab_Toolbox/Utilities/load_ROSCO_params.m index abdfbceb..2d613493 100644 --- a/Matlab_Toolbox/Utilities/load_ROSCO_params.m +++ b/Matlab_Toolbox/Utilities/load_ROSCO_params.m @@ -218,13 +218,3 @@ R.IPC_aziOffset_2P = IPC_aziOffset(2); -%% OpenLoop - -% Temporary -load('/Users/dzalkind/Tools/ROSCO/Matlab_Toolbox/OL_RAAW.mat') - -R.OL = OL; - - - - diff --git a/Matlab_Toolbox/runFAST.m b/Matlab_Toolbox/runFAST.m index e8a5e41a..e2dccb69 100644 --- a/Matlab_Toolbox/runFAST.m +++ b/Matlab_Toolbox/runFAST.m @@ -8,8 +8,8 @@ % Compile FAST for use with simulink & mex using openfast docs fast.FAST_SFuncDir = '/Users/dzalkind/Tools/openfast-sim/glue-codes/simulink/src'; %%%% NEED FOR SIMULINK -fast.FAST_InputFile = 'RAAW.fst'; % FAST input file (ext=.fst) -fast.FAST_directory = '/Users/dzalkind/Projects/RAAW/RAAW_OpenFAST/OpenFAST_3p1/'; % Path to fst directory files +fast.FAST_InputFile = '5MW_Land_Simulink.fst'; % FAST input file (ext=.fst) +fast.FAST_directory = '/Users/dzalkind/Tools/ROSCO/Test_Cases/5MW_Land_Simulink'; % Path to fst directory files % Simulink Parameters % Model @@ -79,5 +79,3 @@ - - From 50a2f90e39ac0b260be7f1ba833fa880dde87f01 Mon Sep 17 00:00:00 2001 From: dzalkind <65573423+dzalkind@users.noreply.github.com> Date: Fri, 20 May 2022 09:47:53 -0600 Subject: [PATCH 2/2] Add OpenFAST channels that Simulink reads (#135) --- .../IEA-15-240-RWT-UMaineSemi_ElastoDyn.dat | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Test_Cases/IEA-15-240-RWT-UMaineSemi/IEA-15-240-RWT-UMaineSemi_ElastoDyn.dat b/Test_Cases/IEA-15-240-RWT-UMaineSemi/IEA-15-240-RWT-UMaineSemi_ElastoDyn.dat index 8d74a1f8..07ca94c0 100644 --- a/Test_Cases/IEA-15-240-RWT-UMaineSemi/IEA-15-240-RWT-UMaineSemi_ElastoDyn.dat +++ b/Test_Cases/IEA-15-240-RWT-UMaineSemi/IEA-15-240-RWT-UMaineSemi_ElastoDyn.dat @@ -183,5 +183,9 @@ True TabDelim - Use tab delimiters in text tabular output file? (fla "YawBrMzp" "TwrBsFzt" "NacYaw" +"NcIMURAYs" +"RootMyc1" +"RootMyc2" +"RootMyc3" END of input file (the word "END" must appear in the first 3 columns of this last OutList line) ---------------------------------------------------------------------------------------