📄 bpsk.mdl
字号:
Orientation "left"
BackgroundColor "cyan"
DropShadow on
UserDataPersistent on
UserData "DataTag3"
SourceBlock "dsparch4/Digital\nFilter Design"
SourceType "Digital Filter Design"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
mwdsp_browser_bugfix_var off
}
Block {
BlockType Reference
Name "Discrete-Time\nVCO"
Ports [1, 1]
Position [495, 192, 585, 238]
Orientation "left"
BackgroundColor "cyan"
DropShadow on
NamePlacement "alternate"
FontName "Arial"
SourceBlock "commsynccomp2/Discrete-Time\nVCO"
SourceType "Discrete-Time VCO"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
Ac ".5"
Fc "2e3"
Kc "100"
Ph "0"
ts "1/48e3"
}
Block {
BlockType Reference
Name "Discrete-Time\nVCO1"
Ports [1, 1]
Position [495, 267, 585, 313]
Orientation "left"
BackgroundColor "cyan"
DropShadow on
NamePlacement "alternate"
FontName "Arial"
SourceBlock "commsynccomp2/Discrete-Time\nVCO"
SourceType "Discrete-Time VCO"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
Ac ".5"
Fc "2e3"
Kc "100"
Ph "pi/2"
ts "1/48e3"
}
Block {
BlockType Reference
Name "Downsample "
Ports [1, 1]
Position [790, 433, 825, 467]
SourceBlock "dspsigops/Downsample"
SourceType "Downsample"
N "240"
phase "0"
ic "0"
smode "Allow multirate"
fmode "Maintain input frame size"
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [435, 142, 465, 173]
BackgroundColor "cyan"
DropShadow on
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [440, 357, 470, 388]
BackgroundColor "cyan"
DropShadow on
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product5"
Ports [2, 1]
Position [340, 237, 370, 268]
BackgroundColor "green"
DropShadow on
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product7"
Ports [2, 1]
Position [725, 232, 755, 263]
Orientation "left"
BackgroundColor "cyan"
DropShadow on
NamePlacement "alternate"
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType RateTransition
Name "Rate Transition1"
Position [260, 224, 300, 266]
BackgroundColor "green"
DropShadow on
}
Block {
BlockType RealImagToComplex
Name "Real-Imag to\nComplex2"
Ports [2, 1]
Position [730, 422, 760, 473]
ShowName off
}
Block {
BlockType Scope
Name "Scope"
Ports [3]
Position [920, 63, 955, 157]
Floating off
Location [135, 81, 849, 474]
Open off
NumInputPorts "3"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "Original Bit Sequence"
axes2 "Recovered Bit Sequence"
axes3 "Received Bit Sequence"
}
TimeRange "0.5"
YMin "-1~-0.3~-0.3"
YMax "1~0.3~0.3"
DataFormat "StructureWithTime"
MaxDataPoints "50000"
SampleTime "0"
}
Block {
BlockType Reference
Name "Sine Wave2"
Ports [0, 1]
Position [255, 323, 300, 367]
BackgroundColor "green"
DropShadow on
SourceBlock "dspsrcs4/Sine Wave"
SourceType "Sine Wave"
Amplitude "0.5"
Frequency "2e3"
Phase "pi/2"
SampleMode "Discrete"
OutComplex "Real"
CompMethod "Trigonometric fcn"
TableSize "Speed"
SampleTime "1/48e3"
SamplesPerFrame "1"
additionalParams off
allowOverrides on
dataType "double"
wordLen "16"
udDataType "sfix(16)"
fracBitsMode "Best precision"
numFracBits "15"
ResetState "Restart at time zero"
}
Block {
BlockType Reference
Name "Unipolar to\nBipolar\nConverter1"
Ports [1, 1]
Position [145, 223, 225, 267]
BackgroundColor "green"
DropShadow on
SourceBlock "commutil2/Unipolar to\nBipolar\nConverter"
SourceType "Unipolar to Bipolar Converter"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
M "2"
polarity "Positive"
dataType "Same as input"
}
Line {
SrcBlock "Discrete-Time\nVCO"
SrcPort 1
Points [-80, 0; 0, -50]
DstBlock "Product1"
DstPort 2
}
Line {
SrcBlock "Discrete-Time\nVCO1"
SrcPort 1
Points [-75, 0; 0, 75]
DstBlock "Product2"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [65, 0]
DstBlock "Digital\nFilter Design"
DstPort 1
}
Line {
SrcBlock "Product2"
SrcPort 1
DstBlock "Digital\nFilter Design1"
DstPort 1
}
Line {
SrcBlock "Real-Imag to\nComplex2"
SrcPort 1
DstBlock "Downsample "
DstPort 1
}
Line {
SrcBlock "Downsample "
SrcPort 1
Points [10, 0]
Branch {
Points [10, 0]
DstBlock "Constellation\nScatter Plot 2"
DstPort 1
}
Branch {
Points [-5, 0]
DstBlock "Constellation\nScatter Plot"
DstPort 1
}
}
Line {
SrcBlock "Digital\nFilter Design"
SrcPort 1
Points [90, 0]
Branch {
DstBlock "Real-Imag to\nComplex2"
DstPort 1
}
Branch {
Points [65, 0]
Branch {
DstBlock "Scope"
DstPort 2
}
Branch {
Points [0, 30]
Branch {
Points [0, 100]
DstBlock "Product7"
DstPort 1
}
Branch {
Points [0, 0]
DstBlock "Compare\nTo Zero"
DstPort 1
}
}
}
}
Line {
SrcBlock "Digital\nFilter Design1"
SrcPort 1
Points [65, 0]
Branch {
Points [0, 85]
DstBlock "Real-Imag to\nComplex2"
DstPort 2
}
Branch {
Points [110, 0; 0, -120]
DstBlock "Product7"
DstPort 2
}
}
Line {
SrcBlock "Product7"
SrcPort 1
DstBlock "Digital\nFilter Design2"
DstPort 1
}
Line {
SrcBlock "Digital\nFilter Design2"
SrcPort 1
Points [-10, 0]
Branch {
Points [0, -35]
DstBlock "Discrete-Time\nVCO"
DstPort 1
}
Branch {
Points [0, 40]
DstBlock "Discrete-Time\nVCO1"
DstPort 1
}
}
Line {
SrcBlock "Bernoulli Binary\nGenerator1"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "Unipolar to\nBipolar\nConverter1"
DstPort 1
}
Branch {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -