📄 psk_spectra_v7.mdl
字号:
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType RandomNumber
Mean "0"
Variance "1"
Seed "0"
SampleTime "-1"
VectorParams1D on
}
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 Signum
ZeroCross on
SampleTime "-1"
}
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"
}
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_spectra_v7"
Location [531, 195, 1255, 756]
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 [180, 193, 260, 237]
SourceBlock "commchan/AWGN\nchannel"
SourceType "AWGN Channel"
ShowPortLabels on
seed "123456"
noiseMode "Signal to noise ratio (Es/No)"
EsNodB "50"
SNRdB "10"
Ps "0.1239"
Tsym "1/63"
variance "1"
FrameBased off
nChans "1"
}
Block {
BlockType Abs
Name "Abs"
Position [180, 325, 210, 355]
}
Block {
BlockType Reference
Name "Analog\nFilter Design"
Ports [1, 1]
Position [350, 312, 415, 368]
FontSize 10
SourceBlock "dsparch4/Analog\nFilter Design"
SourceType "Analog Filter Design"
method "Butterworth"
filttype "Bandpass"
N "4"
Wlo "(63*2-5)*2*pi"
Whi "(63*2+5)*2*pi"
Rp "2"
Rs "40"
}
Block {
BlockType Reference
Name "DSB-SC AM\npassband"
Ports [1, 1]
Position [575, 23, 655, 67]
SourceBlock "commanapbnd/DSB-SC AM\npassband"
SourceType "Passband DSB-SC AM"
ShowPortLabels on
MaskParam1 "63"
MaskParam2 "0"
MaskParam3 "1/16/63"
}
Block {
BlockType Reference
Name "DSB-SC AM\npassband1"
Ports [1, 1]
Position [350, 193, 430, 237]
SourceBlock "commanapbnd/DSB-SC AM\npassband"
SourceType "Passband DSB-SC AM"
ShowPortLabels on
MaskParam1 "63"
MaskParam2 "0"
MaskParam3 "1/16/63"
}
Block {
BlockType Gain
Name "Gain"
Position [250, 30, 280, 60]
}
Block {
BlockType RandomNumber
Name "Random\nNumber"
Position [110, 30, 140, 60]
Seed "87594"
SampleTime "1/63"
}
Block {
BlockType SubSystem
Name "Rx spectrum"
Ports [1]
Position [265, 400, 320, 450]
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 "-80"
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 SubSystem
Name "Rx spectrum1"
Ports [1]
Position [445, 315, 500, 365]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Rx spectrum1"
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 "-80"
YMax "15"
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 [555, 84, 585, 116]
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 Scope
Name "Scope3"
Ports [1]
Position [460, 419, 490, 451]
Location [55, 426, 379, 665]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "-1"
YMax "1"
DataFormat "StructureWithTime"
LimitDataPoints off
MaxDataPoints "16000"
}
Block {
BlockType Signum
Name "Sign"
Position [185, 30, 215, 60]
}
Block {
BlockType Reference
Name "Signal To\nWorkspace"
Ports [1]
Position [635, 198, 690, 232]
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 SubSystem
Name "Tx spectrum"
Ports [1]
Position [410, 90, 465, 140]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Tx 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]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -