📄 qamnrzmf.mdl
字号:
PaperUnits "inches"
TiledPaperMargins "[0.196850, 0.196850, 0.196850, 0.1968"
"50]"
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "in_1"
Position [15, 55, 35, 75]
IconDisplay "Port number"
}
Block {
BlockType Constant
Name "Constant"
Position [15, 110, 45, 140]
Value "0"
VectorParams1D on
SamplingMode "Sample based"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
FramePeriod "inf"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [65, 70, 100, 105]
Inputs "2"
}
Block {
BlockType "S-Function"
Name "Plot1"
Ports [1]
Position [130, 70, 200, 110]
FunctionName "eyediasi"
Parameters "time_range, boundary, kept_length, "
"eye_line, scatter_line, two_d_line"
}
Line {
SrcBlock "in_1"
SrcPort 1
Points [5, 0; 0, 15]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Plot1"
DstPort 1
}
}
}
Line {
SrcBlock "Switch"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Mux"
DstPort 2
}
Branch {
Points [0, 110]
Branch {
Points [0, 65]
DstBlock "Mux3"
DstPort 1
}
Branch {
DstBlock "Mux2"
DstPort 1
}
}
}
Line {
SrcBlock "Switch1"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "Mux1"
DstPort 2
}
Branch {
Points [0, 70]
Branch {
Points [0, 65]
DstBlock "Mux3"
DstPort 2
}
Branch {
DstBlock "Mux2"
DstPort 2
}
}
}
Line {
SrcBlock "Constant0"
SrcPort 1
Points [0, -35]
Branch {
DstBlock "Mux1"
DstPort 1
}
Branch {
Points [0, -55]
DstBlock "Mux"
DstPort 1
}
}
Line {
SrcBlock "Quadratur"
SrcPort 1
DstBlock "Switch1"
DstPort 1
}
Line {
SrcBlock "Inphase"
SrcPort 1
DstBlock "Switch"
DstPort 1
}
Line {
SrcBlock "Step input"
SrcPort 1
Points [20, 0; 0, -35]
Branch {
Points [0, -55]
DstBlock "Switch"
DstPort 2
}
Branch {
DstBlock "Switch1"
DstPort 2
}
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [0, -10]
Branch {
Points [0, -55]
DstBlock "Switch"
DstPort 3
}
Branch {
DstBlock "Switch1"
DstPort 3
}
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "Quadrature eye pattern\nreceiver"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [20, 0]
DstBlock "Inphase eye pattern\nreceiver"
DstPort 1
}
Line {
SrcBlock "Mux3"
SrcPort 1
DstBlock "Scatter plot\nreceiver"
DstPort 1
}
Line {
SrcBlock "Mux2"
SrcPort 1
Points [20, 0]
DstBlock "Trajectory \nreceiver"
DstPort 1
}
}
}
Block {
BlockType Scope
Name "s_rc(t)"
Ports [1]
Position [540, 20, 570, 50]
Orientation "up"
Floating off
Location [0, 540, 640, 640]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "25.000000"
YMin "-1.500000"
YMax "1.500000"
DataFormat "Array"
SampleTime "0"
}
Block {
BlockType Scope
Name "s_rs(t)"
Ports [1]
Position [540, 155, 570, 185]
Orientation "up"
Floating off
Location [640, 540, 1280, 640]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "25.000000"
YMin "-1.500000"
YMax "1.500000"
DataFormat "Array"
SampleTime "0"
}
Block {
BlockType SubSystem
Name "threshold\ndetector"
Ports [1, 1]
Position [700, 72, 730, 108]
ShowPortLabels off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "threshold\ndetector"
Location [495, 247, 855, 368]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.196850, 0.196850, 0.196850, 0.196850]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "in_1"
Position [30, 15, 50, 35]
IconDisplay "Port number"
}
Block {
BlockType Constant
Name "Constant2"
Position [35, 65, 55, 85]
Value "1/3"
VectorParams1D on
SamplingMode "Sample based"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
FramePeriod "inf"
}
Block {
BlockType Constant
Name "Constant3"
Position [205, 70, 225, 90]
Value "1/3"
VectorParams1D on
SamplingMode "Sample based"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
FramePeriod "inf"
}
Block {
BlockType "S-Function"
Name "Quantizer"
Ports [1, 1]
Position [160, 22, 190, 48]
FunctionName "quantize"
Parameters "q"
MaskType "Quantizer"
MaskDescription "Discretizes input at given interval."
MaskHelp "Quantizes input in given intervals. "
MaskPromptString "Quantization interval:"
MaskStyleString "edit"
MaskTunableValueString "on"
MaskEnableString "on"
MaskVisibilityString "on"
MaskToolTipString "on"
MaskInitialization "q = @1;"
MaskDisplay "plot([-4,4],[0,0],[0,0],[-4,4],[-3,-2,-"
"2,-1,-1,0,0,1,1,2,2,3,3,4]-0.5,[-3,-3,-2,-2,-1,-1,0,0,1,1,2,2,3,3])"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "2/3"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [260, 29, 280, 56]
Inputs "+-"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [90, 19, 110, 46]
}
Block {
BlockType Outport
Name "out_1"
Position [315, 35, 335, 55]
IconDisplay "Port number"
}
Line {
SrcBlock "in_1"
SrcPort 1
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "Quantizer"
DstPort 1
}
Line {
SrcBlock "Constant2"
SrcPort 1
Points [10, 0; 0, -35]
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Quantizer"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Constant3"
SrcPort 1
Points [5, 0; 0, -30]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "out_1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "threshold\ndetector_"
Ports [1, 1]
Position [700, 207, 730, 243]
ShowPortLabels off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "threshold\ndetector_"
Location [495, 247, 855, 368]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.196850, 0.196850, 0.196850, 0.196850]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "in_1"
Position [30, 15, 50, 35]
IconDisplay "Port number"
}
Block {
BlockType Constant
Name "Constant2"
Position [35, 65, 55, 85]
Value "1/3"
VectorParams1D on
SamplingMode "Sample based"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
FramePeriod "inf"
}
Block {
BlockType Constant
Name "Constant3"
Position [205, 70, 225, 90]
Value "1/3"
VectorParams1D on
SamplingMode "Sample based"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
Sam
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -