📄 xy506_ses6and7.mdl
字号:
BlockType "M-S-Function"
MFile "mlfile"
}
Block {
BlockType Mux
Inputs "4"
DisplayOption "none"
BusObject "BusObject"
NonVirtualBus off
}
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 Reference
}
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 "S-Function"
FunctionName "system"
SFunctionModules "''"
PortCounts "[]"
}
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 ToWorkspace
VariableName "simulink_output"
MaxDataPoints "1000"
Decimation "1"
SampleTime "0"
FixptAsFi off
}
Block {
BlockType UnitDelay
X0 "0"
SampleTime "1"
StateMustResolveToSignalObject off
RTWStateStorageClass "Auto"
}
}
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 "Ses6and7"
Location [17, 106, 1285, 764]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name "AWGN\nChannel"
Ports [1, 1]
Position [585, 294, 665, 336]
SourceBlock "commchan2/AWGN\nChannel"
SourceType "AWGN Channel"
ShowPortLabels on
seed "67"
noiseMode "Variance from mask"
EbNodB "EbNo"
EsNodB "7.44"
SNRdB "7.44"
bitsPerSym "log2(M)"
Ps "2"
Tsym "1"
variance "stddev*stddev"
}
Block {
BlockType Reference
Name "Bit Error Rate\nCalculation"
Ports [2, 1]
Position [1025, 20, 1100, 75]
SourceBlock "commsink2/Error Rate\nCalculation"
SourceType "Error Rate Calculation"
N "8*log2(M)"
st_delay "0"
cp_mode "Entire frame"
subframe "[1:1:M]"
PMode "Port"
WsName "ErrorVec"
RsMode2 off
stop off
numErr "100"
maxBits "1e6"
}
Block {
BlockType Display
Name "Bit Error Ratio\nNumber of Bits in Error\nNumbe"
"r of Bits Received"
Ports [1]
Position [1130, 13, 1230, 87]
Decimation "1"
}
Block {
BlockType SubSystem
Name "Channel"
Ports [1, 1]
Position [465, 294, 565, 336]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Channel"
Location [329, 88, 1126, 335]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [50, 28, 80, 42]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Constant
Name "Constant"
Position [220, 145, 265, 175]
Value "chan(2)"
VectorParams1D off
}
Block {
BlockType Constant
Name "Constant1"
Position [440, 135, 485, 165]
Value "chan(3)"
VectorParams1D off
}
Block {
BlockType Reference
Name "Integer Delay"
Ports [1, 1]
Position [235, 68, 270, 102]
SourceBlock "simulink/Discrete/Integer Delay"
SourceType "Integer Delay"
vinit "0.0"
samptime "1/81920"
NumDelays "10"
}
Block {
BlockType Reference
Name "Integer Delay1"
Ports [1, 1]
Position [455, 68, 490, 102]
SourceBlock "simulink/Discrete/Integer Delay"
SourceType "Integer Delay"
vinit "0.0"
samptime "1/81920"
NumDelays "10"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [565, 102, 595, 133]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [335, 112, 365, 143]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum"
Ports [3, 1]
Position [655, 168, 700, 212]
ShowName off
Inputs "+++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "Out1"
Position [735, 183, 765, 197]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "In1"
SrcPort 1
Points [100, 0; 0, 50]
Branch {
Points [0, 120]
DstBlock "Sum"
DstPort 3
}
Branch {
DstBlock "Integer Delay"
DstPort 1
}
}
Line {
SrcBlock "Integer Delay"
SrcPort 1
Points [0, 0; 35, 0]
Branch {
DstBlock "Integer Delay1"
DstPort 1
}
Branch {
Points [0, 35]
DstBlock "Product1"
DstPort 1
}
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [45, 0; 0, -25]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Integer Delay1"
SrcPort 1
Points [35, 0; 0, 25]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [35, 0; 0, 60]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [50, 0]
DstBlock "Product1"
DstPort 2
}
Line {
SrcBlock "Product"
SrcPort 1
Points [20, 0; 0, 55]
DstBlock "Sum"
DstPort 1
}
}
}
Block {
BlockType Scope
Name "Channel Graph"
Ports [1]
Position [700, 408, 730, 442]
NamePlacement "alternate"
Location [8, 389, 1272, 642]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "-2"
YMax "2"
SaveName "ScopeData2"
DataFormat "StructureWithTime"
MaxDataPoints "1000"
SampleTime "1"
}
Block {
BlockType ComplexToRealImag
Name "Complex to\nReal-Imag - SRC"
Ports [1, 2]
Position [475, 514, 520, 561]
Output "Real and imag"
}
Block {
BlockType ComplexToRealImag
Name "Complex to\nReal-Imag2 - EQ"
Ports [1, 2]
Position [825, 519, 870, 566]
Output "Real and imag"
}
Block {
BlockType ComplexToRealImag
Name "Complex to\nReal-Imag3 - CH"
Ports [1, 2]
Position [595, 399, 640, 446]
Output "Real and imag"
}
Block {
BlockType Reference
Name "Discrete-Time\nScatter Plot\nScope"
Tag "ScatterPlot"
Ports [1]
Position [905, 394, 980, 446]
Diagnostics "AllowInheritedTsInSrc"
SourceBlock "commsink2/Discrete-Time\nScatter Plot\nScope"
SourceType "Discrete-Time Scatter Plot Scope"
ShowPortLabels on
sampPerSymb "1"
offsetEye "0"
numTraces "1000"
numNewFrames "10"
LineMarkers "."
LineColors "b"
fading on
render on
AxisGrid on
xMin "-1.5"
xMax "1.5"
yMin "-1.5"
yMax "1.5"
inphaseLabel "In-phase Amplitude"
quadratureLabel "Quadrature Amplitude"
openScopeAtSimStart on
FrameNumber off
FigPos "[360 362 560 560]"
figTitle "Scatter Plot"
numLinesMax "8"
block_type_ "scatter"
}
Block {
BlockType SubSystem
Name "Equaliser"
Ports [1, 1]
Position [680, 294, 780, 336]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Equaliser"
Location [200, 227, 1121, 523]
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, 33, 60, 47]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Constant
Name "Constant"
Position [130, 145, 160, 175]
Value "eq(2)"
}
Block {
BlockType Constant
Name "Constant1"
Position [275, 145, 305, 175]
Value "eq(3)"
}
Block {
BlockType Constant
Name "Constant2"
Position [435, 150, 465, 180]
Value "eq(4)"
}
Block {
BlockType Constant
Name "Constant3"
Position [595, 150, 625, 180]
Value "eq(5)"
}
Block {
BlockType Reference
Name "Integer Delay"
Ports [1, 1]
Position [125, 73, 160, 107]
SourceBlock "simulink/Discrete/Integer Delay"
SourceType "Integer Delay"
vinit "0.0"
samptime "1/81920"
NumDelays "10"
}
Block {
BlockType Reference
Name "Integer Delay1"
Ports [1, 1]
Position [270, 73, 305, 107]
SourceBlock "simulink/Discrete/Integer Delay"
SourceType "Integer Delay"
vinit "0.0"
samptime "1/81920"
NumDelays "10"
}
Block {
BlockType Reference
Name "Integer Delay2"
Ports [1, 1]
Position [430, 73, 465, 107]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -