?? source_d.mdl
字號:
Block {
BlockType Inport
Name "I"
Position [15, 148, 45, 162]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Reference
Name "Buffer"
Ports [1, 1]
Position [65, 130, 85, 180]
SourceBlock "dspbuff3/Buffer"
SourceType "Buffer"
N "2560"
V "0"
ic "0"
}
Block {
BlockType SubSystem
Name "Delayed\nScatter Plot2"
Ports [1]
Position [420, 41, 495, 89]
ShowName off
FontName "MS Sans Serif"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskDisplay "disp('Delayed\\nScatter Plot');"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Delayed\nScatter Plot2"
Location [335, 319, 591, 538]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [35, 88, 65, 102]
FontName "MS Sans Serif"
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType SubSystem
Name "Enabled\nScatter Plot"
Ports [1, 0, 1]
Position [130, 65, 200, 125]
FontName "MS Sans Serif"
TreatAsAtomicUnit on
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Enabled\nScatter Plot"
Location [369, 277, 646, 584]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [30, 78, 60, 92]
FontName "MS Sans Serif"
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType EnablePort
Name "Enable"
Ports []
Position [115, 15, 135, 35]
}
Block {
BlockType Reference
Name "Discrete-Time\nScatter Plot\nScope"
Tag "ScatterPlot"
Ports [1]
Position [145, 56, 210, 114]
Diagnostics "AllowInheritedTsInSrc"
SourceBlock "commsink2/Discrete-Time\nScatter Pl"
"ot\nScope"
SourceType "Discrete-Time Scatter Plot Scope"
ShowPortLabels "on"
sampPerSymb "1"
offsetEye "0"
numTraces "1024"
numNewFrames "512"
LineMarkers "."
LineColors "b"
fading "off"
render "off"
AxisGrid "on"
xMin "-0.870886798436066"
xMax "0.875879937231754"
yMin "-0.880242774009359"
yMax "0.866523961658461"
inphaseLabel "In-phase Amplitude"
quadratureLabel "Quadrature Amplitude"
openScopeAtSimStart "on"
FrameNumber "on"
FigPos "[410 -13 512 512]"
figTitle "Scatter Plot"
numLinesMax "50"
block_type_ "scatter"
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Discrete-Time\nScatter Plot\nScope"
DstPort 1
}
}
}
Block {
BlockType Step
Name "Step"
Position [90, 15, 120, 45]
Time ".001"
SampleTime "3.15*2560"
}
Line {
SrcBlock "Step"
SrcPort 1
Points [40, 0]
DstBlock "Enabled\nScatter Plot"
DstPort enable
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Enabled\nScatter Plot"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "FFT1"
Ports [1, 1]
Position [230, 136, 255, 164]
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag5"
SourceBlock "dspxfrm3/FFT"
SourceType "FFT"
CompMethod "Table lookup"
TableOpt "Speed"
BitRevOrder off
additionalParams off
SkipNorm on
allowOverrides on
firstCoeffMode "Same word length as input"
firstCoeffWordLength "16"
firstCoeffFracLength "15"
outputMode "Inherit via internal rule"
outputWordLength "16"
outputFracLength "15"
accumMode "Inherit via internal rule"
accumWordLength "32"
accumFracLength "30"
prodOutputMode "Inherit via internal rule"
prodOutputWordLength "32"
prodOutputFracLength "30"
roundingMode "Floor"
overflowMode off
LockScale off
}
Block {
BlockType Reference
Name "Frame Status\nConversion2"
Ports [1, 1]
Position [290, 129, 325, 171]
SourceBlock "dspobslib/Frame Status\nConversion"
SourceType "Frame Status Conversion"
ShowPortLabels off
growRefPort off
outframe "Frame-based"
}
Block {
BlockType Reference
Name "Integer Delay"
Ports [1, 1]
Position [385, 413, 430, 447]
Orientation "left"
SourceBlock "dspobslib/Integer Delay"
SourceType "Integer Delay"
delay "1"
ic "0"
reset_popup "None"
}
Block {
BlockType Reference
Name "Integer Delay1"
Ports [1, 1]
Position [385, 353, 430, 387]
Orientation "left"
SourceBlock "dspobslib/Integer Delay"
SourceType "Integer Delay"
delay "1"
ic "0"
reset_popup "None"
}
Block {
BlockType "S-Function"
Name "S-Function"
Ports [2, 4]
Position [630, 112, 720, 183]
FunctionName "timing060403"
Parameters "innum,framesize"
MaskPromptString "fft size|frame size "
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskToolTipString "on,on"
MaskVarAliasString ","
MaskVariables "innum=@1;framesize=@2;"
MaskDisplay "port_label('input',1,'in');\nport_label('in"
"put',2,'freq_flag');\nport_label('output',1,'sym');\nport_label('output',2,'s"
"ample');\nport_label('output',3,'fra_freq');\nport_label('output',4,'tmpout')"
";"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "2048|2560"
MaskTabNameString ","
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [595, 206, 620, 234]
Location [328, 140, 597, 360]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "20480"
YMin "-1"
YMax "1"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
MaxDataPoints "50000"
}
Block {
BlockType Scope
Name "Scope2"
Ports [1]
Position [590, 291, 615, 319]
Location [328, 144, 597, 364]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "20480"
YMin "-1"
YMax "1"
SaveName "ScopeData2"
DataFormat "StructureWithTime"
MaxDataPoints "50000"
}
Block {
BlockType Scope
Name "Scope3"
Ports [1]
Position [615, 516, 640, 544]
Location [328, 140, 597, 360]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "20480"
YMin "-1"
YMax "1"
SaveName "ScopeData4"
DataFormat "StructureWithTime"
MaxDataPoints "50000"
}
Block {
BlockType Scope
Name "Scope4"
Ports [1]
Position [495, 211, 520, 239]
Location [669, 314, 938, 534]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "20480"
YMin "-1"
YMax "1"
SaveName "ScopeData3"
DataFormat "StructureWithTime"
MaxDataPoints "50000"
}
Block {
BlockType Scope
Name "Scope6"
Ports [1]
Position [335, 231, 360, 259]
Location [166, 159, 436, 369]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "20480"
YMin "0.95"
YMax "1.05"
SaveName "ScopeData5"
DataFormat "StructureWithTime"
MaxDataPoints "50000"
}
Block {
BlockType "S-Function"
Name "coar_sym_sync\ncoar_fra_freq_sync1"
Ports [3, 4]
Position [120, 123, 190, 312]
FunctionName "newsy4_3"
Parameters "maxdelay,thres,framelength,fftlength,looppa"
"ra"
MaskPromptString "the max delay of input |signal energy thres"
"hold|singnal frame size |fft length|loop parameter"
MaskStyleString "edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on"
MaskCallbackString "||||"
MaskEnableString "on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on"
MaskToolTipString "on,on,on,on,on"
MaskVarAliasString ",,,,"
MaskVariables "maxdelay=@1;thres=@2;framelength=@3;fftleng"
"th=@4;looppara=@5;"
MaskDisplay "port_label('input',1,'in');\nport_label('in"
"put',2,'sym');\nport_label('input',3,'freq');\nport_label('output',1,'out');"
"\nport_label('output',2,'csym_syn');\nport_label('output',3,'fracr_crr');\npo"
"rt_label('output',4,'mul_out');"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "2560*4|2e4|2560|2048|0.125"
MaskTabNameString ",,,,"
}
Block {
BlockType "S-Function"
Name "fine carrier\nsynchronization1"
Ports [2, 3]
Position [385, 129, 475, 201]
FunctionName "finecr060403"
Parameters "innum,framesize"
MaskType "fine carrier synchronization"
MaskPromptString "input width|ofdm symbol size "
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskToolTipString "on,on"
MaskVarAliasString ","
MaskVariables "innum=@1;framesize=@2;"
MaskDisplay "port_label('input',1,'in');\nport_label('in"
"put',2,'sym_syn');\nport_label('output',1,'out');\nport_label('output',2,'fre"
"q_flag');\nport_label('output',3,'freq_err');"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "2048|2560"
MaskTabNameString ","
}
Line {
SrcBlock "I"
SrcPort 1
DstBlock "Buffer"
DstPort 1
}
Line {
SrcBlock "FFT1"
SrcPort 1
DstBlock "Frame Status\nConversion2"
DstPort 1
}
Line {
SrcBlock "Frame Status\nConversion2"
SrcPort 1
Points [40, 0]
Branch {
DstBlock "fine carrier\nsynchronization1"
DstPort 1
}
Branch {
Points [0, -85]
DstBlock "Delayed\nScatter Plot2"
DstPort 1
}
}
Line {
SrcBlock "fine carrier\nsynchronization1"
SrcPort 3
Points [0, 0]
DstBlock "Scope4"
DstPort 1
}
Line {
SrcBlock "coar_sym_sync\ncoar_fra_freq_sync1"
SrcPort 2
Points [110, 0]
Branch {
Points [65, 0]
DstBlock "fine carrier\nsynchronization1"
DstPort 2
}
Branch {
Points [0, 50]
DstBlock "Scope6"
DstPort 1
}
}
Line {
SrcBlock "Buffer"
SrcPort 1
DstBlock "coar_sym_sync\ncoar_fra_freq_sync1"
DstPort 1
}
Line {
SrcBlock "coar_sym_sync\ncoar_fra_freq_sync1"
SrcPort 1
DstBlock "FFT1"
DstPort 1
}
Line {
SrcBlock "fine carrier\nsynchronization1"
SrcPort 1
Points [135, 0]
DstBlock "S-Function"
DstPort 1
}
Line {
SrcBlock "fine carrier\nsynchronization1"
SrcPort 2
Points [85, 0]
Branch {
DstBlock "S-Function"
DstPort 2
}
Branch {
Points [0, 55]
DstBlock "Scope1"
DstPort 1
}
}
Line {
SrcBlock "S-Function"
SrcPort 3
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -