📄 hbaset2.mdl
字号:
}
Block {
BlockType Scope
Name "Transmit\nBits"
Ports [1]
Position [175, 19, 205, 51]
Floating off
Location [15, 491, 945, 730]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "xonly"
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, 19, 375, 51]
Floating off
Location [33, 534, 966, 773]
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, 101, 270, 169]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "Transmitter"
Location [97, 180, 790, 401]
Open off
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 [20, 53, 50, 67]
Port "1"
Interpolate on
}
Block {
BlockType Reference
Name "Anti-aliasing\nFilter"
Ports [1, 1]
Position [540, 42, 605, 98]
SourceBlock "dsparch3/Analog\nFilter Design"
SourceType "Analog Filter Design"
method "Butterworth"
filttype "Lowpass"
N "3"
Wlo "1.57e8"
Whi "80"
Rp "2"
Rs "40"
}
Block {
BlockType Reference
Name "FIR\nInterpolation"
Ports [1, 1]
Position [350, 52, 415, 88]
SourceBlock "dspmlti3/FIR\nInterpolation"
SourceType "FIR Interpolation"
h "[1 0 0 0 0]"
L "4"
framing "Maintain input frame size"
}
Block {
BlockType Gain
Name "Gain"
Position [215, 75, 245, 105]
Gain "-1"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType SubSystem
Name "Mapper"
Ports [1, 1]
Position [85, 26, 180, 94]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "Mapper"
Location [126, 176, 588, 301]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "Bit\nIn"
Position [25, 53, 55, 67]
Port "1"
Interpolate on
}
Block {
BlockType Reference
Name "Buffer"
Ports [1, 1]
Position [80, 35, 130, 85]
SourceBlock "dspbuff3/Buffer"
SourceType "Buffer"
N "2"
V "0"
ic "0"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 2]
Position [255, 32, 260, 83]
BackgroundColor "black"
ShowName off
Outputs "2"
BusSelectionMode off
}
Block {
BlockType Reference
Name "Frame Status\nConversion"
Ports [1, 1]
Position [165, 44, 215, 76]
SourceBlock "dspsigattribs/Frame Status\nConversion"
SourceType "Frame Status Conversion"
growRefPort "off"
outframe "Sample-based"
}
Block {
BlockType SubSystem
Name "LookUp\nTable"
Ports [2, 1]
Position [295, 34, 350, 81]
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
System {
Name "LookUp\nTable"
Location [133, 74, 554, 222]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "automatic"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
AutoZoom on
Block {
BlockType Inport
Name "In1"
Position [35, 62, 65, 78]
Port "1"
Interpolate on
}
Block {
BlockType Inport
Name "In2"
Position [35, 87, 65, 103]
Port "2"
Interpolate on
}
Block {
BlockType Reference
Name "Bit to Integer\nConverter"
Ports [1, 1]
Position [120, 63, 200, 107]
SourceBlock "commutil2/Bit to Integer\nConverter"
SourceType "Bit to Integer Converter"
nbits "2"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [90, 55, 95, 110]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Reference
Name "T6Table1"
Ports [1, 1]
Position [240, 57, 295, 113]
SourceBlock "simulink3/Functions\n& Tables/Direc"
"t Look-Up\nTable (n-D)"
SourceType "LookupNDDirect"
maskTabDims "1"
explicitNumDims "1"
outDims "Element"
tabIsInput "off"
mxTable "[-2 -1 0 1]'"
clipFlag "Warning"
}
Block {
BlockType Outport
Name "Out1"
Position [340, 78, 370, 92]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Bit to Integer\nConverter"
DstPort 1
}
Line {
SrcBlock "T6Table1"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Bit to Integer\nConverter"
SrcPort 1
DstBlock "T6Table1"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "In2"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
}
}
Block {
BlockType Outport
Name "Symbol\nOut"
Position [390, 53, 420, 67]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Bit\nIn"
SrcPort 1
DstBlock "Buffer"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 1
DstBlock "LookUp\nTable"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 2
DstBlock "LookUp\nTable"
DstPort 2
}
Line {
SrcBlock "Buffer"
SrcPort 1
DstBlock "Frame Status\nConversion"
DstPort 1
}
Line {
SrcBlock "Frame Status\nConversion"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "LookUp\nTable"
SrcPort 1
DstBlock "Symbol\nOut"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "Random\nSign"
Ports [0, 1]
Position [135, 133, 215, 177]
SourceBlock "commsource2/Binary Vector\nNoise Generator"
SourceType "Binary Vector Noise Generator"
n "1"
prob "0.5"
seed "12345"
Ts "1/25e6"
frameBased "off"
sampPerFrame "1"
orient "off"
}
Block {
BlockType Switch
Name "Switch"
Position [285, 55, 315, 85]
Threshold "0.5"
}
Block {
BlockType DiscreteFilter
Name "Transmit\nFilter"
Position [445, 52, 505, 88]
Numerator "[0.36 0.8 1 0.75 0.26]"
Denominator "[1]"
SampleTime "1/1e8"
Realization "auto"
}
Block {
BlockType Outport
Name "Signal\nOut"
Position [645, 63, 675, 77]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "Anti-aliasing\nFilter"
SrcPort 1
DstBlock "Signal\nOut"
DstPort 1
}
Line {
SrcBlock "Transmit\nFilter"
SrcPort 1
DstBlock "Anti-aliasing\nFilter"
DstPort 1
}
Line {
SrcBlock "Data\nIn"
SrcPort 1
DstBlock "Mapper"
DstPort 1
}
Line {
SrcBlock "Mapper"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
DstBlock "Gain"
DstPort 1
}
Branch {
DstBlock "Switch"
DstPort 1
}
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [0, -10]
DstBlock "Switch"
DstPort 3
}
Line {
SrcBlock "Random\nSign"
SrcPort 1
Points [45, 0; 0, -85]
DstBlock "Switch"
DstPort 2
}
Line {
SrcBlock "Switch"
SrcPort 1
DstBlock "FIR\nInterpolation"
DstPort 1
}
Line {
SrcBlock "FIR\nInterpolation"
SrcPort 1
DstBlock "Transmit\nFilter"
DstPort 1
}
}
}
Line {
SrcBlock "Information\nSequence"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
Points [0, -100]
DstBlock "Transmit\nBits"
DstPort 1
}
Branch {
DstBlock "Transmitter"
DstPort 1
}
}
Line {
SrcBlock "Transmitter"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
Points [0, -100]
DstBlock "Transmit\nSignal"
DstPort 1
}
Branch {
DstBlock "CAT3\nCable"
DstPort 1
}
}
Line {
SrcBlock "CAT3\nCable"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
DstBlock "Receiver"
DstPort 1
}
Branch {
Points [0, -115]
DstBlock "Received\nSignal"
DstPort 1
}
}
Line {
SrcBlock "Crosstalk\nSequence"
SrcPort 1
DstBlock "Crosstalk\nTransmitter"
DstPort 1
}
Line {
SrcBlock "Crosstalk\nTransmitter"
SrcPort 1
Points [20, 0; 0, -70]
DstBlock "CAT3\nCable"
DstPort 2
}
Line {
SrcBlock "Receiver"
SrcPort 1
DstBlock "Recovered\nTerary\nSymbols"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -