📄 psk.mdl
字号:
}
Block {
BlockType RelationalOperator
Operator ">="
InputSameDT on
LogicOutDataTypeMode "Logical (see Configuration Parameters: Optimiza"
"tion)"
LogicDataType "uint(8)"
ZeroCross on
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 "S-Function"
FunctionName "system"
PortCounts "[]"
SFunctionModules "''"
}
Block {
BlockType Sin
SineType "Time based"
TimeSource "Use simulation time"
Amplitude "1"
Bias "0"
Frequency "1"
Phase "0"
Samples "10"
Offset "0"
SampleTime "-1"
VectorParams1D on
}
Block {
BlockType StateSpace
A "1"
B "1"
C "1"
D "1"
X0 "0"
AbsoluteTolerance "auto"
Realization "auto"
}
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"
}
}
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 "psk"
Location [11, 82, 1006, 726]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "97"
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name "Analog\nFilter Design"
Ports [1, 1]
Position [665, 287, 730, 343]
SourceBlock "dsparch4/Analog\nFilter Design"
SourceType "Analog Filter Design"
method "Butterworth"
filttype "Lowpass"
N "4"
Wlo "4*pi"
Whi "80"
Rp "2"
Rs "40"
}
Block {
BlockType Reference
Name "Analog\nFilter Design1"
Ports [1, 1]
Position [495, 262, 560, 318]
SourceBlock "dsparch4/Analog\nFilter Design"
SourceType "Analog Filter Design"
method "Butterworth"
filttype "Bandpass"
N "4"
Wlo "4*pi"
Whi "12*pi"
Rp "2"
Rs "40"
}
Block {
BlockType Reference
Name "Analog\nFilter Design2"
Ports [1, 1]
Position [495, 367, 560, 423]
SourceBlock "dsparch4/Analog\nFilter Design"
SourceType "Analog Filter Design"
method "Butterworth"
filttype "Bandpass"
N "4"
Wlo "4*pi"
Whi "12*pi"
Rp "2"
Rs "40"
}
Block {
BlockType Reference
Name "Analog\nFilter Design3"
Ports [1, 1]
Position [660, 392, 725, 448]
SourceBlock "dsparch4/Analog\nFilter Design"
SourceType "Analog Filter Design"
method "Butterworth"
filttype "Lowpass"
N "4"
Wlo "4*pi"
Whi "80"
Rp "2"
Rs "40"
}
Block {
BlockType Reference
Name "Analog\nFilter Design4"
Ports [1, 1]
Position [490, 492, 555, 548]
SourceBlock "dsparch4/Analog\nFilter Design"
SourceType "Analog Filter Design"
method "Butterworth"
filttype "Bandpass"
N "4"
Wlo "4*pi"
Whi "12*pi"
Rp "2"
Rs "40"
}
Block {
BlockType Reference
Name "Analog\nFilter Design5"
Ports [1, 1]
Position [660, 517, 725, 573]
SourceBlock "dsparch4/Analog\nFilter Design"
SourceType "Analog Filter Design"
method "Butterworth"
filttype "Lowpass"
N "4"
Wlo "4*pi"
Whi "80"
Rp "2"
Rs "40"
}
Block {
BlockType Reference
Name "Analog\nFilter Design6"
Ports [1, 1]
Position [665, 182, 730, 238]
SourceBlock "dsparch4/Analog\nFilter Design"
SourceType "Analog Filter Design"
method "Butterworth"
filttype "Lowpass"
N "4"
Wlo "4*pi"
Whi "80"
Rp "2"
Rs "40"
}
Block {
BlockType Reference
Name "Analog\nFilter Design7"
Ports [1, 1]
Position [490, 157, 555, 213]
SourceBlock "dsparch4/Analog\nFilter Design"
SourceType "Analog Filter Design"
method "Butterworth"
filttype "Bandpass"
N "4"
Wlo "4*pi"
Whi "12*pi"
Rp "2"
Rs "40"
}
Block {
BlockType Reference
Name "Bernoulli Binary\nGenerator"
Ports [0, 1]
Position [80, 113, 160, 157]
FontName "Arial"
SourceBlock "commrandsrc2/Bernoulli Binary\nGenerator"
SourceType "Bernoulli Binary Generator"
ShowPortLabels on
P "0.5"
seed "61"
Ts "0.5"
frameBased off
sampPerFrame "1"
orient off
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [935, 647, 1025, 733]
Decimation "1"
}
Block {
BlockType Display
Name "Display1"
Ports [1]
Position [935, 742, 1025, 828]
Decimation "1"
}
Block {
BlockType Display
Name "Display2"
Ports [1]
Position [940, 842, 1030, 928]
Decimation "1"
}
Block {
BlockType Display
Name "Display3"
Ports [1]
Position [940, 947, 1030, 1033]
Decimation "1"
}
Block {
BlockType Reference
Name "Error Rate\nCalculation"
Ports [2, 1]
Position [840, 637, 915, 688]
SourceBlock "commsink2/Error Rate\nCalculation"
SourceType "Error Rate Calculation"
N "1"
st_delay "0"
cp_mode "Entire frame"
subframe "[]"
PMode "Port"
WsName "ErrorVec"
RsMode2 off
stop off
numErr "100"
maxBits "1e6"
}
Block {
BlockType Reference
Name "Error Rate\nCalculation1"
Ports [2, 1]
Position [845, 757, 920, 808]
SourceBlock "commsink2/Error Rate\nCalculation"
SourceType "Error Rate Calculation"
N "1"
st_delay "0"
cp_mode "Entire frame"
subframe "[]"
PMode "Port"
WsName "ErrorVec"
RsMode2 off
stop off
numErr "100"
maxBits "1e6"
}
Block {
BlockType Reference
Name "Error Rate\nCalculation2"
Ports [2, 1]
Position [850, 857, 925, 908]
SourceBlock "commsink2/Error Rate\nCalculation"
SourceType "Error Rate Calculation"
N "1"
st_delay "0"
cp_mode "Entire frame"
subframe "[]"
PMode "Port"
WsName "ErrorVec"
RsMode2 off
stop off
numErr "100"
maxBits "1e6"
}
Block {
BlockType Reference
Name "Error Rate\nCalculation3"
Ports [2, 1]
Position [850, 962, 925, 1013]
SourceBlock "commsink2/Error Rate\nCalculation"
SourceType "Error Rate Calculation"
N "1"
st_delay "0"
cp_mode "Entire frame"
subframe "[]"
PMode "Port"
WsName "ErrorVec"
RsMode2 off
stop off
numErr "100"
maxBits "1e6"
}
Block {
BlockType Reference
Name "Gaussian Noise\nGenerator"
Ports [0, 1]
Position [310, 293, 390, 337]
FontName "Arial"
SourceBlock "commnoisgen2/Gaussian Noise\nGenerator"
SourceType "Gaussian Noise Generator"
ShowPortLabels on
m "0.1"
d "0.1"
s "41"
Ts "1"
frameBased off
sampPerFrame "1"
orient off
}
Block {
BlockType Reference
Name "Power Spectral\nDensity"
Ports [1]
Position [480, 40, 510, 70]
SourceBlock "simulink_extras/Additional\nSinks/Power Spectra"
"l\nDensity"
SourceType "Power Spectral Density"
ShowPortLabels on
npts "128"
fftpts "512"
HowOften "64"
sampleT "0.1"
}
Block {
BlockType Reference
Name "Power Spectral\nDensity1"
Ports [1]
Position [205, 35, 235, 65]
SourceBlock "simulink_extras/Additional\nSinks/Power Spectra"
"l\nDensity"
SourceType "Power Spectral Density"
ShowPortLabels on
npts "128"
fftpts "512"
HowOften "64"
sampleT "0.1"
}
Block {
BlockType Reference
Name "Power Spectral\nDensity2"
Ports [1]
Position [865, 40, 895, 70]
SourceBlock "simulink_extras/Additional\nSinks/Power Spectra"
"l\nDensity"
SourceType "Power Spectral Density"
ShowPortLabels on
npts "128"
fftpts "512"
HowOften "64"
sampleT "0.1"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [350, 100, 400, 235]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [585, 268, 640, 357]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [585, 373, 640, 462]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product3"
Ports [2, 1]
Position [585, 498, 640, 587]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product4"
Ports [2, 1]
Position [590, 163, 645, 252]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "Rayleigh Noise\nGenerator"
Ports [0, 1]
Position [310, 398, 390, 442]
FontName "Arial"
SourceBlock "commnoisgen2/Rayleigh Noise\nGenerator"
SourceType "Rayleigh Noise Generator"
ShowPortLabels on
alpha "0.1"
seed "47"
Ts "1"
frameBased off
sampPerFrame "1"
orient off
}
Block {
BlockType Reference
Name "Rician Noise\nGenerator"
Ports [0, 1]
Position [315, 523, 395, 567]
FontName "Arial"
SourceBlock "commnoisgen2/Rician Noise\nGenerator"
SourceType "Rician Noise Generator"
ShowPortLabels on
specMethod "K-factor"
iMean "sqrt(2)"
qMean "sqrt(2)"
K "2"
s "0.1"
seed "59"
Ts "1"
frameBased off
sampPerFrame "1"
orient off
}
Block {
BlockType Reference
Name "Sampled\nQuantizer Encode"
Ports [1, 3]
Position [750, 293, 830, 337]
SourceBlock "cbobsv2p5/Sampled\nQuantizer Encode"
SourceType "Sampled Quantizer Encode"
ShowPortLabels on
partition "[0]"
codebook "[0 1]"
n "1"
sample_time "0.5"
}
Block {
BlockType Reference
Name "Sampled\nQuantizer Encode1"
Ports [1, 3]
Position [755, 398, 835, 442]
SourceBlock "cbobsv2p5/Sampled\nQuantizer Encode"
SourceType "Sampled Quantizer Encode"
ShowPortLabels on
partition "[0]"
codebook "[0 1]"
n "1"
sample_time "0.5"
}
Block {
BlockType Reference
Name "Sampled\nQuantizer Encode2"
Ports [1, 3]
Position [740, 523, 820, 567]
SourceBlock "cbobsv2p5/Sampled\nQuantizer Encode"
SourceType "Sampled Quantizer Encode"
ShowPortLabels on
partition "[0]"
codebook "[0 1]"
n "1"
sample_time "0.5"
}
Block {
BlockType Reference
Name "Sampled\nQuantizer Encode3"
Ports [1, 3]
Position [750, 188, 830, 232]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -