📄 ofdm1.mdl
字号:
Position [20, 103, 50, 117]
IconDisplay "Port number"
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn"
Position [200, 95, 260, 125]
MATLABFcn "def12"
OutputDimensions "[120 1]"
Output1D off
}
Block {
BlockType Selector
Name "Selector"
Ports [1, 1]
Position [90, 91, 130, 129]
Elements "[1:5:120]"
InputPortWidth "120"
}
Block {
BlockType Outport
Name "Out1"
Position [360, 103, 390, 117]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Selector"
DstPort 1
}
Line {
SrcBlock "Selector"
SrcPort 1
DstBlock "MATLAB Fcn"
DstPort 1
}
Line {
SrcBlock "MATLAB Fcn"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType Outport
Name "Out1"
Position [530, 278, 560, 292]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Out2"
Position [535, 358, 565, 372]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Multipath Rayleigh\nFading Channel"
DstPort 1
}
Line {
SrcBlock "Multipath Rayleigh\nFading Channel"
SrcPort 1
DstBlock "AWGN\nChannel1"
DstPort 1
}
Line {
SrcBlock "AWGN\nChannel1"
SrcPort 1
DstBlock "Buffer2"
DstPort 1
}
Line {
SrcBlock "Constant1"
SrcPort 1
DstBlock "Product1"
DstPort 2
}
Line {
SrcBlock "Buffer2"
SrcPort 1
DstBlock "Selector1"
DstPort 1
}
Line {
SrcBlock "Selector1"
SrcPort 1
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [5, 0; 0, 95; -650, 0]
DstBlock "FFT"
DstPort 1
}
Line {
SrcBlock "FFT"
SrcPort 1
DstBlock "Frame Conversion"
DstPort 1
}
Line {
SrcBlock "Frame Conversion"
SrcPort 1
DstBlock "Selector2"
DstPort 1
}
Line {
SrcBlock "Selector2"
SrcPort 1
Points [45, 0]
Branch {
Points [0, 80]
DstBlock "Subsystem"
DstPort 1
}
Branch {
DstBlock "Out1"
DstPort 1
}
}
Line {
SrcBlock "Subsystem"
SrcPort 1
DstBlock "Out2"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Subsystem1"
Ports [1, 2]
Position [85, 387, 190, 438]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "Subsystem1"
Location [255, 405, 1090, 1002]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [40, 78, 70, 92]
IconDisplay "Port number"
}
Block {
BlockType Reference
Name "AWGN\nChannel1"
Ports [1, 1]
Position [290, 64, 370, 106]
SourceBlock "commchan2/AWGN\nChannel"
SourceType "AWGN Channel"
ShowPortLabels "on"
seed "67"
noiseMode "Signal to noise ratio (Eb/No)"
EbNodB "10"
EsNodB "10"
SNRdB "10"
bitsPerSym "1"
Ps "1"
Tsym "0.6/480000+1e-9"
variance "1"
}
Block {
BlockType Reference
Name "Buffer2"
Ports [1, 1]
Position [435, 58, 460, 112]
SourceBlock "dspbuff3/Buffer"
SourceType "Buffer"
N "160"
V "0"
ic "1"
}
Block {
BlockType Constant
Name "Constant1"
Position [575, 110, 605, 140]
Value "1/sqrt(128)"
}
Block {
BlockType Reference
Name "FFT"
Ports [1, 1]
Position [50, 268, 90, 302]
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag2"
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 FrameConversion
Name "Frame Conversion"
Position [125, 265, 180, 305]
OutFrame "Frame based"
}
Block {
BlockType Reference
Name "Multipath Rayleigh\nFading Channel"
Ports [1, 1]
Position [115, 63, 195, 107]
SourceBlock "commchan2/Multipath Rayleigh\nFading Channe"
"l"
SourceType "Multipath Rayleigh Fading Channel"
ShowPortLabels "on"
Fd "40"
simTs "1.25e-6"
delayVec "[0 2e-5]"
gainVecdB "[0 -3]"
normGain "on"
Seed "112456"
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [645, 64, 675, 146]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Selector
Name "Selector1"
Ports [1, 1]
Position [485, 66, 525, 104]
Elements "[33:160]"
InputPortWidth "160"
}
Block {
BlockType Selector
Name "Selector2"
Ports [1, 1]
Position [225, 266, 265, 304]
Elements "[5:124]"
InputPortWidth "128"
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [1, 1]
Position [370, 344, 470, 386]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "Subsystem"
Location [340, 291, 838, 591]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [20, 103, 50, 117]
IconDisplay "Port number"
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn"
Position [200, 95, 260, 125]
MATLABFcn "def12"
OutputDimensions "[120 1]"
Output1D off
}
Block {
BlockType Selector
Name "Selector"
Ports [1, 1]
Position [90, 91, 130, 129]
Elements "[1:5:120]"
InputPortWidth "120"
}
Block {
BlockType Outport
Name "Out1"
Position [360, 103, 390, 117]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Selector"
DstPort 1
}
Line {
SrcBlock "Selector"
SrcPort 1
DstBlock "MATLAB Fcn"
DstPort 1
}
Line {
SrcBlock "MATLAB Fcn"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType Outport
Name "Out1"
Position [530, 278, 560, 292]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Out2"
Position [535, 358, 565, 372]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Multipath Rayleigh\nFading Channel"
DstPort 1
}
Line {
SrcBlock "Multipath Rayleigh\nFading Channel"
SrcPort 1
DstBlock "AWGN\nChannel1"
DstPort 1
}
Line {
SrcBlock "AWGN\nChannel1"
SrcPort 1
DstBlock "Buffer2"
DstPort 1
}
Line {
SrcBlock "Constant1"
SrcPort 1
DstBlock "Product1"
DstPort 2
}
Line {
SrcBlock "Buffer2"
SrcPort 1
DstBlock "Selector1"
DstPort 1
}
Line {
SrcBlock "Selector1"
SrcPort 1
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [5, 0; 0, 95; -650, 0]
DstBlock "FFT"
DstPort 1
}
Line {
SrcBlock "FFT"
SrcPort 1
DstBlock "Frame Conversion"
DstPort 1
}
Line {
SrcBlock "Frame Conversion"
SrcPort 1
DstBlock "Selector2"
DstPort 1
}
Line {
SrcBlock "Selector2"
SrcPort 1
Points [45, 0]
Branch {
Points [0, 80]
DstBlock "Subsystem"
DstPort 1
}
Branch {
DstBlock "Out1"
DstPort 1
}
}
Line {
SrcBlock "Subsystem"
SrcPort 1
DstBlock "Out2"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Subsystem2"
Ports [4, 1]
Position [315, 335, 490, 440]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Subsystem2"
Location [98, 111, 1080, 804]
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, 53, 60, 67]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "In2"
Position [35, 178, 65, 192]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "In3"
Position [35, 313, 65, 327]
Port "3"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "In4"
Position [40, 438, 70, 452]
Port "4"
IconDisplay "Port number"
}
Block {
BlockType Sum
Name "Add"
Ports [2, 1]
Position [405, 108, 440, 237]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Add1"
Ports [2, 1]
Position [415, 429, 450, 551]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Divide"
Ports [2, 1]
Position [585, 236, 630, 414]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -