📄 msk.mdl
字号:
Name "in_1"
Position [20, 25, 40, 45]
}
Block {
BlockType Fcn
Name "Fcn4"
Position [70, 215, 130, 235]
Orientation "left"
ShowName off
Expr "1-2*u"
}
Block {
BlockType Fcn
Name "Fcn5"
Position [210, 85, 270, 105]
ShowName off
Expr "(1-u)/2"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [155, 28, 185, 52]
ShowName off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [90, 138, 120, 162]
ShowName off
}
Block {
BlockType SubSystem
Name "Pulse\nGenerator"
Ports [0, 1]
Position [160, 207, 195, 243]
Orientation "left"
ShowName off
ShowPortLabels off
TreatAsAtomicUnit off
MaskType "Pulse Generator"
MaskDescription "Pulse Generator."
MaskHelp "Pulse generator which ensures pulse\\nt"
"ransitions are hit. Provides a vector of pulses when the height is entered as"
" a vector.\\nUnmask to see how it works."
MaskPromptString "Pulse period (secs):|Pulse width:|Pulse"
" height:|Pulse start time:"
MaskStyleString "edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on"
MaskCallbackString "|||"
MaskEnableString "on,on,on,on"
MaskVisibilityString "on,on,on,on"
MaskToolTipString "on,on,on,on"
MaskVarAliasString ",,,"
MaskInitialization "Ts=@1; du=@2; ht=@3; stt=@4; ini=ones(l"
"ength(ht),1); st1=rem(stt,Ts); st2=rem(stt+du,Ts);if(Ts<=1.2*du),ini=zeros(le"
"ngth(ht),1);end;"
MaskDisplay "plot(0,0,100,100,[90,75,75,60,60,35,35,"
"20,20,10],[20,20,80,80,20,20,80,80,20,20])"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "2|1|1|0"
System {
Name "Pulse\nGenerator"
Location [158, 441, 759, 682]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Clock
Name "Clock1"
Position [295, 100, 315, 120]
ShowName off
Decimation "10"
}
Block {
BlockType Constant
Name "Constant"
Position [25, 30, 45, 50]
}
Block {
BlockType Constant
Name "Constant1"
Position [295, 149, 320, 171]
Value "stt"
}
Block {
BlockType Gain
Name "Gain"
Position [510, 102, 535, 128]
ShowName off
Gain "ht"
}
Block {
BlockType Logic
Name "Logical\nOperator"
Ports [2, 1]
Position [285, 38, 315, 62]
Operator "XOR"
}
Block {
BlockType Logic
Name "Logical\nOperator1"
Ports [1, 1]
Position [355, 38, 385, 62]
Operator "NOT"
Inputs "1"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [455, 105, 480, 125]
ShowName off
}
Block {
BlockType RelationalOperator
Name "Relational\noperator"
Position [370, 102, 400, 133]
ShowName off
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [135, 35, 155, 55]
ShowName off
Inputs "+-"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [130, 120, 150, 140]
ShowName off
Inputs "+-"
}
Block {
BlockType UnitDelay
Name "Unit Delay"
Position [145, 75, 195, 95]
Orientation "left"
SampleTime "[Ts,st1]"
}
Block {
BlockType UnitDelay
Name "Unit Delay1"
Position [140, 165, 190, 185]
Orientation "left"
X0 "ini"
SampleTime "[Ts,st2]"
}
Block {
BlockType Outport
Name "out_1"
Position [560, 105, 580, 125]
ShowName off
}
Line {
SrcBlock "Logical\nOperator1"
SrcPort 1
Points [40, 0; 0, 60]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Logical\nOperator"
SrcPort 1
DstBlock "Logical\nOperator1"
DstPort 1
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [20, 0; 0, -35]
DstBlock "Relational\noperator"
DstPort 2
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "out_1"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Relational\noperator"
SrcPort 1
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Clock1"
SrcPort 1
DstBlock "Relational\noperator"
DstPort 1
}
Line {
SrcBlock "Unit Delay"
SrcPort 1
Points [-35, 0; 0, -35]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [0, 0]
Branch {
Points [70, 0; 0, 40]
DstBlock "Unit Delay"
DstPort 1
}
Branch {
DstBlock "Logical\nOperator"
DstPort 1
}
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "Sum"
DstPort 1
}
Branch {
Points [20, 0; 0, 85]
DstBlock "Sum1"
DstPort 1
}
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [0, 0]
Branch {
Points [55, 0; 0, 45]
DstBlock "Unit Delay1"
DstPort 1
}
Branch {
Points [90, 0; 0, -75]
DstBlock "Logical\nOperator"
DstPort 2
}
}
Line {
SrcBlock "Unit Delay1"
SrcPort 1
Points [-35, 0; 0, -40]
DstBlock "Sum1"
DstPort 2
}
}
}
Block {
BlockType UnitDelay
Name "Unit Delay"
Position [45, 85, 95, 105]
Orientation "down"
ShowName off
X0 "1"
}
Block {
BlockType Scope
Name "a(t-1)"
Ports [1]
Position [165, 135, 195, 165]
Location [371, 799, 1284, 899]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "25.000000"
YMin "-1.500000"
YMax "1.500000"
DataFormat "Array"
}
Block {
BlockType Outport
Name "out_1"
Position [290, 30, 310, 50]
}
Block {
BlockType Outport
Name "Bit"
Position [290, 85, 310, 105]
Port "2"
}
Line {
SrcBlock "Unit Delay"
SrcPort 1
Points [0, 35]
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "a(t-1)"
DstPort 1
}
Branch {
Points [0, -105]
DstBlock "Product"
DstPort 2
}
}
Line {
SrcBlock "in_1"
SrcPort 1
Points [25, 0]
Branch {
DstBlock "Product"
DstPort 1
}
Branch {
DstBlock "Unit Delay"
DstPort 1
}
}
Line {
SrcBlock "Product"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "out_1"
DstPort 1
}
Branch {
Points [0, 55]
DstBlock "Fcn5"
DstPort 1
}
}
Line {
SrcBlock "Pulse\nGenerator"
SrcPort 1
DstBlock "Fcn4"
DstPort 1
}
Line {
SrcBlock "Fcn4"
SrcPort 1
Points [-20, 0; 0, -70]
DstBlock "Product1"
DstPort 2
}
Line {
SrcBlock "Fcn5"
SrcPort 1
DstBlock "Bit"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "noise variance"
Ports []
Position [19, 215, 125, 239]
BackgroundColor "lightBlue"
ShowName off
OpenFcn "setnoise"
FontSize 12
FontAngle "italic"
ShowPortLabels off
TreatAsAtomicUnit off
MaskType "noise"
MaskDisplay "disp('Noise variance')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "noise variance"
Location [136, 230, 381, 439]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "cyan"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
}
}
Block {
BlockType Scope
Name "r(t)"
Ports [1]
Position [45, 20, 75, 50]
Orientation "up"
NamePlacement "alternate"
Location [360, 340, 1280, 440]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "25.000000"
YMin "-2.000000"
YMax "2.000000"
DataFormat "Array"
}
Block {
BlockType SubSystem
Name "receiver diagrams"
Ports [2]
Position [580, 15, 635, 55]
ShowPortLabels off
TreatAsAtomicUnit off
MaskType "2D-Diagrams"
MaskDescription "Eye pattern, signal space trajectory and sc"
"atter plot"
MaskPromptString "Plot start time:|Samples per time slot (2*T"
"):|Decision offset:"
MaskStyleString "edit,edit,edit"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "on,on,on"
MaskVisibilityString "on,on,on"
MaskToolTipString "on,on,on"
MaskVarAliasString ",,"
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 "2|40|0.075"
System {
Name "receiver diagrams"
Location [74, 224, 486, 526]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Inphase"
Position [30, 25, 50, 45]
}
Block {
BlockType Inport
Name "Quadratur"
Position [30, 80, 50, 100]
Port "2"
}
Block {
BlockType Constant
Name "Constant"
Position [90, 125, 110, 145]
Orientation "up"
ShowName off
Value "Inf"
}
Block {
BlockType Constant
Name "Constant0"
Position [190, 125, 210, 145]
Orientation "up"
ShowName off
Value "0"
}
Block {
BlockType SubSystem
Name "Inphase eye pattern\nreceiver"
Ports [1]
Position [305, 12, 360, 48]
CopyFcn "eyesampl([],[],[],'CopyBlock')"
DeleteFcn "eyesampl([],[],[],'DeleteBlock')"
LoadFcn "eyesampl([],[],[],'LoadBlock')"
StartFcn "eyesampl([],[],[],'Start')"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -