📄 threeservos.mdl
字号:
SrcBlock "Ground1"
SrcPort 1
Points [20, 0]
DstBlock "TrueTime Kernel"
DstPort 3
}
}
}
Block {
BlockType TransferFcn
Name "DC Servo 1"
Position [305, 134, 375, 166]
Numerator "[1000]"
Denominator "[1 1 0]"
AbsoluteTolerance "auto"
Realization "auto"
Port {
PortNumber 1
Name "y1"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType TransferFcn
Name "DC Servo 2"
Position [305, 189, 375, 221]
Numerator "[1000]"
Denominator "[1 1 0]"
AbsoluteTolerance "auto"
Realization "auto"
Port {
PortNumber 1
Name "y2"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType TransferFcn
Name "DC Servo 3"
Position [305, 244, 375, 276]
Numerator "[1000]"
Denominator "[1 1 0]"
AbsoluteTolerance "auto"
Realization "auto"
Port {
PortNumber 1
Name "y3"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [110, 35, 200, 65]
Format "short"
Decimation "1"
Floating off
SampleTime "-1"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [460, 133, 485, 157]
ShowName off
Inputs "2"
DisplayOption "none"
}
Block {
BlockType Mux
Name "Mux1"
Ports [2, 1]
Position [460, 188, 485, 212]
ShowName off
Inputs "2"
DisplayOption "none"
}
Block {
BlockType Mux
Name "Mux2"
Ports [2, 1]
Position [460, 243, 485, 267]
ShowName off
Inputs "2"
DisplayOption "none"
}
Block {
BlockType SignalGenerator
Name "Signal\nGenerator"
Position [30, 115, 60, 145]
WaveForm "square"
Amplitude "1"
Frequency "1"
Units "Hertz"
VectorParams1D on
Port {
PortNumber 1
Name "r"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
}
}
Block {
BlockType Scope
Name "r,y1"
Ports [1]
Position [515, 133, 535, 157]
Floating off
Location [22, 765, 346, 1004]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
Grid "on"
TimeRange "1"
YMin "-2"
YMax "2"
SaveToWorkspace on
SaveName "ry1"
DataFormat "StructureWithTime"
LimitDataPoints off
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Scope
Name "r,y2"
Ports [1]
Position [515, 188, 535, 212]
Floating off
Location [360, 766, 684, 1005]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
Grid "on"
TimeRange "1"
YMin "-2"
YMax "2"
SaveToWorkspace on
SaveName "ry2"
DataFormat "StructureWithTime"
LimitDataPoints off
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Scope
Name "r,y3"
Ports [1]
Position [515, 243, 535, 267]
Floating off
Location [696, 766, 1020, 1005]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
Grid "on"
TimeRange "1"
YMin "-2"
YMax "2"
SaveToWorkspace on
SaveName "ry3"
DataFormat "StructureWithTime"
LimitDataPoints off
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Scope
Name "u1"
Ports [1]
Position [265, 113, 285, 137]
Floating off
Location [22, 468, 346, 707]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
Grid "on"
TimeRange "1"
YMin "-2"
YMax "2"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitDataPoints off
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Scope
Name "u2"
Ports [1]
Position [265, 169, 285, 191]
Floating off
Location [359, 469, 683, 708]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
Grid "on"
TimeRange "1"
YMin "-2"
YMax "2"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitDataPoints off
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Scope
Name "u3"
Ports [1]
Position [265, 224, 285, 246]
Floating off
Location [695, 468, 1019, 707]
Open off
NumInputPorts "1"
TickLabels "OneTimeTick"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
Grid "on"
TimeRange "1"
YMin "-2"
YMax "2"
SaveToWorkspace off
SaveName "ScopeData"
DataFormat "StructureWithTime"
LimitDataPoints off
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Line {
SrcBlock "Clock"
SrcPort 1
DstBlock "Display"
DstPort 1
}
Line {
Name "u1"
FontSize 10
Labels [0, 1]
SrcBlock "Computer"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "DC Servo 1"
DstPort 1
}
Branch {
DstBlock "u1"
DstPort 1
}
}
Line {
Name "r"
FontSize 10
Labels [0, 1]
SrcBlock "Signal\nGenerator"
SrcPort 1
Points [30, 0]
Branch {
Points [0, 60]
Branch {
DstBlock "Computer"
DstPort 3
}
Branch {
Points [0, 60]
DstBlock "Computer"
DstPort 5
}
}
Branch {
DstBlock "Computer"
DstPort 1
}
Branch {
Points [0, -35; 340, 0; 0, 45]
Branch {
DstBlock "Mux"
DstPort 1
}
Branch {
Points [0, 55]
Branch {
DstBlock "Mux1"
DstPort 1
}
Branch {
Points [0, 55]
DstBlock "Mux2"
DstPort 1
}
}
}
}
Line {
Name "u2"
FontSize 10
Labels [0, 1]
SrcBlock "Computer"
SrcPort 2
Points [20, 0]
Branch {
DstBlock "DC Servo 2"
DstPort 1
}
Branch {
DstBlock "u2"
DstPort 1
}
}
Line {
Name "u3"
FontSize 10
Labels [0, 1]
SrcBlock "Computer"
SrcPort 3
Points [20, 0]
Branch {
DstBlock "DC Servo 3"
DstPort 1
}
Branch {
DstBlock "u3"
DstPort 1
}
}
Line {
Name "y1"
FontSize 10
SrcBlock "DC Servo 1"
SrcPort 1
Points [35, 0]
Branch {
Labels [-1, 1]
Points [0, 195; -305, 0; 0, -185]
DstBlock "Computer"
DstPort 2
}
Branch {
DstBlock "Mux"
DstPort 2
}
}
Line {
Name "y2"
FontSize 10
SrcBlock "DC Servo 2"
SrcPort 1
Points [25, 0]
Branch {
Labels [-1, 1]
Points [0, 130; -285, 0; 0, -115]
DstBlock "Computer"
DstPort 4
}
Branch {
DstBlock "Mux1"
DstPort 2
}
}
Line {
Name "y3"
FontSize 10
SrcBlock "DC Servo 3"
SrcPort 1
Points [15, 0]
Branch {
Labels [-1, 1]
Points [0, 65; -265, 0; 0, -45]
DstBlock "Computer"
DstPort 6
}
Branch {
DstBlock "Mux2"
DstPort 2
}
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "r,y1"
DstPort 1
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "r,y2"
DstPort 1
}
Line {
SrcBlock "Mux2"
SrcPort 1
DstBlock "r,y3"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -