📄 bluetooth_lib.mdl
字号:
Library {
Name "bluetooth_lib"
Version 4.00
LibraryLinkDisplay "user"
CovSaveName "covdata"
CovMetricSettings "dw"
CovNameIncrementing off
CovHtmlReporting on
BlockNameDataTip off
BlockParametersDataTip off
BlockDescriptionStringDataTip off
ToolBar off
StatusBar off
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
Created "Tue Oct 30 20:32:07 2001"
Creator "stuartm"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
LastModifiedBy "stuartm"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Wed Oct 31 18:19:05 2001"
ModelVersionFormat "1.%<AutoIncrement:7>"
ConfigurationManager "None"
SimParamPage "Solver"
AlgebraicLoopMsg "warning"
MinStepSizeMsg "warning"
UnconnectedInputMsg "warning"
UnconnectedOutputMsg "warning"
UnconnectedLineMsg "warning"
InheritedTsInSrcMsg "warning"
SingleTaskRateTransMsg "none"
MultiTaskRateTransMsg "error"
IntegerOverflowMsg "warning"
CheckForMatrixSingularity "none"
UnnecessaryDatatypeConvMsg "none"
Int32ToFloatConvMsg "warning"
InvalidFcnCallConnMsg "error"
SignalLabelMismatchMsg "none"
LinearizationMsg "none"
VectorMatrixConversionMsg "none"
SfunCompatibilityCheckMsg "none"
BlockPriorityViolationMsg "warning"
ArrayBoundsChecking "none"
ConsistencyChecking "none"
Profile off
SimulationMode "normal"
RTWRetainRTWFile off
RTWMakeCommand "make_rtw"
RTWGenerateCodeOnly off
TLCProfiler off
TLCDebug off
TLCCoverage off
ExtModeMexFile "ext_comm"
ExtModeBatchMode off
ExtModeTrigType "manual"
ExtModeTrigMode "normal"
ExtModeTrigPort "1"
ExtModeTrigElement "any"
ExtModeTrigDuration 1000
ExtModeTrigHoldOff 0
ExtModeTrigDelay 0
ExtModeTrigDirection "rising"
ExtModeTrigLevel 0
ExtModeArchiveMode "off"
ExtModeAutoIncOneShot off
ExtModeIncDirWhenArm off
ExtModeAddSuffixToVar off
ExtModeWriteAllDataToWs off
ExtModeArmWhenConnect on
ExtModeSkipDownloadWhenConnect off
ExtModeLogAll on
ExtModeAutoUpdateStatusClock on
BlockDefaults {
Orientation "right"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
NamePlacement "normal"
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "bluetooth_lib"
Location [230, 173, 528, 508]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType SubSystem
Name "802.11b\nTransmitter"
Ports [0, 1]
Position [40, 182, 115, 238]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskPromptString "Turn On 802.11|Average Rate (1/sec) (999 for co"
"nstant)|Mean Length (secs)|Length Variance (sec^2)|Power|Frequency Number (0-"
"78)|Rate Seed|Noise seed"
MaskStyleString "checkbox,edit,edit,edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on,on,on,on"
MaskCallbackString "|||||||"
MaskEnableString "on,on,on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on,on,on"
MaskVariables "On=@1;rate=@2;m=@3;v=@4;power=@5;Freq_Number=@6"
";rate_seed=@7;awgn_seed=@8;"
MaskInitialization "if On==1\n str='On';\nelse\n str='Off';\nend"
";\n\nadjusted_rate=rate/(1-rate*m); % account for finite packet length reduci"
"ng rate\n"
MaskDisplay "disp(['802.11b\\nInterferer\\n' str])"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "on|200|1e-3|0|1|39|rate_802_seed|awgn_802_seed"
MaskVariableAliases ",,,,,,,"
System {
Name "802.11b\nTransmitter"
Location [261, 347, 823, 624]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType ZeroOrderHold
Name "1/100packet\nresolution"
Position [160, 81, 185, 109]
SampleTime "(1/1600)/100"
}
Block {
BlockType SubSystem
Name "22MHz noise in\n100MHz signal"
Ports [0, 1, 1]
Position [285, 150, 350, 220]
ShowPortLabels on
TreatAsAtomicUnit on
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "22MHz noise in\n100MHz signal"
Location [124, 259, 986, 596]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType EnablePort
Name "Enable"
Ports []
Position [400, 55, 420, 75]
StatesWhenEnabling "held"
ShowOutputPort off
}
Block {
BlockType Reference
Name "20MHz\nwhite noise"
Ports [0, 1]
Position [35, 126, 70, 164]
UserDataPersistent on
UserData "DataTag0"
Diagnostics "AllowInheritedTsInSrc"
SourceBlock "dspsrcs3/Random\nSource"
SourceType "Random Source"
SrcType "Gaussian"
Min "0"
Max "1"
Mean "0"
Var "power"
RepMode "Specify seed"
Seed "awgn_seed"
Inherit "off"
SampMode "Discrete"
SampTime "1/20e6"
SampFrame "62500/500"
OutComplex "Complex"
}
Block {
BlockType Reference
Name "DSP\nConstant"
Ports [0, 1]
Position [105, 233, 185, 267]
ShowName off
SourceBlock "dspsrcs3/DSP\nConstant"
SourceType "DSP Constant"
Value "Freq_Number"
InterpretAs1D "off"
SampleMode "Discrete"
Ts ".01/1600"
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"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Product
Name "Mix"
Ports [2, 1]
Position [525, 136, 570, 169]
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
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"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Display
Name "Tx power"
Ports [1]
Position [715, 65, 805, 95]
Format "short"
Decimation "1"
Floating off
SampleTime "-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]
Port "1"
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
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "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
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -