📄 blutooth_hopping.mdl
字号:
Model {
Name "bt3"
Version 4.00
SampleTimeColors off
LibraryLinkDisplay "none"
WideLines off
ShowLineDimensions on
ShowPortDataTypes off
RecordCoverage off
CovPath "/"
CovSaveName "covdata"
CovNameIncrementing off
CovHtmlReporting on
BlockNameDataTip on
BlockParametersDataTip off
BlockDescriptionStringDataTip off
ToolBar on
StatusBar on
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
Created "Fri Feb 28 20:06:33 1997"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%<Auto>"
ModifiedDateFormat "%<Auto>"
LastModifiedDate "Wed Feb 09 14:36:23 2005"
ModelVersionFormat "1.%<AutoIncrement:96>"
ConfigurationManager "none"
SimParamPage "Solver"
StartTime "0.0"
StopTime "100000.0"
SolverMode "Auto"
Solver "ode45"
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 on
TimeSaveName "tout"
SaveState off
StateSaveName "xout"
SaveOutput on
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"
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"
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
ExtModeLogAll on
OptimizeBlockIOStorage on
BufferReuse on
ParameterPooling on
BlockReductionOpt off
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 "bt3"
Location [195, 74, 779, 568]
Open on
ModelBrowserVisibility on
ModelBrowserWidth 212
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom off
ReportName "simulink-default.rpt"
Block {
BlockType SubSystem
Name "28bit clock\n(Phase)"
Ports [1, 1]
Position [65, 77, 105, 133]
BackgroundColor "lightBlue"
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "28bit clock\n(Phase)"
Location [36, 337, 726, 652]
Open off
ModelBrowserVisibility on
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "In1"
Position [180, 113, 210, 127]
Port "1"
Interpolate on
}
Block {
BlockType Reference
Name "Phase = initial count"
Ports [1, 1]
Position [235, 105, 305, 165]
BackgroundColor "yellow"
FontSize 12
FontWeight "bold"
FontAngle "italic"
SourceBlock "dspswit3/Counter"
SourceType "Counter"
Direction "Up"
CountEvent "Rising edge"
CounterSize "User defined"
MaxCount "268435455"
InitialCount "0"
Output "Count"
HitValue "32"
ResetInput off
SamplesPerFrame "1"
Ts "1"
}
Block {
BlockType MATLABFcn
Name "dec2binvec (u,28)"
Position [360, 120, 420, 150]
MATLABFcn "dec2binvec(u,28)"
OutputDimensions "28"
OutputSignalType "auto"
Output1D on
}
Block {
BlockType Outport
Name "Out1"
Position [485, 128, 515, 142]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Phase = initial count"
SrcPort 1
DstBlock "dec2binvec (u,28)"
DstPort 1
}
Line {
SrcBlock "dec2binvec (u,28)"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
Points [5, 0]
DstBlock "Phase = initial count"
DstPort 1
}
Annotation {
Position [358, 222]
Text " By changing the initial count the phase of"
" the \nhopping sequence changes"
FontName "Arial"
FontSize 16
FontWeight "bold"
}
Annotation {
Position [343, 37]
BackgroundColor "lightBlue"
Text " 28-bit clock subsystem "
FontName "Arial"
FontSize 22
FontWeight "bold"
}
}
}
Block {
BlockType Constant
Name "Adress\n(28 bits)"
Tag "Address"
Description "Address"
Position [25, 310, 55, 340]
BackgroundColor "lightBlue"
FontSize 12
FontWeight "bold"
Value "[1 0 0 1 1 0 1 1 0 1 0 1 1 1 1 0 0 1 0 0 1 1 0 "
"0 0 0 1 1]"
VectorParams1D on
}
Block {
BlockType SubSystem
Name "F"
Ports [0, 1]
Position [360, 324, 400, 356]
BackgroundColor "yellow"
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "F"
Location [255, 187, 753, 487]
Open off
ModelBrowserVisibility on
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Constant
Name "Constant3"
Position [180, 125, 210, 155]
Value "79"
VectorParams1D on
}
Block {
BlockType Reference
Name "Counter1"
Ports [2, 1]
Position [110, 35, 180, 95]
SourceBlock "dspswit3/Counter"
SourceType "Counter"
Direction "Up"
CountEvent "Rising edge"
CounterSize "User defined"
MaxCount "268435455"
InitialCount "0"
Output "Count"
HitValue "32"
ResetInput on
SamplesPerFrame "1"
Ts "1"
}
Block {
BlockType Math
Name "Math\nFunction1"
Ports [2, 1]
Position [260, 59, 295, 86]
Operator "mod"
OutputSignalType "auto"
}
Block {
BlockType Reference
Name "Pulse\nGenerator"
Ports [0, 1]
Position [30, 35, 60, 65]
SourceBlock "simulink3/Sources/Pulse\nGenerator"
SourceType "Pulse Generator"
period "0.08"
duty "50"
amplitude "1"
start "0"
VectorParams1D on
}
Block {
BlockType MATLABFcn
Name "dec2binvec (u,21)"
Position [340, 60, 400, 90]
MATLABFcn "dec2binvec(u,7)"
OutputDimensions "7"
OutputSignalType "auto"
Output1D on
}
Block {
BlockType Outport
Name "Out1"
Position [435, 65, 470, 85]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Pulse\nGenerator"
SrcPort 1
DstBlock "Counter1"
DstPort 1
}
Line {
SrcBlock "dec2binvec (u,21)"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Counter1"
SrcPort 1
DstBlock "Math\nFunction1"
DstPort 1
}
Line {
SrcBlock "Constant3"
SrcPort 1
Points [30, 0]
DstBlock "Math\nFunction1"
DstPort 2
}
Line {
SrcBlock "Math\nFunction1"
SrcPort 1
DstBlock "dec2binvec (u,21)"
DstPort 1
}
}
}
Block {
BlockType From
Name "From1"
Position [360, 161, 400, 189]
CloseFcn "tagdialog Close"
GotoTag "A"
}
Block {
BlockType From
Name "From2"
Position [360, 106, 400, 134]
CloseFcn "tagdialog Close"
GotoTag "B"
Port {
PortNumber 1
Name "4"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType From
Name "From5"
Position [360, 376, 400, 404]
CloseFcn "tagdialog Close"
GotoTag "E"
}
Block {
BlockType From
Name "From7"
Position [360, 276, 400, 304]
CloseFcn "tagdialog Close"
GotoTag "Y2"
}
Block {
BlockType From
Name "From8"
Position [360, 221, 400, 249]
CloseFcn "tagdialog Close"
GotoTag "X"
Port {
PortNumber 1
Name "5"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType Goto
Name "Goto1"
Position [215, 220, 255, 250]
BackgroundColor "yellow"
GotoTag "A"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto2"
Position [215, 395, 255, 425]
BackgroundColor "yellow"
GotoTag "B"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto3"
Position [215, 270, 255, 300]
BackgroundColor "yellow"
GotoTag "C"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto4"
Position [215, 325, 255, 355]
BackgroundColor "yellow"
GotoTag "D"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto5"
Position [215, 450, 255, 480]
BackgroundColor "yellow"
GotoTag "E"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto6"
Position [215, 90, 255, 120]
BackgroundColor "yellow"
GotoTag "Y1"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto7"
Position [280, 157, 320, 173]
BackgroundColor "yellow"
GotoTag "Y2"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto8"
Position [215, 25, 255, 55]
BackgroundColor "yellow"
GotoTag "X"
TagVisibility "local"
}
Block {
BlockType Display
Name "Hop frequency"
Ports [1]
Position [605, 216, 695, 254]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -