📄 costas.mdl
字号:
ShowName off
IconShape "round"
Inputs "|++"
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1]
Position [400, 55, 420, 75]
ShowName off
IconShape "round"
Inputs "|++"
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType UnitDelay
Name "Unit Delay1"
Position [340, 218, 375, 252]
ShowName off
SampleTime "-1"
}
Block {
BlockType UnitDelay
Name "Unit Delay2"
Position [333, 85, 367, 120]
Orientation "down"
NamePlacement "alternate"
ShowName off
SampleTime "-1"
}
Block {
BlockType Outport
Name "LPFout1"
Position [685, 58, 715, 72]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Binary Point\nCasting1"
SrcPort 1
DstBlock "Output"
DstPort 1
}
Line {
SrcBlock "Binary Point\nCasting"
SrcPort 1
Points [20, 0]
Branch {
Points [0, 90]
DstBlock "Beta1"
DstPort 1
}
Branch {
DstBlock "Alpha1"
DstPort 1
}
}
Line {
SrcBlock "Sum3"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "Binary Point\nCasting1"
DstPort 1
}
Branch {
Points [0, -30]
DstBlock "Scope3"
DstPort 4
}
}
Line {
SrcBlock "Beta1"
SrcPort 1
Points [55, 0]
Branch {
Points [0, -130]
DstBlock "Scope3"
DstPort 2
}
Branch {
Points [5, 0; 0, 5]
Branch {
DstBlock "Unit Delay1"
DstPort 1
}
Branch {
Points [85, 0]
DstBlock "Sum3"
DstPort 2
}
}
}
Line {
SrcBlock "Alpha1"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Sum2"
DstPort 1
}
Branch {
Points [0, -45]
DstBlock "Scope3"
DstPort 1
}
}
Line {
SrcBlock "PhErr1"
SrcPort 1
DstBlock "Binary Point\nCasting"
DstPort 1
}
Line {
SrcBlock "Unit Delay2"
SrcPort 1
Points [0, 10; -40, 0]
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Sum2"
SrcPort 1
Points [25, 0]
Branch {
DstBlock "Unit Delay2"
DstPort 1
}
Branch {
Points [25, 0]
Branch {
DstBlock "Sum3"
DstPort 1
}
Branch {
Points [0, -35]
DstBlock "Scope3"
DstPort 3
}
}
}
Line {
SrcBlock "Output"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "LPFout1"
DstPort 1
}
Branch {
Points [0, -25]
DstBlock "Scope3"
DstPort 5
}
}
}
}
Block {
BlockType ComplexToRealImag
Name "Complex to\nReal-Imag1"
Ports [1, 2]
Position [885, 38, 915, 67]
Output "Real and imag"
}
Block {
BlockType Constant
Name "Constant2"
Position [510, 520, 540, 550]
Orientation "left"
NamePlacement "alternate"
Value "0"
SampleTime "1/Fs"
}
Block {
BlockType Constant
Name "Constant3"
Position [205, 135, 235, 165]
Value "IF"
}
Block {
BlockType Constant
Name "Constant5"
Position [445, 154, 540, 186]
Value "IF+1000"
}
Block {
BlockType SubSystem
Name "DownFreq"
Ports [2, 3]
Position [580, 89, 635, 151]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "DownFreq"
Location [28, 430, 1040, 1069]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "RxD"
Position [40, 38, 70, 52]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Freq"
Position [170, 98, 200, 112]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Clock
Name "Clock1"
Position [170, 125, 190, 145]
Decimation "10"
}
Block {
BlockType Constant
Name "Constant"
Position [175, 35, 205, 65]
Value "-2"
}
Block {
BlockType Constant
Name "Constant1"
Position [150, 260, 180, 290]
Value "2"
}
Block {
BlockType Reference
Name "Integer Delay2"
Ports [1, 1]
Position [210, 118, 230, 152]
ShowName off
SourceBlock "simulink/Discrete/Integer Delay"
SourceType "Integer Delay"
vinit "0.0"
samptime "Ts"
NumDelays "1"
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [240, 26, 270, 59]
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product3"
Ports [2, 1]
Position [225, 186, 255, 219]
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product5"
Ports [2, 1]
Position [255, 97, 285, 128]
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType RealImagToComplex
Name "Real-Imag to\nComplex"
Ports [2, 1]
Position [425, 118, 455, 147]
}
Block {
BlockType Scope
Name "Scope4"
Ports [3]
Position [460, 271, 495, 319]
Floating off
Location [9, 140, 912, 762]
Open off
NumInputPorts "3"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
}
TimeRange "0.0025"
YMin "0~-1~2.9e+009"
YMax "3.75e+007~1~3.275e+009"
SaveName "ScopeData10"
DataFormat "StructureWithTime"
LimitDataPoints off
SampleTime "0"
}
Block {
BlockType Reference
Name "Sine1"
Ports [1, 2]
Position [300, 94, 355, 136]
SourceBlock "simulink/Lookup\nTables/Sine"
SourceType "Sine and Cosine"
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"
Formula "sin(2*pi*u) and cos(2*pi*u)"
NumDataPoints "(2^5)+1"
OutputWordLength "16"
}
Block {
BlockType Outport
Name "DI"
Position [435, 193, 465, 207]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "DQ"
Position [430, 33, 460, 47]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Dout"
Position [485, 123, 515, 137]
Port "3"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Sine1"
SrcPort 1
Points [0, -30; -135, 0]
DstBlock "Product2"
DstPort 2
}
Line {
SrcBlock "Sine1"
SrcPort 2
Points [0, 45; -150, 0]
DstBlock "Product3"
DstPort 1
}
Line {
SrcBlock "Integer Delay2"
SrcPort 1
Points [5, 0]
DstBlock "Product5"
DstPort 2
}
Line {
SrcBlock "Product5"
SrcPort 1
DstBlock "Sine1"
DstPort 1
}
Line {
SrcBlock "Clock1"
SrcPort 1
DstBlock "Integer Delay2"
DstPort 1
}
Line {
SrcBlock "Freq"
SrcPort 1
DstBlock "Product5"
DstPort 1
}
Line {
SrcBlock "Product3"
SrcPort 1
Points [0, -5; 95, 0]
Branch {
Points [60, 0]
Branch {
DstBlock "DI"
DstPort 1
}
Branch {
Points [-5, 0]
DstBlock "Real-Imag to\nComplex"
DstPort 1
}
}
Branch {
Points [0, 95]
DstBlock "Scope4"
DstPort 2
}
}
Line {
SrcBlock "Product2"
SrcPort 1
Points [0, -5; 115, 0]
Branch {
DstBlock "DQ"
DstPort 1
}
Branch {
Points [0, 100]
Branch {
DstBlock "Real-Imag to\nComplex"
DstPort 2
}
Branch {
Points [0, 140]
DstBlock "Scope4"
DstPort 1
}
}
}
Line {
SrcBlock "Real-Imag to\nComplex"
SrcPort 1
Points [5, 0; 0, -5]
DstBlock "Dout"
DstPort 1
}
Line {
SrcBlock "RxD"
SrcPort 1
Points [75, 0]
Branch {
Points [0, -10]
DstBlock "Product2"
DstPort 1
}
Branch {
Points [0, 165]
DstBlock "Product3"
DstPort 2
}
}
}
}
Block {
BlockType From
Name "From2"
Position [150, 306, 190, 334]
ShowName off
CloseFcn "tagdialog Close"
GotoTag "TxD"
}
Block {
BlockType Goto
Name "Goto3"
Position [885, 128, 930, 152]
ShowName off
GotoTag "TxD"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -