📄 s060_elg.mdl
字号:
LatchInput off
Interpolate on
}
Block {
BlockType Fcn
Name "-Sin(wct)"
Position [155, 157, 335, 183]
ShowName off
Expr "-sin(2*pi*(Fc+Fshift/2)*u[1])"
}
Block {
BlockType TransferFcn
Name "Anti-aliasing\nFilter"
Position [195, 88, 250, 122]
Numerator "f1num"
Denominator "f1den"
AbsoluteTolerance "auto"
Realization "auto"
}
Block {
BlockType Fcn
Name "Cos(wct)"
Position [160, 30, 330, 50]
ShowName off
Expr "cos(2*pi*(Fc+Fshift/2)*u[1])"
}
Block {
BlockType DigitalClock
Name "Digital Clock"
Position [40, 25, 75, 55]
SampleTime "tss"
}
Block {
BlockType DiscreteTransferFcn
Name "Discrete\nTransfer Fcn"
Position [435, 28, 510, 62]
Numerator "f2num"
Denominator "f2den"
SampleTime "tss"
Realization "auto"
RTWStateStorageClass "Auto"
}
Block {
BlockType DiscreteTransferFcn
Name "Discrete\nTransfer Fcn1"
Position [435, 147, 505, 183]
Numerator "f2num"
Denominator "f2den"
SampleTime "tss"
Realization "auto"
RTWStateStorageClass "Auto"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [375, 33, 405, 57]
ShowName off
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [375, 153, 405, 177]
ShowName off
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold"
Position [280, 89, 315, 121]
ShowName off
SampleTime "tss"
}
Block {
BlockType Outport
Name "inphase"
Position [560, 35, 580, 55]
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
}
Block {
BlockType Outport
Name "quadrature"
Position [560, 155, 580, 175]
Port "2"
OutputWhenDisabled "held"
InitialOutput "0"
}
Line {
SrcBlock "Discrete\nTransfer Fcn1"
SrcPort 1
DstBlock "quadrature"
DstPort 1
}
Line {
SrcBlock "analog\nin"
SrcPort 1
DstBlock "Anti-aliasing\nFilter"
DstPort 1
}
Line {
SrcBlock "Discrete\nTransfer Fcn"
SrcPort 1
DstBlock "inphase"
DstPort 1
}
Line {
SrcBlock "Cos(wct)"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "-Sin(wct)"
SrcPort 1
DstBlock "Product1"
DstPort 2
}
Line {
SrcBlock "Digital Clock"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "Cos(wct)"
DstPort 1
}
Branch {
Points [35, 0; 0, 130]
DstBlock "-Sin(wct)"
DstPort 1
}
}
Line {
SrcBlock "Anti-aliasing\nFilter"
SrcPort 1
DstBlock "Zero-Order\nHold"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Discrete\nTransfer Fcn"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
DstBlock "Discrete\nTransfer Fcn1"
DstPort 1
}
Line {
SrcBlock "Zero-Order\nHold"
SrcPort 1
Points [0, 0]
Branch {
Points [30, 0; 0, -55]
DstBlock "Product"
DstPort 2
}
Branch {
Points [30, 0; 0, 55]
DstBlock "Product1"
DstPort 1
}
}
Annotation {
Position [302, 122]
VerticalAlignment "top"
Text "ADC"
}
}
}
Block {
BlockType SubSystem
Name "Discrete\n Early-Late\n Gate"
Ports [1, 2]
Position [365, 233, 405, 297]
Orientation "left"
ShowName off
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskDisplay "disp('ELG')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Discrete\n Early-Late\n Gate"
Location [364, 145, 951, 467]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "in_1"
Position [15, 130, 35, 150]
ForegroundColor "red"
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Abs
Name "Abs"
Position [500, 48, 530, 72]
ShowName off
SaturateOnIntegerOverflow on
}
Block {
BlockType Abs
Name "Abs1"
Position [490, 253, 520, 277]
ShowName off
SaturateOnIntegerOverflow on
}
Block {
BlockType Constant
Name "Constant"
Position [90, 135, 110, 155]
ForegroundColor "blue"
Value "-1"
VectorParams1D on
}
Block {
BlockType Gain
Name "Gain"
Position [370, 32, 395, 58]
ShowName off
Gain "1/tdd"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "Gain1"
Position [365, 237, 390, 263]
ShowName off
Gain "1/tdd"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Ground
Name "Ground_1"
Position [250, 55, 260, 65]
ShowName off
}
Block {
BlockType Ground
Name "Ground_2"
Position [245, 260, 255, 270]
ShowName off
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [170, 160, 205, 180]
Orientation "down"
ShowName off
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType SubSystem
Name "Sign"
Ports [1, 1]
Position [340, 130, 370, 160]
Orientation "left"
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskType "Sign"
MaskDescription "y = sign(x)"
MaskHelp "Sign Function:\\n\\t\\t\\ty = 1 if x > 0\\n"
"\\t\\t\\ty = 0 if x = 0\\n\\t\\t\\ty = -1 if x < 0"
MaskDisplay "plot(-50,-50,50,50,[-50,50],[0,0],[0,0],[-5"
"0,50],[-40,0],[-30,-30],[0,40],[30,30])"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Sign"
Location [412, 193, 720, 362]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "in_1"
Position [35, 30, 55, 50]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Constant
Name "Constant"
Position [65, 105, 85, 125]
Value "0"
VectorParams1D on
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator"
Position [140, 32, 170, 63]
Operator ">"
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator1"
Position [140, 92, 170, 123]
Operator "<"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [215, 64, 235, 91]
IconShape "rectangular"
Inputs "+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType Outport
Name "out_1"
Position [265, 70, 285, 90]
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "out_1"
DstPort 1
}
Line {
SrcBlock "Relational\nOperator"
SrcPort 1
Points [10, 0; 0, 20]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Relational\nOperator1"
SrcPort 1
Points [10, 0; 0, -25]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "Relational\nOperator1"
DstPort 2
}
Branch {
Points [0, -60]
DstBlock "Relational\nOperator"
DstPort 2
}
}
Line {
SrcBlock "in_1"
SrcPort 1
Points [35, 0]
Branch {
DstBlock "Relational\nOperator"
DstPort 1
}
Branch {
Points [0, 60]
DstBlock "Relational\nOperator1"
DstPort 1
}
}
}
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [167, 200, 198, 220]
Orientation "down"
ShowName off
IconShape "rectangular"
Inputs "-+"
SaturateOnIntegerOverflow on
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [172, 110, 203, 130]
Orientation "up"
ShowName off
IconShape "rectangular"
Inputs "-+"
SaturateOnIntegerOverflow on
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [500, 135, 520, 155]
Orientation "left"
ShowName off
IconShape "rectangular"
Inputs "+-"
SaturateOnIntegerOverflow on
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType SubSystem
Name "离散VCO"
Ports [1, 1]
Position [400, 120, 480, 170]
Orientation "left"
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskType "VCO"
MaskDescription "Voltage-Controlled Oscilator:"
MaskHelp "The VCO block cause the frequency of the si"
"nusoidal carrier to depend on the input signal voltage, resulting in frequenc"
"y of the output change depending on the amplitude of the input signal."
MaskPromptString "Amplitude constant:|Carier frequency (Hz):|"
"Sensitivity constant:|Initial phase (rad):|Sample time:"
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"
MaskInitialization "Ac=@1;Fc=@2;Kc=@3;Ph=@4;pi2=2*pi;ts=@5;Kc=K"
"c*pi2*ts(1);Fc=Fc*pi2;"
MaskDisplay "disp('Discrete\\nVCO')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "1|1/tdd|.0001|0|tss"
MaskVariableAliases ",,,,"
System {
Name "离散VCO"
Location [414, 195, 1194, 342]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "in_1"
Position [35, 20, 55, 40]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType DigitalClock
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -