📄 bpsnrzbw.mdl
字号:
Block {
BlockType Inport
Name "in_1"
Position [75, 80, 95, 100]
IconDisplay "Port number"
}
Block {
BlockType "S-Function"
Name "Plot1"
Ports [1]
Position [130, 70, 200, 110]
FunctionName "eyesampl"
Parameters "time_range, boundary, kept_length, eye_"
"line, scatter_line, two_d_line"
}
Line {
SrcBlock "in_1"
SrcPort 1
DstBlock "Plot1"
DstPort 1
}
}
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [185, 36, 220, 69]
Inputs "2"
}
Block {
BlockType Mux
Name "Mux1"
Ports [2, 1]
Position [185, 96, 220, 129]
Inputs "2"
}
Block {
BlockType SubSystem
Name "Scatter plot \nreceiver"
Ports [1]
Position [275, 173, 330, 207]
CopyFcn "eyesampl([],[],[],'CopyBlock')"
DeleteFcn "eyesampl([],[],[],'DeleteBlock')"
LoadFcn "eyesampl([],[],[],'LoadBlock')"
StartFcn "eyesampl([],[],[],'Start')"
StopFcn "eyesampl([],[],[],'Stop')"
NameChangeFcn "eyesampl([],[],[],'NameChange')"
ShowPortLabels off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskType "Eye-diagram/scatter plot"
MaskDescription "Produce eye-pattern diagram and/or scatter "
"plot."
MaskHelp "This plot opens one, or two plots by assign"
"ing the line type parameters. The scatter plot point is selected by the decis"
"ion point in the first parameter entry. A decision line is drawn in the eye-p"
"attern diagram. The plot is updated at the plot update sample time point."
MaskPromptString "[Symbol interval, plot offset, decision poi"
"nt offset]:|Lower and upper bound of in-coming signal (1x2 vector):|Number of"
" saved traces:|Line-type for eye-pattern diagram (0 for no plot):|Line-type f"
"or scatter plot (0 for no plot):|Plot update sample time:"
MaskStyleString "edit,edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on,on"
MaskCallbackString "|||||"
MaskEnableString "on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on"
MaskVarAliasString ",,,,,"
MaskInitialization "time_range=@1;boundary=@2;kept_length=@3;ey"
"e_line=@4;scatter_line=@5;two_d_line=@6;[x,y]=srcsicon(10);"
MaskDisplay "plot(0,0,100,100,x,y);"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "[1 .5 .999]|[-1.5 1.5]|0|0|'b.'|[.5 offset]"
MaskTabNameString ",,,,,"
System {
Name "Scatter plot \nreceiver"
Location [165, 242, 460, 428]
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 [75, 80, 95, 100]
IconDisplay "Port number"
}
Block {
BlockType "S-Function"
Name "Plot1"
Ports [1]
Position [130, 70, 200, 110]
FunctionName "eyesampl"
Parameters "time_range, boundary, kept_length, eye_"
"line, scatter_line, two_d_line"
}
Line {
SrcBlock "in_1"
SrcPort 1
DstBlock "Plot1"
DstPort 1
}
}
}
Block {
BlockType Step
Name "Step input"
Position [35, 85, 55, 105]
Time "starttime"
SampleTime "1"
}
Block {
BlockType Switch
Name "Switch"
Position [110, 44, 135, 76]
Threshold "1"
}
Block {
BlockType SubSystem
Name "Trajectory\nreceiver"
Ports [1]
Position [275, 107, 330, 143]
CopyFcn "eyediasi([],[],[],'CopyBlock')"
DeleteFcn "eyediasi([],[],[],'DeleteBlock')"
LoadFcn "eyediasi([],[],[],'LoadBlock')"
StartFcn "eyediasi([],[],[],'Start')"
StopFcn "eyediasi([],[],[],'Stop')"
NameChangeFcn "eyediasi([],[],[],'NameChange')"
ShowPortLabels off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskType "Eye-diagram/scatter plot"
MaskDescription "Produce eye-pattern diagram/scatter\nplot/x"
"-y plot with the rising edge of the second input as the decision line."
MaskHelp "This plot opens one, two, or three plots by"
" assigning the line type parameters. The scatter plot point is selected by th"
"e rising edge of a trigger signal. A decision line is drawn at the rising edg"
"e of the trigger signal."
MaskPromptString "Eye-pattern plot time frame:|Lower and uppe"
"r bound of in-coming signal (1x2 vector):|Number of saved traces:|Line-type f"
"or eye-pattern diagram (0 for no plot):|Line-type for scatter plot (0 for no "
"plot):|Line-type for x-y plot (0 for no plot):"
MaskStyleString "edit,edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on,on"
MaskCallbackString "|||||"
MaskEnableString "on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on"
MaskVarAliasString ",,,,,"
MaskInitialization "time_range=@1;boundary=@2;kept_length=@3;ey"
"e_line=@4;scatter_line=@5;two_d_line=@6;[x,y]=srcsicon(10);[v,w]=trigicon(0,2"
"5,get_param(gcb,'orientation'),2);"
MaskDisplay "plot(0,0,100,100,x,y,v,w);"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "[2 0 1]|[-1.5 1.5]|0|0|0|'g-'"
MaskTabNameString ",,,,,"
System {
Name "Trajectory\nreceiver"
Location [165, 242, 460, 428]
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 [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 "Mux"
SrcPort 1
DstBlock "Plot1"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "in_1"
SrcPort 1
Points [5, 0; 0, 15]
DstBlock "Mux"
DstPort 1
}
}
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Eye pattern\nreceiver"
DstPort 1
}
Line {
SrcBlock "in_1"
SrcPort 1
DstBlock "Switch"
DstPort 1
}
Line {
SrcBlock "Step input"
SrcPort 1
Points [15, 0; 0, -35]
DstBlock "Switch"
DstPort 2
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [35, 0]
DstBlock "Switch"
DstPort 3
}
Line {
SrcBlock "Mux1"
SrcPort 1
Points [25, 0]
Branch {
Points [10, 0]
DstBlock "Trajectory\nreceiver"
DstPort 1
}
Branch {
Points [0, 75]
DstBlock "Scatter plot \nreceiver"
DstPort 1
}
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [10, 0; 0, -20]
Branch {
Points [0, -75]
DstBlock "Mux"
DstPort 1
}
Branch {
DstBlock "Mux1"
DstPort 2
}
}
Line {
SrcBlock "Switch"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Mux"
DstPort 2
}
Branch {
Points [0, 45]
DstBlock "Mux1"
DstPort 1
}
}
}
}
Block {
BlockType Scope
Name "s(t)"
Ports [1]
Position [175, 200, 205, 230]
Orientation "down"
Floating off
Location [212, 436, 1147, 536]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "25.000000"
YMin "-2"
YMax "2"
DataFormat "Array"
SampleTime "0"
}
Block {
BlockType Scope
Name "s_r(t)"
Ports [1]
Position [830, 180, 860, 210]
Orientation "down"
Floating off
Location [211, 794, 1147, 894]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "25.000000"
YMin "-2"
YMax "2"
DataFormat "Array"
SampleTime "0"
}
Block {
BlockType Scope
Name "sink signal v(t)"
Ports [1]
Position [990, 110, 1020, 140]
Floating off
Location [211, 794, 1147, 894]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "25.000000"
YMin "-2"
YMax "2"
DataFormat "Array"
SampleTime "0"
}
Block {
BlockType SubSystem
Name "threshold\ndetector"
Ports [1, 1]
Position [880, 112, 910, 138]
ShowPortLabels off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskType "Sign"
MaskDescription "y = sign(x)"
MaskHelp "Sign Function:\\n\\t\\t\\ty = 1 if x > 0\\n\\t"
"\\t\\ty = 0 if x = 0\\n\\t\\t\\ty = -1 if x < 0"
MaskDisplay "plot(-50,-50,50,50,[-50,50],[0,0],[0,0],[-50,50"
"],[-40,0],[-30,-30],[0,40],[30,30])"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "threshold\ndetector"
Location [159, 417, 467, 586]
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 [35, 30, 55, 50]
IconDisplay "Port number"
}
Block {
BlockType Constant
Name "Constant"
Position [65, 105, 85, 125]
Value "0"
VectorParams1D on
SamplingMode "Sample based"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -