📄 swork_raise_cosine_filter.mdl
字号:
D "3"
R "0.5"
sampMode "Sample-based"
N "30"
checkGain "Normalized"
filterGain "1"
checkCoeff off
variableName "rcTxFilt2"
launchFVT off
roundingMode "Floor"
overflowMode off
coeffMode "Same word length as input"
coeffWordLength "16"
coeffFracLength "15"
prodOutputMode "Inherit via internal rule"
prodOutputWordLength "32"
prodOutputFracLength "30"
accumMode "Inherit via internal rule"
accumWordLength "32"
accumFracLength "30"
outputMode "Same as accumulator"
outputWordLength "16"
outputFracLength "15"
LockScale off
}
Block {
BlockType Reference
Name "Raised Cosine\nTransmit Filter3"
Ports [1, 1]
Position [330, 468, 410, 512]
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag4"
SourceBlock "commfilt2/Raised Cosine\nTransmit Filter"
SourceType "Raised Cosine Transmit Filter"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
filtType "Square root"
D "3"
R "0.5"
sampMode "Sample-based"
N "30"
checkGain "Normalized"
filterGain "1"
checkCoeff off
variableName "rcTxFilt3"
launchFVT off
roundingMode "Floor"
overflowMode off
coeffMode "Same word length as input"
coeffWordLength "16"
coeffFracLength "15"
prodOutputMode "Inherit via internal rule"
prodOutputWordLength "32"
prodOutputFracLength "30"
accumMode "Inherit via internal rule"
accumWordLength "32"
accumFracLength "30"
outputMode "Same as accumulator"
outputWordLength "16"
outputFracLength "15"
LockScale off
}
Block {
BlockType Reference
Name "Random Integer\nGenerator"
Ports [0, 1]
Position [105, 68, 185, 112]
FontName "Arial"
SourceBlock "commrandsrc2/Random Integer\nGenerator"
SourceType "Random Integer Generator"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
mul "2"
seed "37"
Ts "1"
frameBased off
sampPerFrame "2"
orient off
outDataType "double"
}
Block {
BlockType Scope
Name "Scope1"
Ports [2]
Position [590, 122, 625, 318]
Floating off
Location [226, 83, 723, 638]
Open on
NumInputPorts "2"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
YMin "-5~-5"
YMax "5~5"
SaveName "ScopeData5"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope2"
Ports [2]
Position [515, 109, 545, 191]
Floating off
Location [221, 74, 751, 629]
Open on
NumInputPorts "2"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
YMin "-5~-5"
YMax "5~5"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope3"
Ports [2]
Position [515, 236, 545, 314]
Floating off
Location [228, 80, 747, 636]
Open on
NumInputPorts "2"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
YMin "-5~-5"
YMax "5~5"
SaveName "ScopeData4"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [215, 140, 235, 160]
ShowName off
IconShape "round"
Inputs "|++"
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [255, 80, 275, 100]
ShowName off
IconShape "round"
Inputs "|++"
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [10, 0]
Branch {
Points [10, 0]
Branch {
DstBlock "Raised Cosine\nTransmit Filter"
DstPort 1
}
Branch {
Points [0, -45]
DstBlock "Mux"
DstPort 1
}
}
Branch {
Points [0, 95]
Branch {
DstBlock "Integer Delay"
DstPort 1
}
Branch {
Points [0, 95]
Branch {
DstBlock "Raised Cosine\nTransmit Filter1"
DstPort 1
}
Branch {
Points [0, 85]
Branch {
DstBlock "Raised Cosine\nTransmit Filter2"
DstPort 1
}
Branch {
Points [0, 125]
DstBlock "Raised Cosine\nTransmit Filter3"
DstPort 1
}
}
}
}
Branch {
Points [0, -75; 285, 0]
DstBlock "Scope1"
DstPort 1
}
}
Line {
SrcBlock "Raised Cosine\nTransmit Filter"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
DstBlock "Mux"
DstPort 2
}
Branch {
Points [0, 60]
Branch {
DstBlock "Mux1"
DstPort 1
}
Branch {
Points [0, 80]
DstBlock "Mux2"
DstPort 1
}
}
}
Line {
SrcBlock "Integer Delay"
SrcPort 1
Points [0, 0; 25, 0]
Branch {
DstBlock "Mux1"
DstPort 2
}
Branch {
Points [0, 70]
Branch {
DstBlock "Mux2"
DstPort 2
}
Branch {
Points [0, 75]
Branch {
DstBlock "Mux3"
DstPort 1
}
Branch {
Points [0, 120]
DstBlock "Mux4"
DstPort 2
}
}
}
}
Line {
SrcBlock "Raised Cosine\nTransmit Filter1"
SrcPort 1
DstBlock "Mux2"
DstPort 3
}
Line {
SrcBlock "Raised Cosine\nTransmit Filter2"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
DstBlock "Mux3"
DstPort 2
}
Branch {
Points [0, 45]
DstBlock "Mux4"
DstPort 1
}
}
Line {
SrcBlock "Raised Cosine\nTransmit Filter3"
SrcPort 1
DstBlock "Raised Cosine\nReceive Filter"
DstPort 1
}
Line {
SrcBlock "Raised Cosine\nReceive Filter"
SrcPort 1
DstBlock "Mux4"
DstPort 3
}
Line {
SrcBlock "Mux4"
SrcPort 1
Points [15, 0]
DstBlock "Scope1"
DstPort 2
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "Scope2"
DstPort 2
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [15, 0]
DstBlock "Scope2"
DstPort 1
}
Line {
SrcBlock "Mux2"
SrcPort 1
DstBlock "Scope3"
DstPort 1
}
Line {
SrcBlock "Mux3"
SrcPort 1
Points [15, 0; 0, -55]
DstBlock "Scope3"
DstPort 2
}
Line {
SrcBlock "Random Integer\nGenerator"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Sum1"
DstPort 1
}
Branch {
DstBlock "Sum"
DstPort 1
}
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [55, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [25, 0]
DstBlock "Sum1"
DstPort 2
}
}
}
MatData {
NumRecords 5
DataRecord {
Tag DataTag4
Data " %)30 . P 8 ( 0 % "
"\" $ \" 0 . 2 8 ( ! % \" $ "
" 4 0 0 % %)A:7-E9$-O<VEN949I;'1E<E1X X ! !@ @"
" $ 4 ( 0 H ! ! * 8V]M;61I86QO9P "
" "
}
DataRecord {
Tag DataTag3
Data " %)30 . P 8 ( 0 % "
"\" $ \" 0 . 2 8 ( ! % \" $ "
" 4 0 0 % %)A:7-E9$-O<VEN949I;'1E<E1X X ! !@ @"
" $ 4 ( 0 H ! ! * 8V]M;61I86QO9P "
" "
}
DataRecord {
Tag DataTag2
Data " %)30 . P 8 ( 0 % "
"\" $ \" 0 . 2 8 ( ! % \" $ "
" 4 0 0 % %)A:7-E9$-O<VEN949I;'1E<E1X X ! !@ @"
" $ 4 ( 0 H ! ! * 8V]M;61I86QO9P "
" "
}
DataRecord {
Tag DataTag1
Data " %)30 . P 8 ( 0 % "
"\" $ \" 0 . 2 8 ( ! % \" $ "
" 4 0 0 % %)A:7-E9$-O<VEN949I;'1E<E1X X ! !@ @"
" $ 4 ( 0 H ! ! * 8V]M;61I86QO9P "
" "
}
DataRecord {
Tag DataTag0
Data " %)30 . P 8 ( 0 % "
"\" $ \" 0 . 2 8 ( ! % \" $ "
" 4 0 0 % %)A:7-E9$-O<VEN949I;'1E<E)X X ! !@ @"
" $ 4 ( 0 H ! ! * 8V]M;61I86QO9P "
" "
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -