📄 hbaset4.mdl
字号:
Orientation "left"
SourceBlock "commsource2/Voltage-Controlled\nOscilla"
"tor"
SourceType "Voltage-Controlled Oscillator"
Ac "1"
Fc "25e6"
Kc "1000000000000"
Ph "0"
}
Block {
BlockType Reference
Name "Loop\nFilter1"
Ports [1, 1]
Position [285, 27, 350, 83]
SourceBlock "dsparch3/Analog\nFilter Design"
SourceType "Analog Filter Design"
method "Butterworth"
filttype "Lowpass"
N "2"
Wlo "1e6"
Whi "80"
Rp "2"
Rs "40"
}
Block {
BlockType Reference
Name "Loop\nFilter2"
Ports [1, 1]
Position [280, 277, 345, 333]
SourceBlock "dsparch3/Analog\nFilter Design"
SourceType "Analog Filter Design"
method "Butterworth"
filttype "Lowpass"
N "2"
Wlo "1e6"
Whi "80"
Rp "2"
Rs "40"
}
Block {
BlockType Product
Name "Prod"
Ports [2, 1]
Position [134, 75, 181, 125]
Orientation "up"
NamePlacement "alternate"
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Product
Name "Prod1"
Ports [2, 1]
Position [134, 235, 181, 290]
Orientation "down"
NamePlacement "alternate"
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Product
Name "Prod2"
Ports [2, 1]
Position [325, 164, 390, 206]
Orientation "left"
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Outport
Name "Phase1"
Position [150, 338, 180, 352]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Outport
Name "Out1"
Position [150, 23, 180, 37]
Port "2"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "90"
SrcPort 1
Points [-25, 0]
Branch {
DstBlock "Prod"
DstPort 2
}
Branch {
Points [-110, 0; 0, -120]
DstBlock "Clock\nShape1"
DstPort 1
}
}
Line {
SrcBlock "In-phase"
SrcPort 1
Points [0, 0; -25, 0]
Branch {
DstBlock "Prod1"
DstPort 2
}
Branch {
Points [-110, 0]
DstBlock "Clock\nShape"
DstPort 1
}
}
Line {
SrcBlock "Prod2"
SrcPort 1
Points [-25, 0]
Branch {
DstBlock "90"
DstPort 1
}
Branch {
DstBlock "In-phase"
DstPort 1
}
}
Line {
SrcBlock "Prod"
SrcPort 1
Points [0, -15]
DstBlock "Loop\nFilter1"
DstPort 1
}
Line {
SrcBlock "Prod1"
SrcPort 1
Points [0, 10]
DstBlock "Loop\nFilter2"
DstPort 1
}
Line {
SrcBlock "Loop\nFilter2"
SrcPort 1
Points [55, 0]
DstBlock "Prod2"
DstPort 2
}
Line {
SrcBlock "Loop\nFilter1"
SrcPort 1
Points [50, 0]
DstBlock "Prod2"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
DstBlock "Prod"
DstPort 1
}
Branch {
DstBlock "Prod1"
DstPort 1
}
}
Line {
SrcBlock "Clock\nShape"
SrcPort 1
DstBlock "Phase1"
DstPort 1
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Clock\nShape1"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType Constant
Name "Constant"
Position [425, 75, 455, 105]
Value "0.2"
VectorParams1D on
}
Block {
BlockType Constant
Name "Constant1"
Position [430, 135, 460, 165]
Value "-0.2"
VectorParams1D on
}
Block {
BlockType TransferFcn
Name "Equalizer"
Position [110, 34, 195, 86]
Numerator "[3.01e-8 1]"
Denominator "[3.02e-8 3.5]"
Realization "auto"
AbsoluteTolerance "auto"
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator"
Position [480, 52, 510, 83]
Operator ">"
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator1"
Position [480, 112, 510, 143]
Operator "<"
}
Block {
BlockType Reference
Name "Sample\nand Hold"
Ports [1, 1, 0, 1]
Position [325, 40, 375, 80]
NamePlacement "alternate"
SourceBlock "dspsigops/Sample\nand Hold"
SourceType "Sample and Hold"
trig "Rising edge"
initCond "0"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [545, 65, 565, 85]
ShowName off
IconShape "rectangular"
Inputs "+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType Outport
Name "Data\nOut"
Position [595, 68, 625, 82]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Sample\nand Hold"
SrcPort 1
Points [30, 0]
Branch {
Points [0, 60]
DstBlock "Relational\nOperator1"
DstPort 1
}
Branch {
DstBlock "Relational\nOperator"
DstPort 1
}
}
Line {
SrcBlock "Signal In"
SrcPort 1
DstBlock "Equalizer"
DstPort 1
}
Line {
SrcBlock "Equalizer"
SrcPort 1
Points [30, 0]
Branch {
DstBlock "Sample\nand Hold"
DstPort 1
}
Branch {
Points [0, 60]
DstBlock "Clock\nRecovery"
DstPort 1
}
}
Line {
SrcBlock "Clock\nRecovery"
SrcPort 1
Points [15, 0]
DstBlock "Sample\nand Hold"
DstPort trigger
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [5, 0]
DstBlock "Relational\nOperator"
DstPort 2
}
Line {
SrcBlock "Constant1"
SrcPort 1
DstBlock "Relational\nOperator1"
DstPort 2
}
Line {
SrcBlock "Relational\nOperator"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Relational\nOperator1"
SrcPort 1
Points [10, 0; 0, -50]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Data\nOut"
DstPort 1
}
}
}
Block {
BlockType Scope
Name "Recovered\nTerary\nSymbols"
Ports [1]
Position [635, 164, 665, 196]
Floating off
Location [59, 60, 989, 299]
Open on
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "1e-006"
YMin "-1"
YMax "1"
SaveToWorkspace off
SaveName "ScopeData3"
DataFormat "StructureWithTime"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Scope
Name "Transmit\nBits"
Ports [1]
Position [175, 49, 205, 81]
Floating off
Location [16, 479, 946, 718]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "2e-006 "
YMin "0"
YMax "1"
SaveToWorkspace off
SaveName "ScopeData2"
DataFormat "StructureWithTime"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Scope
Name "Transmit\nSignal"
Ports [1]
Position [345, 54, 375, 86]
Floating off
Location [62, 83, 995, 322]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
Grid "on"
TimeRange "1e-006"
YMin "-2.5"
YMax "2.5"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitDataPoints on
MaxDataPoints "5000000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType SubSystem
Name "Transmitter"
Ports [1, 1]
Position [175, 132, 270, 198]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "Transmitter"
Location [58, 186, 771, 387]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "Data\nIn"
Position [50, 53, 80, 67]
Port "1"
Interpolate on
}
Block {
BlockType SubSystem
Name "1 out of 3\nbytes"
Ports [1, 1]
Position [120, 26, 185, 94]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "1 out of 3\nbytes"
Location [107, 368, 492, 676]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "In"
Position [30, 123, 60, 137]
Port "1"
Interpolate on
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -