📄 psk_ber_v7.mdl
字号:
SampleTime "-1"
VectorParams1D on
}
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 Signum
ZeroCross on
SampleTime "-1"
}
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 ToWorkspace
VariableName "simulink_output"
MaxDataPoints "1000"
Decimation "1"
SampleTime "0"
FixptAsFi off
}
Block {
BlockType UnitDelay
X0 "0"
SampleTime "1"
StateMustResolveToSignalObject off
RTWStateStorageClass "Auto"
}
Block {
BlockType ZeroOrderHold
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_ber_v7"
Location [92, 92, 816, 653]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name "AWGN\nchannel"
Ports [1, 1]
Position [165, 408, 245, 452]
SourceBlock "commchan/AWGN\nchannel"
SourceType "AWGN Channel"
ShowPortLabels on
seed "123456"
noiseMode "Signal to noise ratio (Es/No)"
EsNodB "2"
SNRdB "10"
Ps ".5/6"
Tsym "1/63"
variance "1"
FrameBased off
nChans "1"
}
Block {
BlockType Reference
Name "DSB-SC AM\npassband"
Ports [1, 1]
Position [90, 248, 170, 292]
SourceBlock "commanapbnd/DSB-SC AM\npassband"
SourceType "Passband DSB-SC AM"
ShowPortLabels on
MaskParam1 "63*2"
MaskParam2 "0"
MaskParam3 "1/16/63"
}
Block {
BlockType Reference
Name "DSB-SC AM\npassband1"
Ports [1, 1]
Position [405, 248, 485, 292]
SourceBlock "commanapbnd/DSB-SC AM\npassband"
SourceType "Passband DSB-SC AM"
ShowPortLabels on
MaskParam1 "63*2"
MaskParam2 "0"
MaskParam3 "1/16/63"
}
Block {
BlockType Gain
Name "Gain"
Position [380, 30, 410, 60]
}
Block {
BlockType RandomNumber
Name "Random\nNumber"
Position [225, 30, 255, 60]
Seed "87594"
SampleTime "1/63"
}
Block {
BlockType SubSystem
Name "Rx spectrum"
Ports [1]
Position [310, 485, 365, 535]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Rx spectrum"
Location [583, 189, 1064, 303]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Input"
Position [30, 38, 60, 52]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Reference
Name "Buffer"
Ports [1, 1]
Position [170, 20, 220, 70]
SourceBlock "dspbuff3/Buffer"
SourceType "Buffer"
N "1024"
V "0"
ic "0"
}
Block {
BlockType Reference
Name "Freaquecy Farme Scope"
Ports [1]
Position [380, 20, 415, 70]
SourceBlock "dspsnks4/Vector\nScope"
SourceType "Vector Scope"
ScopeProperties on
Domain "Frequency"
HorizSpan "1"
DisplayProperties off
AxisGrid on
Memory off
FrameNumber on
AxisLegend off
AxisZoom off
OpenScopeAtSimStart on
OpenScopeImmediately off
FigPos "get(0,'defaultfigureposition')"
AxisProperties off
XUnits "Hertz"
XRange "[0...Fs/2]"
InheritXIncr on
XIncr "1"
XLabel "Time"
YUnits "dB"
YMin "-60"
YMax "30"
YLabel "Magnitude, dB"
LineProperties off
ShowPortLabels off
}
Block {
BlockType Reference
Name "Periodogram"
Ports [1, 1]
Position [255, 19, 335, 71]
SourceBlock "dspspect3/Periodogram"
SourceType "Periodogram"
ShowPortLabels on
wintype "Hamming"
Rs "50"
beta "5"
winsamp "Symmetric"
inheritFFT off
fftsize "1024"
navg "200"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold"
Position [95, 26, 130, 64]
SampleTime "1/16/63"
}
Line {
SrcBlock "Buffer"
SrcPort 1
DstBlock "Periodogram"
DstPort 1
}
Line {
SrcBlock "Periodogram"
SrcPort 1
DstBlock "Freaquecy Farme Scope"
DstPort 1
}
Line {
SrcBlock "Zero-Order\nHold"
SrcPort 1
DstBlock "Buffer"
DstPort 1
}
Line {
SrcBlock "Input"
SrcPort 1
DstBlock "Zero-Order\nHold"
DstPort 1
}
}
}
Block {
BlockType Scope
Name "Scope2"
Ports [1]
Position [430, 184, 460, 216]
Location [55, 426, 379, 665]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "-1"
YMax "2"
DataFormat "StructureWithTime"
LimitDataPoints off
MaxDataPoints "16000"
}
Block {
BlockType Signum
Name "Sign"
Position [300, 30, 330, 60]
}
Block {
BlockType Reference
Name "Signal To\nWorkspace"
Ports [1]
Position [430, 413, 485, 447]
FontName "Arial"
SourceBlock "dspsnks4/Signal To\nWorkspace"
SourceType "Signal To Workspace"
ShowPortLabels on
VariableName "Rxout"
MaxDataPoints "160000"
Decimation "1"
FrameMode "Concatenate frames (2-D array)"
FixptAsFi off
}
Block {
BlockType Reference
Name "Signal To\nWorkspace1"
Ports [1]
Position [370, 88, 425, 122]
FontName "Arial"
SourceBlock "dspsnks4/Signal To\nWorkspace"
SourceType "Signal To Workspace"
ShowPortLabels on
VariableName "Txout"
MaxDataPoints "160000"
Decimation "1"
FrameMode "Concatenate frames (2-D array)"
FixptAsFi off
}
Block {
BlockType Reference
Name "Signal To\nWorkspace2"
Ports [1]
Position [275, 188, 330, 222]
FontName "Arial"
SourceBlock "dspsnks4/Signal To\nWorkspace"
SourceType "Signal To Workspace"
ShowPortLabels on
VariableName "IFout"
MaxDataPoints "160000"
Decimation "1"
FrameMode "Concatenate frames (2-D array)"
FixptAsFi off
}
Block {
BlockType Reference
Name "Upsample"
Ports [1, 1]
Position [525, 28, 560, 62]
SourceBlock "dspsigops/Upsample"
SourceType "Upsample"
N "16"
phase "0"
ic "0"
mode "Maintain input frame size"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold"
Position [425, 26, 460, 64]
SampleTime "1/63"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold1"
Position [200, 251, 235, 289]
SampleTime "1/16/63"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold2"
Position [320, 251, 355, 289]
SampleTime "1/16/63"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold3"
Position [530, 251, 565, 289]
SampleTime "1/16/63"
}
Block {
BlockType SubSystem
Name "srrcFiltermf"
Ports [1, 1]
Position [305, 410, 380, 450]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "srrcFiltermf"
Location [320, 85, 820, 386]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Input"
Position [20, 80, 50, 100]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType UnitDelay
Name "BodyDelayL10"
Position [72, 1645, 108, 1680]
Orientation "down"
ShowName off
SampleTime "-1"
}
Block {
BlockType UnitDelay
Name "BodyDelayL11"
Position [72, 1815, 108, 1850]
Orientation "down"
ShowName off
SampleTime "-1"
}
Block {
BlockType UnitDelay
Name "BodyDelayL12"
Position [72, 1985, 108, 2020]
Orientation "down"
ShowName off
SampleTime "-1"
}
Block {
BlockType UnitDelay
Name "BodyDelayL13"
Position [72, 2155, 108, 2190]
Orientation "down"
ShowName off
SampleTime "-1"
}
Block {
BlockType UnitDelay
Name "BodyDelayL14"
Position [72, 2325, 108, 2360]
Orientation "down"
ShowName off
SampleTime "-1"
}
Block {
BlockType UnitDelay
Name "BodyDelayL15"
Position [72, 2495, 108, 2530]
Orientation "down"
ShowName off
SampleTime "-1"
}
Block {
BlockType UnitDelay
Name "BodyDelayL16"
Position [72, 2665, 108, 2700]
Orientation "down"
ShowName off
SampleTime "-1"
}
Block {
BlockType UnitDelay
Name "BodyDelayL17"
Position [72, 2835, 108, 2870]
Orientation "down"
ShowName off
SampleTime "-1"
}
Block {
BlockType UnitDelay
Name "BodyDelayL18"
Position [72, 3005, 108, 3040]
Orientation "down"
ShowName off
SampleTime "-1"
}
Block {
BlockType UnitDelay
Name "BodyDelayL19"
Position [72, 3175, 108, 3210]
Orientation "down"
ShowName off
SampleTime "-1"
}
Block {
BlockType UnitDelay
Name "BodyDelayL2"
Position [72, 285, 108, 320]
Orientation "down"
ShowName off
SampleTime "-1"
}
Block {
BlockType UnitDelay
Name "BodyDelayL20"
Position [72, 3345, 108, 3380]
Orientation "down"
ShowName off
SampleTime "-1"
}
Block {
BlockType UnitDelay
Name "BodyDelayL21"
Position [72, 3515, 108, 3550]
Orientation "down"
ShowName off
SampleTime "-1"
}
Block {
BlockType UnitDelay
Name "BodyDelayL22"
Position [72, 3685, 108, 3720]
Orientation "down"
ShowName off
SampleTime "-1"
}
Block {
BlockType UnitDelay
Name "BodyDelayL23"
Position [72, 3855, 108, 3890]
Orientation "down"
ShowName off
SampleTime "-1"
}
Block {
BlockType UnitDelay
Name "BodyDelayL24"
Position [72, 4025, 108, 4060]
Orientation "down"
ShowName off
SampleTime "-1"
}
Block {
BlockType UnitDelay
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -