📄 uwb.mdl
字号:
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Constant
Name "Constant"
Position [65, 35, 350, 55]
BackgroundColor "orange"
ShowName off
Value "repmat(uwb.CESequence, [1 uwb.CEPerFram"
"e])"
VectorParams1D off
OutDataTypeMode "Specify via dialog"
OutDataType "uwb.OFDMDataType"
OutScaling "fpscaling(uwb.OFDMWordLength, [16 14; 1"
"2 11; 10 9; 8 7]) "
}
Block {
BlockType Outport
Name "out"
Position [395, 38, 425, 52]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "out"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Channel compensation"
Ports [2, 2]
Position [510, 75, 585, 215]
BackgroundColor "orange"
ShowName off
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskDisplay "disp('Channel\\nEstimation\\nand\\nCompensa"
"tion')\n"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Channel compensation"
Location [4, 298, 1016, 606]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "rxsig"
Position [15, 177, 35, 193]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "trainsig"
Position [15, 87, 35, 103]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Abs
Name "Abs"
Position [510, 140, 530, 160]
ShowName off
}
Block {
BlockType Abs
Name "Abs1"
Position [510, 165, 530, 185]
ShowName off
}
Block {
BlockType Reference
Name "Complex\nConjugate"
Ports [1, 1]
Position [185, 84, 210, 106]
ShowName off
SourceBlock "uwb_lib/Complex\nConjugate"
SourceType ""
ShowPortLabels on
}
Block {
BlockType Reference
Name "Complex\nConjugate3"
Ports [1, 1]
Position [450, 89, 475, 111]
ShowName off
SourceBlock "uwb_lib/Complex\nConjugate"
SourceType ""
ShowPortLabels on
}
Block {
BlockType ComplexToRealImag
Name "Complex to\nReal-Imag1"
Ports [1, 2]
Position [435, 136, 485, 189]
ShowName off
Output "Real and imag"
}
Block {
BlockType SubSystem
Name "Division with\ndivisor checking"
Ports [2, 1]
Position [670, 75, 705, 175]
BackgroundColor "orange"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "Division with zero-divisor checking"
MaskPromptString "Data type:|Fixed point scaling:"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskToolTipString "on,on"
MaskVarAliasString ","
MaskVariables "dataType=@1;fpScaling=@2;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "uwb.OFDMDataType|fpscaling(uwb.OFDMWord"
"Length, [16 14; 12 11; 10 9; 8 7]) "
MaskTabNameString ","
System {
Name "Division with\ndivisor checking"
Location [279, 388, 913, 660]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [20, 93, 50, 107]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "In2"
Position [20, 133, 50, 147]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Constant
Name "Constant"
Position [60, 35, 105, 55]
BackgroundColor "orange"
ShowName off
Value "fpscaling(uwb.OFDMWordLength, [16 1"
"4; 12 11; 10 9; 8 7]) "
OutDataTypeMode "Inherit via back propagation"
}
Block {
BlockType DataTypeConversion
Name "Conversion2"
Position [275, 180, 315, 220]
BackgroundColor "orange"
ShowName off
OutDataTypeMode "Specify via dialog"
OutDataType "uwb.OFDMDataType"
OutScaling "fpscaling(uwb.OFDMWordLength, [16 1"
"4; 12 11; 10 9; 8 7]) "
RndMeth "Floor"
}
Block {
BlockType Logic
Name "Logical\nOperator"
Ports [1, 1]
Position [230, 27, 260, 53]
ShowName off
Operator "NOR"
Inputs "1"
AllPortsSameDT off
}
Block {
BlockType Logic
Name "Logical\nOperator1"
Ports [1, 1]
Position [330, 27, 360, 53]
ShowName off
Operator "NOT"
Inputs "1"
AllPortsSameDT off
}
Block {
BlockType Merge
Name "Merge"
Ports [2, 1]
Position [460, 110, 500, 150]
InitialOutput "1"
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator"
Position [165, 20, 190, 55]
ShowName off
Operator "<="
InputSameDT off
}
Block {
BlockType SubSystem
Name "c = a"
Ports [1, 1, 1]
Position [350, 160, 385, 240]
TreatAsAtomicUnit on
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "c = a"
Location [421, 301, 919, 601]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "a"
Position [150, 123, 180, 137]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType EnablePort
Name "Enable"
Ports []
Position [235, 20, 255, 40]
}
Block {
BlockType Outport
Name "c"
Position [355, 123, 385, 137]
IconDisplay "Port number"
BusOutputAsStruct off
OutputWhenDisabled "reset"
InitialOutput "1"
}
Line {
SrcBlock "a"
SrcPort 1
DstBlock "c"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "c = a/b"
Ports [2, 1, 1]
Position [275, 80, 310, 160]
BackgroundColor "orange"
TreatAsAtomicUnit on
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "c = a/b"
Location [421, 301, 919, 601]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "a"
Position [150, 103, 180, 117]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "b"
Position [150, 143, 180, 157]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType EnablePort
Name "Enable"
Ports []
Position [235, 20, 255, 40]
}
Block {
BlockType Product
Name "Estimate eq gain"
Ports [2, 1]
Position [235, 90, 250, 170]
BackgroundColor "orange"
Inputs "*/"
InputSameDT off
OutDataTypeMode "Specify via dialog"
OutDataType "uwb.OFDMDataType"
OutScaling "fpscaling(uwb.OFDMWordLength, [16"
" 14; 12 11; 10 9; 8 7]) "
RndMeth "Floor"
}
Block {
BlockType Outport
Name "c"
Position [315, 123, 345, 137]
IconDisplay "Port number"
BusOutputAsStruct off
OutputWhenDisabled "reset"
InitialOutput "1"
}
Line {
SrcBlock "Estimate eq gain"
SrcPort 1
DstBlock "c"
DstPort 1
}
Line {
SrcBlock "b"
SrcPort 1
DstBlock "Estimate eq gain"
DstPort 2
}
Line {
SrcBlock "a"
SrcPort 1
DstBlock "Estimate eq gain"
DstPort 1
}
}
}
Block {
BlockType Outport
Name "Out"
Position [555, 123, 585, 137]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "In1"
SrcPort 1
Points [185, 0]
Branch {
Points [0, 100]
DstBlock "Conversion2"
DstPort 1
}
Branch {
DstBlock "c = a/b"
DstPort 1
}
}
Line {
SrcBlock "Relational\nOperator"
SrcPort 1
DstBlock "Logical\nOperator"
DstPort 1
}
Line {
SrcBlock "In2"
SrcPort 1
Points [90, 0]
Branch {
DstBlock "c = a/b"
DstPort 2
}
Branch {
Points [0, -110]
DstBlock "Relational\nOperator"
DstPort 1
}
}
Line {
SrcBlock "Logical\nOperator"
SrcPort 1
Points [25, 0]
Branch {
DstBlock "Logical\nOperator1"
DstPort 1
}
Branch {
DstBlock "c = a/b"
DstPort enable
}
}
Line {
SrcBlock "Logical\nOperator1"
SrcPort 1
DstBlock "c = a"
DstPort enable
}
Line {
SrcBlock "c = a/b"
SrcPort 1
DstBlock "Merge"
DstPort 1
}
Line {
SrcBlock "c = a"
SrcPort 1
Points [25, 0; 0, -60]
DstBlock "Merge"
DstPort 2
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Relational\nOperator"
DstPort 2
}
Line {
SrcBlock "Conversion2"
SrcPort 1
DstBlock "c = a"
DstPort 1
}
Line {
SrcBlock "Merge"
SrcPort 1
DstBlock "Out"
DstPort 1
}
}
}
Block {
BlockType Gain
Name "Gain2"
Position [75, 170, 105, 200]
BackgroundColor "orange"
ShowName off
Gain "1/16"
ParameterDataTypeMode "Specify via dialog"
ParameterDataType "uwb.OFDMDataType"
OutDataTypeMode "Specify via dialog"
OutDataType "uwb.OFDMDataType"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -