📄 bluetooth_full_duplex.mdl
字号:
Permissions "ReadWrite"
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType Sum
IconShape "rectangular"
Inputs "++"
ShowAdditionalParam off
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
}
Block {
BlockType Switch
Criteria "u2 >= Threshold"
Threshold "0"
ShowAdditionalParam off
InputSameDT on
OutDataTypeMode "Inherit via internal rule"
RndMeth "Floor"
SaturateOnIntegerOverflow on
ZeroCross on
}
Block {
BlockType Terminator
}
Block {
BlockType ToWorkspace
VariableName "simulink_output"
MaxDataPoints "1000"
Decimation "1"
SampleTime "0"
}
Block {
BlockType TriggerPort
TriggerType "rising"
ShowOutputPort off
OutputDataType "auto"
ZeroCross on
}
Block {
BlockType ZeroOrderHold
SampleTime "1"
}
}
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_full_duplex"
Location [9, 76, 1009, 682]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 212
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Scope
Name "ARQN display for\ndata transmission"
Ports [5]
Position [850, 380, 890, 480]
Location [714, 368, 1002, 694]
Open off
NumInputPorts "5"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
axes5 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
axes3 ""
axes4 ""
axes5 ""
}
TimeRange "0.0075"
YMin "-0.1~-0.1~-0.1~-0.1~-0.1"
YMax "1.1~1.1~1.1~1.1~1.1"
SaveName "ScopeData2"
DataFormat "StructureWithTime"
}
Block {
BlockType Reference
Name "BT Device"
Ports [4, 4]
Position [150, 185, 230, 275]
ShowName off
AttributesFormatString "Device %<ID>: %<Device_Type>"
FontName "Arial"
SourceBlock "bluetooth_lib2/BT Device"
SourceType "BT Device "
ID "1"
Device_Type "Master"
mask_packet_type "DM1"
Slot_Pair "1&2"
Input_File_Name "Input1.wav"
}
Block {
BlockType Reference
Name "BT Device1"
Ports [4, 4]
Position [775, 185, 855, 275]
ShowName off
AttributesFormatString "Device %<ID>: %<Device_Type>"
FontName "Arial"
SourceBlock "bluetooth_lib2/BT Device"
SourceType "BT Device "
ID "2"
Device_Type "Slave"
mask_packet_type "DM1"
Slot_Pair "1&2"
Input_File_Name "Input2.wav"
}
Block {
BlockType BusSelector
Name "Bus\nSelector"
Ports [1, 3]
Position [735, 379, 740, 441]
ShowName off
OutputSignals "Tx Enable,Rx ARQN,Tx New Packet"
Port {
PortNumber 1
Name "<Tx Enable>"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
Port {
PortNumber 2
Name "<Rx ARQN>"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
Port {
PortNumber 3
Name "<Tx New Packet>"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType BusSelector
Name "Bus\nSelector1"
Ports [1, 2]
Position [735, 440, 740, 480]
ShowName off
OutputSignals "Rx Enable,Rx Frame OK"
Port {
PortNumber 1
Name "<Rx Enable>"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
Port {
PortNumber 2
Name "<Rx Frame OK>"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType SubSystem
Name "Channel"
Ports [3, 3]
Position [455, 184, 530, 276]
AttributesFormatString "%<BlockChoice>"
BlockChoice "AWGN and 802"
TemplateBlock "bluetooth_lib2/Channel"
MemberBlocks "AWGN,AWGN and 802,None"
TreatAsAtomicUnit off
System {
Name "Channel"
Location [148, 182, 646, 482]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Tx1"
Position [20, 40, 40, 60]
ForegroundColor "yellow"
}
Block {
BlockType Inport
Name "Tx2"
Position [20, 80, 40, 100]
ForegroundColor "yellow"
Port "2"
}
Block {
BlockType Inport
Name "Interferer"
Position [20, 120, 40, 140]
ForegroundColor "yellow"
Port "3"
}
Block {
BlockType Reference
Name "AWGN and 802"
Ports [3, 3]
Position [100, 40, 140, 80]
SourceBlock "bluetooth_lib2/AWGN and 802"
SourceType "SubSystem"
ShowPortLabels on
Permissions "ReadWrite"
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType Outport
Name "Rx2"
Position [200, 40, 220, 60]
}
Block {
BlockType Outport
Name "Rx1"
Position [200, 80, 220, 100]
Port "2"
}
Block {
BlockType Outport
Name "Probe"
Position [200, 120, 220, 140]
Port "3"
}
Line {
SrcBlock "Tx1"
SrcPort 1
DstBlock "AWGN and 802"
DstPort 1
}
Line {
SrcBlock "Tx2"
SrcPort 1
DstBlock "AWGN and 802"
DstPort 2
}
Line {
SrcBlock "Interferer"
SrcPort 1
DstBlock "AWGN and 802"
DstPort 3
}
Line {
SrcBlock "AWGN and 802"
SrcPort 1
DstBlock "Rx2"
DstPort 1
}
Line {
SrcBlock "AWGN and 802"
SrcPort 2
DstBlock "Rx1"
DstPort 1
}
Line {
SrcBlock "AWGN and 802"
SrcPort 3
DstBlock "Probe"
DstPort 1
}
}
}
Block {
BlockType From
Name "From1"
Position [315, 426, 395, 444]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "Interference"
}
Block {
BlockType From
Name "From12"
Position [25, 232, 105, 248]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "Tx_Info_Bits2"
}
Block {
BlockType From
Name "From14"
Position [645, 231, 730, 249]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "Tx_Info_Bits1"
}
Block {
BlockType From
Name "From15"
Position [605, 402, 685, 418]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "Diagnostics1"
}
Block {
BlockType From
Name "From16"
Position [605, 452, 685, 468]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "Diagnostics2"
}
Block {
BlockType From
Name "From17"
Position [25, 252, 100, 268]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "Diagnostics2"
}
Block {
BlockType From
Name "From18"
Position [645, 252, 730, 268]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "Diagnostics1"
}
Block {
BlockType From
Name "From2"
Position [25, 212, 105, 228]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "Tx_Raw_Bits2"
}
Block {
BlockType From
Name "From3"
Position [315, 393, 395, 407]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "Signal_Tx1"
}
Block {
BlockType From
Name "From4"
Position [315, 408, 395, 422]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "Signal_Tx2"
}
Block {
BlockType From
Name "From5"
Position [355, 252, 435, 268]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "Interference"
}
Block {
BlockType From
Name "From6"
Position [25, 192, 105, 208]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "Signal_Rx1"
}
Block {
BlockType From
Name "From7"
Position [315, 454, 395, 466]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "Probe"
}
Block {
BlockType From
Name "From8"
Position [355, 222, 435, 238]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "Signal_Tx2"
}
Block {
BlockType From
Name "From9"
Position [645, 212, 725, 228]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -