📄 i_and_q.mdl
字号:
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
}
TimeRange "1"
YMin "0~0"
YMax "6000~1"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Scope
Name "Scope3"
Ports [2]
Position [690, 81, 720, 114]
Location [6, 270, 1011, 561]
Open off
NumInputPorts "2"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
}
TimeRange "1"
YMin "0~0"
YMax "6000~1"
SaveName "ScopeData3"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Scope
Name "Scope4"
Ports [2]
Position [490, 495, 525, 530]
Orientation "down"
NamePlacement "alternate"
Location [6, 417, 1011, 708]
Open off
NumInputPorts "2"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
}
YMin "-5~-5"
YMax "5~5"
SaveName "ScopeData5"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Scope
Name "Scope5"
Ports [2]
Position [480, 315, 515, 350]
Location [6, 191, 1011, 482]
Open off
NumInputPorts "2"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
YMin "-5~-5"
YMax "5~5"
SaveName "ScopeData7"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Scope
Name "Scope6"
Ports [2]
Position [295, 106, 325, 139]
Location [11, 380, 1019, 619]
Open off
NumInputPorts "2"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
}
YMin "-5~-5"
YMax "5~5"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Scope
Name "Scope7"
Ports [1]
Position [860, 154, 890, 186]
Location [11, 327, 1019, 566]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
YMin "-1"
YMax "2"
SaveName "ScopeData8"
DataFormat "StructureWithTime"
LimitDataPoints off
}
Block {
BlockType Sin
Name "Source Oscillator"
Position [40, 225, 70, 255]
SineType "Time based"
Frequency "2*pi*10*10^6"
Phase "72"
SampleTime "0"
}
Block {
BlockType Sin
Name "Source Oscillator1"
Position [215, 455, 245, 485]
Orientation "up"
SineType "Time based"
Amplitude "10"
Frequency "2*pi*10*10^6"
SampleTime "0"
}
Block {
BlockType Math
Name "Square1"
Ports [1, 1]
Position [695, 225, 725, 255]
Operator "square"
}
Block {
BlockType Math
Name "Square2"
Ports [1, 1]
Position [690, 380, 720, 410]
Operator "square"
}
Block {
BlockType Math
Name "Square3"
Ports [1, 1]
Position [805, 310, 835, 340]
Operator "sqrt"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [755, 315, 775, 335]
ShowName off
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [220, 290, 240, 310]
ShowName off
IconShape "round"
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [625, 230, 645, 250]
ShowName off
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1]
Position [630, 380, 650, 400]
ShowName off
IconShape "round"
Inputs "-+"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum4"
Ports [2, 1]
Position [755, 490, 775, 510]
Orientation "down"
NamePlacement "alternate"
ShowName off
IconShape "round"
Inputs "+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [855, 530, 915, 560]
Orientation "down"
NamePlacement "alternate"
VariableName "MeanValue"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType UniformRandomNumber
Name "Uniform Random\nNumber"
Position [50, 445, 80, 475]
Orientation "up"
Minimum "0"
Seed "1253513"
SampleTime "1/512000"
}
Line {
SrcBlock "Source Oscillator"
SrcPort 1
Points [25, 0; 0, 50]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "I_LO"
SrcPort 1
Points [0, -40; 45, 0]
Branch {
Points [30, 0]
DstBlock "Product1"
DstPort 2
}
Branch {
Points [0, 65]
DstBlock "I and Q Local Oscillator"
DstPort 1
}
}
Line {
SrcBlock "Square1"
SrcPort 1
Points [0, 85]
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [0, 0; 10, 0]
Branch {
DstBlock "Analog\nFilter Design1"
DstPort 1
}
Branch {
Points [0, -145]
DstBlock "Scope3"
DstPort 1
}
Branch {
Points [0, 90]
DstBlock "Scope5"
DstPort 1
}
}
Line {
SrcBlock "Product2"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
DstBlock "Analog\nFilter Design2"
DstPort 1
}
Branch {
Points [0, -75]
DstBlock "Scope5"
DstPort 2
}
Branch {
Points [0, 65]
DstBlock "Scope4"
DstPort 1
}
}
Line {
SrcBlock "Analog\nFilter Design2"
SrcPort 1
Points [10, 0]
Branch {
Points [0, 65]
DstBlock "Scope4"
DstPort 2
}
Branch {
DstBlock "Gain3"
DstPort 1
}
Branch {
Points [0, -80]
DstBlock "Scope2"
DstPort 2
}
}
Line {
SrcBlock "Q_LO"
SrcPort 1
Points [10, 0]
Branch {
Points [0, 40]
DstBlock "Product2"
DstPort 1
}
Branch {
Points [0, -40]
DstBlock "I and Q Local Oscillator"
DstPort 2
}
}
Line {
SrcBlock "Product"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Sum1"
DstPort 1
}
Branch {
Points [0, -185]
DstBlock "Scope6"
DstPort 1
}
}
Line {
SrcBlock "Source Oscillator1"
SrcPort 1
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [10, 0; 0, -5]
Branch {
Points [0, 135; 90, 0; 0, -10]
DstBlock "Product2"
DstPort 2
}
Branch {
Points [0, -65]
Branch {
Points [75, 0; 0, -5]
DstBlock "Product1"
DstPort 1
}
Branch {
Points [0, -100]
DstBlock "Scope6"
DstPort 2
}
}
}
Line {
SrcBlock "Analog\nFilter Design1"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Gain1"
DstPort 1
}
Branch {
Points [0, 85]
DstBlock "Scope2"
DstPort 1
}
}
Line {
SrcBlock "Gain1"
SrcPort 1
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Sum2"
SrcPort 1
Points [10, 0]
Branch {
Points [0, -135]
DstBlock "Scope3"
DstPort 2
}
Branch {
Points [15, 0]
Branch {
DstBlock "Square1"
DstPort 1
}
Branch {
Points [0, -70]
DstBlock "Compare\nTo Constant1"
DstPort 1
}
}
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [0, -5; -35, 0]
Branch {
DstBlock "Sum2"
DstPort 2
}
Branch {
Points [5, 0]
DstBlock "Sum3"
DstPort 1
}
}
Line {
SrcBlock "Compare\nTo Constant1"
SrcPort 1
DstBlock "Scope7"
DstPort 1
}
Line {
SrcBlock "Gain3"
SrcPort 1
DstBlock "Sum3"
DstPort 2
}
Line {
SrcBlock "Sum3"
SrcPort 1
Points [15, 0; 0, 5]
DstBlock "Square2"
DstPort 1
}
Line {
SrcBlock "Square2"
SrcPort 1
Points [5, 0; 0, -65]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Square3"
DstPort 1
}
Line {
SrcBlock "Square3"
SrcPort 1
Points [10, 0; 0, 65]
Branch {
DstBlock "Mean"
DstPort 1
}
Branch {
Points [-110, 0]
DstBlock "Sum4"
DstPort 1
}
}
Line {
SrcBlock "Uniform Random\nNumber"
SrcPort 1
DstBlock "Compare\nTo Constant2"
DstPort 1
}
Line {
SrcBlock "Compare\nTo Constant2"
SrcPort 1
Points [0, -45; 60, 0]
Branch {
DstBlock "Product"
DstPort 2
}
Branch {
Points [0, 310]
DstBlock "Scope1"
DstPort 2
}
}
Line {
SrcBlock "Mean"
SrcPort 1
Points [0, 25]
Branch {
Points [0, 20]
DstBlock "To Workspace"
DstPort 1
}
Branch {
Points [0, 10]
DstBlock "Gain2"
DstPort 1
}
}
Line {
SrcBlock "Gain2"
SrcPort 1
DstBlock "Sum4"
DstPort 2
}
Line {
SrcBlock "Sum4"
SrcPort 1
DstBlock "Scope1"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -