📄 dc_motor_v3001_s_1.mdl
字号:
DstBlock "Er"
DstPort 1
}
}
}
Block {
BlockType Gain
Name "Gain2"
Position [520, 310, 550, 340]
Gain "1/14550"
}
Block {
BlockType Gain
Name "Gain4"
Position [850, 152, 890, 188]
Gain "3.6"
Port {
PortNumber 1
Name "v"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1]
Position [700, 110, 730, 140]
Port {
PortNumber 1
Name "ia"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Integrator
Name "Integrator1"
Ports [1, 1]
Position [610, 310, 640, 340]
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [570, 104, 605, 146]
Inputs "/*"
InputSameDT off
}
Block {
BlockType Saturate
Name "Saturation"
Position [645, 110, 675, 140]
UpperLimit "600"
LowerLimit "-600"
}
Block {
BlockType Scope
Name "Scope1"
Ports [6]
Position [1070, 130, 1100, 285]
Location [1, 49, 801, 571]
Open off
NumInputPorts "6"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
axes5 "%<SignalLabel>"
axes6 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
axes3 ""
axes4 ""
axes5 ""
axes6 ""
}
YMin "732.5~75.07~466.2~355.625~29900~-1"
YMax "742.5~75.15~466.6~355.85~30200~1"
DataFormat "StructureWithTime"
LimitDataPoints off
MaxDataPoints "30000"
}
Block {
BlockType Scope
Name "Scope2"
Ports [1]
Position [795, 556, 840, 604]
Location [5, 65, 1029, 731]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "1"
YMin "0"
YMax "600"
SaveName "ScopeData5"
DataFormat "StructureWithTime"
LimitDataPoints off
MaxDataPoints "30000"
}
Block {
BlockType Scope
Name "Scope3"
Ports [1]
Position [450, 691, 495, 739]
Location [5, 72, 1029, 738]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "1"
YMin "0"
YMax "0.014"
SaveName "ScopeData6"
DataFormat "StructureWithTime"
LimitDataPoints off
MaxDataPoints "30000"
}
Block {
BlockType Scope
Name "Scope4"
Ports [1]
Position [840, 646, 885, 694]
Location [5, 72, 1029, 738]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "1"
YMin "-34.0175"
YMax "-33.9625"
SaveName "ScopeData7"
DataFormat "StructureWithTime"
LimitDataPoints off
MaxDataPoints "30000"
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [3, 1]
Position [345, 106, 410, 174]
TreatAsAtomicUnit off
System {
Name "Subsystem"
Location [157, 206, 692, 589]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "If "
Position [25, 48, 55, 62]
}
Block {
BlockType Inport
Name "v"
Position [25, 123, 55, 137]
Port "2"
}
Block {
BlockType Inport
Name "u"
Position [25, 298, 55, 312]
Port "3"
}
Block {
BlockType Lookup
Name "CE( If)1"
Position [90, 29, 140, 81]
InputValues "[0,100,200,300,400]"
OutputValues "[0,0.1393,0.1433,0.1471,0.1510]"
}
Block {
BlockType Constant
Name "Constant1"
Position [25, 170, 55, 200]
Value "30*3.393/3.14/0.74"
}
Block {
BlockType Constant
Name "Constant2"
Position [35, 250, 65, 280]
Value "-1"
}
Block {
BlockType Constant
Name "Constant3"
Position [30, 330, 60, 360]
}
Block {
BlockType Gain
Name "Gain"
Position [135, 210, 165, 240]
Gain "0.152*30*3.393/3.14/0.74"
}
Block {
BlockType Product
Name "Product1"
Ports [3, 1]
Position [220, 48, 265, 82]
Inputs "3"
InputSameDT off
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [400, 55, 445, 90]
InputSameDT off
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [350, 55, 370, 75]
ShowName off
IconShape "round"
Inputs "|++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Switch
Name "Switch"
Position [140, 290, 170, 320]
Threshold "380"
InputSameDT off
}
Block {
BlockType Outport
Name "e"
Position [480, 58, 510, 72]
}
Line {
SrcBlock "If "
SrcPort 1
DstBlock "CE( If)1"
DstPort 1
}
Line {
SrcBlock "CE( If)1"
SrcPort 1
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "v"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
Points [0, 125; 25, 0; 0, -30]
DstBlock "Gain"
DstPort 1
}
Branch {
Points [95, 0; 0, -60; 35, 0]
DstBlock "Product1"
DstPort 2
}
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [145, 0]
DstBlock "Product1"
DstPort 3
}
Line {
SrcBlock "Product1"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [55, 0; 0, -135]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "u"
SrcPort 1
DstBlock "Switch"
DstPort 2
}
Line {
SrcBlock "Constant2"
SrcPort 1
Points [25, 0; 0, 30]
DstBlock "Switch"
DstPort 1
}
Line {
SrcBlock "Constant3"
SrcPort 1
Points [35, 0; 0, -30]
DstBlock "Switch"
DstPort 3
}
Line {
SrcBlock "Switch"
SrcPort 1
Points [0, -60; 180, 0; 0, -110; 30, 0]
DstBlock "Product2"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Product2"
DstPort 1
}
Line {
SrcBlock "Product2"
SrcPort 1
Points [5, 0; 0, -10]
DstBlock "e"
DstPort 1
}
}
}
Block {
BlockType Sum
Name "Sum"
Ports [3, 1]
Position [505, 117, 525, 163]
ShowName off
Inputs "|++-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
Port {
PortNumber 1
Name "voltage"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Switch
Name "Switch"
Position [620, 35, 650, 65]
Criteria "u2 > Threshold"
Threshold "0.01"
InputSameDT off
}
Block {
BlockType Switch
Name "Switch1"
Position [340, 405, 370, 435]
Criteria "u2 > Threshold"
Threshold "0.01"
InputSameDT off
Port {
PortNumber 1
Name "if"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [1155, 380, 1215, 410]
VariableName "s_ia"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Structure"
}
Block {
BlockType ToWorkspace
Name "To Workspace1"
Position [1155, 440, 1215, 470]
VariableName "s_if"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Structure"
}
Block {
BlockType ToWorkspace
Name "To Workspace2"
Position [1085, 485, 1145, 515]
VariableName "s_T"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Structure"
}
Block {
BlockType ToWorkspace
Name "To Workspace3"
Position [1165, 555, 1225, 585]
VariableName "simout3"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Structure"
}
Block {
BlockType ToWorkspace
Name "To Workspace4"
Position [1180, 630, 1240, 660]
VariableName "s_t"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Structure"
}
Block {
BlockType ToWorkspace
Name "To Workspace5"
Position [1165, 320, 1225, 350]
VariableName "s_v"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Structure"
}
Block {
BlockType ToWorkspace
Name "To Workspace6"
Position [875, 70, 935, 100]
VariableName "s_pwm"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Structure"
}
Block {
BlockType Reference
Name "XY Graph"
Ports [2]
Position [1120, 90, 1150, 125]
SourceBlock "simulink/Sinks/XY Graph"
SourceType "XY scope."
xmin "-1"
xmax "100"
ymin "-1"
ymax "500000"
st "-1"
}
Block {
BlockType SubSystem
Name "force"
Ports [3, 2]
Position [180, 14, 255, 76]
TreatAsAtomicUnit on
Port {
PortNumber 1
Name "Force"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
System {
Name "force"
Location [-26, 91, 746, 593]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "ia"
Position [120, 153, 150, 167]
}
Block {
BlockType Inport
Name "v"
Position [105, 433, 135, 447]
Port "2"
}
Block {
BlockType Inport
Name "If"
Position [130, 258, 160, 272]
Port "3"
}
Block {
BlockType Lookup
Name "CM( If )"
Position [200, 239, 250, 291]
InputValues "[0,100,200,300,400]"
OutputValues "[0,43,170,383,653]"
}
Block {
BlockType Constant
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -