📄 bluetooth_lib.mdl
字号:
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In"
Position [60, 13, 90, 27]
Port "1"
LatchInput off
Interpolate on
}
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
Operator "AND"
Inputs "2"
}
Block {
BlockType Logic
Name "Logical\nOperator1"
Ports [2, 1]
Position [260, 107, 290, 138]
ShowName off
Operator "AND"
Inputs "2"
}
Block {
BlockType Logic
Name "Logical\nOperator2"
Ports [2, 1]
Position [335, 47, 365, 78]
ShowName off
Operator "OR"
Inputs "2"
}
Block {
BlockType Constant
Name "Mode"
Position [40, 49, 110, 71]
ShowName off
Value "On"
VectorParams1D on
}
Block {
BlockType Constant
Name "Mode1"
Position [40, 106, 115, 124]
ShowName off
Value "rate"
VectorParams1D on
}
Block {
BlockType Constant
Name "Mode2"
Position [40, 133, 115, 147]
ShowName off
Value "999"
VectorParams1D on
}
Block {
BlockType Outport
Name "Out"
Position [390, 58, 420, 72]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
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
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"
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "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"
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"
MaskVariableAliases ",,,"
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"
PortCounts "[]"
SFunctionModules "''"
}
Block {
BlockType Outport
Name "hit"
Position [215, 58, 245, 72]
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
}
Line {
SrcBlock "S-Function"
SrcPort 1
DstBlock "hit"
DstPort 1
}
}
}
Block {
BlockType Outport
Name "Out"
Position [500, 178, 530, 192]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
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"
DstPort 1
}
Line {
SrcBlock "Buffer to same\nframe-size\nas channel"
SrcPort 1
DstBlock "Out"
DstPort 1
}
Line {
SrcBlock "22MHz noise in\n100MHz signal"
SrcPort 1
DstBlock "Buffer to same\nframe-size\nas channel"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Bluetooth\nClock"
Ports [0, 1]
Position [40, 64, 80, 96]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskType "Bluetooth Clock"
MaskPromptString "Sample Time"
MaskStyleString "edit"
MaskTunableValueString "on"
MaskEnableString "on"
MaskVisibilityString "on"
MaskToolTipString "on"
MaskVariables "Ts=@1;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "(1/1600)/2"
System {
Name "Bluetooth\nClock"
Location [202, 460, 502, 581]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Reference
Name "DSP\nConstant"
Ports [0, 1]
Position [25, 29, 60, 61]
ShowName off
SourceBlock "dspsrcs3/DSP\nConstant"
SourceType "DSP Constant"
Value "1"
InterpretAs1D "off"
SampleMode "Discrete"
Ts "Ts"
FramebasedOutput "off"
}
Block {
BlockType Reference
Name "Integer Delay1"
Ports [1, 1]
Position [145, 27, 190, 63]
ShowName off
SourceBlock "dspsigops/Integer Delay"
SourceType "Integer Delay"
delay "1"
ic "0"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [105, 35, 125, 55]
ShowName off
IconShape "round"
Inputs "|++"
SaturateOnIntegerOverflow on
}
Block {
BlockType Outport
Name "CLK"
Position [245, 38, 275, 52]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Integer Delay1"
DstPort 1
}
Line {
SrcBlock "DSP\nConstant"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Integer Delay1"
SrcPort 1
Points [0, 0; 30, 0]
Branch {
Labels [3, 0]
Points [0, 50; -110, 0]
DstBlock "Sum"
DstPort 2
}
Branch {
DstBlock "CLK"
DstPort 1
}
}
}
}
Block {
BlockType SubSystem
Name "Hop Sequence\nGenerator"
Ports [2, 1]
Position [165, 65, 235, 125]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskType "Hop Sequence Generator"
MaskDescription "Generate a sequence of hop frequencies in the r"
"ange 0 to 78. Can generate either the connection state hop sequence, a random"
" white sequence, or be fixed."
MaskPromptString "Hop mode|Hop seed (for white random sequence op"
"tion)|Fixed hop frequency (for fixed option)"
MaskStyleString "popup(Connection State Hop Sequence|Random Whit"
"e Hop Sequence|Fixed Frequency),edit,edit"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "on,on,on"
MaskVisibilityString "on,on,on"
MaskToolTipString "on,on,on"
MaskVariables "Hop_Mode=@1;hop_seed=@2;fixed_hop_freq=@3;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "Connection State Hop Sequence|hop_seed|fixed_ho"
"p_freq"
MaskVariableAliases ",,"
System {
Name "Hop Sequence\nGenerator"
Location [105, 176, 774, 568]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "CLK"
Position [200, 93, 230, 107]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "ULAP"
Position [200, 123, 230, 137]
Port "2"
LatchInput off
Interpolate on
}
Block {
BlockType SubSystem
Name "Connection State\nHop Sequence"
Ports [2, 1, 1]
Position [300, 85, 385, 145]
ShowPortLabels on
TreatAsAtomicUnit on
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "Connection State\nHop Sequence"
Location [250, 198, 944, 647]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "CLK"
Position [65, 188, 95, 202]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "ULAP"
Position [65, 253, 95, 267]
Port "2"
LatchInput off
Interpolate on
}
Block {
BlockType EnablePort
Name "Enable"
Ports []
Position [275, 55, 295, 75]
StatesWhenEnabling "held"
ShowOutputPort off
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -