📄 ofdm_gito.mdl
字号:
Multiplication "Element-wise(K.*u)"
ParameterDataTypeMode "Same as input"
ParameterDataType "sfix(16)"
ParameterScalingMode "Best Precision: Matrix-wise"
ParameterScaling "2^0"
OutDataTypeMode "Same as input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Goto
IconDisplay "Tag"
}
Block {
BlockType Ground
}
Block {
BlockType Inport
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
Interpolate on
}
Block {
BlockType Math
Operator "exp"
OutputSignalType "auto"
SampleTime "-1"
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
}
Block {
BlockType "M-S-Function"
MFile "mlfile"
}
Block {
BlockType Outport
Port "1"
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Product
Inputs "2"
Multiplication "Element-wise(.*)"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Zero"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType RelationalOperator
Operator ">="
InputSameDT on
LogicOutDataTypeMode "Logical (see Configuration Parameters: Optimiza"
"tion)"
LogicDataType "uint(8)"
ZeroCross on
SampleTime "-1"
}
Block {
BlockType Rounding
Operator "floor"
SampleTime "-1"
}
Block {
BlockType Scope
Floating off
ModelBased off
TickLabels "OneTimeTick"
ZoomMode "on"
Grid "on"
TimeRange "auto"
YMin "-5"
YMax "5"
SaveToWorkspace off
SaveName "ScopeData"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Selector
InputType "Vector"
IndexMode "One-based"
ElementSrc "Internal"
Elements "1"
RowSrc "Internal"
Rows "1"
ColumnSrc "Internal"
Columns "1"
InputPortWidth "-1"
IndexIsStartValue off
OutputPortSize "1"
}
Block {
BlockType "S-Function"
FunctionName "system"
PortCounts "[]"
SFunctionModules "''"
}
Block {
BlockType Step
Time "1"
Before "0"
After "1"
SampleTime "-1"
VectorParams1D on
ZeroCross on
}
Block {
BlockType SubSystem
ShowPortLabels on
Permissions "ReadWrite"
PermitHierarchicalResolution "All"
SystemSampleTime "-1"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType Sum
IconShape "rectangular"
Inputs "++"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Terminator
}
Block {
BlockType TriggerPort
TriggerType "rising"
StatesWhenEnabling "inherit"
ShowOutputPort off
OutputDataType "auto"
SampleTimeType "triggered"
SampleTime "1"
ZeroCross on
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "ofdm_gito"
Location [2, 70, 1006, 704]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
BlocksetDataString "[0 -9.81 0]|1|0|1e-3|1|1e-3|1|2|1e-4|1e-4|0|0|1|1"
"e-5|Deprecated|0|0|0||1|0"
Block {
BlockType Reference
Name "AWGN\nChannel1"
Ports [1, 1]
Position [905, 310, 985, 350]
Orientation "down"
NamePlacement "alternate"
ShowName off
SourceBlock "commchan2/AWGN\nChannel"
SourceType "AWGN Channel"
ShowPortLabels on
seed "32965"
noiseMode "Signal to noise ratio (Es/No)"
EbNodB "10"
EsNodB "28"
SNRdB "0"
bitsPerSym "1"
Ps "30/(5.5e5*11/15*2.4)*1.08"
Tsym "80e-6"
variance "1"
}
Block {
BlockType Reference
Name "Bernoulli Random\nBinary Generator"
Ports [0, 1]
Position [15, 193, 95, 237]
ShowName off
SourceBlock "commrandsrc2/Bernoulli Binary\nGenerator"
SourceType "Bernoulli Binary Generator"
ShowPortLabels on
P "[0.5]"
seed "9364248"
Ts "16e-6/44/2"
frameBased on
sampPerFrame "44"
orient off
}
Block {
BlockType SubSystem
Name "Constellation"
Ports [2]
Position [565, 562, 635, 638]
ShowName off
OpenFcn "temp=get_param(gcb,'On');set_param(gcb,'On', ge"
"t_param(gcb,'Off'));set_param(gcb,'Off', temp);"
TreatAsAtomicUnit on
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "Instrumentation: Power Spectrum"
MaskPromptString "On|Off"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskToolTipString "on,on"
MaskVarAliasString ","
MaskVariables "On=&1;Off=&2;"
MaskInitialization "if strcmp(On,'on')\n [picture, map]=imread('sw"
"itch_on.jpg');\n sdspfscope2([],[],[],'ScopeUpdate',[bdroot '/Constellation/"
"Before Channel Estimation'],'OpenFig');\n sdspfscope2([],[],[],'ScopeUpdate'"
",[bdroot '/Constellation/After Channel Estimation'],'OpenFig');\n set_param("
"[bdroot '/Constellation/Before Channel Estimation'],'OpenScopeAtSimStart','on"
"');\n set_param([bdroot '/Constellation/After Channel Estimation'],'OpenScop"
"eAtSimStart','on');\n \nelse\n [picture, map]=imread('switch_off.jpg');\n "
"set_param([bdroot '/Constellation/Before Channel Estimation'],'OpenScopeAtSim"
"Start','off');\n set_param([bdroot '/Constellation/After Channel Estimation'"
"],'OpenScopeAtSimStart','off');\n sdspfscope2([],[],[],'ScopeUpdate',[bdroot"
" '/Constellation/Before Channel Estimation'],'CloseFig');\n sdspfscope2([],["
"],[],'ScopeUpdate',[bdroot '/Constellation/After Channel Estimation'],'CloseF"
"ig');\n \nend"
MaskDisplay "image(picture,'center')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "off|on"
MaskTabNameString ","
System {
Name "Constellation"
Location [148, 199, 402, 385]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [45, 33, 75, 47]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "In2"
Position [45, 123, 75, 137]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Reference
Name "After Channel Estimation"
Tag "ScatterPlot"
Ports [1]
Position [135, 105, 180, 155]
SourceBlock "commsink2/Discrete-Time\nScatter Plot\nScop"
"e"
SourceType "Discrete-Time Scatter Plot Scope"
ShowPortLabels on
sampPerSymb "1"
offsetEye "0"
numTraces "100"
numNewFrames "50"
LineMarkers "."
LineColors "b"
fading on
render off
AxisGrid on
xMin "-1.38590807368272"
xMax "1.18815068657491"
yMin "-1.28146244316"
yMax "1.29259631709763"
inphaseLabel "In-phase Amplitude"
quadratureLabel "Quadrature Amplitude"
openScopeAtSimStart off
FrameNumber off
FigPos "[443 257 328 328]"
figTitle "Scatter Plot"
numLinesMax "50"
block_type_ "scatter"
}
Block {
BlockType Reference
Name "Before Channel Estimation"
Tag "ScatterPlot"
Ports [1]
Position [135, 15, 180, 65]
SourceBlock "commsink2/Discrete-Time\nScatter Plot\nScop"
"e"
SourceType "Discrete-Time Scatter Plot Scope"
ShowPortLabels on
sampPerSymb "1"
offsetEye "0"
numTraces "100"
numNewFrames "50"
LineMarkers "."
LineColors "[1 0 0]"
fading on
render off
AxisGrid on
xMin "-3.00315520547955"
xMax "2.96563413273983"
yMin "-2.96784165209088"
yMax "3.00094768612849"
inphaseLabel "In-phase Amplitude"
quadratureLabel "Quadrature Amplitude"
openScopeAtSimStart off
FrameNumber off
FigPos "[114 264 320 320]"
figTitle "Scatter Plot"
numLinesMax "50"
block_type_ "scatter"
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Before Channel Estimation"
DstPort 1
}
Line {
SrcBlock "In2"
SrcPort 1
DstBlock "After Channel Estimation"
DstPort 1
}
}
}
Block {
BlockType DigitalClock
Name "Digital Clock"
Position [695, 577, 755, 593]
ShowName off
SampleTime "8e-5"
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [210, 288, 295, 352]
ShowName off
Decimation "1"
}
Block {
BlockType Display
Name "Display1"
Ports [1]
Position [545, 287, 630, 353]
ShowName off
Decimation "1"
}
Block {
BlockType Display
Name "Display2"
Ports [1]
Position [780, 573, 855, 597]
ShowName off
FontSize 9
Decimation "1"
}
Block {
BlockType From
Name "From"
Position [45, 572, 95, 588]
ShowName off
DialogController "Simulink.DDGSource"
CloseFcn "tagdialog Close"
GotoTag "real_tx"
}
Block {
BlockType From
Name "From1"
Position [45, 588, 95, 602]
ShowName off
DialogController "Simulink.DDGSource"
CloseFcn "tagdialog Close"
GotoTag "im_tx"
}
Block {
BlockType From
Name "From2"
Position [215, 570, 325, 590]
ShowName off
DialogController "Simulink.DDGSource"
CloseFcn "tagdialog Close"
GotoTag "spektrum_kirim"
}
Block {
BlockType From
Name "From3"
Position [215, 611, 325, 629]
ShowName off
DialogController "Simulink.DDGSource"
CloseFcn "tagdialog Close"
GotoTag "spektrum_terima"
}
Block {
BlockType From
Name "From4"
Position [445, 570, 535, 590]
ShowName off
DialogController "Simulink.DDGSource"
CloseFcn "tagdialog Close"
GotoTag "konstelasi_sbl"
}
Block {
BlockType From
Name "From5"
Position [445, 610, 535, 630]
ShowName off
DialogController "Simulink.DDGSource"
CloseFcn "tagdialog Close"
GotoTag "konstelasi_stl"
}
Block {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -