📄 carrier_timing.mdl
字号:
Inputs "/"
InputSameDT off
RndMeth "Floor"
}
Block {
BlockType Probe
Name "Probe"
Ports [1, 1]
Position [80, 35, 165, 85]
ProbeWidth off
ProbeComplexSignal off
}
Block {
BlockType Selector
Name "Selector"
Ports [1, 1]
Position [240, 41, 280, 79]
Elements "[1]"
InputPortWidth "2"
}
Block {
BlockType Outport
Name "Out1"
Position [410, 53, 440, 67]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Probe"
SrcPort 1
DstBlock "Selector"
DstPort 1
}
Line {
SrcBlock "Selector"
SrcPort 1
DstBlock "1/x"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
Points [0, 15]
DstBlock "Probe"
DstPort 1
}
Line {
SrcBlock "1/x"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Freq Probe2"
Ports [1, 1]
Position [510, 446, 575, 464]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Freq Probe2"
Location [289, 355, 878, 528]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [15, 25, 45, 40]
Orientation "down"
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Product
Name "1/x"
Ports [1, 1]
Position [325, 43, 370, 77]
Inputs "/"
InputSameDT off
RndMeth "Floor"
}
Block {
BlockType Probe
Name "Probe"
Ports [1, 1]
Position [80, 35, 165, 85]
ProbeWidth off
ProbeComplexSignal off
}
Block {
BlockType Selector
Name "Selector"
Ports [1, 1]
Position [240, 41, 280, 79]
Elements "[1]"
InputPortWidth "2"
}
Block {
BlockType Outport
Name "Out1"
Position [410, 53, 440, 67]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Probe"
SrcPort 1
DstBlock "Selector"
DstPort 1
}
Line {
SrcBlock "Selector"
SrcPort 1
DstBlock "1/x"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
Points [0, 15]
DstBlock "Probe"
DstPort 1
}
Line {
SrcBlock "1/x"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType From
Name "From"
Position [100, 378, 160, 402]
ShowName off
DialogController "Simulink.DDGSource"
CloseFcn "tagdialog Close"
GotoTag "Baseband"
}
Block {
BlockType Goto
Name "Goto"
Position [735, 145, 795, 165]
ShowName off
DialogController "Simulink.DDGSource"
GotoTag "Baseband"
TagVisibility "local"
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [245, 67, 275, 98]
ShowName off
RndMeth "Floor"
}
Block {
BlockType Product
Name "Product3"
Ports [2, 1]
Position [240, 197, 270, 228]
ShowName off
RndMeth "Floor"
Port {
PortNumber 1
Name "input"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType SubSystem
Name "RX NCO"
Ports [1, 2]
Position [245, 134, 295, 176]
Orientation "left"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskPromptString "Phase|Fsamp|Sens|Fc"
MaskStyleString "edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on"
MaskCallbackString "|||"
MaskEnableString "on,on,on,on"
MaskVisibilityString "on,on,on,on"
MaskToolTipString "on,on,on,on"
MaskVarAliasString ",,,"
MaskVariables "phase=@1;Fs=@2;sens=@3;Fc=@4;"
MaskDisplay "disp('vco')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "pi/4|100e6|2e6|25.001e6 %slight offset"
MaskTabNameString ",,,"
System {
Name "RX NCO"
Location [304, 274, 708, 633]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Voltage"
Position [35, 152, 65, 168]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType SubSystem
Name "Discrete-time\nVCO"
Ports [1, 1]
Position [77, 90, 143, 130]
Orientation "up"
NamePlacement "alternate"
ShowName off
AncestorBlock "commutil/Discrete-time\nVCO"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "Voltage-controlled oscillator"
MaskDescription "The frequency of the output signal changes "
"with the input signal."
MaskHelp "This block causes the frequency of the sinu"
"soidal oscillation signal to change with the input signal voltage. The input "
"sensitivity is the preamplifier added to the input signal. This block uses a "
"discrete-time integrator."
MaskPromptString "Output amplitude:|Oscillation frequency (Hz"
"):|Input sensitivity:|Initial phase (rad):|Sample time (sec):"
MaskStyleString "edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on"
MaskCallbackString "||||"
MaskEnableString "on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on"
MaskToolTipString "on,on,on,on,on"
MaskVarAliasString ",,,,"
MaskVariables "Ac=@1;Fc=@2;Kc=@3;Ph=@4;ts=@5;"
MaskInitialization "pi2=2*pi;Kc=Kc*pi2*ts(1);Fc=Fc*pi2;"
MaskDisplay "disp('Discrete\\nVCO')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "-sqrt(2)|Fc|sens|-pi/2+phase|1/Fs"
MaskTabNameString ",,,,"
System {
Name "Discrete-time\nVCO"
Location [102, 502, 841, 668]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "in_1"
Position [15, 25, 35, 45]
ShowName off
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType DigitalClock
Name "Digital Clock"
Position [45, 88, 110, 112]
SampleTime "ts"
}
Block {
BlockType Constant
Name "Phase"
Position [380, 105, 400, 125]
ShowName off
Value "Ph"
}
Block {
BlockType Gain
Name "Sensitivity"
Position [85, 20, 135, 50]
ShowName off
Gain "Kc"
}
Block {
BlockType Gain
Name "Sensitivity2"
Position [235, 80, 280, 110]
ShowName off
Gain "Fc"
}
Block {
BlockType Gain
Name "Sensitivity3"
Position [585, 35, 635, 65]
ShowName off
Gain "Ac"
}
Block {
BlockType Sum
Name "Sum"
Ports [3, 1]
Position [445, 32, 465, 68]
ShowName off
Inputs "+++"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [210, 30, 230, 50]
ShowName off
}
Block {
BlockType UnitDelay
Name "Unit Delay"
Position [280, 30, 330, 50]
ShowName off
SampleTime "ts"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold3"
Position [140, 76, 175, 114]
SampleTime "ts"
}
Block {
BlockType Fcn
Name "sin"
Position [490, 37, 565, 63]
ShowName off
Expr "cos(u[1])"
}
Block {
BlockType Outport
Name "out_1"
Position [670, 40, 690, 60]
ShowName off
IconDisplay "Port number"
BusOutputAsStruct off
InitialOutput "0"
}
Line {
SrcBlock "Sensitivity3"
SrcPort 1
DstBlock "out_1"
DstPort 1
}
Line {
SrcBlock "sin"
SrcPort 1
DstBlock "Sensitivity3"
DstPort 1
}
Line {
SrcBlock "Phase"
SrcPort 1
Points [10, 0; 0, -55]
DstBlock "Sum"
DstPort 3
}
Line {
SrcBlock "Unit Delay"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Sum"
DstPort 1
}
Branch {
Points [0, 35; -165, 0; 0, -30]
DstBlock "Sum1"
DstPort 2
}
}
Line {
SrcBlock "Sensitivity2"
SrcPort 1
Points [120, 0; 0, -45]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "sin"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Unit Delay"
DstPort 1
}
Line {
SrcBlock "Sensitivity"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "in_1"
SrcPort 1
DstBlock "Sensitivity"
DstPort 1
}
Line {
SrcBlock "Digital Clock"
SrcPort 1
Points [0, -5]
DstBlock "Zero-Order\nHold3"
DstPort 1
}
Line {
SrcBlock "Zero-Order\nHold3"
SrcPort 1
DstBlock "Sensitivity2"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Discrete-time\nVCO1"
Ports [1, 1]
Position [77, 190, 143, 230]
Orientation "down"
NamePlacement "alternate"
ShowName off
AncestorBlock "commutil/Discrete-time\nVCO"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "Voltage-controlled oscillator"
MaskDescription "The frequency of the output signal changes "
"with the input signal."
MaskHelp "This block causes the frequency of the sinu"
"soidal oscillation signal to change with the input signal voltage. The input "
"sensitivity is the preamplifier added to the input signal. This block uses a "
"discrete-time integrator."
MaskPromptString "Output amplitude:|Oscillation frequency (Hz"
"):|Input sensitivity:|Initial phase (rad):|Sample time (sec):"
M
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -