📄 chafenjiance.mdl
字号:
}
Name "Configuration"
SimulationMode "normal"
CurrentDlgPage "Solver"
}
PropName "ConfigurationSets"
}
Simulink.ConfigSet {
$PropName "ActiveConfigurationSet"
$ObjectID 1
}
BlockDefaults {
Orientation "right"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
NamePlacement "normal"
FontName "arial"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
BlockParameterDefaults {
Block {
BlockType Constant
Value "1"
VectorParams1D on
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
}
Block {
BlockType DiscretePulseGenerator
PulseType "Sample based"
TimeSource "Use simulation time"
Amplitude "1"
Period "2"
PulseWidth "1"
PhaseDelay "0"
SampleTime "1"
VectorParams1D on
}
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 RelationalOperator
Operator ">="
InputSameDT on
LogicOutDataTypeMode "Logical (see Configuration Parameters: Optimiza"
"tion)"
LogicDataType "uint(8)"
ZeroCross 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 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 StateSpace
A "1"
B "1"
C "1"
D "1"
X0 "0"
AbsoluteTolerance "auto"
Realization "auto"
}
Block {
BlockType Switch
Criteria "u2 >= Threshold"
Threshold "0"
InputSameDT on
OutDataTypeMode "Inherit via internal rule"
RndMeth "Floor"
SaturateOnIntegerOverflow on
ZeroCross on
SampleTime "-1"
}
Block {
BlockType TransportDelay
DelayTime "1"
InitialOutput "0"
BufferSize "1024"
FixedBuffer off
TransDelayFeedthrough off
PadeOrder "0"
}
}
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 "chafenjiance"
Location [73, 65, 811, 358]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name "Analog\nFilter Design"
Ports [1, 1]
Position [275, 106, 330, 144]
SourceBlock "dsparch4/Analog\nFilter Design"
SourceType "Analog Filter Design"
method "Butterworth"
filttype "Bandpass"
N "8"
Wlo "30"
Whi "100"
Rp "2"
Rs "40"
}
Block {
BlockType Reference
Name "Analog\nFilter Design1"
Ports [1, 1]
Position [480, 113, 505, 157]
SourceBlock "dsparch4/Analog\nFilter Design"
SourceType "Analog Filter Design"
method "Butterworth"
filttype "Lowpass"
N "8"
Wlo "70"
Whi "90"
Rp "2"
Rs "40"
}
Block {
BlockType Constant
Name "Constant"
Position [500, 70, 525, 90]
Value "0"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [410, 117, 440, 148]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType DiscretePulseGenerator
Name "Pulse\nGenerator"
Ports [0, 1]
Position [60, 108, 105, 142]
PulseType "Time based"
PulseWidth "50"
}
Block {
BlockType RelationalOperator
Name "Relational\nOperator"
Position [565, 112, 595, 143]
Operator "<="
InputSameDT off
LogicOutDataTypeMode "Boolean"
}
Block {
BlockType Scope
Name "Scope"
Ports [5]
Position [640, 148, 675, 242]
Floating off
Location [43, 101, 972, 608]
Open off
NumInputPorts "5"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
axes5 "%<SignalLabel>"
}
YMin "-2~-5~-5~-5~-5"
YMax "2~5~5~5~5"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope1"
Ports [2]
Position [260, 211, 290, 244]
Floating off
Location [465, 603, 1058, 842]
Open off
NumInputPorts "2"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
YMin "-5~-5"
YMax "5~5"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Sin
Name "Sine Wave"
Ports [0, 1]
Position [60, 55, 90, 85]
SineType "Time based"
Frequency "50"
SampleTime "0"
}
Block {
BlockType Sin
Name "Sine Wave1"
Ports [0, 1]
Position [75, 185, 105, 215]
SineType "Time based"
Frequency "80"
SampleTime "0"
}
Block {
BlockType Switch
Name "Switch"
Position [190, 101, 225, 149]
Threshold "0.5"
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType TransportDelay
Name "Transport\nDelay"
Position [355, 165, 385, 195]
DelayTime "2"
}
Line {
SrcBlock "Pulse\nGenerator"
SrcPort 1
Points [50, 0]
Branch {
DstBlock "Switch"
DstPort 2
}
Branch {
Points [0, 110]
DstBlock "Scope1"
DstPort 2
}
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
Points [40, 0; 0, 40]
DstBlock "Switch"
DstPort 1
}
Line {
SrcBlock "Sine Wave1"
SrcPort 1
Points [30, 0; 0, -60]
DstBlock "Switch"
DstPort 3
}
Line {
SrcBlock "Switch"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Analog\nFilter Design"
DstPort 1
}
Branch {
DstBlock "Scope1"
DstPort 1
}
}
Line {
SrcBlock "Analog\nFilter Design"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "Product"
DstPort 1
}
Branch {
Points [0, 55; 5, 0]
Branch {
DstBlock "Transport\nDelay"
DstPort 1
}
Branch {
Points [0, 60; 285, 0]
DstBlock "Scope"
DstPort 5
}
}
}
Line {
SrcBlock "Product"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Analog\nFilter Design1"
DstPort 1
}
Branch {
Points [0, 60]
DstBlock "Scope"
DstPort 3
}
}
Line {
SrcBlock "Analog\nFilter Design1"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "Relational\nOperator"
DstPort 2
}
Branch {
Points [0, 40]
DstBlock "Scope"
DstPort 2
}
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [10, 0; 0, 40]
DstBlock "Relational\nOperator"
DstPort 1
}
Line {
SrcBlock "Relational\nOperator"
SrcPort 1
Points [10, 0; 0, 25]
DstBlock "Scope"
DstPort 1
}
Line {
SrcBlock "Transport\nDelay"
SrcPort 1
Points [0, 0]
Branch {
Points [0, -40]
DstBlock "Product"
DstPort 2
}
Branch {
Points [0, 35]
DstBlock "Scope"
DstPort 4
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -