📄 librnew.mdl
字号:
DstBlock "real part"
DstPort 1
}
}
Line {
SrcBlock "real part"
SrcPort 1
DstBlock "Real"
DstPort 1
}
Line {
SrcBlock "imag part1"
SrcPort 1
DstBlock "Imag"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "transmitter\ndiagrams"
Ports [1]
Position [45, 25, 100, 65]
ShowPortLabels off
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskType "Diagrams"
MaskDescription "Eye pattern, signal-space trajectory and scatt"
"er plot"
MaskPromptString "Plot start time:|samples per time slot|decision"
" offset"
MaskStyleString "edit,edit,edit"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "on,on,on"
MaskVisibilityString "on,on,on"
MaskToolTipString "on,on,on"
MaskVariables "starttime=@1;anzahl=@2;offset=@3;"
MaskInitialization " [x, y] = srcsicon(10);"
MaskDisplay "plot(0,0,100,100,x,y)"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "6|40|0"
MaskVariableAliases ",,"
System {
Name "transmitter\ndiagrams"
Location [638, 293, 1006, 534]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "in_1"
Position [35, 40, 55, 60]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Constant
Name "Constant"
Position [35, 130, 55, 150]
Value "Inf"
VectorParams1D on
}
Block {
BlockType Constant
Name "Constant1"
Position [130, 130, 150, 150]
Value "0"
VectorParams1D on
}
Block {
BlockType SubSystem
Name "Eye pattern \ntransmitter"
Ports [1]
Position [275, 37, 330, 73]
CopyFcn "eyesampl([],[],[],'CopyBlock')"
DeleteFcn "eyesampl([],[],[],'DeleteBlock')"
LoadFcn "eyesampl([],[],[],'LoadBlock')"
StartFcn "eyesampl([],[],[],'Start')"
StopFcn "eyesampl([],[],[],'Stop')"
NameChangeFcn "eyesampl([],[],[],'NameChange')"
ShowPortLabels off
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
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"
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 "[2 0 1+offset]|[-1.5 1.5]|0|'w-/r-'|0|2/anz"
"ahl"
MaskVariableAliases ",,,,,"
System {
Name "Eye pattern \ntransmitter"
Location [116, 253, 411, 439]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "in_1"
Position [75, 80, 95, 100]
Port "1"
LatchInput off
Interpolate on
}
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"
PortCounts "[]"
SFunctionModules "''"
}
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"
DisplayOption "none"
}
Block {
BlockType Mux
Name "Mux1"
Ports [2, 1]
Position [185, 96, 220, 129]
Inputs "2"
DisplayOption "none"
}
Block {
BlockType SubSystem
Name "Scatter plot\ntransmitter"
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
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
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"
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]"
MaskVariableAliases ",,,,,"
System {
Name "Scatter plot\ntransmitter"
Location [165, 242, 460, 428]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "in_1"
Position [75, 80, 95, 100]
Port "1"
LatchInput off
Interpolate on
}
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"
PortCounts "[]"
SFunctionModules "''"
}
Line {
SrcBlock "in_1"
SrcPort 1
DstBlock "Plot1"
DstPort 1
}
}
}
Block {
BlockType Step
Name "Step input"
Position [35, 85, 55, 105]
Time "starttime"
Before "0"
After "1"
SampleTime "1"
VectorParams1D on
}
Block {
BlockType Switch
Name "Switch"
Position [110, 44, 135, 76]
Threshold "1"
}
Block {
BlockType SubSystem
Name "Trajectory\ntransmitter"
Ports [2]
Position [275, 105, 330, 140]
CopyFcn "eyediasi([],[],[],'CopyBlock')"
DeleteFcn "eyediasi([],[],[],'DeleteBlock')"
LoadFcn "eyediasi([],[],[],'LoadBlock')"
StartFcn "eyediasi([],[],[],'Start')"
StopFcn "eyediasi([],[],[],'Stop')"
NameChangeFcn "eyediasi([],[],[],'NameChange')"
ShowPortLabels off
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
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"
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-'"
MaskVariableAliases ",,,,,"
System {
Name "Trajectory\ntransmitter"
Location [165, 242, 460, 428]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "in_1"
Position [15, 55, 35, 75]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "in_2"
Position [20, 115, 40, 135]
Port "2"
LatchInput off
Interpolate on
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [65, 70, 100, 105]
Inputs "2"
DisplayOption "none"
}
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"
PortCounts "[]"
SFunctionModules "''"
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Plot1"
DstPort 1
}
Line {
SrcBlock "in_2"
SrcPort 1
Points [5, 0]
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 \ntransmitter"
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 [0, 75]
DstBlock "Scatter plot\ntransmitter"
DstPort 1
}
Branch {
DstBlock "Trajectory\ntransmitter"
DstPort 1
}
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [10, 0; 0, -20]
Branch {
DstBlock "Mux1"
DstPort 2
}
Branch {
Points [0, -75]
DstBlock "Mux"
DstPort 1
}
}
Line {
SrcBlock "Switch"
SrcPort 1
Points [10, 0]
Branch {
Points [0, 45]
DstBlock "Mux1"
DstPort 1
}
Branch {
DstBlock "Mux"
DstPort 2
}
}
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -