📄 ch610.mdl
字号:
}
Block {
BlockType Scope
Floating off
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 "0"
}
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 Sum
IconShape "rectangular"
Inputs "++"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType UnitDelay
X0 "0"
SampleTime "1"
StateMustResolveToSignalObject off
RTWStateStorageClass "Auto"
}
Block {
BlockType ZeroOrderHold
SampleTime "1"
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Arial"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "Arial"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
System {
Name "ch610"
Location [314, 91, 830, 572]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Sum
Name "Add"
Ports [3, 1]
Position [130, 147, 160, 193]
Inputs "--+"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Add1"
Ports [3, 1]
Position [130, 224, 160, 276]
Inputs "+--"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Add2"
Ports [2, 1]
Position [150, 352, 180, 383]
Orientation "left"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
SampleTime "0.1"
}
Block {
BlockType Sum
Name "Add3"
Ports [2, 1]
Position [130, 67, 160, 98]
Orientation "left"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
SampleTime "0.1"
}
Block {
BlockType Fcn
Name "Fcn1"
Position [90, 430, 150, 460]
Orientation "left"
Expr "0.4*sin(u)"
}
Block {
BlockType Gain
Name "Gain"
Position [175, 15, 205, 45]
Orientation "left"
Gain "0.5"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain1"
Position [175, 295, 220, 325]
Orientation "left"
Gain "0.035"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain2"
Position [80, 70, 110, 100]
Orientation "left"
Gain "0.5"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
SampleTime "0.1"
}
Block {
BlockType Gain
Name "Gain3"
Position [85, 355, 115, 385]
Orientation "left"
Gain "0.5"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
SampleTime "0.1"
}
Block {
BlockType Gain
Name "Gain4"
Position [255, 195, 285, 225]
Orientation "left"
Gain "0.5"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [455, 154, 485, 186]
Location [97, 354, 421, 593]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "10"
YMin "-0.2"
YMax "0"
SaveToWorkspace on
SaveName "x1"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [460, 234, 490, 266]
Location [341, 267, 665, 506]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveToWorkspace on
SaveName "x2"
DataFormat "StructureWithTime"
}
Block {
BlockType Sin
Name "Sine Wave"
Ports [0, 1]
Position [235, 90, 265, 120]
Orientation "left"
SineType "Time based"
Phase "pi/4"
SampleTime "0.1"
}
Block {
BlockType Sin
Name "Sine Wave1"
Ports [0, 1]
Position [230, 375, 260, 405]
Orientation "left"
SineType "Time based"
Amplitude "2"
SampleTime "0.1"
}
Block {
BlockType UnitDelay
Name "Unit Delay"
Position [200, 153, 235, 187]
SampleTime "0.05"
}
Block {
BlockType UnitDelay
Name "Unit Delay1"
Position [205, 233, 240, 267]
SampleTime "0.05"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold"
Position [385, 155, 420, 185]
SampleTime "0.2"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold1"
Position [385, 235, 420, 265]
SampleTime "0.2"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold2"
Position [275, 345, 310, 375]
Orientation "left"
SampleTime "0.1"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold3"
Position [285, 60, 320, 90]
Orientation "left"
SampleTime "0.1"
}
Line {
SrcBlock "Add"
SrcPort 1
DstBlock "Unit Delay"
DstPort 1
}
Line {
SrcBlock "Unit Delay"
SrcPort 1
Points [0, 0; 115, 0]
Branch {
DstBlock "Zero-Order\nHold"
DstPort 1
}
Branch {
Points [0, -95]
Branch {
Points [0, -45]
DstBlock "Gain"
DstPort 1
}
Branch {
DstBlock "Zero-Order\nHold3"
DstPort 1
}
}
Branch {
Points [0, 40]
DstBlock "Gain4"
DstPort 1
}
}
Line {
SrcBlock "Add1"
SrcPort 1
DstBlock "Unit Delay1"
DstPort 1
}
Line {
SrcBlock "Unit Delay1"
SrcPort 1
Points [0, 0; 110, 0]
Branch {
Points [0, 60]
Branch {
DstBlock "Gain1"
DstPort 1
}
Branch {
Points [0, 50]
Branch {
DstBlock "Zero-Order\nHold2"
DstPort 1
}
Branch {
Points [0, 85]
DstBlock "Fcn1"
DstPort 1
}
}
}
Branch {
DstBlock "Zero-Order\nHold1"
DstPort 1
}
}
Line {
SrcBlock "Gain1"
SrcPort 1
Points [-75, 0; 0, -45]
DstBlock "Add1"
DstPort 3
}
Line {
SrcBlock "Gain4"
SrcPort 1
Points [-155, 0; 0, 25]
DstBlock "Add1"
DstPort 1
}
Line {
SrcBlock "Zero-Order\nHold"
SrcPort 1
DstBlock "Scope"
DstPort 1
}
Line {
SrcBlock "Zero-Order\nHold1"
SrcPort 1
DstBlock "Scope1"
DstPort 1
}
Line {
SrcBlock "Add2"
SrcPort 1
DstBlock "Gain3"
DstPort 1
}
Line {
SrcBlock "Gain3"
SrcPort 1
Points [-30, 0; 0, -120]
DstBlock "Add1"
DstPort 2
}
Line {
SrcBlock "Sine Wave1"
SrcPort 1
Points [-15, 0; 0, -15]
DstBlock "Add2"
DstPort 2
}
Line {
SrcBlock "Zero-Order\nHold2"
SrcPort 1
DstBlock "Add2"
DstPort 1
}
Line {
SrcBlock "Fcn1"
SrcPort 1
Points [-50, 0; 0, -260]
DstBlock "Add"
DstPort 3
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [-135, 0; 0, 140]
DstBlock "Add"
DstPort 2
}
Line {
SrcBlock "Add3"
SrcPort 1
DstBlock "Gain2"
DstPort 1
}
Line {
SrcBlock "Gain2"
SrcPort 1
Points [-5, 0; 0, 70]
DstBlock "Add"
DstPort 1
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
Points [-40, 0; 0, -15]
DstBlock "Add3"
DstPort 2
}
Line {
SrcBlock "Zero-Order\nHold3"
SrcPort 1
DstBlock "Add3"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -