📄 bluetooth_lib.mdl
字号:
FramebasedOutput "off"
}
Block {
BlockType Reference
Name "Digital\nFilter Design"
Ports [1, 1]
Position [255, 124, 300, 166]
ShowName off
UserDataPersistent on
UserData "DataTag1"
SourceBlock "dsparch3/Digital\nFilter Design"
SourceType "Digital Filter Design"
}
Block {
BlockType Reference
Name "Digital\nFilter Design2"
Ports [1, 1]
Position [335, 124, 380, 166]
ShowName off
UserDataPersistent on
UserData "DataTag2"
SourceBlock "dsparch3/Digital\nFilter Design"
SourceType "Digital Filter Design"
}
Block {
BlockType Reference
Name "Frame Status\nConversion"
Ports [1, 1]
Position [230, 234, 280, 266]
ShowName off
SourceBlock "dspsigattribs/Frame Status\nConversion"
SourceType "Frame Status Conversion"
growRefPort "off"
outframe "Frame-based"
}
Block {
BlockType Reference
Name "Frame Status\nConversion1"
Ports [1, 1]
Position [625, 64, 675, 96]
ShowName off
SourceBlock "dspsigattribs/Frame Status\nConversion"
SourceType "Frame Status Conversion"
growRefPort "off"
outframe "Sample-based"
}
Block {
BlockType Gain
Name "Gain"
Position [180, 130, 210, 160]
ShowName off
Gain "5"
}
Block {
BlockType Product
Name "Mix"
Ports [2, 1]
Position [525, 136, 570, 169]
}
Block {
BlockType Reference
Name "Mixed to \none of bluetooth\nfrequencie"
"s\n"
Ports [1, 1]
Position [325, 225, 400, 275]
SourceBlock "commdigbbndfm2/M-FSK\nModulator\nBaseba"
"nd"
SourceType "M-FSK Modulator Baseband"
M "79"
InType "Integer"
Enc "Binary"
freqSep "1e6"
phaseType "Continuous"
numSamp "6.25e4/100"
}
Block {
BlockType Gain
Name "Set power"
Position [430, 130, 455, 160]
Gain "1.7"
}
Block {
BlockType Display
Name "Tx power"
Ports [1]
Position [715, 65, 805, 95]
Decimation "1"
}
Block {
BlockType Reference
Name "Upsample\nto 100MHz"
Ports [1, 1]
Position [110, 128, 145, 162]
SourceBlock "dspsigops/Upsample"
SourceType "Upsample"
N "5"
phase "0"
ic "0"
mode "Maintain input frame rate"
}
Block {
BlockType Reference
Name "Variance"
Ports [1, 1]
Position [525, 63, 600, 97]
ShowName off
SourceBlock "dspstat3/Variance"
SourceType "Variance"
run "off"
reset_popup "None"
}
Block {
BlockType Outport
Name "Out"
Position [650, 148, 680, 162]
IconDisplay "Port number"
OutputWhenDisabled "reset"
InitialOutput "0"
}
Line {
SrcBlock "Digital\nFilter Design"
SrcPort 1
DstBlock "Digital\nFilter Design2"
DstPort 1
}
Line {
SrcBlock "Digital\nFilter Design2"
SrcPort 1
DstBlock "Set power"
DstPort 1
}
Line {
SrcBlock "Set power"
SrcPort 1
Points [-5, 0; 20, 0]
Branch {
Points [0, -65]
DstBlock "Variance"
DstPort 1
}
Branch {
DstBlock "Mix"
DstPort 1
}
}
Line {
SrcBlock "Frame Status\nConversion1"
SrcPort 1
DstBlock "Tx power"
DstPort 1
}
Line {
SrcBlock "Variance"
SrcPort 1
DstBlock "Frame Status\nConversion1"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Digital\nFilter Design"
DstPort 1
}
Line {
SrcBlock "DSP\nConstant"
SrcPort 1
DstBlock "Frame Status\nConversion"
DstPort 1
}
Line {
SrcBlock "Mixed to \none of bluetooth\nfrequencie"
"s\n"
SrcPort 1
Points [70, 0; 0, -90]
DstBlock "Mix"
DstPort 2
}
Line {
SrcBlock "Frame Status\nConversion"
SrcPort 1
DstBlock "Mixed to \none of bluetooth\nfrequencie"
"s\n"
DstPort 1
}
Line {
SrcBlock "20MHz\nwhite noise"
SrcPort 1
DstBlock "Upsample\nto 100MHz"
DstPort 1
}
Line {
SrcBlock "Mix"
SrcPort 1
DstBlock "Out"
DstPort 1
}
Line {
SrcBlock "Upsample\nto 100MHz"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "Buffer to same\nframe-size\nas channel"
Ports [1, 1]
Position [400, 160, 435, 210]
SourceBlock "dspbuff3/Buffer"
SourceType "Buffer"
N "62500"
V "0"
ic "0"
}
Block {
BlockType SubSystem
Name "Enable control"
Ports [1, 1]
Position [215, 71, 280, 119]
ShowName off
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskDisplay "disp('Enable\\n\nLogic')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Enable control"
Location [255, 311, 732, 510]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In"
Position [60, 13, 90, 27]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType RelationalOperator
Name "If rate set to 999\nturn-on always"
Position [150, 112, 180, 143]
Operator "=="
}
Block {
BlockType Logic
Name "Logical\nOperator"
Ports [2, 1]
Position [260, 37, 290, 68]
ShowName off
}
Block {
BlockType Logic
Name "Logical\nOperator1"
Ports [2, 1]
Position [260, 107, 290, 138]
ShowName off
}
Block {
BlockType Logic
Name "Logical\nOperator2"
Ports [2, 1]
Position [335, 47, 365, 78]
ShowName off
Operator "OR"
}
Block {
BlockType Constant
Name "Mode"
Position [40, 49, 110, 71]
ShowName off
Value "On"
}
Block {
BlockType Constant
Name "Mode1"
Position [40, 106, 115, 124]
ShowName off
Value "rate"
}
Block {
BlockType Constant
Name "Mode2"
Position [40, 133, 115, 147]
ShowName off
Value "999"
}
Block {
BlockType Outport
Name "Out"
Position [390, 58, 420, 72]
IconDisplay "Port number"
}
Line {
SrcBlock "Logical\nOperator2"
SrcPort 1
DstBlock "Out"
DstPort 1
}
Line {
SrcBlock "In"
SrcPort 1
Points [145, 0; 0, 25]
DstBlock "Logical\nOperator"
DstPort 1
}
Line {
SrcBlock "Logical\nOperator1"
SrcPort 1
Points [20, 0; 0, -55]
DstBlock "Logical\nOperator2"
DstPort 2
}
Line {
SrcBlock "Mode"
SrcPort 1
Points [0, 0; 90, 0]
Branch {
Points [0, 55]
DstBlock "Logical\nOperator1"
DstPort 1
}
Branch {
DstBlock "Logical\nOperator"
DstPort 2
}
}
Line {
SrcBlock "Logical\nOperator"
SrcPort 1
DstBlock "Logical\nOperator2"
DstPort 1
}
Line {
SrcBlock "If rate set to 999\nturn-on always"
SrcPort 1
DstBlock "Logical\nOperator1"
DstPort 2
}
Line {
SrcBlock "Mode1"
SrcPort 1
Points [0, 5]
DstBlock "If rate set to 999\nturn-on always"
DstPort 1
}
Line {
SrcBlock "Mode2"
SrcPort 1
Points [0, -5]
DstBlock "If rate set to 999\nturn-on always"
DstPort 2
}
}
}
Block {
BlockType Goto
Name "Goto4"
Position [165, 30, 290, 50]
ShowName off
DialogController "Simulink.DDGSource"
GotoTag "Packet_Envelope_802"
TagVisibility "global"
}
Block {
BlockType SubSystem
Name "Square pulse with\nPoisson process"
Ports [0, 1]
Position [35, 75, 100, 115]
AncestorBlock "My_Library/Poisson Process"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "Poisson process"
MaskPromptString "Average Rate (1/sec)|Mean Length|Length Var"
"iance|Seed"
MaskStyleString "edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on"
MaskCallbackString "|||"
MaskEnableString "on,on,on,on"
MaskVisibilityString "on,on,on,on"
MaskToolTipString "on,on,on,on"
MaskVarAliasString ",,,"
MaskVariables "rate=@1;m=@2;v=@3;seed=@4;"
MaskDisplay "plot(exp(-(0:.4:3)))"
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "adjusted_rate|m|v|rate_seed"
MaskTabNameString ",,,"
System {
Name "Square pulse with\nPoisson process"
Location [371, 166, 721, 291]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType "S-Function"
Name "S-Function"
Ports [0, 1]
Position [85, 51, 190, 79]
FunctionName "poiss_gaus_prc3"
Parameters "adjusted_rate,m,v,seed"
}
Block {
BlockType Outport
Name "hit"
Position [215, 58, 245, 72]
IconDisplay "Port number"
InitialOutput "0"
}
Line {
SrcBlock "S-Function"
SrcPort 1
DstBlock "hit"
DstPort 1
}
}
}
Block {
BlockType Outport
Name "Out"
Position [500, 178, 530, 192]
IconDisplay "Port number"
}
Line {
SrcBlock "Enable control"
SrcPort 1
Points [30, 0]
DstBlock "22MHz noise in\n100MHz signal"
DstPort enable
}
Line {
SrcBlock "Square pulse with\nPoisson process"
SrcPort 1
Points [-5, 0; 35, 0]
Branch {
Points [0, -55]
DstBlock "Goto4"
DstPort 1
}
Branch {
DstBlock "1/100packet\nresolution"
DstPort 1
}
}
Line {
SrcBlock "1/100packet\nresolution"
SrcPort 1
DstBlock "Enable control"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -