?? ds_uwb200msys.mdl
字號:
Name "Memory1"
Position [230, 130, 260, 160]
ShowName off
InheritSampleTime on
}
Block {
BlockType Memory
Name "Memory2"
Position [295, 130, 325, 160]
ShowName off
InheritSampleTime on
}
Block {
BlockType Memory
Name "Memory3"
Position [360, 130, 390, 160]
ShowName off
InheritSampleTime on
}
Block {
BlockType Sum
Name "Sum"
Ports [5, 1]
Position [380, 255, 410, 285]
ShowName off
IconShape "round"
Inputs "|+++++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Outport
Name "Requa"
Position [485, 263, 515, 277]
}
Line {
SrcBlock "Tbout"
SrcPort 1
DstBlock "Downsample"
DstPort 1
}
Line {
SrcBlock "Downsample"
SrcPort 1
Points [0, 0; 25, 0]
Branch {
DstBlock "Gain"
DstPort 1
}
Branch {
DstBlock "Memory"
DstPort 1
}
}
Line {
SrcBlock "Memory"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
DstBlock "Memory1"
DstPort 1
}
Branch {
DstBlock "Gain1"
DstPort 1
}
}
Line {
SrcBlock "Memory1"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
DstBlock "Memory2"
DstPort 1
}
Branch {
DstBlock "Gain2"
DstPort 1
}
}
Line {
SrcBlock "Memory2"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
DstBlock "Memory3"
DstPort 1
}
Branch {
DstBlock "Gain3"
DstPort 1
}
}
Line {
SrcBlock "Memory3"
SrcPort 1
Points [5, 0]
DstBlock "Gain4"
DstPort 1
}
Line {
SrcBlock "Gain4"
SrcPort 1
Points [-22, 0]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Gain3"
SrcPort 1
Points [0, 5; 26, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Gain2"
SrcPort 1
Points [0, 44]
DstBlock "Sum"
DstPort 3
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [0, 59]
DstBlock "Sum"
DstPort 4
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [0, 70; 245, 0]
DstBlock "Sum"
DstPort 5
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Requa"
DstPort 1
}
Annotation {
Position [226, 285]
}
Annotation {
Position [258, 238]
}
}
}
Block {
BlockType SubSystem
Name "8判決輸出"
Ports [1, 1]
Position [150, 141, 215, 219]
Orientation "left"
Priority "8"
FontSize 12
TreatAsAtomicUnit off
MaskDescription "設(shè)相關(guān)檢測器考相干波形幅度為ARef,輸出能量Eout="
"(ATr*ARef)^2=Maxout^2,故判決門限與Maxout正比,也與ARef成正比;但信噪比(或檢"
"測器性能)卻與ARef無關(guān),設(shè)擴頻碼長為N,當用ARef波形和歸一化擴頻波形相關(guān)時有:"
"\nSNRo1=Eout/((sigma/N)*ARef^2); SNRo2=ATr^2/(sigma/N)\n相同,其中sigma為噪"
"聲方差,(sigma/N)表示擴頻作用使平均噪聲方差變小。\n理解相干解調(diào)輸出信噪比僅由"
"發(fā)送波形和sigma所確定,與檢測器相干波形幅度無關(guān)"
MaskPromptString "判決門限=Modulation.cross*Modulation.A*Plus.A"
MaskStyleString "checkbox"
MaskTunableValueString "on"
MaskEnableString "on"
MaskVisibilityString "on"
MaskToolTipString "on"
MaskVariables "cross=@1;"
MaskInitialization "Modulation=evalin('base','Modulation');\nPlus=e"
"valin('base','Plus');\nChannel=evalin('base','Channel');\n%cross=Modulation.C"
"ross*Modulation.A*Plus.A...\n %*Channel.Gain;\ncross=Modulation.Cross*"
"Modulation.A*Plus.A;\n\n"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "on"
System {
Name "8判決輸出"
Location [179, 82, 991, 743]
Open off
ModelBrowserVisibility on
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "TbEsti"
Position [65, 88, 95, 102]
}
Block {
BlockType Constant
Name "Constant3"
Position [70, 150, 110, 180]
NamePlacement "alternate"
ShowName off
FontSize 12
Value "cross"
}
Block {
BlockType RelationalOperator
Name "rational"
Position [180, 86, 220, 119]
FontSize 12
Operator ">"
InputSameDT off
}
Block {
BlockType Outport
Name "Rcv"
Position [265, 98, 295, 112]
}
Line {
SrcBlock "Constant3"
SrcPort 1
Points [50, 0]
DstBlock "rational"
DstPort 2
}
Line {
SrcBlock "rational"
SrcPort 1
DstBlock "Rcv"
DstPort 1
}
Line {
SrcBlock "TbEsti"
SrcPort 1
DstBlock "rational"
DstPort 1
}
Annotation {
Position [226, 230]
}
Annotation {
Position [258, 183]
}
}
}
Block {
BlockType "S-Function"
Name "Error Rate\nCalculation"
Ports [2]
Position [25, 136, 90, 194]
Orientation "left"
ShowName off
Priority "9"
AncestorBlock "commsink2/Error Rate\nCalculation"
FunctionName "scomerrrate2"
Parameters "N, st_delay, cp_mode, subframe, PMode, WsName, "
"RsMode2,stop,numErr,maxBits"
MaskType "Error Rate Calculation"
MaskDescription "Compute the error rate of the received data by "
"comparing it to a delayed version of the transmitted data. The block output i"
"s a three-element vector consisting of the error rate, followed by the number"
" of errors detected and the total number of symbols compared. This vector can"
" be sent to either the workspace or an output port.\n\nThe delays are specifi"
"ed in number of samples, regardless of whether the input is a scalar or a vec"
"tor. The inputs to the 'Tx' and 'Rx' ports must be sample-based scalars or fr"
"ame-based column vectors. \n\nThe 'Stop simulation' option stops the simulati"
"on upon detecting a target number of errors or a maximum number of symbols, w"
"hichever comes first."
MaskHelp "helpview(commbhelp)"
MaskPromptString "Receive delay:|Computation delay:|Computation m"
"ode:|Selected samples from frame:|Output data:|Variable name:|Reset port|Stop"
" simulation|Target number of errors:|Maximum number of symbols:"
MaskStyleString "edit,edit,popup(Entire frame|Select samples fro"
"m mask|Select samples from port),edit,popup(Workspace|Port),edit,checkbox,che"
"ckbox,edit,edit"
MaskTunableValueString "off,off,off,off,off,off,off,on,on,on"
MaskCallbackString "||commblkerrrate(gcb,'CpMode');||commblkerrrate"
"(gcb,'OutMode');|||commblkerrrate(gcb,'UpdateEnables');||"
MaskEnableString "on,on,on,off,on,on,on,on,off,off"
MaskVisibilityString "on,on,on,off,on,on,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on,on,on,on,on"
MaskVarAliasString ",,,,,,,,,"
MaskVariables "N=@1;st_delay=@2;cp_mode=@3;subframe=@4;PMode=@"
"5;WsName=&6;RsMode2=@7;stop=@8;numErr=@9;maxBits=@10;"
MaskInitialization "[s] = commblkerrrate(gcb,'init');\nif(PMode==1)"
"\n if(isempty(WsName))\n error('Output variable name cannot be empt"
"y.')\n end\n if(~isletter(WsName(1)))\n error('Output variable n"
"ame must be a string.')\n end\nend\n"
MaskDisplay "disp(' Error Rate\\n Calculation');\nport_lab"
"el('input',s.i1,s.i1s);\nport_label('input',s.i2,s.i2s);\nport_label('input',"
"s.i3,s.i3s);\nport_label('input',s.i4,s.i4s);"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "2+ceil(max(Channel.SigPath)*xtcs.Ts/xtcs.Tb)|10"
"|Entire frame|[2]|Workspace|ErrorVec|off|off|100|1e6"
}
Block {
BlockType Scope
Name "Floating\nScope"
Ports [4]
Position [35, 254, 90, 326]
Orientation "left"
NamePlacement "alternate"
ShowName off
FontSize 12
Location [5, 64, 1028, 762]
Open off
NumInputPorts "4"
TickLabels "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 "DS_UWB200MSYS/5UWB信道:1|DS_UWB200MSYS/3脈沖"
"觸發(fā):1|DS_UWB200MSYS/4數(shù)據(jù)調(diào)制:1|DS_UWB200MSYS/7Equalizer:1"
axes2 "DS_UWB200MSYS/6RAKE:1|DS_UWB200MSYS/5UWB信道:"
"1"
axes3 "DS_UWB200MSYS/7Equalizer/Tbout:1|DS_UWB200MSY"
"S/8判決輸出:1|DS_UWB200MSYS/6RAKE:1"
axes4 "DS_UWB200MSYS/7Equalizer/Sum:1"
}
TimeRange "250"
YMin "-0.75~-1~-0.5~-5"
YMax "0.75~1~1~5"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
}
Line {
SrcBlock "4數(shù)據(jù)調(diào)制"
SrcPort 1
Points [60, 0]
Branch {
Points [160, 0]
DstBlock "5UWB信道"
DstPort 1
}
Branch {
Points [0, 205]
DstBlock "Floating\nScope"
DstPort 1
}
}
Line {
SrcBlock "3脈沖觸發(fā)"
SrcPort 1
DstBlock "4數(shù)據(jù)調(diào)制"
DstPort 1
}
Line {
SrcBlock "8判決輸出"
SrcPort 1
DstBlock "Error Rate\nCalculation"
DstPort 2
}
Line {
SrcBlock "5UWB信道"
SrcPort 1
Points [0, 30]
Branch {
DstBlock "6RAKE"
DstPort 1
}
Branch {
Points [0, 100]
DstBlock "Floating\nScope"
DstPort 2
}
}
Line {
SrcBlock "6RAKE"
SrcPort 1
Points [-10, 0]
Branch {
DstBlock "7Equalizer"
DstPort 1
}
Branch {
Points [0, 120]
DstBlock "Floating\nScope"
DstPort 3
}
}
Line {
SrcBlock "7Equalizer"
SrcPort 1
Points [-5, 0]
Branch {
DstBlock "8判決輸出"
DstPort 1
}
Branch {
Points [0, 140]
DstBlock "Floating\nScope"
DstPort 4
}
}
Line {
SrcBlock "2信息碼元"
SrcPort 2
Points [40, 0; 0, 55]
DstBlock "Error Rate\nCalculation"
DstPort 1
}
Line {
SrcBlock "2信息碼元"
SrcPort 1
DstBlock "4數(shù)據(jù)調(diào)制"
DstPort 2
}
Annotation {
Position [680, 109]
}
Annotation {
Position [89, 79]
}
Annotation {
Position [369, 189]
}
Annotation {
Position [414, 487]
}
Annotation {
Position [397, 435]
}
Annotation {
Position [552, 419]
}
Annotation {
Position [501, 384]
}
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -