Model { Name "f14_dig_sf" Version 4.00 Description "This model of the F14 is used to design a high angl" "e of attack Digital Flight Control System. The design works in conjunction w" "ith the GUI in F14guid. There is documentation that goes along with this fil" "e and the\nGUI. The documentaiton is in the Word file \"F14 Design.doc\"." SampleTimeColors off LibraryLinkDisplay "none" WideLines on ShowLineDimensions off ShowPortDataTypes off RecordCoverage off CovPath "/" CovSaveName "covdata" CovNameIncrementing off CovHtmlReporting on BlockNameDataTip off BlockParametersDataTip on BlockDescriptionStringDataTip on ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off PreLoadFcn "f14dat_digital" CloseFcn ";slview('closediagram',bdroot);;slview('closediagra" "m',bdroot);" Created "Fri Aug 28 17:36:02 1998" Creator "Dr. Richard Gran" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "batserve" ModifiedDateFormat "%" LastModifiedDate "Wed Oct 4 19:38:11 2000" ModelVersionFormat "1.%" ConfigurationManager "none" SimParamPage "Solver" StartTime "0.0" StopTime "1000000" SolverMode "SingleTasking" Solver "ode45" RelTol "1e-4" AbsTol "1e-6" Refine "1" MaxStep "auto" MinStep "auto" MaxNumMinSteps "-1" InitialStep "auto" FixedStep ".01" MaxOrder 5 OutputOption "RefineOutputTimes" OutputTimes "[]" LoadExternalInput off ExternalInput "[]" SaveTime off TimeSaveName "tout" SaveState off StateSaveName "xout" SaveOutput off OutputSaveName "yout" LoadInitialState off InitialState "[]" SaveFinalState off FinalStateName "xFinal" SaveFormat "Array" LimitDataPoints off MaxDataPoints "1000" Decimation "1" AlgebraicLoopMsg "warning" MinStepSizeMsg "warning" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" InheritedTsInSrcMsg "warning" SingleTaskRateTransMsg "none" MultiTaskRateTransMsg "error" IntegerOverflowMsg "none" CheckForMatrixSingularity "none" UnnecessaryDatatypeConvMsg "none" Int32ToFloatConvMsg "warning" SignalLabelMismatchMsg "none" LinearizationMsg "none" VectorMatrixConversionMsg "none" SfunCompatibilityCheckMsg "none" BlockPriorityViolationMsg "warning" ArrayBoundsChecking "none" ConsistencyChecking "none" ZeroCross on Profile off SimulationMode "normal" RTWSystemTargetFile "grt.tlc" RTWInlineParameters off RTWRetainRTWFile off RTWTemplateMakefile "grt_vc.tmf" RTWMakeCommand "make_rtw" RTWGenerateCodeOnly on TLCProfiler off TLCDebug off TLCCoverage off AccelSystemTargetFile "accel.tlc" AccelTemplateMakefile "accel_default_tmf" AccelMakeCommand "make_rtw" ExtModeMexFile "ext_comm" ExtModeBatchMode off ExtModeTrigType "manual" ExtModeTrigMode "oneshot" ExtModeTrigPort "1" ExtModeTrigElement "any" ExtModeTrigDuration 1000 ExtModeTrigHoldOff 0 ExtModeTrigDelay 0 ExtModeTrigDirection "rising" ExtModeTrigLevel 0 ExtModeArchiveMode "off" ExtModeAutoIncOneShot off ExtModeIncDirWhenArm off ExtModeAddSuffixToVar off ExtModeWriteAllDataToWs off ExtModeArmWhenConnect off ExtModeLogAll on OptimizeBlockIOStorage on BufferReuse on ParameterPooling on BlockReductionOpt off BooleanDataType off BlockDefaults { Orientation "right" ForegroundColor "black" BackgroundColor "white" DropShadow off NamePlacement "normal" FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" ShowName on } AnnotationDefaults { HorizontalAlignment "center" VerticalAlignment "middle" ForegroundColor "black" BackgroundColor "white" DropShadow off FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" } LineDefaults { FontName "Helvetica" FontSize 9 FontWeight "normal" FontAngle "normal" } System { Name "f14_dig_sf" Location [8, 107, 945, 745] Open on ModelBrowserVisibility off ModelBrowserWidth 244 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom off ReportName "simulink-default.rpt" Block { BlockType Scope Name "Act. Cmd." Ports [1] Position [410, 233, 440, 277] BackgroundColor "magenta" FontName "Arial" FontSize 14 Floating off Location [14, 628, 1041, 855] Open off NumInputPorts "1" TickLabels "on" ZoomMode "on" List { ListType AxesTitles axes1 "%" } Grid "on" TimeRange "15" YMin "-2.5" YMax "2.5" SaveToWorkspace off SaveName "ScopeData" DataFormat "Array" LimitDataPoints off MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "0" } Block { BlockType Goto Name "Actuator \nSensor\n" Position [675, 185, 735, 215] BackgroundColor "cyan" FontName "Arial" FontSize 14 FontWeight "bold" GotoTag "ActM" TagVisibility "local" } Block { BlockType SubSystem Name "Analog Control" Ports [2, 1] Position [235, 142, 295, 193] BackgroundColor "lightBlue" NamePlacement "alternate" FontName "Arial" FontSize 16 FontWeight "bold" ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "Analog Control" Location [234, 82, 956, 506] Open off ModelBrowserVisibility on ModelBrowserWidth 212 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "In" Position [15, 157, 40, 183] Port "1" Interpolate on } Block { BlockType Inport Name "Actuator Pos." Position [620, 285, 650, 315] Orientation "left" NamePlacement "alternate" Port "2" Interpolate on } Block { BlockType TransferFcn Name "Alpha-sensor\nLow-pass Filter" Position [155, 146, 220, 194] BackgroundColor "lightBlue" Numerator "[1]" Denominator "[Tal,1]" Realization "auto" AbsoluteTolerance "auto" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" } Block { BlockType SubSystem Name "Anti-Wind-Up" Ports [2, 1] Position [405, 286, 520, 339] Orientation "left" BackgroundColor "lightBlue" ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" MaskType "Stateflow" MaskDescription "Stateflow diagram" MaskDisplay "plot(sf('Private','sfblk','xIcon'),sf('Priv" "ate','sfblk','yIcon'));text(0.5,0,sf('Private', 'sfblk', 'tIcon'),'Horizontal" "Al','Center','VerticalAl','Bottom');" MaskSelfModifiable on MaskIconFrame off MaskIconOpaque off MaskIconRotate "none" MaskIconUnits "autoscale" System { Name "Anti-Wind-Up" Location [70, 200, 570, 460] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "ActPos" Position [20, 101, 40, 119] Port "1" PortDimensions "1" Interpolate on } Block { BlockType Inport Name "Error" Position [20, 136, 40, 154] Port "2" PortDimensions "1" Interpolate on } Block { BlockType Demux Name " Demux " Ports [1, 1] Position [270, 160, 320, 200] Outputs "1" BusSelectionMode off } Block { BlockType "S-Function" Name " SFunction " Tag "Stateflow S-Function f14_dig_sf 1" Ports [2, 2] Position [180, 100, 230, 160] FunctionName "sf_sfun" PortCounts "[2 2]" SFunctionModules "''" } Block { BlockType Terminator Name " Terminator " Position [460, 171, 480, 189] } Block { BlockType Outport Name "StopInt" Position [460, 101, 480, 119] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock " SFunction " SrcPort 1 Points [0, 65] DstBlock " Demux " DstPort 1 } Line { SrcBlock " Demux " SrcPort 1 DstBlock " Terminator " DstPort 1 } Line { SrcBlock "ActPos" SrcPort 1 DstBlock " SFunction " DstPort 1 } Line { SrcBlock "Error" SrcPort 1 DstBlock " SFunction " DstPort 2 } Line { SrcBlock " SFunction " SrcPort 2 DstBlock "StopInt" DstPort 1 } } } Block { BlockType Demux Name "Demux" Ports [1, 3] Position [75, 151, 80, 189] BackgroundColor "black" Outputs "3" BusSelectionMode off } Block { BlockType Gain Name "Gain" Position [460, 85, 500, 125] BackgroundColor "yellow" ShowName off Gain "Kf" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on } Block { BlockType Gain Name "Gain1" Position [510, 160, 550, 200] BackgroundColor "yellow" ShowName off Gain "Ki" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on } Block { BlockType Gain Name "Gain2" Position [260, 240, 300, 280] BackgroundColor "yellow" NamePlacement "alternate" ShowName off Gain "Kq" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" } Block { BlockType Gain Name "Gain3" Position [245, 150, 285, 190] BackgroundColor "yellow" NamePlacement "alternate" ShowName off Gain "Ka" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" } Block { BlockType TransferFcn Name "Integral\nCompensator" Position [440, 153, 475, 207] BackgroundColor "lightBlue" Numerator "[1]" Denominator "[1,0]" Realization "auto" AbsoluteTolerance "auto" } Block { BlockType TransferFcn Name "Pitch Rate\nLead Filter" Position [155, 235, 225, 285] BackgroundColor "lightBlue" Numerator "[1,W1]" Denominator "[1,W2]" Realization "auto" AbsoluteTolerance "auto" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" } Block { BlockType Product Name "Product" Ports [2, 1] Position [390, 162, 420, 193] Inputs "2" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType TransferFcn Name "Stick\nPrefilter" Position [155, 55, 225, 105] BackgroundColor "lightBlue" NamePlacement "alternate" Numerator "[1]" Denominator "[Ts,1]" Realization "auto" AbsoluteTolerance "auto" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [565, 125, 595, 155] ShowName off IconShape "round" Inputs "2" SaturateOnIntegerOverflow on } Block { BlockType Sum Name "Sum2" Ports [3, 1] Position [315, 155, 345, 185] ShowName off IconShape "round" Inputs "+--" SaturateOnIntegerOverflow on } Block { BlockType Outport Name "Act." Position [635, 127, 660, 153] Port "1" OutputWhenDisabled "held" InitialOutput "0" } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Act." DstPort 1 } Line { SrcBlock "In" SrcPort 1 DstBlock "Demux" DstPort 1 } Line { SrcBlock "Alpha-sensor\nLow-pass Filter" SrcPort 1 DstBlock "Gain3" DstPort 1 } Line { SrcBlock "Gain2" SrcPort 1 Points [25, 0] DstBlock "Sum2" DstPort 3 } Line { SrcBlock "Stick\nPrefilter" SrcPort 1 Points [100, 0] DstBlock "Sum2" DstPort 1 } Line { SrcBlock "Pitch Rate\nLead Filter" SrcPort 1 DstBlock "Gain2" DstPort 1 } Line { SrcBlock "Demux" SrcPort 1 Points [35, 0; 0, -80] DstBlock "Stick\nPrefilter" DstPort 1 } Line { SrcBlock "Demux" SrcPort 2 DstBlock "Alpha-sensor\nLow-pass Filter" DstPort 1 } Line { SrcBlock "Demux" SrcPort 3 Points [35, 0; 0, 80] DstBlock "Pitch Rate\nLead Filter" DstPort 1 } Line { SrcBlock "Gain3" SrcPort 1 DstBlock "Sum2" DstPort 2 } Line { SrcBlock "Gain" SrcPort 1 Points [75, 0] DstBlock "Sum" DstPort 1 } Line { SrcBlock "Actuator Pos." SrcPort 1 DstBlock "Anti-Wind-Up" DstPort 1 } Line { SrcBlock "Sum2" SrcPort 1 Points [10, 0] Branch { Points [0, -65] DstBlock "Gain" DstPort 1 } Branch { DstBlock "Product" DstPort 1 } Branch { Points [0, 200; 185, 0; 0, -45] DstBlock "Anti-Wind-Up" DstPort 2 } } Line { SrcBlock "Gain1" SrcPort 1 Points [25, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Integral\nCompensator" SrcPort 1 DstBlock "Gain1" DstPort 1 } Line { SrcBlock "Product" SrcPort 1 DstBlock "Integral\nCompensator" DstPort 1 } Line { SrcBlock "Anti-Wind-Up" SrcPort 1 Points [-25, 0] DstBlock "Product" DstPort 2 } } } Block { BlockType Reference Name "Analog or\nDigital Control" Ports [2, 1] Position [355, 160, 390, 195] NamePlacement "alternate" FontName "Arial" FontSize 16 FontWeight "bold" SourceBlock "simulink3/Nonlinear/Manual Switch" SourceType "Manual Switch" sw "0" action "0" } Block { BlockType SubSystem Name "Configurable\nActuator" Ports [1, 2] Position [440, 142, 605, 218] FontName "Arial" FontSize 12 ShowPortLabels on BlockChoice "Linear Actuator Subsystem" TemplateBlock "f14actuator/Configurable\nActuator" MemberBlocks "Linear Actuator Subsystem,Non-Linear Actuator S" "ubsystem" TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" Port { PortNumber 1 Name "Actuator " TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } System { Name "Configurable\nActuator" Location [148, 182, 646, 482] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "Cmd." Position [20, 40, 40, 60] Port "1" Interpolate on } Block { BlockType Reference Name "Linear Actuator Subsystem" Ports [1, 2] Position [100, 40, 140, 80] FontName "Arial" FontSize 14 SourceBlock "f14actuator/Linear Actuator Subsystem" SourceType "" } Block { BlockType Outport Name "Act. Pos." Position [200, 40, 220, 60] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType Outport Name "Act. Meas." Position [200, 80, 220, 100] Port "2" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "Cmd." SrcPort 1 DstBlock "Linear Actuator Subsystem" DstPort 1 } Line { SrcBlock "Linear Actuator Subsystem" SrcPort 1 DstBlock "Act. Pos." DstPort 1 } Line { SrcBlock "Linear Actuator Subsystem" SrcPort 2 DstBlock "Act. Meas." DstPort 1 } } } Block { BlockType SubSystem Name "Digital Control \nImplementation" Ports [2, 1] Position [255, 218, 315, 267] BackgroundColor "lightBlue" FontName "Arial" FontSize 16 FontWeight "bold" ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "Digital Control \nImplementation" Location [249, 341, 971, 765] Open off ModelBrowserVisibility on ModelBrowserWidth 212 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "70" AutoZoom on Block { BlockType Inport Name "In" Position [35, 167, 60, 193] Port "1" Interpolate on } Block { BlockType Inport Name "Actuator Pos." Position [925, 270, 955, 300] Orientation "left" NamePlacement "alternate" Port "2" Interpolate on } Block { BlockType DiscreteTransferFcn Name "Alpha Sensor Filter" Position [290, 151, 455, 209] BackgroundColor "lightBlue" FontName "Arial" FontSize 14 Numerator "[1-exp(-deltat1/Tal)]" Denominator "[1 -exp(-deltat1/Tal)]" SampleTime "deltat1" Realization "auto" } Block { BlockType SubSystem Name "Anti-Wind-Up" Ports [2, 1] Position [710, 271, 825, 324] Orientation "left" BackgroundColor "lightBlue" ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" MaskType "Stateflow" MaskDescription "Stateflow diagram" MaskDisplay "plot(sf('Private','sfblk','xIcon'),sf('Priv" "ate','sfblk','yIcon'));text(0.5,0,sf('Private', 'sfblk', 'tIcon'),'Horizontal" "Al','Center','VerticalAl','Bottom');" MaskSelfModifiable on MaskIconFrame off MaskIconOpaque off MaskIconRotate "none" MaskIconUnits "autoscale" System { Name "Anti-Wind-Up" Location [70, 200, 570, 460] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "ActPos" Position [20, 101, 40, 119] Port "1" PortDimensions "1" Interpolate on } Block { BlockType Inport Name "Error" Position [20, 136, 40, 154] Port "2" PortDimensions "1" Interpolate on } Block { BlockType Demux Name " Demux " Ports [1, 1] Position [270, 160, 320, 200] Outputs "1" BusSelectionMode off } Block { BlockType "S-Function" Name " SFunction " Tag "Stateflow S-Function f14_dig_sf 2" Ports [2, 2] Position [180, 100, 230, 160] FunctionName "sf_sfun" PortCounts "[2 2]" SFunctionModules "''" } Block { BlockType Terminator Name " Terminator " Position [460, 171, 480, 189] } Block { BlockType Outport Name "StopInt" Position [460, 101, 480, 119] Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock " SFunction " SrcPort 1 Points [0, 65] DstBlock " Demux " DstPort 1 } Line { SrcBlock " Demux " SrcPort 1 DstBlock " Terminator " DstPort 1 } Line { SrcBlock "ActPos" SrcPort 1 DstBlock " SFunction " DstPort 1 } Line { SrcBlock "Error" SrcPort 1 DstBlock " SFunction " DstPort 2 } Line { SrcBlock " SFunction " SrcPort 2 DstBlock "StopInt" DstPort 1 } } } Block { BlockType Demux Name "Demux" Ports [1, 3] Position [170, 161, 175, 199] BackgroundColor "black" Outputs "3" BusSelectionMode off } Block { BlockType DiscreteIntegrator Name "Discrete-Time\nIntegrator" Ports [1, 1] Position [740, 172, 780, 208] BackgroundColor "lightBlue" IntegratorMethod "ForwardEuler" ExternalReset "none" InitialConditionSource "internal" InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off SampleTime "deltat" } Block { BlockType Gain Name "Gain" Position [755, 85, 795, 125] BackgroundColor "yellow" ShowName off Gain "Kf" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on } Block { BlockType Gain Name "Gain1" Position [805, 170, 845, 210] BackgroundColor "yellow" ShowName off Gain "Ki" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on } Block { BlockType Gain Name "Gain2" Position [555, 255, 595, 295] BackgroundColor "yellow" NamePlacement "alternate" ShowName off Gain "Kq" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" } Block { BlockType Gain Name "Gain3" Position [545, 160, 585, 200] BackgroundColor "yellow" NamePlacement "alternate" ShowName off Gain "Ka" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" } Block { BlockType Gain Name "Gain4" Position [215, 305, 280, 345] BackgroundColor "yellow" NamePlacement "alternate" ShowName off Gain "W1/W2-1" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" } Block { BlockType DiscreteTransferFcn Name "Pitch Sensor Filter" Position [300, 298, 440, 352] BackgroundColor "lightBlue" FontName "Arial" FontSize 14 Numerator "[1-exp(-W2*deltat1)]" Denominator "[1 -exp(-W2*deltat1)]" SampleTime "deltat1" Realization "auto" } Block { BlockType Product Name "Product" Ports [2, 1] Position [685, 172, 715, 203] Inputs "2" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType DiscreteTransferFcn Name "Stick Filter" Position [290, 61, 455, 119] BackgroundColor "lightBlue" FontName "Arial" FontSize 14 Numerator "[1-exp(-deltat1/Ts)]" Denominator "[1 -exp(-deltat1/Ts)]" SampleTime "deltat1" Realization "auto" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [870, 135, 900, 165] ShowName off IconShape "round" Inputs "2" SaturateOnIntegerOverflow on } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [455, 260, 485, 290] ShowName off IconShape "round" Inputs "2" SaturateOnIntegerOverflow on } Block { BlockType Sum Name "Sum2" Ports [3, 1] Position [615, 165, 645, 195] ShowName off IconShape "round" Inputs "+--" SaturateOnIntegerOverflow on } Block { BlockType ZeroOrderHold Name "Zero-Order\nHold" Position [520, 75, 550, 105] SampleTime "deltat" } Block { BlockType ZeroOrderHold Name "Zero-Order\nHold1" Position [485, 165, 515, 195] SampleTime "deltat" } Block { BlockType ZeroOrderHold Name "Zero-Order\nHold2" Position [505, 259, 535, 291] SampleTime "deltat" } Block { BlockType ZeroOrderHold Name "Zero-Order\nHold3" Position [110, 165, 140, 195] SampleTime "deltat1" } Block { BlockType Outport Name "Act." Position [930, 137, 955, 163] Port "1" OutputWhenDisabled "held" InitialOutput "0" } Line { SrcBlock "Gain2" SrcPort 1 Points [30, 0] DstBlock "Sum2" DstPort 3 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Act." DstPort 1 } Line { SrcBlock "Sum2" SrcPort 1 Points [5, 0] Branch { Points [0, -75] DstBlock "Gain" DstPort 1 } Branch { Points [0, 185; 195, 0; 0, -55] DstBlock "Anti-Wind-Up" DstPort 2 } Branch { DstBlock "Product" DstPort 1 } } Line { SrcBlock "Demux" SrcPort 2 DstBlock "Alpha Sensor Filter" DstPort 1 } Line { SrcBlock "Demux" SrcPort 3 Points [15, 0; 0, 55] Branch { DstBlock "Sum1" DstPort 1 } Branch { Points [0, 80] DstBlock "Gain4" DstPort 1 } } Line { SrcBlock "Demux" SrcPort 1 Points [15, 0; 0, -80] DstBlock "Stick Filter" DstPort 1 } Line { SrcBlock "Stick Filter" SrcPort 1 DstBlock "Zero-Order\nHold" DstPort 1 } Line { SrcBlock "Zero-Order\nHold" SrcPort 1 Points [75, 0] DstBlock "Sum2" DstPort 1 } Line { SrcBlock "Alpha Sensor Filter" SrcPort 1 DstBlock "Zero-Order\nHold1" DstPort 1 } Line { SrcBlock "Zero-Order\nHold1" SrcPort 1 DstBlock "Gain3" DstPort 1 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Zero-Order\nHold2" DstPort 1 } Line { SrcBlock "In" SrcPort 1 DstBlock "Zero-Order\nHold3" DstPort 1 } Line { SrcBlock "Zero-Order\nHold3" SrcPort 1 DstBlock "Demux" DstPort 1 } Line { SrcBlock "Pitch Sensor Filter" SrcPort 1 Points [25, 0] DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Gain4" SrcPort 1 DstBlock "Pitch Sensor Filter" DstPort 1 } Line { SrcBlock "Zero-Order\nHold2" SrcPort 1 DstBlock "Gain2" DstPort 1 } Line { SrcBlock "Gain3" SrcPort 1 DstBlock "Sum2" DstPort 2 } Line { SrcBlock "Gain" SrcPort 1 Points [85, 0] DstBlock "Sum" DstPort 1 } Line { SrcBlock "Gain1" SrcPort 1 Points [0, -10] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Actuator Pos." SrcPort 1 DstBlock "Anti-Wind-Up" DstPort 1 } Line { SrcBlock "Product" SrcPort 1 DstBlock "Discrete-Time\nIntegrator" DstPort 1 } Line { Labels [1, 0] SrcBlock "Discrete-Time\nIntegrator" SrcPort 1 DstBlock "Gain1" DstPort 1 } Line { SrcBlock "Anti-Wind-Up" SrcPort 1 Points [-35, 0] DstBlock "Product" DstPort 2 } } } Block { BlockType SubSystem Name "Dryden Spectrum \nWind Gust Model" Ports [0, 2] Position [335, 335, 455, 435] FontName "Arial" FontSize 16 FontWeight "bold" ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" MaskDisplay "image(weatherrgb)" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" Port { PortNumber 1 Name "wdot\ngust" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } Port { PortNumber 2 Name "qdot\ngust" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } System { Name "Dryden Spectrum \nWind Gust Model" Location [279, 76, 1118, 567] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType SubSystem Name "Dryden Wind\nGust Models" Ports [0, 2] Position [25, 98, 50, 242] BackgroundColor "green" FontName "Arial" FontSize 16 FontWeight "bold" ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" Port { PortNumber 1 Name "w gust" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } Port { PortNumber 2 Name "q gust" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } System { Name "Dryden Wind\nGust Models" Location [242, 74, 964, 498] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "119" AutoZoom on Block { BlockType SubSystem Name "Band Limited\nWhite Noise" Ports [0, 1] Position [85, 45, 120, 85] FontName "Arial" FontSize 16 FontWeight "bold" ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" MaskType "Continuous White Noise." MaskDescription "White noise for continuous (s-domain) s" "ystems.\nBand-limited using zero-order-hold." MaskHelp "Implemented using white noise into Zero" " Order Hold block. For faster simulation set sample time to highest value pos" "sible but in accordance with the fastest dynamics of system." MaskPromptString "Noise Variance:|Sample Time:|Seed" MaskStyleString "edit,edit,edit" MaskTunableValueString "on,on,on" MaskCallbackString "||" MaskEnableString "on,on,on" MaskVisibilityString "on,on,on" MaskToolTipString "on,on,on" MaskVariables "Cov=@1;Ts=@2;seed=@3;" MaskInitialization " r = rand(1,12); r2 = [r(1),r;r,r(12)];" " t =[1:13;1:13];" MaskDisplay "plot(t(:),r2(:))" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "10|0.1|23341" MaskVariableAliases ",," System { Name "Band Limited\nWhite Noise" Location [6, 48, 268, 236] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType RandomNumber Name "White Noise" Position [55, 70, 75, 90] Mean "0" Variance "1" Seed "seed" SampleTime "Ts" VectorParams1D on } Block { BlockType DiscreteTransferFcn Name "Zero Order Hold" Position [140, 61, 205, 99] Numerator "[sqrt(Cov)]" Denominator "[sqrt(Ts)]" SampleTime "Ts" Realization "auto" } Block { BlockType Outport Name "out_1" Position [235, 70, 255, 90] Port "1" OutputWhenDisabled "held" InitialOutput "0" } Line { SrcBlock "Zero Order Hold" SrcPort 1 DstBlock "out_1" DstPort 1 } Line { SrcBlock "White Noise" SrcPort 1 DstBlock "Zero Order Hold" DstPort 1 } } } Block { BlockType Gain Name "Gain" Position [265, 160, 355, 210] Orientation "left" NamePlacement "alternate" FontName "Arial" FontSize 16 FontWeight "bold" Gain "pi/(4*b)" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on } Block { BlockType TransferFcn Name "Q-gust model" Position [260, 235, 400, 285] FontName "Arial" FontSize 16 FontWeight "bold" Numerator "[1 0]" Denominator "[1 pi*Vto/(4*b)]" Realization "auto" AbsoluteTolerance "auto" } Block { BlockType TransferFcn Name "W-gust model" Position [175, 34, 455, 96] FontName "Arial" FontSize 16 FontWeight "bold" Numerator "Swg/sqrt(a^3)*[sqrt(3)*a,1]" Denominator "[1 (2/a) 1/a^2]" Realization "auto" AbsoluteTolerance "auto" } Block { BlockType Outport Name "Wg" Position [560, 55, 580, 75] FontName "Arial" FontSize 16 FontWeight "bold" Port "1" OutputWhenDisabled "held" InitialOutput "0" } Block { BlockType Outport Name "Qg" Position [490, 250, 510, 270] FontName "Arial" FontSize 16 FontWeight "bold" Port "2" OutputWhenDisabled "held" InitialOutput "0" } Line { SrcBlock "W-gust model" SrcPort 1 Points [10, 0] Branch { Points [0, 120] DstBlock "Gain" DstPort 1 } Branch { DstBlock "Wg" DstPort 1 } } Line { SrcBlock "Band Limited\nWhite Noise" SrcPort 1 DstBlock "W-gust model" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 Points [-105, 0; 0, 75] DstBlock "Q-gust model" DstPort 1 } Line { SrcBlock "Q-gust model" SrcPort 1 DstBlock "Qg" DstPort 1 } } } Block { BlockType Gain Name "Gain" Position [170, 27, 225, 73] BackgroundColor "green" ShowName off FontName "Arial" FontSize 16 FontWeight "bold" Gain "Zw" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on Port { PortNumber 1 Name "Vert. \nGust" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Gain Name "Gain1" Position [145, 182, 200, 228] BackgroundColor "green" ShowName off FontName "Arial" FontSize 16 FontWeight "bold" Gain "Mq" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on } Block { BlockType Gain Name "Gain2" Position [145, 113, 195, 157] BackgroundColor "green" ShowName off FontName "Arial" FontSize 16 FontWeight "bold" Gain "Mw" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [215, 150, 245, 180] BackgroundColor "green" ShowName off FontName "Arial" FontSize 16 FontWeight "bold" IconShape "round" Inputs "++" SaturateOnIntegerOverflow on Port { PortNumber 1 Name "Pitch Gust" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Outport Name "Vertical Gust" Position [340, 43, 370, 57] BackgroundColor "green" FontName "Arial" FontSize 14 FontWeight "bold" Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType Outport Name "Pitch Gust" Position [345, 158, 375, 172] BackgroundColor "green" FontName "Arial" FontSize 14 FontWeight "bold" Port "2" OutputWhenDisabled "held" InitialOutput "[]" } Line { Name "q gust" FontName "Arial" FontSize 16 FontWeight "bold" Labels [0, 0] SrcBlock "Dryden Wind\nGust Models" SrcPort 2 DstBlock "Gain1" DstPort 1 } Line { Name "w gust" FontName "Arial" FontSize 16 FontWeight "bold" Labels [0, 0] SrcBlock "Dryden Wind\nGust Models" SrcPort 1 Points [55, 0] Branch { DstBlock "Gain2" DstPort 1 } Branch { Points [0, -85] DstBlock "Gain" DstPort 1 } } Line { SrcBlock "Gain2" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Gain1" SrcPort 1 Points [25, 0] DstBlock "Sum" DstPort 2 } Line { Name "Vert. \nGust" FontName "Arial" FontSize 14 FontWeight "bold" Labels [0, 0] SrcBlock "Gain" SrcPort 1 DstBlock "Vertical Gust" DstPort 1 } Line { Name "Pitch Gust" FontName "Arial" FontSize 14 FontWeight "bold" Labels [0, 0] SrcBlock "Sum" SrcPort 1 DstBlock "Pitch Gust" DstPort 1 } } } Block { BlockType SubSystem Name "F14 Aircraft\nDynamic Model" Ports [3, 4] Position [515, 285, 660, 430] BackgroundColor "green" DropShadow on FontName "Arial" FontSize 16 FontWeight "bold" ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" MaskDisplay "image(rgb)" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" Port { PortNumber 1 Name "w dot" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } Port { PortNumber 2 Name "qdot" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } Port { PortNumber 3 Name "q" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } Port { PortNumber 4 Name "Alpha" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } System { Name "F14 Aircraft\nDynamic Model" Location [739, 562, 1461, 986] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "93" AutoZoom on Block { BlockType Inport Name "Elevator" Position [30, 43, 55, 67] BackgroundColor "green" FontName "Arial" FontSize 16 FontWeight "bold" Port "1" Interpolate on } Block { BlockType Inport Name "Vert. Gust" Position [195, 98, 220, 122] BackgroundColor "green" FontName "Arial" FontSize 16 FontWeight "bold" Port "2" Interpolate on } Block { BlockType Inport Name "Pitch Gust" Position [195, 273, 220, 297] BackgroundColor "green" FontName "Arial" FontSize 16 FontWeight "bold" Port "3" Interpolate on } Block { BlockType Gain Name "Gain3" Position [355, 140, 395, 180] Orientation "left" BackgroundColor "green" ShowName off FontName "Arial" FontSize 16 FontWeight "bold" Gain "Uo" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" } Block { BlockType Gain Name "Gain4" Position [355, 193, 395, 237] Orientation "left" BackgroundColor "green" ShowName off FontName "Arial" FontSize 16 FontWeight "bold" Gain "Mw" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" } Block { BlockType Gain Name "Gain5" Position [195, 28, 250, 82] BackgroundColor "green" ShowName off FontName "Arial" FontSize 16 FontWeight "bold" Gain "Zd" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on } Block { BlockType Gain Name "Gain6" Position [200, 360, 265, 420] BackgroundColor "green" ShowName off FontName "Arial" FontSize 16 FontWeight "bold" Gain "Md" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on } Block { BlockType Gain Name "Gain7" Position [590, 23, 660, 77] BackgroundColor "green" ShowName off FontName "Arial" FontSize 16 FontWeight "bold" Gain "1/Uo" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on Port { PortNumber 1 Name "Alpha" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType SubSystem Name "Pitch Channel" Ports [1, 2] Position [420, 245, 495, 325] BackgroundColor "green" FontName "Arial" FontSize 16 FontWeight "bold" ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "Pitch Channel" Location [205, 333, 621, 615] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "Input" Position [20, 80, 40, 100] FontName "Arial" FontSize 16 FontWeight "bold" Port "1" Interpolate on } Block { BlockType Gain Name "Gain" Position [145, 160, 205, 220] Orientation "left" FontName "Arial" FontSize 16 FontWeight "bold" Gain "Mq" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on } Block { BlockType Integrator Name "Integrator" Ports [1, 1] Position [190, 85, 220, 115] FontName "Arial" FontSize 16 FontWeight "bold" ExternalReset "none" InitialConditionSource "internal" InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [100, 78, 125, 122] FontName "Arial" FontSize 16 FontWeight "bold" IconShape "rectangular" Inputs "++" SaturateOnIntegerOverflow on } Block { BlockType Outport Name "q" Position [290, 90, 310, 110] FontName "Arial" FontSize 16 FontWeight "bold" Port "1" OutputWhenDisabled "held" InitialOutput "0" } Block { BlockType Outport Name "qdot" Position [290, 35, 310, 55] FontName "Arial" FontSize 16 FontWeight "bold" Port "2" OutputWhenDisabled "held" InitialOutput "0" } Line { SrcBlock "Input" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 Points [-55, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Integrator" SrcPort 1 Points [15, 0] Branch { DstBlock "q" DstPort 1 } Branch { Points [0, 90] DstBlock "Gain" DstPort 1 } } Line { SrcBlock "Sum" SrcPort 1 Points [30, 0] Branch { DstBlock "Integrator" DstPort 1 } Branch { Points [0, -55] DstBlock "qdot" DstPort 1 } } } } Block { BlockType Sum Name "Sum1" Ports [3, 1] Position [360, 46, 380, 94] BackgroundColor "green" ShowName off FontName "Arial" FontSize 16 FontWeight "bold" IconShape "rectangular" Inputs "+-+" SaturateOnIntegerOverflow on } Block { BlockType Sum Name "Sum2" Ports [3, 1] Position [355, 261, 375, 309] BackgroundColor "green" ShowName off FontName "Arial" FontSize 16 FontWeight "bold" IconShape "rectangular" Inputs "+-+" SaturateOnIntegerOverflow on } Block { BlockType SubSystem Name "Vertical Channel" Ports [1, 2] Position [420, 28, 495, 112] BackgroundColor "green" FontName "Arial" FontSize 16 FontWeight "bold" ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" Port { PortNumber 1 Name "w" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } Port { PortNumber 2 Name "wdot" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } System { Name "Vertical Channel" Location [205, 333, 594, 570] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "Input" Position [20, 80, 40, 100] FontName "Arial" FontSize 16 FontWeight "bold" Port "1" Interpolate on } Block { BlockType Gain Name "Gain" Position [145, 157, 190, 203] Orientation "left" FontName "Arial" FontSize 16 FontWeight "bold" Gain "Zw" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on } Block { BlockType Integrator Name "Integrator" Ports [1, 1] Position [190, 85, 220, 115] FontName "Arial" FontSize 16 FontWeight "bold" ExternalReset "none" InitialConditionSource "internal" InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [100, 78, 125, 122] FontName "Arial" FontSize 16 FontWeight "bold" IconShape "rectangular" Inputs "++" SaturateOnIntegerOverflow on } Block { BlockType Outport Name "w" Position [285, 90, 305, 110] FontName "Arial" FontSize 16 FontWeight "bold" Port "1" OutputWhenDisabled "held" InitialOutput "0" } Block { BlockType Outport Name "wdot" Position [285, 35, 305, 55] FontName "Arial" FontSize 16 FontWeight "bold" Port "2" OutputWhenDisabled "held" InitialOutput "0" } Line { SrcBlock "Sum" SrcPort 1 Points [30, 0] Branch { Points [0, -55] DstBlock "wdot" DstPort 1 } Branch { DstBlock "Integrator" DstPort 1 } } Line { SrcBlock "Integrator" SrcPort 1 Points [15, 0] Branch { Points [0, 80] DstBlock "Gain" DstPort 1 } Branch { DstBlock "w" DstPort 1 } } Line { SrcBlock "Gain" SrcPort 1 Points [-55, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Input" SrcPort 1 DstBlock "Sum" DstPort 1 } } } Block { BlockType Outport Name "Vertical Accel." Position [690, 81, 710, 99] BackgroundColor "green" FontName "Arial" FontSize 16 FontWeight "bold" Port "1" OutputWhenDisabled "held" InitialOutput "0" } Block { BlockType Outport Name "Pitch Accel." Position [690, 296, 710, 314] BackgroundColor "green" FontName "Arial" FontSize 16 FontWeight "bold" Port "2" OutputWhenDisabled "held" InitialOutput "0" } Block { BlockType Outport Name "Pitch Rate" Position [690, 256, 710, 274] BackgroundColor "green" NamePlacement "alternate" FontName "Arial" FontSize 16 FontWeight "bold" Port "3" OutputWhenDisabled "held" InitialOutput "0" } Block { BlockType Outport Name "Alpha" Position [690, 41, 710, 59] BackgroundColor "green" NamePlacement "alternate" FontName "Arial" FontSize 16 FontWeight "bold" Port "4" OutputWhenDisabled "held" InitialOutput "0" } Line { SrcBlock "Pitch Channel" SrcPort 2 DstBlock "Pitch Accel." DstPort 1 } Line { SrcBlock "Pitch Channel" SrcPort 1 Points [15, 0] Branch { DstBlock "Pitch Rate" DstPort 1 } Branch { Points [0, -105] DstBlock "Gain3" DstPort 1 } } Line { Name "wdot" FontName "Arial" FontSize 16 FontWeight "bold" Labels [0, 0; 0, 0; 0, 0] SrcBlock "Vertical Channel" SrcPort 2 DstBlock "Vertical Accel." DstPort 1 } Line { Name "w" FontName "Arial" FontSize 16 FontWeight "bold" Labels [0, 0; 0, 0; 0, 0] SrcBlock "Vertical Channel" SrcPort 1 Points [60, 0] Branch { Points [0, 165] DstBlock "Gain4" DstPort 1 } Branch { DstBlock "Gain7" DstPort 1 } } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Vertical Channel" DstPort 1 } Line { SrcBlock "Gain6" SrcPort 1 Points [35, 0; 0, -90] DstBlock "Sum2" DstPort 3 } Line { SrcBlock "Gain5" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Gain3" SrcPort 1 Points [-45, 0; 0, -75] DstBlock "Sum1" DstPort 3 } Line { SrcBlock "Pitch Gust" SrcPort 1 DstBlock "Sum2" DstPort 2 } Line { SrcBlock "Sum2" SrcPort 1 DstBlock "Pitch Channel" DstPort 1 } Line { SrcBlock "Gain4" SrcPort 1 Points [-45, 0; 0, 55] DstBlock "Sum2" DstPort 1 } Line { SrcBlock "Vert. Gust" SrcPort 1 Points [120, 0] DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Elevator" SrcPort 1 Points [60, 0] Branch { DstBlock "Gain5" DstPort 1 } Branch { Points [0, 335] DstBlock "Gain6" DstPort 1 } } Line { Name "Alpha" SrcBlock "Gain7" SrcPort 1 DstBlock "Alpha" DstPort 1 } } } Block { BlockType From Name "From Act. \nSensor" Position [150, 241, 210, 269] BackgroundColor "cyan" CloseFcn "tagdialog Close" FontName "Arial" FontSize 14 FontWeight "bold" GotoTag "ActM" } Block { BlockType Reference Name "Model Info" Ports [] Position [289, 17, 582, 76] BackgroundColor "yellow" ShowName off FontName "times" FontSize 16 FontWeight "bold" SourceBlock "simulink3/Signals\n& Systems/Model Info" SourceType "CMBlock" InitialBlockCM "none" BlockCM "none" Frame "off" DisplayStringWithTags "F14 High Angle of Attack \nDigital Flight Contr" "ol System" MaskDisplayString "F14 High Angle of Attack \\nDigital Flight Cont" "rol System" HorizontalTextAlignment "Center" LeftAlignmentValue "0.5" SourceBlockDiagram "f14_dig_sf" TagMaxNumber "20" } Block { BlockType Mux Name "Mux" Ports [3, 1] Position [130, 189, 135, 271] BackgroundColor "black" FontName "Arial" FontSize 16 FontWeight "bold" Inputs "3" DisplayOption "none" } Block { BlockType SubSystem Name "Nz pilot\n Calculation" Ports [3, 1] Position [780, 287, 835, 393] BackgroundColor "green" FontName "Arial" FontSize 16 FontWeight "bold" ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" Port { PortNumber 1 Name "Nz" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } System { Name "Nz pilot\n Calculation" Location [1071, 732, 1555, 1058] Open off ModelBrowserVisibility off ModelBrowserWidth 244 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom off Block { BlockType Inport Name "w dot" Position [60, 68, 90, 82] BackgroundColor "green" FontSize 16 FontWeight "bold" Port "1" Interpolate on } Block { BlockType Inport Name "q dot" Position [60, 108, 90, 122] BackgroundColor "green" FontSize 16 FontWeight "bold" Port "2" Interpolate on } Block { BlockType Inport Name "q" Position [60, 153, 90, 167] BackgroundColor "green" FontSize 16 FontWeight "bold" Port "3" Interpolate on } Block { BlockType Constant Name "\n" Position [60, 195, 90, 225] BackgroundColor "green" FontName "Arial" FontSize 16 FontWeight "bold" Value "Uo" VectorParams1D on } Block { BlockType Gain Name "Gain3" Position [130, 97, 190, 133] BackgroundColor "green" ShowName off FontName "Arial" FontSize 16 FontWeight "bold" Gain "22.8" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on } Block { BlockType Gain Name "Gain4" Position [275, 92, 325, 138] BackgroundColor "green" ShowName off FontName "Arial" FontSize 16 FontWeight "bold" Gain "1/g" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on } Block { BlockType Product Name "Product" Ports [2, 1] Position [145, 150, 180, 185] BackgroundColor "green" ShowName off FontName "Arial" FontSize 16 FontWeight "bold" Inputs "2" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Sum Name "Sum2" Ports [3, 1] Position [220, 56, 245, 174] BackgroundColor "green" ShowName off FontName "Arial" FontSize 16 FontWeight "bold" IconShape "rectangular" Inputs "-++" SaturateOnIntegerOverflow on } Block { BlockType Outport Name "Nz" Position [350, 108, 380, 122] BackgroundColor "green" FontSize 16 FontWeight "bold" Port "1" OutputWhenDisabled "held" InitialOutput "0" } Line { SrcBlock "Sum2" SrcPort 1 DstBlock "Gain4" DstPort 1 } Line { SrcBlock "w dot" SrcPort 1 DstBlock "Sum2" DstPort 1 } Line { SrcBlock "Gain4" SrcPort 1 DstBlock "Nz" DstPort 1 } Line { SrcBlock "q dot" SrcPort 1 DstBlock "Gain3" DstPort 1 } Line { SrcBlock "Gain3" SrcPort 1 DstBlock "Sum2" DstPort 2 } Line { SrcBlock "Product" SrcPort 1 Points [20, 0] DstBlock "Sum2" DstPort 3 } Line { SrcBlock "q" SrcPort 1 DstBlock "Product" DstPort 1 } Line { SrcBlock "\n" SrcPort 1 Points [35, 0] DstBlock "Product" DstPort 2 } Annotation { Position [242, 242] Text "Nz = ( - dw/dt +dq/dt*22.8 + q*Uo)/g" FontSize 16 FontWeight "bold" } } } Block { BlockType SignalGenerator Name "Pilot" Position [45, 188, 90, 222] BackgroundColor "green" NamePlacement "alternate" FontName "Arial" FontSize 16 FontWeight "bold" WaveForm "square" Amplitude "1" Frequency "0.500000" Units "rad/sec" VectorParams1D on } Block { BlockType Scope Name "Stick\nAlpha\nq\nNz" Ports [4] Position [870, 442, 920, 528] BackgroundColor "magenta" FontName "Arial" FontSize 14 Floating off Location [71, 170, 539, 781] Open on NumInputPorts "4" TickLabels "on" ZoomMode "on" List { ListType AxesTitles axes1 "%" axes2 "%" axes3 "%" axes4 "%" } Grid "on" TimeRange "15" YMin "-1~-1.5~-3~-15" YMax "1~1.5~3~15" SaveToWorkspace off SaveName "ScopeData1" DataFormat "Array" LimitDataPoints off MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "0" } Line { Name "wdot\ngust" Labels [0, 0] SrcBlock "Dryden Spectrum \nWind Gust Model" SrcPort 1 DstBlock "F14 Aircraft\nDynamic Model" DstPort 2 } Line { Name "qdot\ngust" Labels [0, 0] SrcBlock "Dryden Spectrum \nWind Gust Model" SrcPort 2 DstBlock "F14 Aircraft\nDynamic Model" DstPort 3 } Line { SrcBlock "Pilot" SrcPort 1 Points [15, 0] Branch { DstBlock "Mux" DstPort 1 } Branch { Points [0, -95; 745, 0] DstBlock "Stick\nAlpha\nq\nNz" DstPort 1 } } Line { Name "w dot" Labels [0, 0] SrcBlock "F14 Aircraft\nDynamic Model" SrcPort 1 DstBlock "Nz pilot\n Calculation" DstPort 1 } Line { Name "qdot" Labels [0, 0] SrcBlock "F14 Aircraft\nDynamic Model" SrcPort 2 DstBlock "Nz pilot\n Calculation" DstPort 2 } Line { Name "q" Labels [0, 0] SrcBlock "F14 Aircraft\nDynamic Model" SrcPort 3 Points [75, 0] Branch { DstBlock "Nz pilot\n Calculation" DstPort 3 } Branch { Points [0, 0; 0, 120] Branch { DstBlock "Stick\nAlpha\nq\nNz" DstPort 3 } Branch { Points [-645, 0; 0, -240] DstBlock "Mux" DstPort 3 } } } Line { Name "Alpha" Labels [0, 0] SrcBlock "F14 Aircraft\nDynamic Model" SrcPort 4 Points [45, 0; 0, 65] Branch { Points [-640, 0; 0, -245] DstBlock "Mux" DstPort 2 } Branch { DstBlock "Stick\nAlpha\nq\nNz" DstPort 2 } } Line { Name "Nz" Labels [0, 0] SrcBlock "Nz pilot\n Calculation" SrcPort 1 Points [5, 0; 0, 175] DstBlock "Stick\nAlpha\nq\nNz" DstPort 4 } Line { SrcBlock "Analog or\nDigital Control" SrcPort 1 Points [0, 0] Branch { DstBlock "Configurable\nActuator" DstPort 1 } Branch { DstBlock "Act. Cmd." DstPort 1 } } Line { SrcBlock "Analog Control" SrcPort 1 DstBlock "Analog or\nDigital Control" DstPort 1 } Line { SrcBlock "Digital Control \nImplementation" SrcPort 1 Points [20, 0] DstBlock "Analog or\nDigital Control" DstPort 2 } Line { Labels [0, 0] SrcBlock "Mux" SrcPort 1 Points [60, 0] Branch { Labels [2, 0] Points [0, -75] DstBlock "Analog Control" DstPort 1 } Branch { DstBlock "Digital Control \nImplementation" DstPort 1 } } Line { SrcBlock "From Act. \nSensor" SrcPort 1 Points [-10, 0; 15, 0] Branch { DstBlock "Analog Control" DstPort 2 } Branch { DstBlock "Digital Control \nImplementation" DstPort 2 } } Line { SrcBlock "Configurable\nActuator" SrcPort 2 DstBlock "Actuator \nSensor\n" DstPort 1 } Line { Name "Actuator " FontName "Arial" FontSize 12 Labels [0, 0] SrcBlock "Configurable\nActuator" SrcPort 1 Points [165, 0; 0, 111; -284, 0; 0, 39] DstBlock "F14 Aircraft\nDynamic Model" DstPort 1 } Annotation { Position [498, 563] Text "This model can be used to design the digital\nc" "ontrol system using lti objects.\nCall The MathWorks sales staff for a demo\n" "copy of the Control Toolbox and rerun the demo. " FontName "Arial" FontSize 16 FontWeight "bold" } } } # Finite State Machines # -- File save dated 04-Oct-2000 19:38:12 # # Stateflow Version 4.0 (R12) dated Oct 4 2000, 19:34:51 # # Stateflow { machine { id 1 name "f14_dig_sf" created "20-Apr-1998 22:29:26" firstTarget 24 sfVersion 40012071 } chart { id 2 name "Analog Control/Anti-Wind-Up" windowPosition [40.5 234.75 492 276] viewLimits [35.131 483.631 0 240] stateColor [0 1 1] stateLabelColor [1 1 1] transitionColor [1 1 0] transitionLabelColor [1 1 0] junctionColor [1 0 1] selectionColor [0 1 0] chartColor [0 0 0] screen [1 1 1152 864 1.333333333333333] treeNode [0 3 0 0] firstTransition 5 viewObj 2 machine 1 decomposition CLUSTER_CHART firstData 8 chartFileNumber 1 } state { id 3 labelString "Integrate\n" "en:StopInt=1;" position [76.25 46.5 90 60] chart 2 treeNode [2 0 0 4] subviewer 2 type OR_STATE decomposition CLUSTER_STATE } state { id 4 labelString "Stop_Integrating\n" "en: StopInt=0;" position [254.477 159.75 90 60] chart 2 treeNode [2 0 3 0] subviewer 2 type OR_STATE decomposition CLUSTER_STATE } transition { id 5 labelPosition [107.062 20.266 6.739 12.71] src { intersection [0 -1 0 0 111.5 16.5 0] } dst { id 3 intersection [1 0 -1 0.392 111.5 46.5 0] } midPoint [107.062 20.266] chart 2 linkNode [2 0 6] dataLimits [105.847 113.9 16.5 46.5] subviewer 2 } transition { id 6 labelString "[abs(ActPos)>Sat & ActPos*Error >0]" labelPosition [287.571 85.65 154.991 12.71] src { id 3 intersection [2 1 0 0.4 166.25 70.5 0] } dst { id 4 intersection [1 0 -1 0.592 307.727 159.75 0] } midPoint [227.921 75.842] chart 2 linkNode [2 5 7] dataLimits [166.25 310.127 70.485 159.75] subviewer 2 } transition { id 7 labelString "[abs(ActPos)Sat & ActPos*Error >0]" labelPosition [287.571 85.65 154.991 12.71] src { id 14 intersection [2 1 0 0.4 166.25 70.5 0] } dst { id 15 intersection [1 0 -1 0.592 307.727 159.75 0] } midPoint [227.921 75.842] chart 13 linkNode [13 16 18] dataLimits [166.25 310.127 70.485 159.75] subviewer 13 } transition { id 18 labelString "[abs(ActPos)