📄 psk_spectra.mdl
字号:
Model {
Name "psk_spectra"
Version 3.00
SimParamPage "Solver"
SampleTimeColors off
InvariantConstants off
WideVectorLines off
ShowLineWidths off
ShowPortDataTypes off
StartTime "0.0"
StopTime "10"
SolverMode "Auto"
Solver "ode45"
RelTol "1e-3"
AbsTol "auto"
Refine "1"
MaxStep "auto"
InitialStep "auto"
FixedStep "auto"
MaxOrder 5
OutputOption "RefineOutputTimes"
OutputTimes "[]"
LoadExternalInput off
ExternalInput "[t, u]"
SaveTime on
TimeSaveName "tout"
SaveState off
StateSaveName "xout"
SaveOutput on
OutputSaveName "yout"
LoadInitialState off
InitialState "xInitial"
SaveFinalState off
FinalStateName "xFinal"
SaveFormat "Matrix"
LimitMaxRows off
MaxRows "1000"
Decimation "1"
AlgebraicLoopMsg "warning"
MinStepSizeMsg "warning"
UnconnectedInputMsg "warning"
UnconnectedOutputMsg "warning"
UnconnectedLineMsg "warning"
InheritedTsInSrcMsg "warning"
IntegerOverflowMsg "warning"
UnnecessaryDatatypeConvMsg "none"
Int32ToFloatConvMsg "warning"
SignalLabelMismatchMsg "none"
ConsistencyChecking "off"
ZeroCross on
SimulationMode "normal"
BlockDataTips on
BlockParametersDataTip on
BlockAttributesDataTip off
BlockPortWidthsDataTip off
BlockDescriptionStringDataTip off
BlockMaskParametersDataTip off
ToolBar on
StatusBar on
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
OptimizeBlockIOStorage on
BufferReuse on
BooleanDataType off
RTWSystemTargetFile "grt.tlc"
RTWInlineParameters off
RTWRetainRTWFile off
RTWTemplateMakefile "grt_default_tmf"
RTWMakeCommand "make_rtw"
RTWGenerateCodeOnly off
ExtModeMexFile "ext_comm"
ExtModeBatchMode off
ExtModeTrigType "manual"
ExtModeTrigMode "oneshot"
ExtModeTrigPort "1"
ExtModeTrigElement "any"
ExtModeTrigDuration 1000
ExtModeTrigHoldOff 0
ExtModeTrigDelay 0
ExtModeTrigDirection "rising"
ExtModeTrigLevel 0
ExtModeArchiveMode "off"
ExtModeAutoIncOneShot off
ExtModeIncDirWhenArm off
ExtModeAddSuffixToVar off
ExtModeWriteAllDataToWs off
ExtModeArmWhenConnect off
Created "Thu Mar 22 18:08:02 2001"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
LastModifiedBy "administrator"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Mon Mar 25 13:17:31 2002"
ModelVersionFormat "1.%<AutoIncrement:13>"
ConfigurationManager "none"
BlockDefaults {
Orientation "right"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
NamePlacement "normal"
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
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"
Location [83, 86, 807, 647]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name "AWGN\nchannel"
Ports [1, 1, 0, 0, 0]
Position [180, 193, 260, 237]
SourceBlock "commchan/AWGN\nchannel"
SourceType "AWGN Channel"
seed "123456"
noiseMode "Signal to noise ratio"
EsNodB "50"
Ps "0.1239"
Tsym "1/63"
variance "1"
}
Block {
BlockType Abs
Name "Abs"
Position [180, 325, 210, 355]
}
Block {
BlockType Reference
Name "Analog\nFilter Design"
Ports [1, 1, 0, 0, 0]
Position [350, 312, 415, 368]
SourceBlock "dspddes2/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, 0, 0, 0]
Position [575, 23, 655, 67]
SourceBlock "commanapbnd/DSB-SC AM\npassband"
SourceType "Passband DSB-SC AM"
MaskParam1 "63"
MaskParam2 "0"
MaskParam3 "1/16/63"
}
Block {
BlockType Reference
Name "DSB-SC AM\npassband1"
Ports [1, 1, 0, 0, 0]
Position [350, 193, 430, 237]
SourceBlock "commanapbnd/DSB-SC AM\npassband"
SourceType "Passband DSB-SC AM"
MaskParam1 "63"
MaskParam2 "0"
MaskParam3 "1/16/63"
}
Block {
BlockType Gain
Name "Gain"
Position [250, 30, 280, 60]
Gain "1"
SaturateOnIntegerOverflow on
}
Block {
BlockType RandomNumber
Name "Random\nNumber"
Position [110, 30, 140, 60]
Mean "0"
Variance "1"
Seed "87594"
SampleTime "1/63"
}
Block {
BlockType Scope
Name "Scope2"
Ports [1, 0, 0, 0, 0]
Position [555, 84, 585, 116]
Floating off
Location [55, 426, 379, 665]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "auto"
YMin "-1"
YMax "2"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitMaxRows off
MaxRows "16000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope3"
Ports [1, 0, 0, 0, 0]
Position [460, 419, 490, 451]
Floating off
Location [55, 426, 379, 665]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "auto"
YMin "-1"
YMax "1"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitMaxRows off
MaxRows "16000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Signum
Name "Sign"
Position [185, 30, 215, 60]
}
Block {
BlockType Reference
Name "To Workspace"
Ports [1, 0, 0, 0, 0]
Position [640, 194, 695, 236]
SourceBlock "dspsnks2/Signal\nTo Workspace"
SourceType "Signal To Workspace"
VariableName "Rxout"
Buffer "16000"
Decimation "1"
FrameBased off
NumChans "1"
}
Block {
BlockType SubSystem
Name "Tx spectrum1"
Ports [1, 0, 0, 0, 0]
Position [410, 86, 470, 134]
ShowPortLabels on
System {
Name "Tx spectrum1"
Location [351, 188, 832, 302]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "Input"
Position [30, 38, 60, 52]
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Reference
Name "Buffer1"
Ports [1, 1, 0, 0, 0]
Position [170, 21, 220, 69]
SourceBlock "dspbuff2/Buffer"
SourceType "Buffer"
N "1024"
V "1"
ic "0"
}
Block {
BlockType Reference
Name "Frequency\nFrame Scope1"
Ports [1, 0, 0, 0, 0]
Position [355, 20, 390, 70]
SourceBlock "dspsnks2/Frequency\nFrame Scope"
SourceType "Frequency Frame Scope"
Domain "Frequency"
XLabel "Samples"
XUnits "Hertz"
XRange "[0...Fs/2]"
XIncr "-1"
YLabel "Magnitude, dB"
YUnits "dB"
HorizSpan "1"
NChans "1"
AxisParams on
YMin "-75.1514781283846"
YMax "8.09611027339284"
FigPos "get(0,'defaultfigureposition')"
AxisGrid on
AxisZoom on
FrameNumber off
AxisLegend off
Memory off
LineParams off
LineDisables "on"
LineColors "[0 0 1]|[0 1 0]"
}
Block {
BlockType Reference
Name "Short-Time FFT1"
Ports [1, 1, 0, 0, 0]
Position [250, 19, 330, 71]
SourceBlock "dspspect2/Short-Time FFT"
SourceType "Short-Time FFT"
fftsize "1024"
navg "200"
wintype "Hamming"
Rs "50"
beta "5"
winsamp "Symmetric"
NChans "1"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold1"
Position [95, 26, 130, 64]
SampleTime "1/16/63"
}
Line {
SrcBlock "Buffer1"
SrcPort 1
DstBlock "Short-Time FFT1"
DstPort 1
}
Line {
SrcBlock "Short-Time FFT1"
SrcPort 1
DstBlock "Frequency\nFrame Scope1"
DstPort 1
}
Line {
SrcBlock "Zero-Order\nHold1"
SrcPort 1
DstBlock "Buffer1"
DstPort 1
}
Line {
SrcBlock "Input"
SrcPort 1
DstBlock "Zero-Order\nHold1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Tx spectrum2"
Ports [1, 0, 0, 0, 0]
Position [445, 316, 505, 364]
ShowPortLabels on
System {
Name "Tx spectrum2"
Location [347, 192, 828, 306]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "Input"
Position [30, 38, 60, 52]
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Reference
Name "Buffer1"
Ports [1, 1, 0, 0, 0]
Position [170, 21, 220, 69]
SourceBlock "dspbuff2/Buffer"
SourceType "Buffer"
N "1024"
V "1"
ic "0"
}
Block {
BlockType Reference
Name "Frequency\nFrame Scope1"
Ports [1, 0, 0, 0, 0]
Position [355, 20, 390, 70]
SourceBlock "dspsnks2/Frequency\nFrame Scope"
SourceType "Frequency Frame Scope"
Domain "Frequency"
XLabel "Samples"
XUnits "Hertz"
XRange "[0...Fs/2]"
XIncr "1/63/16"
YLabel "Magnitude, dB"
YUnits "dB"
HorizSpan "1"
NChans "1"
AxisParams on
YMin "-75.1514781283846"
YMax "8.09611027339284"
FigPos "get(0,'defaultfigureposition')"
AxisGrid on
AxisZoom on
FrameNumber off
AxisLegend off
Memory off
LineParams off
}
Block {
BlockType Reference
Name "Short-Time FFT1"
Ports [1, 1, 0, 0, 0]
Position [250, 19, 330, 71]
SourceBlock "dspspect2/Short-Time FFT"
SourceType "Short-Time FFT"
fftsize "1024"
navg "200"
wintype "Hamming"
Rs "50"
beta "5"
winsamp "Symmetric"
NChans "1"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold1"
Position [95, 26, 130, 64]
SampleTime "1/16/63"
}
Line {
SrcBlock "Buffer1"
SrcPort 1
DstBlock "Short-Time FFT1"
DstPort 1
}
Line {
SrcBlock "Short-Time FFT1"
SrcPort 1
DstBlock "Frequency\nFrame Scope1"
DstPort 1
}
Line {
SrcBlock "Zero-Order\nHold1"
SrcPort 1
DstBlock "Buffer1"
DstPort 1
}
Line {
SrcBlock "Input"
SrcPort 1
DstBlock "Zero-Order\nHold1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Tx spectrum3"
Ports [1, 0, 0, 0, 0]
Position [265, 401, 325, 449]
ShowPortLabels on
System {
Name "Tx spectrum3"
Location [345, 194, 826, 308]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "Input"
Position [30, 38, 60, 52]
Port "1"
PortWidth "-1"
SampleTime "-1"
DataType "auto"
SignalType "auto"
Interpolate on
}
Block {
BlockType Reference
Name "Buffer1"
Ports [1, 1, 0, 0, 0]
Position [170, 21, 220, 69]
SourceBlock "dspbuff2/Buffer"
SourceType "Buffer"
N "1024"
V "1"
ic "0"
}
Block {
BlockType Reference
Name "Frequency\nFrame Scope1"
Ports [1, 0, 0, 0, 0]
Position [355, 20, 390, 70]
SourceBlock "dspsnks2/Frequency\nFrame Scope"
SourceType "Frequency Frame Scope"
Domain "Frequency"
XLabel "Samples"
XUnits "Hertz"
XRange "[0...Fs/2]"
XIncr "-1"
YLabel "Magnitude, dB"
YUnits "dB"
HorizSpan "1"
NChans "1"
AxisParams on
YMin "-75.1514781283846"
YMax "8.09611027339284"
FigPos "get(0,'defaultfigureposition')"
AxisGrid on
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -