📄 dspsdadc3.mdl
字号:
Name "Math\nFunction"
Ports [1, 1]
Position [125, 190, 155, 220]
Operator "10^u"
}
Block {
BlockType SubSystem
Name "Perfect ADC"
Ports [1, 1]
Position [570, 32, 625, 68]
BackgroundColor "green"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Perfect ADC"
Location [337, 74, 747, 202]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "142"
Block {
BlockType Inport
Name "In1"
Position [25, 33, 55, 47]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType ZeroOrderHold
Name "Sample\nat 8KHz"
Position [90, 24, 125, 56]
SampleTime "1/8000"
}
Block {
BlockType Reference
Name "delay 5 samples"
Ports [1, 1]
Position [160, 22, 205, 58]
SourceBlock "dspobslib/Integer Delay"
SourceType "Integer Delay"
delay "5"
ic "0"
reset_popup "None"
Port {
PortNumber 1
Name "yellow=adc input"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Outport
Name "Out1"
Position [230, 33, 260, 47]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
Labels [0, 0]
SrcBlock "Sample\nat 8KHz"
SrcPort 1
DstBlock "delay 5 samples"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Sample\nat 8KHz"
DstPort 1
}
Line {
Name "yellow=adc input"
Labels [0, 0]
SrcBlock "delay 5 samples"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [115, 106, 160, 139]
BackgroundColor "green"
InputSameDT off
RndMeth "Floor"
}
Block {
BlockType Scope
Name "Results"
Ports [1]
Position [815, 38, 845, 82]
BackgroundColor "green"
ShowName off
Location [559, 463, 1012, 643]
Open on
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "0.015"
YMin "-1"
YMax "1"
DataFormat "Array"
LimitDataPoints off
}
Block {
BlockType ZeroOrderHold
Name "Sample\nat 512kHz"
Position [615, 109, 650, 141]
BackgroundColor "green"
SampleTime "1/512000"
Port {
PortNumber 1
Name "1-bit Error Signal"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Sin
Name "Sine Wave"
Ports [0, 1]
Position [15, 92, 55, 138]
BackgroundColor "green"
SineType "Time based"
Amplitude "[1 1]*0.5"
Frequency "[1500 1750]*2*pi"
SampleTime "0"
Port {
PortNumber 1
Name "Analog\nInput"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Reference
Name "Slider\nGain1"
Ports [1, 1]
Position [70, 190, 100, 220]
SourceBlock "simulink/Math\nOperations/Slider\nGain"
SourceType "Slider Gain"
ShowPortLabels on
low "-100"
gain "0"
high "10"
}
Block {
BlockType Reference
Name "Spectrum\nScope"
Ports [1]
Position [805, 100, 840, 150]
BackgroundColor "green"
SourceBlock "dspsnks4/Spectrum\nScope"
SourceType "Spectrum Scope"
ShowPortLabels off
ScopeProperties off
Domain "Frequency"
HorizSpan "1"
UseBuffer on
BufferSize "512"
Overlap "0"
inpFftLenInherit off
FFTlength "128"
numAvg "1"
DisplayProperties off
AxisGrid on
Memory off
FrameNumber on
AxisLegend off
AxisZoom off
OpenScopeAtSimStart on
OpenScopeImmediately off
FigPos "[14 34 560 276]"
AxisProperties on
XUnits "Hertz"
XRange "[0...Fs/2]"
InheritXIncr on
XIncr "1.0"
XLabel "Samples"
YUnits "dB"
YMin "-80"
YMax "20"
YLabel "Magnitude, dB"
LineProperties off
LineColors "[1 0 1]|[1 0 0]"
wintypeSpecScope "Hann"
RsSpecScope "50"
betaSpecScope "5"
winsampSpecScope "Periodic"
}
Block {
BlockType SubSystem
Name "SubSystem"
Ports []
Position [356, 202, 444, 233]
BackgroundColor "green"
ShowName off
OpenFcn "plot_signal"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskDisplay "disp('plot signal')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "SubSystem"
Location [148, 182, 646, 482]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
}
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [225, 110, 255, 140]
BackgroundColor "green"
ShowName off
IconShape "round"
Inputs "|+-"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [380, 110, 410, 140]
BackgroundColor "green"
ShowName off
IconShape "round"
Inputs "|+-"
}
Block {
BlockType Sum
Name "Sum2"
Ports [1, 1]
Position [65, 100, 95, 130]
BackgroundColor "green"
ShowName off
IconShape "round"
Inputs "1"
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [430, 60, 490, 90]
BackgroundColor "green"
VariableName "analog"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Structure With Time"
}
Line {
SrcBlock "Filter and Downsample"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Bus\nCreator"
DstPort 2
}
Branch {
DstBlock "Spectrum\nScope"
DstPort 1
}
}
Line {
Name "Analog\nInput"
SrcBlock "Sine Wave"
SrcPort 1
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "1-bit\nquantizer"
SrcPort 1
DstBlock "Sample\nat 512kHz"
DstPort 1
}
Line {
Name "1-bit Error Signal"
SrcBlock "Sample\nat 512kHz"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
DstBlock "Filter and Downsample"
DstPort 1
}
Branch {
Points [0, 55; -265, 0]
Branch {
DstBlock "Sum1"
DstPort 2
}
Branch {
DstBlock "Gain1"
DstPort 1
}
}
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Gain2"
DstPort 1
}
Line {
SrcBlock "Bus\nCreator"
SrcPort 1
DstBlock "Results"
DstPort 1
}
Line {
SrcBlock "Perfect ADC"
SrcPort 1
DstBlock "Bus\nCreator"
DstPort 1
}
Line {
SrcBlock "Integrator1"
SrcPort 1
DstBlock "1-bit\nquantizer"
DstPort 1
}
Line {
SrcBlock "Integrator"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Integrator1"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [-35, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Gain2"
SrcPort 1
DstBlock "Integrator"
DstPort 1
}
Line {
SrcBlock "Gain3"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "Gain3"
DstPort 1
}
Branch {
Points [5, 0; 0, -75; 230, 0]
Branch {
DstBlock "Perfect ADC"
DstPort 1
}
Branch {
Points [0, 25]
DstBlock "To Workspace"
DstPort 1
}
}
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Slider\nGain1"
DstPort 1
}
Line {
SrcBlock "Slider\nGain1"
SrcPort 1
DstBlock "Math\nFunction"
DstPort 1
}
Line {
SrcBlock "Math\nFunction"
SrcPort 1
Points [10, 0; 0, -40; -75, 0; 0, -35]
DstBlock "Product"
DstPort 2
}
Annotation {
Name "Sigma/Delta with 2nd Order Modulator"
Position [257, 23]
FontName "Arial"
FontSize 20
FontWeight "bold"
}
}
}
MatData {
NumRecords 3
DataRecord {
Tag DataTag2
Data " %)30 . < 8 ( 0 % "
"\" $ ! 0 . 0 8 ( ! % \" $ "
", 0 0 # $9)4D1E8TEN=&5R< "
}
DataRecord {
Tag DataTag1
Data " %)30 . < 8 ( 0 % "
"\" $ ! 0 . 0 8 ( ! % \" $ "
", 0 0 # $9)4D1E8TEN=&5R< "
}
DataRecord {
Tag DataTag0
Data " %)30 . < 8 ( 0 % "
"\" $ ! 0 . 0 8 ( ! % \" $ "
", 0 0 # $9)4D1E8TEN=&5R< "
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -