📄 f16block.mdl
字号:
Branch { Points [0, 95] DstBlock "LEF deflection" DstPort 1 } Branch { DstBlock "delta_lef\n(deg)" DstPort 1 } } Line { SrcBlock "Sum" SrcPort 1 DstBlock "LEF\nActuator" DstPort 1 } Line { Name "phi, theta, psi" Labels [0, 0] SrcBlock "Demux" SrcPort 3 DstBlock "end" DstPort 1 } Line { SrcBlock "state" SrcPort 1 DstBlock "Demux" DstPort 1 } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Gain1" DstPort 1 } Line { SrcBlock "Gain1" SrcPort 1 DstBlock "LF_state" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 Points [75, 0] DstBlock "Sum2" DstPort 1 } Line { SrcBlock "Gain2" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { Name "x, y" Labels [0, 0] SrcBlock "Demux" SrcPort 1 DstBlock "end1" DstPort 1 } Line { Labels [1, 0] SrcBlock "Demux" SrcPort 5 DstBlock "r2d1" DstPort 1 } Line { Name "beta, p, q, r" Labels [0, 0] SrcBlock "Demux" SrcPort 6 DstBlock "end2" DstPort 1 } Line { SrcBlock "coeff1" SrcPort 1 DstBlock "Sum" DstPort 3 } Line { SrcBlock "Sum2" SrcPort 1 Points [0, 0; 5, 0] Branch { Points [0, 45; -200, 0] DstBlock "Sum1" DstPort 2 } Branch { DstBlock "Gain2" DstPort 1 } } Line { SrcBlock "LF_state" SrcPort 1 DstBlock "Sum2" DstPort 2 } Line { Name "alpha" Labels [0, 0] SrcBlock "r2d1" SrcPort 1 Points [55, 0; 0, 50] Branch { Points [0, 40] DstBlock "Sum1" DstPort 1 } Branch { DstBlock "Gain" DstPort 1 } } Line { Name "V" Labels [0, 0] SrcBlock "Demux" SrcPort 4 DstBlock "Creating qbar / ps" DstPort 2 } Line { SrcBlock "Creating qbar / ps" SrcPort 1 DstBlock "r2d6" DstPort 1 } Line { SrcBlock "r2d6" SrcPort 1 Points [45, 0] DstBlock "Sum" DstPort 1 } Line { Name "alt" Labels [0, 0] SrcBlock "Demux" SrcPort 2 DstBlock "Creating qbar / ps" DstPort 1 } Annotation { Name "see NASA Technical Paper 1538, p34" Position [398, 22] ForegroundColor "blue" } Annotation { Name "Same as atmos() in nlplant...c" Position [353, 73] } Annotation { Name "Initialize LF_state with -alpha0 value in d""egrees!!!!" Position [344, 407] } } } Block { BlockType Mux Name "Mux4" Ports [2, 1] Position [485, 63, 490, 147] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType SubSystem Name "Pilot/Control Input\n\"The Cockpit\"" Ports [0, 1] Position [15, 66, 125, 144] TreatAsAtomicUnit off MaskDisplay "image(imread('f16cockpit.jpg'))" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" System { Name "Pilot/Control Input\n\"The Cockpit\"" Location [24, 245, 769, 823] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Reference Name "Aileron\nActuator" Ports [1, 1] Position [250, 305, 350, 355] SourceBlock "F16_Actuator_Library/Aileron\nActuator" SourceType "SubSystem" ShowPortLabels on Permissions "ReadWrite" TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" SimViewingDevice off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" } Block { BlockType Scope Name "Aileron\nScope" Ports [1] Position [455, 254, 485, 286] Location [353, 589, 677, 828] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%<SignalLabel>" } List { ListType SelectedSignals axes1 "" } TimeRange "30" SaveName "ScopeData7" DataFormat "StructureWithTime" } Block { BlockType SubSystem Name "Aileron Disturbance" Ports [0, 1] Position [55, 250, 100, 290] TreatAsAtomicUnit off System { Name "Aileron Disturbance" Location [401, 519, 581, 691] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Step Name "Step" Position [25, 25, 55, 55] After "DisAil_1" SampleTime "0" } Block { BlockType Step Name "Step1" Position [25, 70, 55, 100] Time "3" After "DisAil_2" SampleTime "0" } Block { BlockType Step Name "Step2" Position [25, 115, 55, 145] Time "5" After "DisAil_3" SampleTime "0" } Block { BlockType Sum Name "Sum" Ports [3, 1] Position [80, 75, 100, 95] ShowName off IconShape "round" Inputs "+++" } Block { BlockType Outport Name "Out1" Position [125, 78, 155, 92] } Line { SrcBlock "Step1" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { SrcBlock "Step" SrcPort 1 Points [30, 0] DstBlock "Sum" DstPort 1 } Line { SrcBlock "Step2" SrcPort 1 Points [30, 0] DstBlock "Sum" DstPort 3 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Out1" DstPort 1 } } } Block { BlockType Constant Name "Aileron Trim Setting" Position [60, 315, 90, 345] Value "trim_control(2)" } Block { BlockType ToWorkspace Name "Control Surface Deflections" Position [605, 325, 665, 355] VariableName "surfaces" MaxDataPoints "inf" Decimation "100" SampleTime "-1" SaveFormat "Array" } Block { BlockType Reference Name "Elevator\nActuator" Ports [1, 1] Position [250, 180, 350, 230] SourceBlock "F16_Actuator_Library/Elevator\nActuator" SourceType "SubSystem" ShowPortLabels on Permissions "ReadWrite" TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" SimViewingDevice off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" } Block { BlockType Scope Name "Elevator\nScope" Ports [1] Position [455, 129, 485, 161] Location [67, 307, 391, 546] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%<SignalLabel>" } List { ListType SelectedSignals axes1 "" } TimeRange "5" YMin "-2.58372" YMax "-2.33766" SaveName "ScopeData6" DataFormat "StructureWithTime" LimitDataPoints off } Block { BlockType SubSystem Name "Elevator Disturbance" Ports [0, 1] Position [55, 120, 100, 160] TreatAsAtomicUnit off Port { PortNumber 1 Name "dist" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" DataLogging off DataLoggingNameMode "SignalName" DataLoggingDecimateData off DataLoggingDecimation "2" DataLoggingLimitDataPoints off DataLoggingMaxPoints "5000" } System { Name "Elevator Disturbance" Location [405, 539, 585, 711] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Step Name "Step" Position [25, 25, 55, 55] After "DisEle_1" SampleTime "0" } Block { BlockType Step Name "Step1" Position [25, 70, 55, 100] Time "3" After "DisEle_2" SampleTime "0" } Block { BlockType Step Name "Step2" Position [25, 115, 55, 145] Time "5" After "DisEle_3" SampleTime "0" } Block { BlockType Sum Name "Sum" Ports [3, 1] Position [80, 75, 100, 95] ShowName off IconShape "round" Inputs "+++" } Block { BlockType Outport Name "Out1" Position [125, 78, 155, 92] } Line { SrcBlock "Step1" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { SrcBlock "Step" SrcPort 1 Points [30, 0] DstBlock "Sum" DstPort 1 } Line { SrcBlock "Step2" SrcPort 1 Points [30, 0] DstBlock "Sum" DstPort 3 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Out1" DstPort 1 } } } Block { BlockType Constant Name "Elevator Trim Setting" Position [60, 190, 90, 220] Value "trim_control(1)" VectorParams1D off Port { PortNumber 1 Name "trim" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" DataLogging off DataLoggingNameMode "SignalName" DataLoggingDecimateData off DataLoggingDecimation "2" DataLoggingLimitDataPoints off DataLoggingMaxPoints "5000" } } Block { BlockType Mux Name "Mux" Ports [2, 1] Position [415, 126, 420, 164] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Mux Name "Mux1" Ports [2, 1] Position [415, 251, 420, 289] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Mux Name "Mux2" Ports [4, 1] Position [515, 15, 520, 520] ShowName off DisplayOption "bar" } Block { BlockType Mux Name "Mux3" Ports [2, 1] Position [415, 381, 420, 419] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Reference Name "Rudder\nActuator" Ports [1, 1] Position [250, 430, 350, 480] SourceBlock "F16_Actuator_Library/Rudder\nActuator" SourceType "SubSystem" ShowPortLabels on Permissions "ReadWrite" TreatAsAtomicUnit off RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" SimViewingDevice off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" } Block { BlockType Scope Name "Rudder\nScope" Ports [1] Position [455, 384, 485, 416] Location [684, 589, 1008, 828] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%<SignalLabel>" } List { ListType SelectedSignals axes1 "" } SaveName "ScopeData8" DataFormat "StructureWithTime" } Block { BlockType SubSystem Name "Rudder Disturbance" Ports [0, 1] Position [55, 380, 100, 420] TreatAsAtomicUnit off System { Name "Rudder Disturbance"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -