📄 ffsk_prototype.mdl
字号:
}
}
Line {
SrcBlock "BodyLZ3"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "BodyLZ4"
DstPort 1
}
Branch {
Points [0, -15]
DstBlock "BodySum3"
DstPort 1
}
}
Line {
SrcBlock "BodyLZ4"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "BodyLZ5"
DstPort 1
}
Branch {
Points [0, -15]
DstBlock "BodySum4"
DstPort 1
}
}
Line {
SrcBlock "BodyLZ5"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "BodyLZ6"
DstPort 1
}
Branch {
Points [0, -15]
DstBlock "BodySum5"
DstPort 1
}
}
Line {
SrcBlock "BodyLZ6"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "BodyLZ7"
DstPort 1
}
Branch {
Points [0, -15]
DstBlock "BodySum6"
DstPort 1
}
}
Line {
SrcBlock "BodyLZ7"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "BodyLZ8"
DstPort 1
}
Branch {
Points [0, -15]
DstBlock "BodySum7"
DstPort 1
}
}
Line {
SrcBlock "BodyLZ8"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "BodyLZ9"
DstPort 1
}
Branch {
Points [0, -15]
DstBlock "BodySum8"
DstPort 1
}
}
Line {
SrcBlock "BodyLZ9"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "BodyLZ10"
DstPort 1
}
Branch {
Points [0, -15]
DstBlock "BodySum9"
DstPort 1
}
}
Line {
SrcBlock "BodySum10"
SrcPort 1
Points [0, -65]
DstBlock "BodySum9"
DstPort 2
}
Line {
SrcBlock "BodySum11"
SrcPort 1
Points [0, -65]
DstBlock "BodySum10"
DstPort 2
}
Line {
SrcBlock "BodySum12"
SrcPort 1
Points [0, -65]
DstBlock "BodySum11"
DstPort 2
}
Line {
SrcBlock "BodySum13"
SrcPort 1
Points [0, -65]
DstBlock "BodySum12"
DstPort 2
}
Line {
SrcBlock "BodySum14"
SrcPort 1
Points [0, -65]
DstBlock "BodySum13"
DstPort 2
}
Line {
SrcBlock "BodySum15"
SrcPort 1
Points [0, -65]
DstBlock "BodySum14"
DstPort 2
}
Line {
SrcBlock "BodySum2"
SrcPort 1
DstBlock "HeadSum"
DstPort 2
}
Line {
SrcBlock "BodySum3"
SrcPort 1
Points [0, -65]
DstBlock "BodySum2"
DstPort 2
}
Line {
SrcBlock "BodySum4"
SrcPort 1
Points [0, -65]
DstBlock "BodySum3"
DstPort 2
}
Line {
SrcBlock "BodySum5"
SrcPort 1
Points [0, -65]
DstBlock "BodySum4"
DstPort 2
}
Line {
SrcBlock "BodySum6"
SrcPort 1
Points [0, -65]
DstBlock "BodySum5"
DstPort 2
}
Line {
SrcBlock "BodySum7"
SrcPort 1
Points [0, -65]
DstBlock "BodySum6"
DstPort 2
}
Line {
SrcBlock "BodySum8"
SrcPort 1
Points [0, -65]
DstBlock "BodySum7"
DstPort 2
}
Line {
SrcBlock "BodySum9"
SrcPort 1
Points [0, -65]
DstBlock "BodySum8"
DstPort 2
}
Line {
SrcBlock "FootLZ"
SrcPort 1
Points [0, -105]
DstBlock "BodySum15"
DstPort 2
}
Line {
SrcBlock "HeadSum"
SrcPort 1
Points [77, 0; 0, 0]
DstBlock "Output"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "Signal\nTo Workspace"
Ports [1, 0, 0, 0, 0]
Position [415, 359, 470, 401]
SourceBlock "dspsnks2/Signal\nTo Workspace"
SourceType "Signal To Workspace"
VariableName "rxiout"
Buffer "16000"
Decimation "1"
FrameBased off
NumChans "1"
}
Block {
BlockType Reference
Name "Signal\nTo Workspace1"
Ports [1, 0, 0, 0, 0]
Position [415, 439, 470, 481]
SourceBlock "dspsnks2/Signal\nTo Workspace"
SourceType "Signal To Workspace"
VariableName "rxqout"
Buffer "16000"
Decimation "1"
FrameBased off
NumChans "1"
}
Block {
BlockType SubSystem
Name "Tx spectrum1"
Ports [1, 0, 0, 0, 0]
Position [505, 71, 565, 119]
ShowPortLabels on
System {
Name "Tx spectrum1"
Location [341, 198, 822, 312]
Open on
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 "-54.2724373535042"
YMax "11.5550831906079"
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 "8"
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 Reference
Name "Upsample"
Ports [1, 1, 0, 0, 0]
Position [145, 79, 180, 111]
SourceBlock "dspbdsp2/Upsample"
SourceType "Upsample"
N "16"
phase "0"
ic "0"
frame off
nchans "1"
mode "Maintain input frame size"
}
Block {
BlockType SubSystem
Name "data_generator"
Tag "pns generator"
Description "data generator"
Ports [0, 1, 0, 0, 0]
Position [15, 70, 120, 120]
ShowPortLabels on
System {
Name "data_generator"
Location [341, 85, 807, 239]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Constant
Name "Constant"
Position [200, 95, 230, 125]
Value "0.5"
}
Block {
BlockType Reference
Name "PN sequence"
Ports [1, 1, 0, 0, 0]
Position [115, 23, 195, 67]
SourceBlock "commsource/PN sequence"
SourceType "Pseudorandom sequence generator"
M "2"
poly "[0 -5 -6]"
ini_sta "[1 0 0 0 0 0]"
}
Block {
BlockType Reference
Name "Pulse\nGenerator"
Ports [0, 1, 0, 0, 0]
Position [25, 30, 55, 60]
SourceBlock "simulink3/Sources/Pulse\nGenerator"
SourceType "Pulse Generator"
period "1/63"
duty "50"
amplitude "1"
start "0"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1, 0, 0, 0]
Position [255, 35, 275, 55]
ShowName off
IconShape "round"
Inputs "|+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold"
Position [335, 26, 370, 64]
SampleTime "1/63"
}
Block {
BlockType Outport
Name "Out1"
Position [395, 38, 425, 52]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Pulse\nGenerator"
SrcPort 1
DstBlock "PN sequence"
DstPort 1
}
Line {
SrcBlock "PN sequence"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [30, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Zero-Order\nHold"
DstPort 1
}
Line {
SrcBlock "Zero-Order\nHold"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "lowpass IIR"
Ports [1, 1, 0, 0, 0]
Position [295, 358, 365, 402]
SourceBlock "dspddes2/Digital IIR\nFilter Design"
SourceType "Digital IIR Filter Design"
method "Butterworth"
filttype "Lowpass"
N "4"
Wlo "1/32"
Whi "0.6"
Rp "2"
Rs "20"
frame off
numCHANS "1"
}
Block {
BlockType Reference
Name "lowpass IIR1"
Ports [1, 1, 0, 0, 0]
Position [295, 438, 365, 482]
SourceBlock "dspddes2/Digital IIR\nFilter Design"
SourceType "Digital IIR Filter Design"
method "Butterworth"
filttype "Lowpass"
N "4"
Wlo "1/32"
Whi "0.6"
Rp "2"
Rs "20"
frame off
numCHANS "1"
}
Block {
BlockType ZeroOrderHold
Name "sample/hold1"
Position [225, 361, 260, 399]
SampleTime "1/16/63"
}
Block {
BlockType ZeroOrderHold
Name "sample/hold2"
Position [225, 441, 260, 479]
SampleTime "1/16/63"
}
Block {
BlockType ZeroOrderHold
Name "sample/hold3"
Position [160, 201, 195, 239]
SampleTime "1/16/63"
}
Block {
BlockType ZeroOrderHold
Name "sample/hold4"
Position [385, 201, 420, 239]
SampleTime "1/16/63"
}
Line {
SrcBlock "NRZps"
SrcPort 1
DstBlock "FM Mod"
DstPort 1
}
Line {
SrcBlock "data_generator"
SrcPort 1
DstBlock "Upsample"
DstPort 1
}
Line {
SrcBlock "Upsample"
SrcPort 1
DstBlock "NRZps"
DstPort 1
}
Line {
SrcBlock "sample/hold1"
SrcPort 1
DstBlock "lowpass IIR"
DstPort 1
}
Line {
SrcBlock "IQ demod"
SrcPort 1
Points [20, 0; 0, -30]
DstBlock "sample/hold1"
DstPort 1
}
Line {
SrcBlock "sample/hold2"
SrcPort 1
DstBlock "lowpass IIR1"
DstPort 1
}
Line {
SrcBlock "IQ demod"
SrcPort 2
Points [20, 0; 0, 30]
DstBlock "sample/hold2"
DstPort 1
}
Line {
SrcBlock "lowpass IIR"
SrcPort 1
DstBlock "Signal\nTo Workspace"
DstPort 1
}
Line {
SrcBlock "lowpass IIR1"
SrcPort 1
DstBlock "Signal\nTo Workspace1"
DstPort 1
}
Line {
SrcBlock "sample/hold3"
SrcPort 1
DstBlock "AWGN\nchannel"
DstPort 1
}
Line {
SrcBlock "AWGN\nchannel"
SrcPort 1
DstBlock "sample/hold4"
DstPort 1
}
Line {
SrcBlock "FM Mod"
SrcPort 1
Points [65, 0]
Branch {
DstBlock "Tx spectrum1"
DstPort 1
}
Branch {
Points [0, 65; -365, 0; 0, 60]
DstBlock "sample/hold3"
DstPort 1
}
}
Line {
SrcBlock "sample/hold4"
SrcPort 1
Points [75, 0; 0, 85; -485, 0; 0, 115]
DstBlock "IQ demod"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -