📄 cook.mdl
字号:
}
Line {
SrcBlock "In1"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Gain"
DstPort 1
}
Branch {
DstBlock "Scope 5"
DstPort 1
}
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Discrete-Time\nIntegrator"
DstPort 1
}
Branch {
Points [0, -70]
DstBlock "Scope 6"
DstPort 1
}
}
Line {
SrcBlock "Pulse\nGenerator1"
SrcPort 1
Points [0, -30; 10, 0]
Branch {
DstBlock "Discrete-Time\nIntegrator"
DstPort 2
}
Branch {
Points [0, 90]
DstBlock "Scope 4"
DstPort 1
}
}
Line {
SrcBlock "Discrete-Time\nIntegrator"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Sample\nand Hold"
DstPort 1
}
Branch {
DstBlock "Scope 2"
DstPort 1
}
}
Line {
SrcBlock "Pulse\nGenerator2"
SrcPort 1
Points [0, 20]
Branch {
DstBlock "Sample\nand Hold"
DstPort trigger
}
Branch {
DstBlock "Scope 3"
DstPort 1
}
}
Line {
SrcBlock "Sample\nand Hold"
SrcPort 1
Points [25, 0]
Branch {
DstBlock "Out1"
DstPort 1
}
Branch {
DstBlock "Scope 1"
DstPort 1
}
}
}
}
Block {
BlockType SubSystem
Name "Data signal"
Ports [0, 1]
Position [225, 252, 280, 288]
MinAlgLoopOccurrences off
PropExecContextOutsideSubsystem off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Opaque off
RequestExecContextInheritance off
MaskHideContents off
System {
Name "Data signal"
Location [62, 218, 520, 501]
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 Constant
Name "Constant"
Position [110, 160, 140, 190]
Value "-1"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Constant
Name "Constant1"
Position [105, 25, 135, 55]
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType RandomNumber
Name "Random\nNumber"
Position [25, 90, 55, 120]
SampleTime "1"
}
Block {
BlockType Scope
Name "Scope4"
Ports [1]
Position [110, 224, 140, 256]
Floating off
Location [493, 53, 878, 270]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData2"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Switch
Name "Switch1"
Position [175, 90, 205, 120]
Criteria "u2 > Threshold"
InputSameDT off
SampleTime "0.01"
}
Block {
BlockType Outport
Name "Out1"
Position [245, 98, 275, 112]
IconDisplay "Port number"
SampleTime "0.01"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [5, 0; 0, -60]
DstBlock "Switch1"
DstPort 3
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [10, 0; 0, 55]
DstBlock "Switch1"
DstPort 1
}
Line {
SrcBlock "Random\nNumber"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Switch1"
DstPort 2
}
Branch {
Points [0, 135]
DstBlock "Scope4"
DstPort 1
}
}
Line {
SrcBlock "Switch1"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [685, 262, 715, 293]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
OutDataTypeStr "Inherit: Inherit via internal rule"
SaturateOnIntegerOverflow off
SampleTime "0.01"
}
Block {
BlockType Scope
Name "Scope 1"
Ports [1]
Position [305, 184, 335, 216]
Floating off
Location [5, 52, 1285, 765]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData1"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope 2"
Ports [1]
Position [305, 294, 335, 326]
Floating off
Location [68, 102, 1236, 455]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData5"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope 3"
Ports [1]
Position [420, 319, 450, 351]
Floating off
Location [5, 52, 1285, 765]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope 4"
Ports [1]
Position [590, 319, 620, 351]
Floating off
Location [5, 52, 1285, 765]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData6"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope 5"
Ports [1]
Position [750, 169, 780, 201]
Floating off
Location [5, 52, 1285, 765]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData7"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope 6"
Ports [1]
Position [830, 384, 860, 416]
Floating off
Location [72, 493, 1228, 732]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData3"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope 7"
Ports [1]
Position [985, 264, 1015, 296]
Floating off
Location [1, 52, 1281, 765]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData4"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Switch
Name "Switch 1 "
Position [360, 255, 390, 285]
Criteria "u2 > Threshold"
InputSameDT off
OutDataType "sfix(16)"
OutScaling "2^0"
SaturateOnIntegerOverflow off
SampleTime "0.01"
}
Block {
BlockType Switch
Name "Switch 2"
Position [920, 265, 950, 295]
Criteria "u2 > Threshold"
Threshold "0.4"
InputSameDT off
OutDataType "sfix(16)"
OutScaling "2^0"
SaturateOnIntegerOverflow off
SampleTime "0.01"
}
Line {
SrcBlock "Data signal"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Switch 1 "
DstPort 2
}
Branch {
DstBlock "Scope 2"
DstPort 1
}
}
Line {
SrcBlock "Chaotic signal"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Scope 1"
DstPort 1
}
Branch {
Points [55, 0]
DstBlock "Switch 1 "
DstPort 1
}
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [75, 0]
DstBlock "Switch 1 "
DstPort 3
}
Line {
SrcBlock "Switch 1 "
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Scope 3"
DstPort 1
}
Branch {
DstBlock "AWGN\nChannel"
DstPort 1
}
}
Line {
SrcBlock "AWGN\nChannel"
SrcPort 1
Points [10, 0]
Branch {
Points [70, 0]
Branch {
DstBlock "Product"
DstPort 1
}
Branch {
Points [0, 15]
DstBlock "Product"
DstPort 2
}
}
Branch {
DstBlock "Scope 4"
DstPort 1
}
}
Line {
SrcBlock "Product"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Correlator"
DstPort 1
}
Branch {
DstBlock "Scope 5"
DstPort 1
}
}
Line {
SrcBlock "Correlator"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Switch 2"
DstPort 2
}
Branch {
DstBlock "Scope 6"
DstPort 1
}
}
Line {
SrcBlock "Constant2"
SrcPort 1
Points [5, 0]
DstBlock "Switch 2"
DstPort 3
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [5, 0]
DstBlock "Switch 2"
DstPort 1
}
Line {
SrcBlock "Switch 2"
SrcPort 1
DstBlock "Scope 7"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -