📄 del_sim.mdl
字号:
ShowName on
}
BlockParameterDefaults {
Block {
BlockType Lookup
InputValues "[-4:5]"
OutputValues " rand(1,10)-0.5"
LookUpMeth "Interpolation-Extrapolation"
OutDataTypeMode "Same as input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
LUTDesignTableMode "Redesign Table"
LUTDesignDataSource "Block Dialog"
LUTDesignFunctionName "sqrt(x)"
LUTDesignUseExistingBP on
LUTDesignRelError "0.01"
LUTDesignAbsError "1e-6"
}
Block {
BlockType Product
Inputs "2"
Multiplication "Element-wise(.*)"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Zero"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Scope
ModelBased off
TickLabels "OneTimeTick"
ZoomMode "on"
Grid "on"
TimeRange "auto"
YMin "-5"
YMax "5"
SaveToWorkspace off
SaveName "ScopeData"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "-1"
}
Block {
BlockType "S-Function"
FunctionName "system"
SFunctionModules "''"
PortCounts "[]"
}
Block {
BlockType Sin
SineType "Time based"
TimeSource "Use simulation time"
Amplitude "1"
Bias "0"
Frequency "1"
Phase "0"
Samples "10"
Offset "0"
SampleTime "-1"
VectorParams1D on
}
Block {
BlockType UnitDelay
X0 "0"
SampleTime "1"
StateMustResolveToSignalObject off
RTWStateStorageClass "Auto"
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "arial"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "arial"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "del_sim"
Location [2, 70, 1022, 717]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType UnitDelay
Name " Delay0.1"
Position [530, 298, 565, 332]
}
Block {
BlockType UnitDelay
Name "0.1 Delay"
Position [475, 108, 510, 142]
}
Block {
BlockType UnitDelay
Name "Delay0.2"
Position [530, 368, 565, 402]
}
Block {
BlockType UnitDelay
Name "Delay0.3"
Position [530, 433, 565, 467]
}
Block {
BlockType UnitDelay
Name "Delay0.4"
Position [530, 498, 565, 532]
}
Block {
BlockType Lookup
Name "Lookup Table"
Position [215, 45, 265, 95]
InputValues "[-5:5]"
OutputValues "tanh([-5:5])"
SaturateOnIntegerOverflow off
}
Block {
BlockType Lookup
Name "Lookup Table1"
Position [220, 360, 270, 410]
InputValues "[-5:5]"
OutputValues "tanh([-5:5])"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "PN Sequence\nGenerator"
Ports [0, 1]
Position [55, 48, 135, 92]
SourceBlock "commseqgen2/PN Sequence\nGenerator"
SourceType "PN Sequence Generator"
poly "[1 0 0 0 0 1 1]"
ini_sta "[0 0 0 0 0 1]"
shift "0"
Ts "1"
frameBased off
sampPerFrame "1"
reset off
outDataType "double"
}
Block {
BlockType Reference
Name "PN Sequence\nGenerator1"
Ports [0, 1]
Position [70, 363, 150, 407]
SourceBlock "commseqgen2/PN Sequence\nGenerator"
SourceType "PN Sequence Generator"
poly "[1 0 0 0 0 1 1]"
ini_sta "[0 0 0 0 0 1]"
shift "0"
Ts "1"
frameBased off
sampPerFrame "1"
reset off
outDataType "double"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [335, 107, 365, 138]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [660, 292, 690, 323]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [660, 362, 690, 393]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product3"
Ports [2, 1]
Position [660, 427, 690, 458]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product4"
Ports [2, 1]
Position [660, 492, 690, 523]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Scope
Name "Scope"
Ports [2]
Position [415, 206, 445, 264]
Floating off
Location [188, 390, 512, 629]
Open off
NumInputPorts "2"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
YMin "-5~-5"
YMax "5~5"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope1"
Ports [4]
Position [840, 261, 890, 339]
Floating off
Location [188, 390, 512, 629]
Open off
NumInputPorts "4"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
}
YMin "-5~-5~-5~-5"
YMax "5~5~5~5"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Sin
Name "Sine Wave\nFunction"
Ports [0, 1]
Position [80, 205, 110, 235]
SineType "Time based"
SampleTime "0"
Port {
PortNumber 1
TestPoint on
RTWStorageClass "Auto"
DataLogging on
DataLoggingNameMode "SignalName"
DataLoggingDecimateData on
DataLoggingDecimation "2"
}
}
Line {
SrcBlock "PN Sequence\nGenerator"
SrcPort 1
DstBlock "Lookup Table"
DstPort 1
}
Line {
SrcBlock "Lookup Table"
SrcPort 1
Points [25, 0; 0, 45]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Sine Wave\nFunction"
SrcPort 1
Points [100, 0; 0, 0]
Branch {
Points [0, -90]
DstBlock "Product"
DstPort 2
}
Branch {
Points [0, 30]
DstBlock "Scope"
DstPort 2
}
}
Line {
SrcBlock "PN Sequence\nGenerator1"
SrcPort 1
DstBlock "Lookup Table1"
DstPort 1
}
Line {
SrcBlock "Lookup Table1"
SrcPort 1
Points [110, 0]
Branch {
DstBlock "Delay0.2"
DstPort 1
}
Branch {
Points [0, -70]
DstBlock " Delay0.1"
DstPort 1
}
Branch {
Points [0, 65]
Branch {
Points [0, 0]
DstBlock "Delay0.3"
DstPort 1
}
Branch {
Points [0, 65]
DstBlock "Delay0.4"
DstPort 1
}
}
}
Line {
SrcBlock "Product"
SrcPort 1
Points [25, 0]
Branch {
DstBlock "0.1 Delay"
DstPort 1
}
Branch {
Points [0, 95]
DstBlock "Scope"
DstPort 1
}
}
Line {
SrcBlock "0.1 Delay"
SrcPort 1
Points [90, 0; 0, 175]
Branch {
DstBlock "Product1"
DstPort 1
}
Branch {
Points [0, 70]
Branch {
DstBlock "Product2"
DstPort 1
}
Branch {
Points [0, 65]
Branch {
Points [0, 65]
DstBlock "Product4"
DstPort 1
}
Branch {
DstBlock "Product3"
DstPort 1
}
}
}
}
Line {
SrcBlock " Delay0.1"
SrcPort 1
DstBlock "Product1"
DstPort 2
}
Line {
SrcBlock "Delay0.2"
SrcPort 1
DstBlock "Product2"
DstPort 2
}
Line {
SrcBlock "Delay0.3"
SrcPort 1
DstBlock "Product3"
DstPort 2
}
Line {
SrcBlock "Delay0.4"
SrcPort 1
DstBlock "Product4"
DstPort 2
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [65, 0; 0, -40]
DstBlock "Scope1"
DstPort 1
}
Line {
SrcBlock "Product3"
SrcPort 1
Points [110, 0; 0, -135]
DstBlock "Scope1"
DstPort 3
}
Line {
SrcBlock "Product2"
SrcPort 1
Points [85, 0; 0, -90]
DstBlock "Scope1"
DstPort 2
}
Line {
SrcBlock "Product4"
SrcPort 1
Points [130, 0]
DstBlock "Scope1"
DstPort 4
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -