📄 qpsksystem_sjsu.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 RealImagToComplex
Input "Real and imag"
ConstantPart "0"
SampleTime "-1"
}
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 Signum
ZeroCross on
SampleTime "-1"
}
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"
}
Block {
BlockType Switch
Criteria "u2 >= Threshold"
Threshold "0"
InputSameDT on
OutDataTypeMode "Inherit via internal rule"
RndMeth "Floor"
SaturateOnIntegerOverflow on
ZeroCross on
SampleTime "-1"
}
Block {
BlockType Trigonometry
Operator "sin"
OutputSignalType "auto"
SampleTime "-1"
}
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 "qpsksystem_SJSU"
Location [185, 380, 1087, 683]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType SubSystem
Name "Bandpass AWGN channel \nfc = 100 Hz and B = 30 "
"Hz"
Ports [1, 1]
Position [405, 80, 460, 140]
NamePlacement "alternate"
TreatAsAtomicUnit on
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Bandpass AWGN channel \nfc = 100 Hz and B = 3"
"0 Hz"
Location [136, 180, 644, 406]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In"
Position [35, 38, 65, 52]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Reference
Name "AWGN\nChannel"
Ports [1, 1]
Position [345, 22, 400, 68]
DropShadow on
SourceBlock "commchan2/AWGN\nChannel"
SourceType "AWGN Channel"
ShowPortLabels on
seed "13357"
noiseMode "Signal to noise ratio (Eb/No)"
EbNodB "SNR"
EsNodB "15"
SNRdB "10"
bitsPerSym "2"
Ps "1"
Tsym "T/4"
variance "1"
}
Block {
BlockType Reference
Name "Channel\nHc(f)\nfc=100, B=30"
Ports [1, 1]
Position [135, 13, 205, 77]
DropShadow on
SourceBlock "dsparch4/Analog\nFilter Design"
SourceType "Analog Filter Design"
method "Chebyshev I"
filttype "Bandpass"
N "20"
Wlo "2*pi*85"
Whi "2*pi*115"
Rp "0.5"
Rs "30"
}
Block {
BlockType ZeroOrderHold
Name "Tc/10\nSimulation\ninterval"
Position [265, 30, 300, 60]
SampleTime "Tc/10"
}
Block {
BlockType Outport
Name "Out"
Position [445, 38, 475, 52]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Channel\nHc(f)\nfc=100, B=30"
SrcPort 1
DstBlock "Tc/10\nSimulation\ninterval"
DstPort 1
}
Line {
SrcBlock "AWGN\nChannel"
SrcPort 1
DstBlock "Out"
DstPort 1
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "Channel\nHc(f)\nfc=100, B=30"
DstPort 1
}
Line {
SrcBlock "Tc/10\nSimulation\ninterval"
SrcPort 1
DstBlock "AWGN\nChannel"
DstPort 1
}
Annotation {
Name "Bandpass AWGN channel\n\nRobert Morelos-Zar"
"agoza\nSan Jose State University\nCopyright (c) 2005"
Position [278, 170]
FontName "Arial"
FontSize 11
FontWeight "bold"
}
}
}
Block {
BlockType SubSystem
Name "Digital baseband\nreceiver"
Ports [2, 1]
Position [670, 80, 725, 140]
NamePlacement "alternate"
FontName "Arial"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Digital baseband\nreceiver"
Location [496, 255, 1194, 663]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Q in"
Position [15, 198, 45, 212]
FontName "Arial"
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "I in"
Position [15, 278, 45, 292]
FontName "Arial"
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType RealImagToComplex
Name " "
Ports [1, 1]
Position [490, 34, 525, 86]
FontName "Arial"
Input "Real"
SampleTime "Tr/4"
}
Block {
BlockType RealImagToComplex
Name " "
Ports [2, 1]
Position [200, 102, 235, 153]
FontName "Arial"
Input "Real and imag"
SampleTime "Tr/4"
}
Block {
BlockType RealImagToComplex
Name " "
Ports [1, 1]
Position [490, 94, 525, 146]
FontName "Arial"
Input "Real"
SampleTime "Tr/4"
}
Block {
BlockType RealImagToComplex
Name " "
Ports [2, 1]
Position [500, 217, 535, 268]
FontName "Arial"
Input "Real and imag"
SampleTime "Tr"
}
Block {
BlockType SubSystem
Name "DD carrier \nrecovery loop"
Ports [2, 2]
Position [375, 215, 440, 270]
NamePlacement "alternate"
FontName "Arial"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "DD carrier \nrecovery loop"
Location [56, 90, 793, 575]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "I in"
Position [30, 43, 60, 57]
NamePlacement "alternate"
FontName "Arial"
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "Q in"
Position [30, 68, 60, 82]
FontName "Arial"
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Trigonometry
Name " "
Ports [1, 1]
Position [170, 225, 200, 255]
Orientation "up"
FontName "Arial"
OutputSignalType "real"
}
Block {
BlockType Trigonometry
Name " "
Ports [1, 1]
Position [130, 225, 160, 255]
Orientation "up"
NamePlacement "alternate"
FontName "Arial"
Operator "cos"
OutputSignalType "real"
}
Block {
BlockType Constant
Name " "
Position [655, 292, 685, 328]
Orientation "left"
FontName "Arial"
Value "0.1"
SampleTime "Tr"
}
Block {
BlockType RealImagToComplex
Name " "
Ports [2, 1]
Position [115, 38, 150, 87]
NamePlacement "alternate"
FontName "Arial"
Input "Real and imag"
SampleTime "Tr"
}
Block {
BlockType UnitDelay
Name " "
Position [545, 292, 585, 328]
Orientation "left"
FontName "Arial"
SampleTime "Tr"
}
Block {
BlockType SubSystem
Name " QPSK Phase\n Error Detector"
Ports [2, 1]
Position [502, 160, 558, 200]
Orientation "down"
FontName "Arial"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name " QPSK Phase\n Error Detector"
Location [227, 127, 765, 412]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "I"
Position [155, 63, 185, 77]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "Q"
Position [155, 113, 185, 127]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [330, 62, 360, 93]
RndMeth "Floor"
SampleTime "Tr"
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [330, 137, 360, 168]
RndMeth "Floor"
SampleTime "Tr"
}
Block {
BlockType Signum
Name "Sign"
Position [250, 55, 280, 85]
SampleTime "Tr"
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -