📄 sampling_101.mdl
字号:
YMin "-5"
YMax "5"
SaveToWorkspace off
SaveName "ScopeData"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType SignalGenerator
WaveForm "sine"
TimeSource "Use simulation time"
Amplitude "1"
Frequency "1"
Units "Hertz"
VectorParams1D on
}
Block {
BlockType SignalSpecification
Dimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
}
Block {
BlockType StateSpace
A "1"
B "1"
C "1"
D "1"
X0 "0"
AbsoluteTolerance "auto"
Realization "auto"
}
Block {
BlockType SubSystem
ShowPortLabels on
Permissions "ReadWrite"
PermitHierarchicalResolution "All"
SystemSampleTime "-1"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType ZeroOrderHold
SampleTime "1"
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "sampling_101"
Location [13, 84, 865, 552]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType ZeroOrderHold
Name "ADC_1"
Position [320, 146, 355, 184]
BackgroundColor "blue"
SampleTime "1/8000"
}
Block {
BlockType ZeroOrderHold
Name "ADC_2"
Position [320, 246, 355, 284]
BackgroundColor "cyan"
SampleTime "1/8000"
}
Block {
BlockType ZeroOrderHold
Name "ADC_3"
Position [320, 346, 355, 384]
BackgroundColor "green"
SampleTime "1/8000"
}
Block {
BlockType Reference
Name "Analog\nAnti Alias Filter"
Ports [1, 1]
Position [210, 337, 275, 393]
BackgroundColor "green"
SourceBlock "dsparch4/Analog\nFilter Design"
SourceType "Analog Filter Design"
method "Elliptic"
filttype "Lowpass"
N "8"
Wlo "2*pi*8000/2.56"
Whi "80"
Rp "1"
Rs "80"
}
Block {
BlockType Reference
Name "Analog\nReconstuction Filter_1"
Ports [1, 1]
Position [620, 237, 685, 293]
BackgroundColor "cyan"
SourceBlock "dsparch4/Analog\nFilter Design"
SourceType "Analog Filter Design"
method "Elliptic"
filttype "Lowpass"
N "8"
Wlo "2*pi*8000/2.56"
Whi "80"
Rp "1"
Rs "80"
Port {
PortNumber 1
Name "cyan"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Reference
Name "Analog\nReconstuction Filter_2"
Ports [1, 1]
Position [620, 337, 685, 393]
BackgroundColor "green"
SourceBlock "dsparch4/Analog\nFilter Design"
SourceType "Analog Filter Design"
method "Elliptic"
filttype "Lowpass"
N "8"
Wlo "2*pi*8000/2.56"
Whi "80"
Rp "1"
Rs "80"
Port {
PortNumber 1
Name "red"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType BusCreator
Name "Bus\nCreator"
Ports [4, 1]
Position [750, 14, 760, 416]
ShowName off
DisplayOption "bar"
}
Block {
BlockType SubSystem
Name "DAC_1"
Ports [1, 1]
Position [515, 141, 570, 189]
BackgroundColor "blue"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
Port {
PortNumber 1
Name "magenta"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
System {
Name "DAC_1"
Location [508, 367, 819, 457]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Din"
Position [25, 38, 55, 52]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType SignalSpecification
Name "convert back to continuous time"
Position [115, 33, 170, 57]
SampleTime "0"
}
Block {
BlockType Outport
Name "Aout"
Position [240, 38, 270, 52]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "convert back to continuous time"
SrcPort 1
DstBlock "Aout"
DstPort 1
}
Line {
SrcBlock "Din"
SrcPort 1
DstBlock "convert back to continuous time"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "DAC_2"
Ports [1, 1]
Position [510, 241, 565, 289]
BackgroundColor "cyan"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "DAC_2"
Location [508, 367, 819, 457]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Din"
Position [25, 38, 55, 52]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType SignalSpecification
Name "convert back to continuous time"
Position [115, 33, 170, 57]
SampleTime "0"
}
Block {
BlockType Outport
Name "Aout"
Position [240, 38, 270, 52]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Din"
SrcPort 1
DstBlock "convert back to continuous time"
DstPort 1
}
Line {
SrcBlock "convert back to continuous time"
SrcPort 1
DstBlock "Aout"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "DAC_3"
Ports [1, 1]
Position [510, 341, 565, 389]
BackgroundColor "green"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "DAC_3"
Location [508, 367, 819, 457]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Din"
Position [25, 38, 55, 52]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType SignalSpecification
Name "convert back to continuous time"
Position [115, 33, 170, 57]
SampleTime "0"
}
Block {
BlockType Outport
Name "Aout"
Position [240, 38, 270, 52]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "convert back to continuous time"
SrcPort 1
DstBlock "Aout"
DstPort 1
}
Line {
SrcBlock "Din"
SrcPort 1
DstBlock "convert back to continuous time"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "DSP_1"
Ports [1, 1]
Position [405, 141, 460, 189]
BackgroundColor "blue"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "DSP_1"
Location [508, 367, 806, 474]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Din"
Position [25, 38, 55, 52]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Outport
Name "Dout"
Position [240, 38, 270, 52]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Din"
SrcPort 1
DstBlock "Dout"
DstPort 1
}
Annotation {
Name "The DSP unit \"wire\""
Position [140, 64]
}
}
}
Block {
BlockType SubSystem
Name "DSP_2"
Ports [1, 1]
Position [405, 241, 460, 289]
BackgroundColor "cyan"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "DSP_2"
Location [508, 367, 806, 474]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Din"
Position [25, 38, 55, 52]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Outport
Name "Dout"
Position [240, 38, 270, 52]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Din"
SrcPort 1
DstBlock "Dout"
DstPort 1
}
Annotation {
Name "The DSP unit \"wire\""
Position [140, 64]
}
}
}
Block {
BlockType SubSystem
Name "DSP_3"
Ports [1, 1]
Position [405, 341, 460, 389]
BackgroundColor "green"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "DSP_3"
Location [508, 367, 806, 474]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Din"
Position [25, 38, 55, 52]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Outport
Name "Dout"
Position [240, 38, 270, 52]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Din"
SrcPort 1
DstBlock "Dout"
DstPort 1
}
Annotation {
Name "The DSP unit \"wire\""
Position [140, 64]
}
}
}
Block {
BlockType SubSystem
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -