📄 qpsk_prototype_v7.mdl
字号:
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"
}
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 "qpsk_prototype_v7"
Location [137, 232, 861, 758]
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 [610, 68, 690, 112]
SourceBlock "commchan/AWGN\nchannel"
SourceType "AWGN Channel"
ShowPortLabels on
seed "123456"
noiseMode "Signal to noise ratio (Es/No)"
EsNodB "80"
SNRdB "10"
Ps "0.25"
Tsym "1/63"
variance "1"
FrameBased off
nChans "1"
}
Block {
BlockType Reference
Name "QADM\npassband"
Ports [1, 2]
Position [160, 278, 240, 322]
SourceBlock "commanapbnd/QADM\npassband"
SourceType "Passband DSB-SC QADM"
ShowPortLabels on
Fc "63"
num "1"
den "1"
Ph "0"
ts "1/16/63"
}
Block {
BlockType Reference
Name "QAM\npassband"
Ports [2, 1]
Position [435, 68, 515, 112]
SourceBlock "commanapbnd/QAM\npassband"
SourceType "Passband DSB-SC QAM"
ShowPortLabels on
Fc "63"
Ph "0"
ts "1/16/63"
}
Block {
BlockType SubSystem
Name "Rx spectrum1"
Ports [1]
Position [530, 430, 585, 480]
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 "20"
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 [75, 389, 105, 421]
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 [255, 74, 285, 106]
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 Reference
Name "Signal To\nWorkspace"
Ports [1]
Position [525, 243, 580, 277]
FontName "Arial"
SourceBlock "dspsnks4/Signal To\nWorkspace"
SourceType "Signal To Workspace"
ShowPortLabels on
VariableName "Rxiout"
MaxDataPoints "160000"
Decimation "1"
FrameMode "Concatenate frames (2-D array)"
FixptAsFi off
}
Block {
BlockType Reference
Name "Signal To\nWorkspace1"
Ports [1]
Position [525, 323, 580, 357]
FontName "Arial"
SourceBlock "dspsnks4/Signal To\nWorkspace"
SourceType "Signal To Workspace"
ShowPortLabels on
VariableName "Rxqout"
MaxDataPoints "160000"
Decimation "1"
FrameMode "Concatenate frames (2-D array)"
FixptAsFi off
}
Block {
BlockType SubSystem
Name "Tx spectrum"
Ports [1]
Position [645, 240, 700, 290]
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]
Position [380, 20, 415, 70]
DialogController "dspdialog.VectorScope"
DialogControllerArgs "DataTag0"
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 "-70"
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 Reference
Name "Upsample"
Ports [1, 1]
Position [225, 28, 260, 62]
SourceBlock "dspsigops/Upsample"
SourceType "Upsample"
N "16"
phase "0"
ic "0"
mode "Maintain input frame size"
}
Block {
BlockType Reference
Name "Upsample1"
Ports [1, 1]
Position [215, 118, 250, 152]
SourceBlock "dspsigops/Upsample"
SourceType "Upsample"
N "16"
phase "0"
ic "0"
mode "Maintain input frame size"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold1"
Position [545, 71, 580, 109]
SampleTime "1/16/63"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold2"
Position [85, 281, 120, 319]
SampleTime "1/16/63"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold3"
Position [330, 241, 365, 279]
SampleTime "1/16/63"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold4"
Position [330, 321, 365, 359]
SampleTime "1/16/63"
}
Block {
BlockType SubSystem
Name "data_generator"
Tag "pns generator"
Description "data generator"
Ports [0, 1]
Position [80, 20, 185, 70]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "data_generator"
Location [285, 310, 751, 464]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -