📄 basebanddelay.mdl
字号:
additionalParams off
dataType "double"
wordLen "16"
udDataType "sfix(16)"
fracBitsMode "Best precision"
numFracBits "14"
ResetState "Restart at time zero"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [445, 195, 465, 215]
ShowName off
IconShape "round"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Outport
Name "Out1"
Position [520, 198, 550, 212]
}
Block {
BlockType Outport
Name "Out2"
Position [520, 238, 550, 252]
Port "2"
}
Line {
SrcBlock "Bernoulli Binary\nGenerator1"
SrcPort 1
Points [0, 0; 25, 0]
Branch {
Points [65, 0]
Branch {
DstBlock "Relay"
DstPort 1
}
Branch {
Points [0, 55]
DstBlock "Relay1"
DstPort 1
}
}
Branch {
Points [0, 175; 330, 0]
DstBlock "Out2"
DstPort 1
}
}
Line {
SrcBlock "Sine Wave3"
SrcPort 1
Points [10, 0; 0, 55]
DstBlock "Product5"
DstPort 1
}
Line {
SrcBlock "Relay"
SrcPort 1
DstBlock "Product5"
DstPort 2
}
Line {
SrcBlock "Relay1"
SrcPort 1
DstBlock "Product6"
DstPort 1
}
Line {
SrcBlock "Sine Wave2"
SrcPort 1
Points [5, 0; 0, -50]
DstBlock "Product6"
DstPort 2
}
Line {
SrcBlock "Product5"
SrcPort 1
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Product6"
SrcPort 1
Points [50, 0]
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "Analog\nFilter Design"
Ports [1, 1]
Position [330, 87, 395, 143]
SourceBlock "dsparch4/Analog\nFilter Design"
SourceType "Analog Filter Design"
method "Butterworth"
filttype "Lowpass"
N "6"
Wlo "2*pi*150"
Whi "80"
Rp "2"
Rs "40"
}
Block {
BlockType Reference
Name "Analog\nFilter Design1"
Ports [1, 1]
Position [315, 282, 380, 338]
SourceBlock "dsparch4/Analog\nFilter Design"
SourceType "Analog Filter Design"
method "Butterworth"
filttype "Lowpass"
N "6"
Wlo "2*pi*150"
Whi "80"
Rp "2"
Rs "40"
}
Block {
BlockType Reference
Name "Analog\nFilter Design4"
Ports [1, 1]
Position [150, 188, 185, 222]
SourceBlock "dsparch4/Analog\nFilter Design"
SourceType "Analog Filter Design"
method "Butterworth"
filttype "Bandpass"
N "6"
Wlo "2*pi*1300"
Whi "2*pi*1600"
Rp "2"
Rs "40"
}
Block {
BlockType ComplexToRealImag
Name "Complex to\nReal-Imag2"
Ports [1, 2]
Position [230, 192, 265, 223]
Orientation "left"
Output "Real and imag"
}
Block {
BlockType Reference
Name "Gaussian Noise\nGenerator"
Ports [0, 1]
Position [25, 303, 105, 347]
FontName "Arial"
SourceBlock "commnoisgen2/Gaussian Noise\nGenerator"
SourceType "Gaussian Noise Generator"
m "0"
d "0.5"
s "41"
Ts "0.0001"
frameBased off
sampPerFrame "1"
orient off
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [255, 96, 300, 129]
InputSameDT off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [235, 291, 280, 324]
ShowAdditionalParam on
OutDataTypeMode "double"
RndMeth "Nearest"
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [570, 286, 615, 319]
InputSameDT off
}
Block {
BlockType Product
Name "Product3"
Ports [2, 1]
Position [565, 106, 610, 139]
InputSameDT off
}
Block {
BlockType Relay
Name "Relay"
Position [810, 280, 840, 310]
}
Block {
BlockType Scope
Name "Scope"
Ports [4]
Position [910, 238, 940, 272]
Location [109, 110, 946, 702]
Open off
NumInputPorts "4"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "origin data signal"
axes2 "input 2FSK + AWGN"
axes3 "demodulator output"
axes4 "recovery data"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
axes3 ""
axes4 ""
}
TimeRange "0.7000000000000001"
YMin "-0.1~-4~-0.2~-0.1"
YMax "1.5~4~0.2~1.5"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Reference
Name "Sine Wave1"
Ports [0, 1]
Position [300, 190, 340, 230]
Orientation "left"
NamePlacement "alternate"
SourceBlock "dspsrcs4/Sine Wave"
SourceType "Sine Wave"
Amplitude "1"
Frequency "1450"
Phase "0"
SampleMode "Discrete"
OutComplex "Complex"
CompMethod "Trigonometric fcn"
TableSize "Speed"
SampleTime "0.00001"
SamplesPerFrame "1"
additionalParams off
dataType "double"
wordLen "16"
udDataType "sfix(16)"
fracBitsMode "User-defined"
numFracBits "14"
ResetState "Restart at time zero"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [105, 195, 125, 215]
ShowName off
IconShape "round"
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [675, 210, 695, 230]
ShowName off
IconShape "round"
Inputs "-|+"
}
Block {
BlockType TransportDelay
Name "Transport\nDelay"
Position [440, 295, 470, 325]
DelayTime "0.001"
}
Block {
BlockType TransportDelay
Name "Transport\nDelay1"
Position [450, 100, 480, 130]
DelayTime "0.001"
}
Block {
BlockType Trigonometry
Name "Trigonometric\nFunction1"
Ports [1, 1]
Position [735, 205, 765, 235]
Operator "asin"
}
Line {
SrcBlock "Product3"
SrcPort 1
Points [70, 0]
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
DstBlock "Analog\nFilter Design1"
DstPort 1
}
Line {
SrcBlock "2FSK generator"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Analog\nFilter Design"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Transport\nDelay1"
DstPort 1
}
Branch {
Points [0, 30; 100, 100]
DstBlock "Product2"
DstPort 1
}
}
Line {
SrcBlock "Analog\nFilter Design1"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Transport\nDelay"
DstPort 1
}
Branch {
Points [0, -25; 90, -95; 20, -20; 35, -35]
DstBlock "Product3"
DstPort 2
}
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Analog\nFilter Design"
DstPort 1
}
Line {
SrcBlock "Complex to\nReal-Imag2"
SrcPort 1
Points [-15, 0; 0, -80]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Complex to\nReal-Imag2"
SrcPort 2
Points [-15, 0; 0, 85]
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Product2"
SrcPort 1
Points [65, 0]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Trigonometric\nFunction1"
DstPort 1
}
Line {
SrcBlock "Sine Wave1"
SrcPort 1
DstBlock "Complex to\nReal-Imag2"
DstPort 1
}
Line {
SrcBlock "2FSK generator"
SrcPort 2
Points [10, 0; 0, -225; 800, 0; 0, 230]
DstBlock "Scope"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [5, 0]
Branch {
Points [0, -185; 760, 0]
DstBlock "Scope"
DstPort 2
}
Branch {
DstBlock "Analog\nFilter Design4"
DstPort 1
}
}
Line {
SrcBlock "Transport\nDelay1"
SrcPort 1
DstBlock "Product3"
DstPort 1
}
Line {
SrcBlock "Transport\nDelay"
SrcPort 1
DstBlock "Product2"
DstPort 2
}
Line {
SrcBlock "Trigonometric\nFunction1"
SrcPort 1
Points [15, 0]
Branch {
Points [0, 75]
DstBlock "Relay"
DstPort 1
}
Branch {
Points [70, 0; 0, 40]
DstBlock "Scope"
DstPort 3
}
}
Line {
SrcBlock "Gaussian Noise\nGenerator"
SrcPort 1
Points [5, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Relay"
SrcPort 1
Points [25, 0; 0, -25]
DstBlock "Scope"
DstPort 4
}
Line {
SrcBlock "Analog\nFilter Design4"
SrcPort 1
Points [0, 0]
Branch {
Points [0, -100]
DstBlock "Product"
DstPort 1
}
Branch {
Points [0, 110]
DstBlock "Product1"
DstPort 2
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -