📄 cook.mdl
字号:
BlockType Gain
Name "b*z"
Position [95, 330, 125, 360]
Gain "8/3"
ParameterDataTypeMode "Inherit via internal rule"
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
ParamDataTypeStr "Inherit: Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "gain"
Position [435, 60, 465, 90]
Gain "5"
ParameterDataTypeMode "Inherit via internal rule"
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
ParamDataTypeStr "Inherit: Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "r*x"
Position [95, 245, 125, 275]
Gain "28"
ParameterDataTypeMode "Inherit via internal rule"
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
ParamDataTypeStr "Inherit: Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "x*y"
Ports [2, 1]
Position [95, 392, 125, 423]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "x*z"
Ports [2, 1]
Position [95, 157, 125, 188]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "Out1"
Position [515, 68, 545, 82]
IconDisplay "Port number"
SampleTime "0.01"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "a*(-x+y)"
DstPort 1
}
Line {
SrcBlock "a*(-x+y)"
SrcPort 1
DstBlock "Integrator"
DstPort 1
}
Line {
SrcBlock "x*z"
SrcPort 1
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Integratr1"
DstPort 1
}
Line {
SrcBlock "r*x"
SrcPort 1
Points [90, 0]
DstBlock "Sum1"
DstPort 3
}
Line {
SrcBlock "x*y"
SrcPort 1
Points [90, 0]
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "b*z"
SrcPort 1
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "Integrator2"
DstPort 1
}
Line {
SrcBlock "Integratr1"
SrcPort 1
Points [45, 0; 0, -40; -165, 0]
Branch {
DstBlock "Sum1"
DstPort 1
}
Branch {
Points [-195, 0]
Branch {
Points [0, 280]
DstBlock "x*y"
DstPort 2
}
Branch {
Points [0, -60]
DstBlock "Sum"
DstPort 2
}
}
}
Line {
SrcBlock "Integrator2"
SrcPort 1
Points [40, 0; 0, -40; -345, 0]
Branch {
Points [0, -125]
DstBlock "x*z"
DstPort 2
}
Branch {
Points [0, 40]
DstBlock "b*z"
DstPort 1
}
}
Line {
SrcBlock "Integrator"
SrcPort 1
Points [55, 0]
Branch {
Points [0, -45; -290, 0]
Branch {
DstBlock "Sum"
DstPort 1
}
Branch {
Points [-45, 0; 0, 135]
Branch {
DstBlock "x*z"
DstPort 1
}
Branch {
Points [0, 95]
Branch {
Points [0, 140]
DstBlock "x*y"
DstPort 1
}
Branch {
DstBlock "r*x"
DstPort 1
}
}
}
}
Branch {
DstBlock "gain"
DstPort 1
}
}
Line {
SrcBlock "gain"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Annotation {
Name "x"
Position [352, 69]
}
Annotation {
Name "y"
Position [350, 165]
}
Annotation {
Name "z"
Position [357, 335]
}
Annotation {
Name "r*x-y-x*z"
Position [250, 195]
}
Annotation {
Name "-b*z+x*y"
Position [250, 362]
}
Annotation {
Name "-x+y"
Position [108, 97]
}
}
}
Block {
BlockType Constant
Name "Constant"
Position [235, 375, 265, 405]
Value "0"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Constant
Name "Constant1"
Position [865, 205, 895, 235]
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Constant
Name "Constant2"
Position [865, 330, 895, 360]
Value "-1"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType SubSystem
Name "Correlator"
Ports [1, 1]
Position [755, 250, 795, 310]
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
MaskHideContents off
System {
Name "Correlator"
Location [23, 434, 775, 762]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [25, 118, 55, 132]
IconDisplay "Port number"
}
Block {
BlockType DiscreteIntegrator
Name "Discrete-Time\nIntegrator"
Ports [2, 1]
Position [195, 111, 290, 164]
IntegratorMethod "Integration: Trapezoidal"
ExternalReset "either"
InitialConditionSource "internal"
InitialCondition ".2"
SampleTime ".15"
OutDataType "sfix(16)"
OutScaling "2^0"
LimitOutput on
UpperSaturationLimit "1"
LowerSaturationLimit "0"
ICPrevOutput "DiscIntNeverNeededParam"
ICPrevScaledInput "DiscIntNeverNeededParam"
}
Block {
BlockType Gain
Name "Gain"
Position [105, 106, 150, 144]
Gain "0.01"
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType DiscretePulseGenerator
Name "Pulse\nGenerator1"
Ports [0, 1]
Position [115, 163, 160, 197]
PulseType "Time based"
PulseWidth "50"
}
Block {
BlockType DiscretePulseGenerator
Name "Pulse\nGenerator2"
Ports [0, 1]
Position [400, 15, 450, 60]
Orientation "down"
NamePlacement "alternate"
PulseType "Time based"
Period "1"
PulseWidth "50"
SampleTime "0"
}
Block {
BlockType Reference
Name "Sample\nand Hold"
Ports [1, 1, 0, 1]
Position [400, 119, 450, 161]
SourceBlock "dspsigops/Sample\nand Hold"
SourceType "Sample and Hold"
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"
trig "Falling edge"
initCond ".2"
latchinput "off"
}
Block {
BlockType Scope
Name "Scope 1"
Ports [1]
Position [495, 179, 525, 211]
Floating off
Location [255, 351, 762, 590]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "-12"
YMax "-5.5"
SaveName "ScopeData12"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope 2"
Ports [1]
Position [325, 179, 355, 211]
Floating off
Location [116, 47, 623, 286]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "-12"
YMax "-5.5"
SaveName "ScopeData13"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope 3"
Ports [1]
Position [480, 69, 510, 101]
Floating off
Location [644, 53, 1151, 292]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "-12"
YMax "-5.5"
SaveName "ScopeData14"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope 4"
Ports [1]
Position [210, 224, 240, 256]
Floating off
Location [169, 434, 676, 673]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "-12"
YMax "-5.5"
SaveName "ScopeData15"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope 5"
Ports [1]
Position [85, 39, 115, 71]
Floating off
Location [62, 418, 569, 657]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "-12"
YMax "-5.5"
SaveName "ScopeData16"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope 6"
Ports [1]
Position [190, 39, 220, 71]
Floating off
Location [594, 423, 1101, 662]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "-12"
YMax "-5.5"
SaveName "ScopeData17"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Outport
Name "Out1"
Position [515, 133, 545, 147]
IconDisplay "Port number"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -