📄 barometric_02.mdl
字号:
int16 ""
int8 ""
uint32 ""
uint16 ""
uint8 ""
boolean ""
int ""
uint ""
char ""
}
PropName "ReplacementTypes"
}
MemSecPackage "--- None ---"
MemSecDataConstants "Default"
MemSecDataIO "Default"
MemSecDataInternal "Default"
MemSecDataParameters "Default"
MemSecFuncInitTerm "Default"
MemSecFuncExecute "Default"
}
PropName "Components"
}
}
hdlcoderui.hdlcc {
$ObjectID 11
Description "HDL Coder custom configuration component"
Version "1.3.0"
Name "HDL Coder"
Array {
Type "Cell"
Dimension 1
Cell ""
PropName "HDLConfigFile"
}
HDLCActiveTab "0"
}
PropName "Components"
}
Name "Configuration"
ExtraOptions "-aGenerateTraceInfo=0 "
CurrentDlgPage "Solver"
}
PropName "ConfigurationSets"
}
Simulink.ConfigSet {
$PropName "ActiveConfigurationSet"
$ObjectID 1
}
BlockDefaults {
Orientation "right"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
NamePlacement "normal"
FontName "Arial"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
BlockParameterDefaults {
Block {
BlockType Clock
DisplayTime off
}
Block {
BlockType Fcn
Expr "sin(u[1])"
SampleTime "-1"
}
Block {
BlockType Gain
Gain "1"
Multiplication "Element-wise(K.*u)"
ParamMin "[]"
ParamMax "[]"
ParameterDataTypeMode "Same as input"
ParameterDataType "fixdt(1,16,0)"
ParameterScalingMode "Best Precision: Matrix-wise"
ParameterScaling "[]"
OutMin "[]"
OutMax "[]"
OutDataTypeMode "Same as input"
OutDataType "fixdt(1,16,0)"
OutScaling "[]"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType SignalViewerScope
Floating off
ModelBased off
TickLabels "OneTimeTick"
ZoomMode "on"
Grid "on"
TimeRange "auto"
YMin "-5"
YMax "5"
SaveToWorkspace off
SaveName "ScopeData"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
Disabled off
ScrollMode on
}
Block {
BlockType Outport
Port "1"
UseBusObject off
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
OutMin "[]"
OutMax "[]"
DataType "auto"
OutDataType "fixdt(1,16,0)"
OutScaling "[]"
SignalType "auto"
SamplingMode "auto"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType RandomNumber
Mean "0"
Variance "1"
Seed "0"
SampleTime "-1"
VectorParams1D on
}
Block {
BlockType "S-Function"
FunctionName "system"
SFunctionModules "''"
PortCounts "[]"
}
Block {
BlockType SubSystem
ShowPortLabels "FromPortIcon"
Permissions "ReadWrite"
PermitHierarchicalResolution "All"
TreatAsAtomicUnit off
SystemSampleTime "-1"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType Sum
IconShape "rectangular"
Inputs "++"
CollapseMode "All dimensions"
CollapseDim "1"
InputSameDT on
OutMin "[]"
OutMax "[]"
OutDataTypeMode "Same as first input"
OutDataType "fixdt(1,16,0)"
OutScaling "[]"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType FrameConversion
OutFrame "Frame based"
}
Block {
BlockType Reshape
OutputDimensionality "1-D array"
OutputDimensions "[1,1]"
}
Block {
BlockType Constant
Value "1"
VectorParams1D on
SamplingMode "Sample based"
OutMin "[]"
OutMax "[]"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "fixdt(1,16,0)"
ConRadixGroup "Use specified scaling"
OutScaling "[]"
SampleTime "inf"
FramePeriod "inf"
}
Block {
BlockType "Lookup_n-D"
NumberOfTableDimensions "2"
BreakpointsForDimension1 "[10,22,31]"
BreakpointsForDimension2 "[10,22,31]"
BreakpointsForDimension3 "[1:3]"
BreakpointsForDimension4 "[1:3]"
BreakpointsForDimension5 "[1:3]"
BreakpointsForDimension6 "[1:3]"
BreakpointsForDimension7 "[1:3]"
BreakpointsForDimension8 "[1:3]"
BreakpointsForDimension9 "[1:3]"
BreakpointsForDimension10 "[1:3]"
BreakpointsForDimension11 "[1:3]"
BreakpointsForDimension12 "[1:3]"
BreakpointsForDimension13 "[1:3]"
BreakpointsForDimension14 "[1:3]"
BreakpointsForDimension15 "[1:3]"
BreakpointsForDimension16 "[1:3]"
BreakpointsForDimension17 "[1:3]"
BreakpointsForDimension18 "[1:3]"
BreakpointsForDimension19 "[1:3]"
BreakpointsForDimension20 "[1:3]"
BreakpointsForDimension21 "[1:3]"
BreakpointsForDimension22 "[1:3]"
BreakpointsForDimension23 "[1:3]"
BreakpointsForDimension24 "[1:3]"
BreakpointsForDimension25 "[1:3]"
BreakpointsForDimension26 "[1:3]"
BreakpointsForDimension27 "[1:3]"
BreakpointsForDimension28 "[1:3]"
BreakpointsForDimension29 "[1:3]"
BreakpointsForDimension30 "[1:3]"
IndexSearchMethod "Binary search"
BeginIndexSearchUsingPreviousIndexResult off
UseOneInputPortForAllInputData off
Table "[4 5 6;16 19 20;10 18 23]"
InterpMethod "Linear"
ExtrapMethod "Linear"
ProcessOutOfRangeInput "None"
UseLastTableValue off
SampleTime "-1"
LUTDesignTableMode "Redesign Table"
LUTDesignDataSource "Block Dialog"
LUTDesignFunctionName "sqrt(x)"
LUTDesignUseExistingBP on
LUTDesignRelError "0.01"
LUTDesignAbsError "1e-6"
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Arial"
FontSize 10
FontWeight "normal"
FontAngle "normal"
UseDisplayTextAsClickCallback off
}
LineDefaults {
FontName "Arial"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "barometric_02"
Location [132, 481, 893, 824]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Clock
Name "Clock"
Position [40, 145, 60, 165]
Decimation "1000"
}
Block {
BlockType "Lookup_n-D"
Name "current_altitude"
Ports [1, 1]
Position [95, 123, 190, 187]
NumberOfTableDimensions "1"
BreakpointsForDimension1 "[500,1200,1500,2000,2400]"
IndexSearchMethod "Binary search"
Table "[16000,19000,18200,19500,20000]"
InterpMethod "Cubic spline"
ExtrapMethod "Cubic spline"
LUTDesignUseExistingBP off
LUTDesignAbsError "NaN"
}
Block {
BlockType Reference
Name "gaussian_noise"
Ports [0, 1]
Position [205, 28, 285, 72]
SourceBlock "commnoisgen2/Gaussian Noise\nGenerator"
SourceType "Gaussian Noise Generator"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
m "0"
d "1"
s "41"
Ts "50"
frameBased off
sampPerFrame "1"
orient off
outDataType "double"
}
Block {
BlockType Sum
Name "noise_adder"
Ports [2, 1]
Position [530, 92, 560, 123]
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Fcn
Name "noise_gain"
Position [355, 30, 440, 70]
Expr "u * 500"
}
Block {
BlockType Fcn
Name "pressure_altitude_fcn"
Position [250, 129, 465, 181]
Expr "3.87134E-20 * pow(44330.8 - u, 5.25588)"
}
Block {
BlockType Outport
Name "Out1"
Position [640, 103, 670, 117]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType SignalViewerScope
Name "Scope1"
Ports []
Position [20, 15, 60, 55]
IOType "viewer"
List {
ListType IOSignalStrings
set0ParseKeys "19"
set0Sigs "current_altitude:o1"
set1ParseKeys "24,14"
set1Sigs "pressure_altitude_fcn:o1noise_adder:o1"
}
Location [611, 247, 1194, 661]
Open on
NumInputPorts "2"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
ShowDataMarkers off
ShowLegends off
YMin "-5~-5"
YMax "5~5"
DataFormat "Array"
MaxDataPoints "7500"
RefreshTime 0.035000
}
Line {
SrcBlock "current_altitude"
SrcPort 1
DstBlock "pressure_altitude_fcn"
DstPort 1
}
Line {
Labels [0, 0]
SrcBlock "pressure_altitude_fcn"
SrcPort 1
Points [35, 0; 0, -40]
DstBlock "noise_adder"
DstPort 2
}
Line {
SrcBlock "Clock"
SrcPort 1
DstBlock "current_altitude"
DstPort 1
}
Line {
SrcBlock "gaussian_noise"
SrcPort 1
DstBlock "noise_gain"
DstPort 1
}
Line {
SrcBlock "noise_adder"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "noise_gain"
SrcPort 1
Points [60, 0; 0, 50]
DstBlock "noise_adder"
DstPort 1
}
Annotation {
Position [323, 61]
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -