📄 bluetooth.mdl
字号:
Model {
Name "bluetooth"
Version 4.00
SampleTimeColors off
LibraryLinkDisplay "none"
WideLines off
ShowLineDimensions on
ShowPortDataTypes off
ShowStorageClass off
ExecutionOrder off
RecordCoverage off
CovPath "/"
CovSaveName "covdata"
CovMetricSettings "dw"
CovNameIncrementing off
CovHtmlReporting on
BlockNameDataTip off
BlockParametersDataTip off
BlockDescriptionStringDataTip off
ToolBar on
StatusBar on
BrowserShowLibraryLinks on
BrowserLookUnderMasks on
Created "Tue Nov 07 21:37:31 2000"
Creator "stuartm"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
LastModifiedBy "stuartm"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Mon Sep 10 22:54:35 2001"
ModelVersionFormat "1.%<AutoIncrement:102>"
ConfigurationManager "none"
SimParamPage "Solver"
StartTime "0.0"
StopTime "inf"
SolverMode "Auto"
Solver "VariableStepDiscrete"
RelTol "1e-3"
AbsTol "auto"
Refine "1"
MaxStep "auto"
MinStep "auto"
MaxNumMinSteps "-1"
InitialStep "auto"
FixedStep "auto"
MaxOrder 5
OutputOption "RefineOutputTimes"
OutputTimes "[]"
LoadExternalInput off
ExternalInput "[t, u]"
SaveTime off
TimeSaveName "tout"
SaveState off
StateSaveName "xout"
SaveOutput off
OutputSaveName "yout"
LoadInitialState off
InitialState "xInitial"
SaveFinalState off
FinalStateName "xFinal"
SaveFormat "Array"
LimitDataPoints on
MaxDataPoints "1000"
Decimation "1"
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"
ZeroCross on
Profile off
SimulationMode "normal"
RTWSystemTargetFile "grt.tlc"
RTWInlineParameters off
RTWRetainRTWFile off
RTWTemplateMakefile "grt_default_tmf"
RTWMakeCommand "make_rtw"
RTWGenerateCodeOnly off
TLCProfiler off
TLCDebug off
TLCCoverage off
AccelSystemTargetFile "accel.tlc"
AccelTemplateMakefile "accel_default_tmf"
AccelMakeCommand "make_rtw"
TryForcingSFcnDF 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
OptimizeBlockIOStorage on
BufferReuse on
ParameterPooling on
BlockReductionOpt off
RTWExpressionDepthLimit 5
BooleanDataType off
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"
Location [84, 207, 857, 698]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 150
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name "Assemble\nPackets\nof 625 bits\nat 1Mbps"
Ports [1, 1]
Position [290, 134, 320, 186]
SourceBlock "dspbuff3/Buffer"
SourceType "Buffer"
N "625"
V "0"
ic "0"
}
Block {
BlockType Display
Name "BER"
Ports [1]
Position [545, 410, 630, 470]
Format "short"
Decimation "1"
Floating off
SampleTime "-1"
}
Block {
BlockType Reference
Name "Binary\nData Source"
Ports [0, 1]
Position [25, 135, 95, 185]
SourceBlock "commsource2/Bernoulli Random\nBinary Generator"
SourceType "Bernoulli Random Binary Generator"
P "[.5]"
seed "[12345]"
Ts "1.5e-6"
frameBased on
sampPerFrame "10"
orient off
}
Block {
BlockType Reference
Name "Channel"
Ports [1, 1]
Position [565, 151, 615, 199]
SourceBlock "commchan2/AWGN\nChannel"
SourceType "AWGN Channel"
seed "1"
noiseMode "Signal to noise ratio (Es/No)"
EsNodB "20"
SNRdB "10"
Ps "1"
Tsym "1e-6"
variance ".1"
}
Block {
BlockType SubSystem
Name "Dis-assemble\nPacket"
Ports [1, 1]
Position [340, 307, 380, 353]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "Dis-assemble\nPacket"
Location [335, 394, 739, 514]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name " "
Position [25, 43, 55, 57]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Reference
Name "Buffer"
Ports [1, 1]
Position [125, 25, 175, 75]
SourceBlock "dspbuff3/Buffer"
SourceType "Buffer"
N "15"
V "0"
ic "0"
}
Block {
BlockType Reference
Name "Integer Delay"
Ports [1, 1]
Position [225, 32, 270, 68]
SourceBlock "dspsigops/Integer Delay"
SourceType "Integer Delay"
delay "10"
ic "0"
}
Block {
BlockType Outport
Name " "
Position [355, 43, 385, 57]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Buffer"
SrcPort 1
DstBlock "Integer Delay"
DstPort 1
}
Line {
SrcBlock "Integer Delay"
SrcPort 1
DstBlock " "
DstPort 1
}
Line {
SrcBlock " "
SrcPort 1
DstBlock "Buffer"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "Error Rate Calculation"
Ports [2, 1]
Position [445, 408, 505, 472]
ShowName off
SourceBlock "commsink2/Error Rate Calculation"
SourceType "Error Rate Calculation"
N "850"
st_delay "0"
cp_mode "Entire frame"
subframe "[]"
PMode "Port"
WsName "ErrorVec"
RsMode2 off
stop off
numErr "100"
maxBits "1e6"
}
Block {
BlockType Fcn
Name "Fcn"
Position [150, 440, 180, 470]
ShowName off
Expr "u-39"
}
Block {
BlockType SubSystem
Name "Frequency hopping\nFM Demodulator"
Ports [2, 1]
Position [210, 302, 285, 353]
AncestorBlock "commdigpbndpm2/M-PSK\nDemodulator\nPassband"
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskType "FH-CPM demod"
MaskDisplay "plot(0,0,100,100,[5+1.5*[[0:.8:10] [10:1.6:20] "
"[20:.8:30]] 50 50 50 50+15*[0 1 1 2 2 3]],[85+10*[sin([0:.8:10]*pi*2/5) sin(["
"10:1.6:20]*pi/5) sin([20:.8:30]*pi*2/5)] 85 99 75 85+8*[1 1 -1 -1 1 1]]);\ndi"
"sp('FH-FM\\n Demodulator')"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Frequency hopping\nFM Demodulator"
Location [73, 197, 693, 472]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 204
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [35, 65, 55, 85]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "In2"
Position [35, 145, 55, 165]
Port "2"
LatchInput off
Interpolate on
}
Block {
BlockType Reference
Name "Frame Status\nConversion"
Ports [1, 1]
Position [95, 139, 130, 171]
ShowName off
SourceBlock "dspsigattribs/Frame Status\nConversion"
SourceType "Frame Status Conversion"
growRefPort off
outframe "Frame-based"
}
Block {
BlockType Reference
Name "Generate\n79 possible carriers\n-39MHz to 3"
"9MHz\n"
Ports [1, 1]
Position [150, 130, 225, 180]
SourceBlock "commdigbbndfm2/M-FSK\nModulator\nBaseband"
SourceType "M-FSK Modulator Baseband"
M "79"
InType "Integer"
Enc "Binary"
freqSep "1e6"
phaseType "Continuous"
numSamp "6.25e4"
}
Block {
BlockType Reference
Name "M-FSK\nDemodulator\nBaseband"
Ports [1, 1]
Position [395, 60, 475, 110]
SourceBlock "commdigbbndfm2/M-FSK\nDemodulator\nBaseband"
SourceType "M-FSK Demodulator Baseband"
M "2"
OutType "Bit"
Dec "Binary"
freqSep "10"
numSamp "100"
}
Block {
BlockType Math
Name "Math\nFunction"
Ports [1, 1]
Position [245, 140, 275, 170]
ShowName off
Operator "conj"
OutputSignalType "auto"
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [315, 68, 345, 97]
ShowName off
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Outport
Name "Out"
Position [550, 75, 570, 95]
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
}
Line {
SrcBlock "M-FSK\nDemodulator\nBaseband"
SrcPort 1
DstBlock "Out"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
Points [210, 0]
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
DstBlock "M-FSK\nDemodulator\nBaseband"
DstPort 1
}
Line {
SrcBlock "In2"
SrcPort 1
DstBlock "Frame Status\nConversion"
DstPort 1
}
Line {
SrcBlock "Math\nFunction"
SrcPort 1
Points [20, 0]
DstBlock "Product1"
DstPort 2
}
Line {
SrcBlock "Generate\n79 possible carriers\n-39MHz to 3"
"9MHz\n"
SrcPort 1
DstBlock "Math\nFunction"
DstPort 1
}
Line {
SrcBlock "Frame Status\nConversion"
SrcPort 1
DstBlock "Generate\n79 possible carriers\n-39MHz to 3"
"9MHz\n"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Frequency hopping\nGFSK Modulator\n1600 hops pe"
"r sec"
Ports [2, 1]
Position [435, 147, 510, 198]
AncestorBlock "commdigpbndpm2/M-PSK\nModulator\nPassband"
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskType "FH-CPM"
MaskDisplay "plot(0,0,100,100,[5+15*[0 1 1 2 2 3] 50 50 50 5"
"0+1.5*[[0:.8:10] [10:1.6:20] [20:.8:30]]],[85+8*[1 1 -1 -1 1 1] 85 99 75 85+1"
"0*[sin([0:.8:10]*pi*2/5) sin([10:1.6:20]*pi/5) sin([20:.8:30]*pi*2/5)]]);\ndi"
"sp('FH-CPM\\nModulator')"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Frequency hopping\nGFSK Modulator\n1600 hops "
"per sec"
Location [124, 188, 675, 475]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -