📄 rf.mdl
字号:
BlockType Reference
Name "Fifth-Order\nIntegrator"
Ports [1, 1]
Position [115, 28, 205, 82]
SourceBlock "RF/A//D Blocks/Fifth-Order\nIntegrator"
SourceType "Fifth Order Integrate and Dump"
fs "fs"
N "N"
}
Block {
BlockType Outport
Name "Data Out"
Position [300, 48, 330, 62]
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
}
Line {
SrcBlock "Downsample"
SrcPort 1
DstBlock "Data Out"
DstPort 1
}
Line {
SrcBlock "Fifth-Order\nIntegrator"
SrcPort 1
DstBlock "Downsample"
DstPort 1
}
Line {
SrcBlock "Data In"
SrcPort 1
DstBlock "Fifth-Order\nIntegrator"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "5th Order \nDemodulation\nand Decimation"
Ports [1, 2]
Position [90, 334, 135, 376]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskType "Decimation And Demodulation"
MaskDescription "Demodulates the output of a bandpass sigma "
"delta and decimates by a factor N. Each channel (I and Q) is decimated by a "
"factor 2N. The result is a baseband complex signal sampled at 1/N the input "
"sampling frequency."
MaskHelp "Demodulates the output of a bandpass sigma "
"delta and decimates by a factor N. Each channel (I and Q) is decimated by a "
"factor 2N. The result is a baseband complex signal sampled at 1/N the input "
"sampling frequency."
MaskPromptString "Sampling Frequency|IF Frequency|Decimation "
"Factor (N)"
MaskStyleString "edit,edit,edit"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "on,on,on"
MaskVisibilityString "on,on,on"
MaskToolTipString "on,on,on"
MaskVariables "fs=@1;fIF=@2;N=@3;"
MaskDisplay "plot(0,0,100,100,[24,20,15,20,20],[85,95,85"
",95,20],[80,20,95,85,95,85],[70,20,20,15,20,24],[56,56,55,52,50,46],[20,26,31"
",35,38,42]);\ntext(95,85,'I'); text(95,30,'Q');"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "10E6|3.75E6|25"
MaskVariableAliases ",,"
System {
Name "5th Order \nDemodulation\nand Decimation"
Location [394, 152, 968, 425]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "D In"
Position [60, 113, 90, 127]
Port "1"
Interpolate on
}
Block {
BlockType Reference
Name "5th Order\nDecimation\nFilter"
Ports [1, 1]
Position [335, 34, 385, 76]
SourceBlock "RF/A//D Blocks/5th Order\nDecimation\nF"
"ilter"
SourceType "Fifth Order Decimation Filter"
N "2*N"
fs "fs"
}
Block {
BlockType Reference
Name "5th Order\nDecimation\nFilter1"
Ports [1, 1]
Position [335, 159, 385, 201]
SourceBlock "RF/A//D Blocks/5th Order\nDecimation\nF"
"ilter"
SourceType "Fifth Order Decimation Filter"
N "2*N"
fs "fs"
}
Block {
BlockType Sin
Name "Cosine Wave"
Position [160, 65, 190, 95]
Amplitude "1"
Frequency "fIF*2*pi"
Phase "pi/2"
SampleTime "1/fs"
VectorParams1D on
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [235, 72, 265, 103]
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [235, 132, 265, 163]
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sin
Name "Sine Wave"
Position [160, 140, 190, 170]
Amplitude "-1"
Frequency "fIF*2*pi"
Phase "0"
SampleTime "1/fs"
VectorParams1D on
}
Block {
BlockType Outport
Name "I Out"
Position [425, 48, 455, 62]
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
}
Block {
BlockType Outport
Name "Q Out"
Position [425, 173, 455, 187]
Port "2"
OutputWhenDisabled "held"
InitialOutput "0"
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [30, 0; 0, 30]
DstBlock "5th Order\nDecimation\nFilter1"
DstPort 1
}
Line {
SrcBlock "5th Order\nDecimation\nFilter1"
SrcPort 1
DstBlock "Q Out"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
Points [30, 0; 0, -35]
DstBlock "5th Order\nDecimation\nFilter"
DstPort 1
}
Line {
SrcBlock "5th Order\nDecimation\nFilter"
SrcPort 1
DstBlock "I Out"
DstPort 1
}
Line {
SrcBlock "Cosine Wave"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
DstBlock "Product1"
DstPort 2
}
Line {
SrcBlock "D In"
SrcPort 1
Points [120, 0]
Branch {
Points [0, -25]
DstBlock "Product"
DstPort 2
}
Branch {
Points [0, 20]
DstBlock "Product1"
DstPort 1
}
}
}
}
Block {
BlockType SubSystem
Name "5th Order Complex\nDemodulation\nand Decima"
"tion"
Ports [1, 2]
Position [225, 334, 270, 376]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskType "Complex Decimation And Demodulation"
MaskDescription "Demodulates the output of a quadrature band"
"pass sigma delta and decimates by a factor N. Each channel (I and Q) is deci"
"mated by a factor 2N. The result is a baseband complex signal sampled at 1/N"
" the input sampling frequency."
MaskHelp "Demodulates the output of a quadrature band"
"pass sigma delta and decimates by a factor N. Each channel (I and Q) is deci"
"mated by a factor 2N. The result is a baseband complex signal sampled at 1/N"
" the input sampling frequency."
MaskPromptString "Sampling Frequency|IF Frequency|Decimation "
"Factor (N)"
MaskStyleString "edit,edit,edit"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "on,on,on"
MaskVisibilityString "on,on,on"
MaskToolTipString "on,on,on"
MaskVariables "fs=@1;fIF=@2;N=@3;"
MaskDisplay "plot(0,0,100,100,[24,20,15,20,20],[85,95,85"
",95,20],[80,20,95,85,95,85],[70,20,20,15,20,24],[56,56,55,52,50,46],[20,26,31"
",35,38,42]);\ntext(95,85,'I'); text(95,30,'Q');"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "10E6|3.75E6|25"
MaskVariableAliases ",,"
System {
Name "5th Order Complex\nDemodulation\nand Deci"
"mation"
Location [11, 130, 582, 506]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "D In"
Position [25, 163, 55, 177]
Port "1"
Interpolate on
}
Block {
BlockType Reference
Name "5th Order\nDecimation\nFilter"
Ports [1, 1]
Position [405, 78, 485, 142]
SourceBlock "RF/A//D Blocks/5th Order\nDecimation\nF"
"ilter"
SourceType "Fifth Order Decimation Filter"
N "N"
fs "fs"
}
Block {
BlockType Reference
Name "5th Order\nDecimation\nFilter1"
Ports [1, 1]
Position [405, 183, 485, 247]
SourceBlock "RF/A//D Blocks/5th Order\nDecimation\nF"
"ilter"
SourceType "Fifth Order Decimation Filter"
N "N"
fs "fs"
}
Block {
BlockType Sin
Name "Cosine Wave"
Position [165, 125, 195, 155]
Amplitude "1"
Frequency "fIF*2*pi"
Phase "pi/2"
SampleTime "1/fs"
VectorParams1D on
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [270, 82, 300, 113]
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [270, 132, 300, 163]
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [270, 187, 300, 218]
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Product
Name "Product3"
Ports [2, 1]
Position [270, 237, 300, 268]
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sin
Name "Sine Wave"
Position [165, 180, 195, 210]
Amplitude "-1"
Frequency "fIF*2*pi"
Phase "0"
SampleTime "1/fs"
VectorParams1D on
}
Block {
BlockType Reference
Name "Split"
Ports [1, 2]
Position [80, 150, 125, 190]
SourceBlock "dspcmplx/Split"
SourceType "Split"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [345, 197, 375, 228]
IconShape "rectangular"
Inputs "-+"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [345, 92, 375, 123]
IconShape "rectangular"
Inputs "++"
SaturateOnIntegerOverflow on
}
Block {
BlockType Outport
Name "I Out"
Position [510, 103, 540, 117]
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
}
Block {
BlockType Outport
Name "Q Out"
Position [510, 208, 540, 222]
Port "2"
OutputWhenDisabled "held"
InitialOutput "0"
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "5th Order\nDecimation\nFilter"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "5th Order\nDecimation\nFilter1"
DstPort 1
}
Line {
SrcBlock "5th Order\nDecimation\nFilter1"
SrcPort 1
DstBlock "Q Out"
DstPort 1
}
Line {
SrcBlock "D In"
SrcPort 1
DstBlock "Split"
DstPort 1
}
Line {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -