?? source_d.mdl
字號:
Name "Product"
Ports [2, 1]
Position [270, 115, 315, 155]
InputSameDT off
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [270, 190, 315, 230]
InputSameDT off
RndMeth "Floor"
}
Block {
BlockType Reference
Name "Sine Wave1"
Ports [0, 1]
Position [90, 156, 130, 194]
ShowName off
SourceBlock "dspsrcs4/Sine Wave"
SourceType "Sine Wave"
Amplitude "1"
Frequency "1/(1.575*4)"
Phase "0"
SampleMode "Discrete"
OutComplex "Complex"
CompMethod "Trigonometric fcn"
TableSize "Speed"
SampleTime "1.575"
SamplesPerFrame "1"
additionalParams "off"
allowOverrides "on"
dataType "double"
wordLen "16"
udDataType "sfix(16)"
fracBitsMode "Best precision"
numFracBits "14"
ResetState "Restart at time zero"
}
Block {
BlockType Outport
Name "i"
Position [555, 128, 585, 142]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "q"
Position [555, 203, 585, 217]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Sine Wave1"
SrcPort 1
DstBlock "Complex to\nReal-Imag1"
DstPort 1
}
Line {
SrcBlock "Complex to\nReal-Imag1"
SrcPort 1
Points [15, 0; 0, -20]
DstBlock "Product"
DstPort 2
}
Line {
SrcBlock "Complex to\nReal-Imag1"
SrcPort 2
Points [15, 0]
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
Points [0, 40]
DstBlock "Product1"
DstPort 2
}
Branch {
DstBlock "Product"
DstPort 1
}
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
DstBlock "Digital\nFilter Design2"
DstPort 1
}
Line {
SrcBlock "Digital\nFilter Design1"
SrcPort 1
DstBlock "i"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Digital\nFilter Design1"
DstPort 1
}
Line {
SrcBlock "Digital\nFilter Design2"
SrcPort 1
DstBlock "q"
DstPort 1
}
}
}
Block {
BlockType "S-Function"
Name "rate convert"
Ports [2, 1]
Position [315, 98, 385, 167]
FunctionName "rateadjA"
Parameters "ts,ti,num"
MaskDescription "this block is build to make irrational samp"
"le rate convert. input port sample time not allow exceed output port sample t"
"ime\nbe careful, the out put samle time offset is two times input port sample"
" time .the out put port sample time must greater than two time of input sampl"
"e time ."
MaskPromptString "input port sample time|output port sample t"
"ime|maximum delay sample"
MaskStyleString "edit,edit,edit"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "on,on,on"
MaskVisibilityString "on,on,on"
MaskToolTipString "on,on,on"
MaskVarAliasString ",,"
MaskVariables "ts=@1;ti=@2;num=@3;"
MaskDisplay "port_label('input',1,'din');\nport_label('i"
"nput',2,'u(t)');\nport_label('output',1,'dout');"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "3.15/2|3.15/2|1600"
MaskTabNameString ",,"
}
Block {
BlockType Outport
Name "Out1"
Position [560, 128, 590, 142]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "down convertion"
DstPort 1
}
Line {
SrcBlock "down convertion"
SrcPort 1
DstBlock "Real-Imag to\nComplex2"
DstPort 1
}
Line {
SrcBlock "down convertion"
SrcPort 2
DstBlock "Real-Imag to\nComplex2"
DstPort 2
}
Line {
SrcBlock "Real-Imag to\nComplex2"
SrcPort 1
DstBlock "FIR\nInterpolation2"
DstPort 1
}
Line {
SrcBlock "Downsample"
SrcPort 1
Points [25, 0]
Branch {
DstBlock "Out1"
DstPort 1
}
Branch {
Points [0, 50]
DstBlock "Probe2"
DstPort 1
}
}
Line {
SrcBlock "FIR\nInterpolation2"
SrcPort 1
DstBlock "rate convert"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [155, 0]
DstBlock "rate convert"
DstPort 2
}
Line {
SrcBlock "rate convert"
SrcPort 1
DstBlock "Downsample"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Subsystem1"
Ports [1, 1]
Position [265, 99, 325, 161]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Subsystem1"
Location [2, 82, 790, 549]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [140, 168, 170, 182]
NamePlacement "alternate"
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType ComplexToRealImag
Name "Complex to\nReal-Imag"
Ports [1, 2]
Position [300, 133, 330, 217]
ShowName off
Output "Real and imag"
}
Block {
BlockType ComplexToRealImag
Name "Complex to\nReal-Imag1"
Ports [1, 2]
Position [430, 162, 470, 198]
ShowName off
Output "Real and imag"
}
Block {
BlockType Reference
Name "FIR\nInterpolation2"
Ports [1, 1]
Position [225, 157, 260, 193]
DialogController "dspDDGCreate"
DialogControllerArgs "DataTag4"
SourceBlock "dspmlti4/FIR\nInterpolation"
SourceType "FIR Interpolation"
h "rcosine(1,2, 'fir/sqrt',0.15,30)"
L "2"
framing "Maintain input frame size"
outputBufInitCond "0"
additionalParams off
allowOverrides on
firstCoeffMode "Same word length as input"
firstCoeffWordLength "16"
firstCoeffFracLength "15"
outputMode "Same as accumulator"
outputWordLength "16"
outputFracLength "15"
accumMode "Inherit via internal rule"
accumWordLength "32"
accumFracLength "30"
prodOutputMode "Inherit via internal rule"
prodOutputWordLength "32"
prodOutputFracLength "30"
roundingMode "Floor"
overflowMode off
LockScale off
}
Block {
BlockType Probe
Name "Probe2"
Ports [1, 1]
Position [680, 58, 760, 82]
ProbeWidth off
ProbeComplexSignal off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [505, 116, 550, 149]
InputSameDT off
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [505, 206, 550, 239]
InputSameDT off
RndMeth "Floor"
}
Block {
BlockType Scope
Name "Scope4"
Ports [1]
Position [505, 40, 530, 70]
Location [328, 140, 597, 360]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "20480"
YMin "-1"
YMax "1"
DataFormat "StructureWithTime"
MaxDataPoints "50000"
}
Block {
BlockType Reference
Name "Sine Wave1"
Ports [0, 1]
Position [365, 161, 405, 199]
ShowName off
SourceBlock "dspsrcs4/Sine Wave"
SourceType "Sine Wave"
Amplitude "1"
Frequency "1/(1.575*4)+3e-5"
Phase "pi/3"
SampleMode "Discrete"
OutComplex "Complex"
CompMethod "Trigonometric fcn"
TableSize "Speed"
SampleTime "1.575"
SamplesPerFrame "1"
additionalParams off
allowOverrides on
dataType "double"
wordLen "16"
udDataType "sfix(16)"
fracBitsMode "Best precision"
numFracBits "14"
ResetState "Restart at time zero"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [580, 125, 600, 145]
ShowName off
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Outport
Name "output"
Position [690, 128, 720, 142]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Sine Wave1"
SrcPort 1
DstBlock "Complex to\nReal-Imag1"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [30, 0]
Branch {
DstBlock "output"
DstPort 1
}
Branch {
Points [0, -65]
DstBlock "Probe2"
DstPort 1
}
}
Line {
SrcBlock "Complex to\nReal-Imag1"
SrcPort 1
Points [10, 0; 0, -30]
Branch {
DstBlock "Product1"
DstPort 2
}
Branch {
Points [0, -85]
DstBlock "Scope4"
DstPort 1
}
}
Line {
SrcBlock "Complex to\nReal-Imag1"
SrcPort 2
Points [10, 0; 0, 25]
DstBlock "Product2"
DstPort 1
}
Line {
SrcBlock "Complex to\nReal-Imag"
SrcPort 1
Points [20, 0; 0, -30]
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Complex to\nReal-Imag"
SrcPort 2
Points [20, 0; 0, 35]
DstBlock "Product2"
DstPort 2
}
Line {
SrcBlock "Product2"
SrcPort 1
Points [35, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "FIR\nInterpolation2"
DstPort 1
}
Line {
SrcBlock "FIR\nInterpolation2"
SrcPort 1
DstBlock "Complex to\nReal-Imag"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "demodulation1"
Ports [1]
Position [660, 100, 715, 160]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "demodulation1"
Location [2, 82, 773, 532]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -