📄 ofdm_cdma.mdl
字号:
Points [0, -25]
DstBlock "Multiport\nSwitch"
DstPort 3
}
}
}
Block {
BlockType Switch
Name "Switch"
Position [65, 100, 80, 190]
Orientation "left"
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType SubSystem
Name "train sequence"
Ports [0, 1]
Position [275, 107, 370, 133]
Orientation "left"
FontName "Arial"
FontSize 12
FontWeight "bold"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskDisplay "disp('train sequence\\nPN')\n"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "train sequence"
Location [215, 393, 630, 639]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Reference
Name "PN Sequence\nGenerator"
Ports [0, 1]
Position [15, 108, 95, 152]
SourceBlock "commseqgen2/PN Sequence\nGenerator"
SourceType "PN Sequence Generator"
poly "[1 0 0 0 0 1 1]"
ini_sta "[0 0 0 0 0 1]"
shift "0"
Ts "sampletime/128"
frameBased "on"
sampPerFrame "128"
reset "off"
outDataType "double"
}
Block {
BlockType Reference
Name "Unipolar to\nBipolar\nConverter1"
Ports [1, 1]
Position [160, 106, 240, 154]
SourceBlock "commutil2/Unipolar to\nBipolar\nConvert"
"er"
SourceType "Unipolar to Bipolar Converter"
ShowPortLabels "on"
M "2"
polarity "Negative"
}
Block {
BlockType Outport
Name "Out1"
Position [335, 123, 365, 137]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "PN Sequence\nGenerator"
SrcPort 1
DstBlock "Unipolar to\nBipolar\nConverter1"
DstPort 1
}
Line {
SrcBlock "Unipolar to\nBipolar\nConverter1"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType Outport
Name "Out1"
Position [15, 138, 45, 152]
Orientation "left"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Subsystem5"
SrcPort 1
Points [0, 0; -20, 0]
Branch {
Points [-160, 0]
DstBlock "Switch"
DstPort 1
}
Branch {
Points [0, 90]
DstBlock "Subsystem9"
DstPort 1
}
}
Line {
SrcBlock "Subsystem5"
SrcPort 2
Points [-5, 0; 0, 80]
DstBlock "Subsystem9"
DstPort 2
}
Line {
SrcBlock "train sequence"
SrcPort 1
Points [-20, 0]
DstBlock "Subsystem9"
DstPort 3
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [-15, 0; 0, 65]
DstBlock "Switch"
DstPort 2
}
Line {
SrcBlock "Subsystem9"
SrcPort 1
Points [-50, 0]
DstBlock "Switch"
DstPort 3
}
Line {
SrcBlock "In1"
SrcPort 1
Points [0, 0]
DstBlock "Subsystem5"
DstPort 1
}
Line {
SrcBlock "Switch"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Subsystem28"
Ports [0, 3]
Position [50, 77, 145, 203]
ForegroundColor "blue"
FontSize 20
FontWeight "bold"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskDisplay "disp('32 users')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Subsystem28"
Location [11, 84, 1279, 968]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Sum
Name "Add"
Ports [32, 1]
Position [62, 700, 378, 725]
Orientation "down"
Inputs "++++++++++++++++++++++++++++++++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType MultiPortSwitch
Name "Multiport\nSwitch"
Ports [33, 1]
Position [838, 750, 1182, 775]
Orientation "down"
ForegroundColor "red"
Inputs "32"
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType MultiPortSwitch
Name "Multiport\nSwitch2"
Ports [33, 1]
Position [456, 730, 804, 760]
Orientation "down"
ForegroundColor "blue"
NamePlacement "alternate"
Inputs "32"
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [0, 3]
Position [657, 210, 743, 260]
Orientation "down"
ForegroundColor "magenta"
BackgroundColor "lightBlue"
NamePlacement "alternate"
FontName "Californian FB"
FontWeight "bold"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskDisplay "disp('user no. 13')\n"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Subsystem"
Location [-8, 82, 734, 240]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Reference
Name "Bernoulli Binary\nGenerator1"
Ports [0, 1]
Position [25, 28, 105, 72]
FontWeight "bold"
SourceBlock "commrandsrc2/Bernoulli Binary\nGenerato"
"r"
SourceType "Bernoulli Binary Generator"
ShowPortLabels "on"
P "0.5"
seed "311"
Ts "sampletime/44"
frameBased "on"
sampPerFrame "44"
orient "off"
outDataType "double"
}
Block {
BlockType SubSystem
Name "Subsystem10"
Ports [1, 1]
Position [270, 28, 345, 72]
BackgroundColor "magenta"
FontWeight "bold"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskDisplay "disp('mod \\n\\nnorm')\n"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Subsystem10"
Location [287, 82, 625, 219]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [15, 43, 45, 57]
IconDisplay "Port number"
}
Block {
BlockType Gain
Name "Gain"
Position [195, 35, 225, 65]
Gain "1/sqrt(2)"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "QPSK\nModulator\nBaseband"
Ports [1, 1]
Position [80, 26, 155, 74]
SourceBlock "commdigbbndpm2/QPSK\nModulator\nBas"
"eband"
SourceType "QPSK Modulator Baseband"
ShowPortLabels "on"
InType "Bit"
Enc "Gray"
Ph "0"
numSamp "1"
}
Block {
BlockType Outport
Name "Out1"
Position [290, 43, 320, 57]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "QPSK\nModulator\nBaseband"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
Points [0, 0]
DstBlock "QPSK\nModulator\nBaseband"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Subsystem11"
Ports [1, 2]
Position [395, 29, 460, 71]
BackgroundColor "lightBlue"
FontWeight "bold"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
MaskDisplay "disp('spread \\n\\nhadamard')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Subsystem11"
Location [27, 673, 830, 895]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [45, 48, 75, 62]
IconDisplay "Port number"
}
Block {
BlockType Reference
Name "Frame Status\nConversion3"
Ports [1, 1]
Position [375, 67, 420, 103]
SourceBlock "dspobslib/Frame Status\nConversion"
SourceType "Frame Status Conversion"
ShowPortLabels "off"
growRefPort "off"
outframe "Frame-based"
}
Block {
BlockType Gain
Name "Gain"
Position [240, 165, 270, 195]
Gain "1/32"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "Hadamard\nCode Generator1"
Ports [0, 1]
Position [25, 83, 110, 127]
SourceBlock "commseqgen2/Hadamard\nCode Generato"
"r"
SourceType "Hadamard Code Generator"
ShowPortLabels "on"
length "32"
index "13"
ts "sampletime/32"
frameBased "on"
sampPerFrame "32"
outDataType "double"
}
Block {
BlockType Math
Name "Math\nFunction"
Ports [1, 1]
Position [170, 90, 200, 120]
Operator "transpose"
}
Block {
BlockType Math
Name "Math\nFunction1"
Ports [1, 1]
Position [505, 70, 535, 100]
Operator "transpose"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [265, 25, 310, 140]
Multiplication "Matrix(*)"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "Out1"
Position [720, 78, 750, 92]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Out2"
Position [415, 173, 445, 187]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Hadamard\nCode Generator1"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
D
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -