Model { Name "f14_digital" 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:16 2000" ModelVersionFormat "1.%" ConfigurationManager "none" SimParamPage "Solver" StartTime "0.0" StopTime "60" 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_digital" Location [10, 59, 940, 688] 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 [420, 213, 450, 257] 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 Sensor" Position [685, 202, 745, 228] BackgroundColor "cyan" FontName "Arial" FontSize 12 GotoTag "ActM" TagVisibility "global" } Block { BlockType Reference Name "Analog \nor Digital" Ports [2, 1] Position [350, 165, 390, 225] NamePlacement "alternate" FontName "Arial" FontSize 14 SourceBlock "simulink3/Nonlinear/Manual Switch" SourceType "Manual Switch" sw "1" action "0" } Block { BlockType SubSystem Name "Configurable\nActuator" Ports [1, 2] Position [485, 157, 650, 233] 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 "Controllers" Ports [1, 3] Position [120, 161, 245, 259] BackgroundColor "lightBlue" FontName "Arial" FontSize 14 ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" MaskDisplay "image(contrgb)" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" Port { PortNumber 1 Name "Analog" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } Port { PortNumber 2 Name "lti" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } Port { PortNumber 3 Name "DAP" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } System { Name "Controllers" Location [11, 151, 451, 556] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "Meas." Position [35, 148, 65, 162] FontName "Arial" FontSize 14 Port "1" Interpolate on } Block { BlockType SubSystem Name "Analog Control" Ports [2, 1] Position [170, 26, 315, 99] BackgroundColor "lightBlue" NamePlacement "alternate" FontName "Arial" FontSize 14 ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "Analog Control" Location [197, 198, 913, 559] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "States" Position [15, 157, 40, 183] FontName "Arial" FontSize 14 Port "1" Interpolate on } Block { BlockType Inport Name "Actuator Pos." Position [630, 255, 660, 285] Orientation "left" NamePlacement "alternate" FontName "Arial" FontSize 14 Port "2" Interpolate on } Block { BlockType TransferFcn Name "Alpha-sensor\nLow-pass Filter" Position [155, 146, 220, 194] BackgroundColor "lightBlue" FontName "Arial" FontSize 14 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 [415, 256, 530, 309] Orientation "left" BackgroundColor "lightBlue" FontName "Arial" FontSize 14 ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" MaskType "Stateflow" MaskDescription "Stateflow diagram" MaskDisplay "plot(sf('Private','sfblk','xIcon'),sf('" "Private','sfblk','yIcon'));text(0.5,0,sf('Private', 'sfblk', 'tIcon'),'Horizo" "ntalAl','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_digita" "l 7" 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" ShowName off FontName "Arial" FontSize 14 Outputs "3" BusSelectionMode off } Block { BlockType Gain Name "Gain" Position [500, 95, 540, 135] BackgroundColor "yellow" ShowName off FontName "Arial" FontSize 14 Gain "Kf" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on } Block { BlockType Gain Name "Gain1" Position [500, 160, 540, 200] BackgroundColor "yellow" ShowName off FontName "Arial" FontSize 14 Gain "Ki" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on } Block { BlockType Gain Name "Gain2" Position [255, 240, 295, 280] BackgroundColor "yellow" NamePlacement "alternate" ShowName off FontName "Arial" FontSize 14 Gain "Kq" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" } Block { BlockType Gain Name "Gain3" Position [255, 150, 295, 190] BackgroundColor "yellow" NamePlacement "alternate" ShowName off FontName "Arial" FontSize 14 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" FontName "Arial" FontSize 14 Numerator "[1]" Denominator "[1,0]" Realization "auto" AbsoluteTolerance "auto" } Block { BlockType TransferFcn Name "Pitch Rate\nLead Filter" Position [155, 235, 225, 285] BackgroundColor "lightBlue" FontName "Arial" FontSize 14 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 [385, 162, 415, 193] ShowName off FontName "Arial" FontSize 14 Inputs "2" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType TransferFcn Name "Stick\nPrefilter" Position [155, 55, 225, 105] BackgroundColor "lightBlue" FontName "Arial" FontSize 14 Numerator "[1]" Denominator "[Ts,1]" Realization "auto" AbsoluteTolerance "auto" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [565, 135, 595, 165] ShowName off FontName "Arial" FontSize 14 IconShape "round" Inputs "2" SaturateOnIntegerOverflow on } Block { BlockType Sum Name "Sum2" Ports [3, 1] Position [315, 155, 345, 185] ShowName off FontName "Arial" FontSize 14 IconShape "round" Inputs "+--" SaturateOnIntegerOverflow on } Block { BlockType Outport Name "Act.\nComd." Position [635, 137, 660, 163] FontName "Arial" FontSize 14 Port "1" OutputWhenDisabled "held" InitialOutput "0" } Line { SrcBlock "Actuator Pos." SrcPort 1 DstBlock "Anti-Wind-Up" DstPort 1 } Line { SrcBlock "Anti-Wind-Up" SrcPort 1 Points [-40, 0] DstBlock "Product" DstPort 2 } Line { SrcBlock "Sum2" SrcPort 1 Points [10, 0] Branch { Points [0, 180; 195, 0; 0, -55] DstBlock "Anti-Wind-Up" DstPort 2 } Branch { Points [0, -55] DstBlock "Gain" DstPort 1 } Branch { DstBlock "Product" DstPort 1 } } Line { SrcBlock "Product" SrcPort 1 DstBlock "Integral\nCompensator" DstPort 1 } Line { SrcBlock "Integral\nCompensator" SrcPort 1 DstBlock "Gain1" DstPort 1 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Act.\nComd." DstPort 1 } Line { SrcBlock "States" 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 [30, 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 [35, 0] DstBlock "Sum" DstPort 1 } Line { SrcBlock "Gain1" SrcPort 1 DstBlock "Sum" DstPort 2 } } } Block { BlockType SubSystem Name "DAP \nImplementation" Ports [2, 1] Position [170, 217, 315, 288] BackgroundColor "lightBlue" FontName "Arial" FontSize 14 ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "DAP \nImplementation" Location [175, 213, 891, 574] Open off ModelBrowserVisibility on ModelBrowserWidth 212 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "68" AutoZoom on Block { BlockType Inport Name "States" Position [15, 167, 40, 193] FontName "Arial" FontSize 14 Port "1" Interpolate on } Block { BlockType Inport Name "Actuator Pos." Position [900, 265, 930, 295] Orientation "left" NamePlacement "alternate" FontName "Arial" FontSize 14 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, 266, 825, 319] Orientation "left" BackgroundColor "lightBlue" FontName "Arial" FontSize 14 ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" MaskType "Stateflow" MaskDescription "Stateflow diagram" MaskDisplay "plot(sf('Private','sfblk','xIcon'),sf('" "Private','sfblk','yIcon'));text(0.5,0,sf('Private', 'sfblk', 'tIcon'),'Horizo" "ntalAl','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_digita" "l 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 [160, 47, 165, 313] BackgroundColor "black" ShowName off FontName "Arial" FontSize 14 Outputs "3" BusSelectionMode off } Block { BlockType DiscreteIntegrator Name "Discrete-Time\nIntegrator" Ports [1, 1] Position [725, 167, 775, 213] BackgroundColor "lightBlue" FontName "Arial" FontSize 14 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 [795, 105, 835, 145] BackgroundColor "yellow" ShowName off FontName "Arial" FontSize 14 Gain "Kf" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on } Block { BlockType Gain Name "Gain1" Position [795, 170, 835, 210] BackgroundColor "yellow" ShowName off FontName "Arial" FontSize 14 Gain "Ki" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on } Block { BlockType Gain Name "Gain2" Position [565, 285, 605, 325] BackgroundColor "yellow" NamePlacement "alternate" ShowName off FontName "Arial" FontSize 14 Gain "Kq" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" } Block { BlockType Gain Name "Gain3" Position [560, 160, 600, 200] BackgroundColor "yellow" NamePlacement "alternate" ShowName off FontName "Arial" FontSize 14 Gain "Ka" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" } Block { BlockType Gain Name "Gain4" Position [215, 335, 280, 375] BackgroundColor "yellow" NamePlacement "alternate" ShowName off FontName "Arial" FontSize 14 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, 328, 440, 382] 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 [680, 172, 710, 203] ShowName off FontName "Arial" FontSize 14 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 [880, 90, 900, 225] ShowName off FontName "Arial" FontSize 14 IconShape "rectangular" Inputs "2" SaturateOnIntegerOverflow on } Block { BlockType Sum Name "Sum1" Ports [2, 1] Position [455, 290, 485, 320] ShowName off FontName "Arial" FontSize 14 IconShape "round" Inputs "2" SaturateOnIntegerOverflow on } Block { BlockType Sum Name "Sum2" Ports [3, 1] Position [615, 165, 645, 195] ShowName off FontName "Arial" FontSize 14 IconShape "round" Inputs "+--" SaturateOnIntegerOverflow on } Block { BlockType ZeroOrderHold Name "Zero-Order\nHold" Position [505, 75, 535, 105] FontName "Arial" FontSize 14 SampleTime "deltat" } Block { BlockType ZeroOrderHold Name "Zero-Order\nHold " Position [90, 165, 120, 195] FontName "Arial" FontSize 14 SampleTime "deltat1" } Block { BlockType ZeroOrderHold Name "Zero-Order\nHold " Position [505, 165, 535, 195] FontName "Arial" FontSize 14 SampleTime "deltat" } Block { BlockType ZeroOrderHold Name "Zero-Order\nHold " Position [505, 289, 535, 321] FontName "Arial" FontSize 14 SampleTime "deltat" } Block { BlockType Outport Name "Act.\nComd." Position [930, 147, 955, 173] FontName "Arial" FontSize 14 Port "1" OutputWhenDisabled "held" InitialOutput "0" } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Act.\nComd." DstPort 1 } Line { Labels [1, 0] SrcBlock "Discrete-Time\nIntegrator" SrcPort 1 DstBlock "Gain1" DstPort 1 } Line { SrcBlock "Product" SrcPort 1 Points [0, 0] DstBlock "Discrete-Time\nIntegrator" DstPort 1 } Line { SrcBlock "Sum2" SrcPort 1 Points [5, 0] Branch { DstBlock "Product" DstPort 1 } Branch { Points [0, -55] DstBlock "Gain" DstPort 1 } Branch { Points [0, 180; 195, 0; 0, -55] DstBlock "Anti-Wind-Up" DstPort 2 } } Line { SrcBlock "Anti-Wind-Up" SrcPort 1 Points [-40, 0] DstBlock "Product" DstPort 2 } Line { SrcBlock "Actuator Pos." SrcPort 1 DstBlock "Anti-Wind-Up" DstPort 1 } Line { SrcBlock "Demux" SrcPort 2 DstBlock "Alpha Sensor Filter" DstPort 1 } Line { SrcBlock "Demux" SrcPort 1 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 [90, 0] DstBlock "Sum2" DstPort 1 } Line { SrcBlock "Alpha Sensor Filter" SrcPort 1 DstBlock "Zero-Order\nHold " DstPort 1 } Line { SrcBlock "Zero-Order\nHold " SrcPort 1 DstBlock "Gain3" DstPort 1 } Line { SrcBlock "States" SrcPort 1 DstBlock "Zero-Order\nHold " DstPort 1 } Line { SrcBlock "Zero-Order\nHold " SrcPort 1 DstBlock "Demux" DstPort 1 } Line { SrcBlock "Gain3" SrcPort 1 DstBlock "Sum2" DstPort 2 } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Gain1" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { SrcBlock "Gain2" SrcPort 1 Points [20, 0] DstBlock "Sum2" DstPort 3 } Line { SrcBlock "Demux" SrcPort 3 Points [25, 0] Branch { Points [275, 0] DstBlock "Sum1" DstPort 1 } Branch { Points [0, 85] DstBlock "Gain4" DstPort 1 } } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Zero-Order\nHold " 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\nHold " SrcPort 1 DstBlock "Gain2" DstPort 1 } } } Block { BlockType From Name "From Actuator \nSensor Port" Position [45, 308, 100, 332] BackgroundColor "cyan" CloseFcn "tagdialog Close" FontName "Arial" FontSize 14 GotoTag "ActM" } Block { BlockType Reference Name "LTI System" Ports [1, 1] Position [195, 137, 290, 173] BackgroundColor "lightBlue" FontName "Arial" FontSize 14 SourceBlock "cstblocks/LTI System" SourceType "LTI Block" sys "discap" IC "[0]" } Block { BlockType Outport Name "Analog" Position [355, 58, 385, 72] FontName "Arial" FontSize 14 Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType Outport Name "Digital lti" Position [350, 148, 380, 162] FontName "Arial" FontSize 14 Port "2" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType Outport Name "Digital" Position [350, 248, 380, 262] FontName "Arial" FontSize 14 Port "3" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "Meas." SrcPort 1 Points [45, 0] Branch { DstBlock "LTI System" DstPort 1 } Branch { Points [0, 80] DstBlock "DAP \nImplementation" DstPort 1 } Branch { Points [0, -110] DstBlock "Analog Control" DstPort 1 } } Line { SrcBlock "From Actuator \nSensor Port" SrcPort 1 Points [30, 0; 0, -50] Branch { DstBlock "DAP \nImplementation" DstPort 2 } Branch { Points [0, -190] DstBlock "Analog Control" DstPort 2 } } Line { SrcBlock "LTI System" SrcPort 1 DstBlock "Digital lti" DstPort 1 } Line { SrcBlock "DAP \nImplementation" SrcPort 1 DstBlock "Digital" DstPort 1 } Line { SrcBlock "Analog Control" SrcPort 1 DstBlock "Analog" DstPort 1 } } } Block { BlockType Reference Name "Digital\nDesign\n(lti or Implementation)" Ports [2, 1] Position [290, 194, 330, 256] FontName "Arial" FontSize 14 SourceBlock "simulink3/Nonlinear/Manual Switch" SourceType "Manual Switch" sw "1" action "0" } Block { BlockType SubSystem Name "Dryden\nWind Gust" Ports [0, 2] Position [165, 357, 270, 468] BackgroundColor "green" FontName "Arial" FontSize 12 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" PropagatedSignals "Vertical" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } Port { PortNumber 2 Name "qdot\ngust" PropagatedSignals "Pitch" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } System { Name "Dryden\nWind Gust" Location [30, 268, 854, 706] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Gain Name "Gain" Position [485, 68, 530, 112] BackgroundColor "green" ShowName off FontName "Arial" FontSize 14 Gain "Zw" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on Port { PortNumber 1 Name "Vertical" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType Gain Name "Gain1" Position [485, 262, 540, 308] BackgroundColor "green" ShowName off FontName "Arial" FontSize 14 Gain "Mq" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on } Block { BlockType Gain Name "Gain2" Position [485, 148, 535, 192] BackgroundColor "green" ShowName off FontName "Arial" FontSize 14 Gain "Mw" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on } Block { BlockType Gain Name "Gain3" Position [130, 260, 220, 310] BackgroundColor "green" ShowName off FontName "Arial" FontSize 14 Gain "pi/(4*b)" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on } Block { BlockType TransferFcn Name "Q-gust model" Position [265, 260, 405, 310] BackgroundColor "green" FontName "Arial" FontSize 14 Numerator "[1 0]" Denominator "[1 pi*Vto/(4*b)]" Realization "auto" AbsoluteTolerance "auto" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [605, 215, 635, 245] BackgroundColor "green" ShowName off FontName "Arial" FontSize 14 IconShape "round" Inputs "++" SaturateOnIntegerOverflow on Port { PortNumber 1 Name "Pitch" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType TransferFcn Name "W-gust model" Position [115, 59, 395, 121] BackgroundColor "green" FontName "Arial" FontSize 14 Numerator "Swg/sqrt(a^3)*[sqrt(3)*a,1]" Denominator "[1 (2/a) 1/a^2]" Realization "auto" AbsoluteTolerance "auto" } Block { BlockType SubSystem Name "White Noise" Ports [0, 1] Position [35, 70, 70, 110] BackgroundColor "green" FontName "Arial" FontSize 14 ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" MaskType "Continuous White Noise." MaskDescription "White noise for continuous (s-domain) syste" "ms.\nBand-limited using zero-order-hold." MaskHelp "Implemented using white noise into Zero Ord" "er Hold block. For faster simulation set sample time to highest value possibl" "e 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.01|23341" MaskVariableAliases ",," System { Name "White 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 Outport Name "Gust Accel.\n(wdot)" Position [730, 83, 760, 97] BackgroundColor "green" FontName "Arial" FontSize 14 Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType Outport Name "Gust Accel.\n(qdot)" Position [735, 223, 765, 237] BackgroundColor "green" FontName "Arial" FontSize 14 Port "2" OutputWhenDisabled "held" InitialOutput "[]" } Line { Name "Vertical" FontName "Arial" FontSize 14 FontWeight "bold" Labels [0, 0] SrcBlock "Gain" SrcPort 1 DstBlock "Gust Accel.\n(wdot)" DstPort 1 } Line { SrcBlock "White Noise" SrcPort 1 DstBlock "W-gust model" DstPort 1 } Line { SrcBlock "Gain3" SrcPort 1 DstBlock "Q-gust model" DstPort 1 } Line { Name "Pitch" FontName "Arial" FontSize 14 FontWeight "bold" Labels [0, 0] SrcBlock "Sum" SrcPort 1 DstBlock "Gust Accel.\n(qdot)" DstPort 1 } Line { SrcBlock "Gain2" SrcPort 1 Points [80, 0] DstBlock "Sum" DstPort 1 } Line { SrcBlock "Gain1" SrcPort 1 Points [75, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Q-gust model" SrcPort 1 DstBlock "Gain1" DstPort 1 } Line { SrcBlock "W-gust model" SrcPort 1 Points [20, 0] Branch { DstBlock "Gain" DstPort 1 } Branch { Points [0, 80] Branch { DstBlock "Gain2" DstPort 1 } Branch { Points [-305, 0] DstBlock "Gain3" DstPort 1 } } } } } Block { BlockType SubSystem Name "F14 Aircraft\nDynamic Model" Ports [3, 4] Position [415, 304, 575, 466] DropShadow on FontName "Arial" FontSize 12 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 "wdot" PropagatedSignals "wdot" 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 [247, 420, 940, 729] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "88" AutoZoom on Block { BlockType Inport Name "Elevator" Position [30, 43, 55, 67] BackgroundColor "green" FontName "Arial" FontSize 14 Port "1" Interpolate on } Block { BlockType Inport Name "Vert. Gust\nAcceleration" Position [230, 140, 260, 160] Orientation "up" BackgroundColor "green" NamePlacement "alternate" FontName "Arial" FontSize 14 Port "2" Interpolate on } Block { BlockType Inport Name "Pitch Gust\nAcceleration" Position [232, 205, 258, 225] Orientation "down" BackgroundColor "green" NamePlacement "alternate" FontName "Arial" FontSize 14 Port "3" Interpolate on } Block { BlockType Gain Name "Gain3" Position [360, 140, 400, 180] Orientation "left" BackgroundColor "green" ShowName off FontName "Arial" FontSize 14 Gain "Uo" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" } Block { BlockType Gain Name "Gain4" Position [350, 193, 400, 237] Orientation "left" BackgroundColor "green" ShowName off FontName "Arial" FontSize 14 Gain "Mw" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" } Block { BlockType Gain Name "Gain5" Position [160, 28, 215, 82] BackgroundColor "green" ShowName off FontName "Arial" FontSize 14 Gain "Zd" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on } Block { BlockType Gain Name "Gain6" Position [155, 274, 215, 326] BackgroundColor "green" ShowName off FontName "Arial" FontSize 14 Gain "Md" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on } Block { BlockType Gain Name "Gain7" Position [590, 23, 645, 77] BackgroundColor "green" ShowName off FontName "Arial" FontSize 14 Gain "1/Uo" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on } Block { BlockType SubSystem Name "Pitch Channel" Ports [1, 2] Position [420, 245, 495, 325] BackgroundColor "green" FontName "Arial" FontSize 14 ShowPortLabels on TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" System { Name "Pitch Channel" Location [284, 191, 675, 473] 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] BackgroundColor "green" FontName "Arial" FontSize 14 Port "1" Interpolate on } Block { BlockType Integrator Name "Angular Rate\nq\n" Ports [1, 1] Position [190, 85, 220, 115] BackgroundColor "green" FontName "Arial" FontSize 14 ExternalReset "none" InitialConditionSource "internal" InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Gain Name "Gain" Position [145, 170, 205, 230] Orientation "left" BackgroundColor "green" ShowName off FontName "Arial" FontSize 14 Gain "Mq" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [100, 78, 125, 122] BackgroundColor "green" ShowName off FontName "Arial" FontSize 14 IconShape "rectangular" Inputs "++" SaturateOnIntegerOverflow on } Block { BlockType Outport Name "q" Position [290, 90, 310, 110] BackgroundColor "green" FontName "Arial" FontSize 14 Port "1" OutputWhenDisabled "held" InitialOutput "0" } Block { BlockType Outport Name "qdot" Position [290, 35, 310, 55] BackgroundColor "green" FontName "Arial" FontSize 14 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 "Angular Rate\nq\n" SrcPort 1 Points [35, 0] Branch { DstBlock "q" DstPort 1 } Branch { Points [0, 100] DstBlock "Gain" DstPort 1 } } Line { SrcBlock "Sum" SrcPort 1 Points [30, 0] Branch { DstBlock "Angular Rate\nq\n" 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 14 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 14 IconShape "rectangular" Inputs "+-+" SaturateOnIntegerOverflow on } Block { BlockType SubSystem Name "Vertical Channel" Ports [1, 2] Position [420, 28, 495, 112] BackgroundColor "green" FontName "Arial" FontSize 14 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 [288, 191, 774, 439] 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] BackgroundColor "green" FontName "Arial" FontSize 14 Port "1" Interpolate on } Block { BlockType Gain Name "Gain" Position [165, 172, 210, 218] Orientation "left" BackgroundColor "green" ShowName off FontName "Arial" FontSize 14 Gain "Zw" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [100, 78, 125, 122] BackgroundColor "green" ShowName off FontName "Arial" FontSize 14 IconShape "rectangular" Inputs "++" SaturateOnIntegerOverflow on } Block { BlockType Integrator Name "Velocity\nw" Ports [1, 1] Position [190, 85, 220, 115] BackgroundColor "green" FontName "Arial" FontSize 14 ExternalReset "none" InitialConditionSource "internal" InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" } Block { BlockType Outport Name "w" Position [320, 90, 340, 110] BackgroundColor "green" FontName "Arial" FontSize 14 Port "1" OutputWhenDisabled "held" InitialOutput "0" } Block { BlockType Outport Name "wdot" Position [320, 35, 340, 55] BackgroundColor "green" FontName "Arial" FontSize 14 Port "2" OutputWhenDisabled "held" InitialOutput "0" } Line { SrcBlock "Sum" SrcPort 1 Points [30, 0] Branch { Points [0, -55] DstBlock "wdot" DstPort 1 } Branch { DstBlock "Velocity\nw" DstPort 1 } } Line { SrcBlock "Velocity\nw" SrcPort 1 Points [45, 0] Branch { Points [0, 95] DstBlock "Gain" DstPort 1 } Branch { DstBlock "w" DstPort 1 } } Line { SrcBlock "Gain" SrcPort 1 Points [-75, 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 14 Port "1" OutputWhenDisabled "held" InitialOutput "0" } Block { BlockType Outport Name "Pitch Accel." Position [690, 296, 710, 314] BackgroundColor "green" FontName "Arial" FontSize 14 Port "2" OutputWhenDisabled "held" InitialOutput "0" } Block { BlockType Outport Name "Pitch Rate" Position [690, 256, 710, 274] BackgroundColor "green" NamePlacement "alternate" FontName "Arial" FontSize 14 Port "3" OutputWhenDisabled "held" InitialOutput "0" } Block { BlockType Outport Name "Alpha" Position [690, 41, 710, 59] BackgroundColor "green" NamePlacement "alternate" FontName "Arial" FontSize 14 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 DstBlock "Sum2" DstPort 3 } Line { SrcBlock "Gain5" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Pitch Gust\nAcceleration" SrcPort 1 Points [0, 55] DstBlock "Sum2" DstPort 2 } Line { SrcBlock "Sum2" SrcPort 1 DstBlock "Pitch Channel" DstPort 1 } Line { SrcBlock "Vert. Gust\nAcceleration" SrcPort 1 Points [0, -65] DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Elevator" SrcPort 1 Points [60, 0] Branch { DstBlock "Gain5" DstPort 1 } Branch { Points [0, 245] DstBlock "Gain6" DstPort 1 } } Line { SrcBlock "Gain7" SrcPort 1 DstBlock "Alpha" DstPort 1 } Line { SrcBlock "Gain3" SrcPort 1 Points [-65, 0; 0, -75] DstBlock "Sum1" DstPort 3 } Line { SrcBlock "Gain4" SrcPort 1 Points [-60, 0; 0, 55] DstBlock "Sum2" DstPort 1 } } } Block { BlockType Reference Name "Model Info" Ports [] Position [274, 27, 567, 86] 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_digital" TagMaxNumber "20" } Block { BlockType Mux Name "Mux" Ports [3, 1] Position [90, 151, 95, 269] BackgroundColor "black" ShowName off FontName "Arial" FontSize 14 Inputs "3" DisplayOption "none" } Block { BlockType SignalGenerator Name "Pilot" Position [15, 153, 60, 187] BackgroundColor "green" NamePlacement "alternate" FontName "Arial" FontSize 14 WaveForm "square" Amplitude "1" Frequency ".1" Units "Hertz" VectorParams1D on Port { PortNumber 1 Name "Stick Command" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" } } Block { BlockType SubSystem Name "Pilot\nG-Force\n Calculation" Ports [3, 1] Position [700, 302, 770, 428] BackgroundColor "green" FontName "Arial" FontSize 14 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 "Pilot\nG-Force\n Calculation" Location [522, 442, 952, 696] Open off ModelBrowserVisibility off ModelBrowserWidth 244 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "w dot" Position [20, 28, 50, 42] BackgroundColor "green" FontName "Arial" FontSize 14 Port "1" Interpolate on } Block { BlockType Inport Name "q dot" Position [20, 68, 50, 82] BackgroundColor "green" FontName "Arial" FontSize 14 Port "2" Interpolate on } Block { BlockType Inport Name "q" Position [20, 113, 50, 127] BackgroundColor "green" FontName "Arial" FontSize 14 Port "3" Interpolate on } Block { BlockType Constant Name "\n" Position [20, 155, 50, 185] BackgroundColor "green" FontName "Arial" FontSize 14 Value "Uo" VectorParams1D on } Block { BlockType Gain Name "Gain3" Position [90, 57, 150, 93] BackgroundColor "green" ShowName off FontName "Arial" FontSize 14 Gain "22.8" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on } Block { BlockType Gain Name "Gain4" Position [260, 53, 300, 97] BackgroundColor "green" ShowName off FontName "Arial" FontSize 14 Gain "1/g" Multiplication "Element-wise(K.*u)" SaturateOnIntegerOverflow on } Block { BlockType Product Name "Product" Ports [2, 1] Position [105, 110, 140, 145] BackgroundColor "green" ShowName off FontName "Arial" FontSize 14 Inputs "2" Multiplication "Element-wise(.*)" SaturateOnIntegerOverflow on } Block { BlockType Sum Name "Sum2" Ports [3, 1] Position [180, 16, 205, 134] BackgroundColor "green" ShowName off FontName "Arial" FontSize 14 IconShape "rectangular" Inputs "-++" SaturateOnIntegerOverflow on } Block { BlockType Outport Name "Nz" Position [335, 68, 365, 82] BackgroundColor "green" FontName "Arial" FontSize 14 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 [202, 202] Text "Nz = ( - dw/dt +dq/dt*22.8 + q*Uo)/g" FontSize 16 FontWeight "bold" } } } Block { BlockType Scope Name "Stick\nAlpha\nq\nNz" Ports [4] Position [830, 477, 880, 563] BackgroundColor "magenta" FontName "Arial" FontSize 14 Floating off Location [805, 67, 1273, 678] 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 "ScopeData" DataFormat "Array" LimitDataPoints off MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "0" } Line { Name "DAP" FontName "Arial" FontSize 14 Labels [1, 1] SrcBlock "Controllers" SrcPort 3 DstBlock "Digital\nDesign\n(lti or Implementation)" DstPort 2 } Line { Name "lti" FontName "Arial" FontSize 14 Labels [0, 1] SrcBlock "Controllers" SrcPort 2 DstBlock "Digital\nDesign\n(lti or Implementation)" DstPort 1 } Line { SrcBlock "Digital\nDesign\n(lti or Implementation)" SrcPort 1 DstBlock "Analog \nor Digital" DstPort 2 } Line { Name "Actuator " FontName "Arial" FontSize 12 Labels [0, 0] SrcBlock "Configurable\nActuator" SrcPort 1 Points [125, 0; 0, 111; -384, 0; 0, 44] DstBlock "F14 Aircraft\nDynamic Model" DstPort 1 } Line { Name "Analog" FontName "Arial" FontSize 14 Labels [0, 1] SrcBlock "Controllers" SrcPort 1 DstBlock "Analog \nor Digital" DstPort 1 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Controllers" DstPort 1 } Line { Name "wdot" FontName "Arial" FontSize 12 Labels [0, 0] SrcBlock "F14 Aircraft\nDynamic Model" SrcPort 1 DstBlock "Pilot\nG-Force\n Calculation" DstPort 1 } Line { Name "qdot" FontName "Arial" FontSize 12 Labels [0, 0] SrcBlock "F14 Aircraft\nDynamic Model" SrcPort 2 DstBlock "Pilot\nG-Force\n Calculation" DstPort 2 } Line { Name "Stick Command" FontName "Arial" FontSize 14 SrcBlock "Pilot" SrcPort 1 Points [0, 0; 5, 0] Branch { DstBlock "Mux" DstPort 1 } Branch { Points [0, -54; 740, 0; 0, 374] DstBlock "Stick\nAlpha\nq\nNz" DstPort 1 } } Line { Name "Alpha" FontName "Arial" FontSize 12 Labels [0, 0; 1, 1] SrcBlock "F14 Aircraft\nDynamic Model" SrcPort 4 Points [70, 0; 0, 65] Branch { Points [-626, 0; 0, -300] DstBlock "Mux" DstPort 2 } Branch { DstBlock "Stick\nAlpha\nq\nNz" DstPort 2 } } Line { SrcBlock "Configurable\nActuator" SrcPort 2 DstBlock "Actuator Sensor" DstPort 1 } Line { Name "qdot\ngust" FontSize 12 Labels [1, 1] SrcBlock "Dryden\nWind Gust" SrcPort 2 DstBlock "F14 Aircraft\nDynamic Model" DstPort 3 } Line { Name "wdot\ngust" FontSize 12 Labels [1, 1] SrcBlock "Dryden\nWind Gust" SrcPort 1 DstBlock "F14 Aircraft\nDynamic Model" DstPort 2 } Line { Name "q" Labels [0, 0] SrcBlock "F14 Aircraft\nDynamic Model" SrcPort 3 Points [95, 0] Branch { DstBlock "Pilot\nG-Force\n Calculation" DstPort 3 } Branch { Points [0, 125] Branch { DstBlock "Stick\nAlpha\nq\nNz" DstPort 3 } Branch { Points [-625, 0; 0, -280] DstBlock "Mux" DstPort 3 } } } Line { Name "Nz" Labels [0, 0] SrcBlock "Pilot\nG-Force\n Calculation" SrcPort 1 Points [15, 0; 0, 185] DstBlock "Stick\nAlpha\nq\nNz" DstPort 4 } Line { SrcBlock "Analog \nor Digital" SrcPort 1 Points [10, 0] Branch { DstBlock "Configurable\nActuator" DstPort 1 } Branch { DstBlock "Act. Cmd." DstPort 1 } } } } # Finite State Machines # -- File save dated 04-Oct-2000 19:38:17 # # Stateflow Version 4.0 (R12) dated Oct 4 2000, 19:34:51 # # Stateflow { machine { id 1 name "f14_digital" created "20-Apr-1998 22:29:26" firstTarget 24 sfVersion 40012071 } chart { id 2 name "Controllers/DAP \n" "Implementation/Anti-Wind-Up" windowPosition [113.25 283.5 468 285] viewLimits [66.919 440.178 8.653 227.597] zoomFactor 0.879 screen [1 1 1152 864 1.333333333333333] treeNode [0 3 0 0] firstTransition 5 viewObj 2 machine 1 decomposition CLUSTER_CHART firstData 8 chartFileNumber 2 } 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 subviewS { pos [0 0 0 0] fontSize 0 } 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 subviewS { pos [0 0 0 0] fontSize 0 } type OR_STATE decomposition CLUSTER_STATE } transition { id 5 labelPosition [107.062 20.266 5.935 11.87] src { intersection [0 -1 0 0 111.5 16.5 0] } dst { id 3 intersection [1 0 -1 0.3916666666666667 111.5 46.5 0] } midPoint [107.0617654310841 20.26625297937043] chart 2 linkNode [2 0 6] dataLimits [105.847 113.9 16.5 46.5] subviewer 2 } transition { id 6 labelString "[(ActPos>Sat & Error > 0) | (ActPos<-Sat & Error < 0) ]" labelPosition [214.894 59.089 213.009 11.87] src { id 3 intersection [2 1 0 0.4 166.25 70.5 0] } dst { id 4 intersection [1 0 -1 0.5916666666666667 307.7270055260219 159.75 0] } midPoint [227.9209946775954 75.84173948587669] chart 2 linkNode [2 5 7] dataLimits [166.25 310.127 70.485 159.75] subviewer 2 } transition { id 7 labelString "[ActPos-Sat ]" labelPosition [103.754 187.351 116.726 11.87] src { id 4 intersection [4 -1 0 0.55 254.4770055260219 186.75 0] } dst { id 3 intersection [3 0 1 0.6416666666666667 108.5 106.5 0] } midPoint [191.2502983678623 183.4215850241973] chart 2 linkNode [2 6 0] dataLimits [106.1 254.477 106.5 186.973] subviewer 2 } data { id 8 name "ActPos" linkNode [2 0 9] scope INPUT_DATA machine 1 dataType "double" props { range { minimum "" maximum "" } } } data { id 9 name "Error" linkNode [2 8 10] scope INPUT_DATA machine 1 dataType "double" props { range { minimum "" maximum "" } } } data { id 10 name "StopInt" linkNode [2 9 11] scope OUTPUT_DATA machine 1 dataType "double" props { range { minimum "" maximum "" } } } data { id 11 name "Sat" linkNode [2 10 0] scope CONSTANT_DATA machine 1 dataType "double" props { range { minimum "" maximum "" } initialValue "0.785398" } } instance { id 12 name "Controllers/DAP \n" "Implementation/Anti-Wind-Up" machine 1 chart 2 } chart { id 13 name "Controllers/Analog Control/Anti-Wind-Up" windowPosition [40.5 234.75 492 276] viewLimits [59.629 459.443 11.151 225.099] zoomFactor 0.891 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 14 0 0] firstTransition 16 viewObj 13 machine 1 decomposition CLUSTER_CHART firstData 19 chartFileNumber 7 } state { id 14 labelString "Integrate\n" "en:StopInt=1;" position [76.25 46.5 90 60] chart 13 treeNode [13 0 0 15] subviewer 13 subviewS { pos [0 0 0 0] fontSize 0 } type OR_STATE decomposition CLUSTER_STATE } state { id 15 labelString "Stop_Integrating\n" "en: StopInt=0;" position [254.477 159.75 90 60] chart 13 treeNode [13 0 14 0] subviewer 13 subviewS { pos [0 0 0 0] fontSize 0 } type OR_STATE decomposition CLUSTER_STATE } transition { id 16 labelPosition [107.062 20.266 6.017 12.035] src { intersection [0 -1 0 0 111.5 16.5 0] } dst { id 14 intersection [1 0 -1 0.3916666666666667 111.5 46.5 0] } midPoint [107.0617654310841 20.26625297937043] chart 13 linkNode [13 0 17] dataLimits [105.847 113.9 16.5 46.5] subviewer 13 } transition { id 17 labelString "[(ActPos>Sat & Error > 0) | (ActPos<-Sat & Error < 0) ]" labelPosition [178.776 54.895 215.953 12.035] src { id 14 intersection [2 1 0 0.4 166.25 70.5 0] } dst { id 15 intersection [1 0 -1 0.5916666666666667 307.7270055260219 159.75 0] } midPoint [227.9209946775954 75.84173948587669] chart 13 linkNode [13 16 18] dataLimits [166.25 310.127 70.485 159.75] subviewer 13 } transition { id 18 labelString "[ActPos-Sat]" labelPosition [103.754 187.351 115.665 12.035] src { id 15 intersection [4 -1 0 0.55 254.4770055260219 186.75 0] } dst { id 14 intersection [3 0 1 0.6416666666666667 108.5 106.5 0] } midPoint [191.2502983678623 183.4215850241973] chart 13 linkNode [13 17 0] dataLimits [106.1 254.477 106.5 186.973] subviewer 13 } data { id 19 name "ActPos" linkNode [13 0 20] scope INPUT_DATA machine 1 dataType "double" props { range { minimum "" maximum "" } } } data { id 20 name "Error" linkNode [13 19 21] scope INPUT_DATA machine 1 dataType "double" props { range { minimum "" maximum "" } } } data { id 21 name "StopInt" linkNode [13 20 22] scope OUTPUT_DATA machine 1 dataType "double" props { range { minimum "" maximum "" } } } data { id 22 name "Sat" linkNode [13 21 0] scope CONSTANT_DATA machine 1 dataType "double" props { range { minimum "" maximum "" } initialValue "0.785398" } } instance { id 23 name "Controllers/Analog Control/Anti-Wind-Up" machine 1 chart 13 } target { id 24 name "sfun" description "Default Simulink S-Function Target." machine 1 linkNode [1 0 25] checksumOld [2944125453 317925301 3633035526 4255129990] } target { id 25 name "rtw" description "Default RTW target." codeCommand "sfc -rtw" codeFlags "" makeCommand "" machine 1 linkNode [1 24 0] } }