📄 imhys1.mdl
字号:
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Annotation {
Name "This demo simulates the characteristics of "
"an induction motor \nunder current controlled excitation"
Position [161, 39]
FontName "Arial"
FontSize 11
}
}
}
Block {
BlockType Mux
Name "Mux1"
Ports [4, 1]
Position [285, 245, 290, 420]
ShowName off
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux6"
Ports [3, 1]
Position [660, 334, 665, 486]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Relay
Name "Relay"
Position [160, 250, 190, 280]
OnSwitchValue "0.1"
OffSwitchValue "-0.1"
OffOutputValue "-1"
}
Block {
BlockType Relay
Name "Relay1"
Position [160, 295, 190, 325]
OnSwitchValue "0.1"
OffSwitchValue "-0.1"
OffOutputValue "-1"
Port {
PortNumber 1
Name "vbs"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Step
Name "Step load"
Position [160, 382, 195, 418]
Time "0.0"
Before "0.0"
After "0.25"
SampleTime "0"
Port {
PortNumber 1
Name "Tl"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [1, 1]
Position [345, 284, 455, 386]
BackgroundColor "yellow"
DropShadow on
ShowName off
TreatAsAtomicUnit off
MaskPromptString "Stator resistance [pu]|Rotor Resistance [pu]|In"
"ductances Lsl,Lrl,Lm[pu]|Base frequency [rad/s]|Inertia Constant [s]|Initial "
"Conditions"
MaskStyleString "edit,edit,edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on,on,on"
MaskCallbackString "|||||"
MaskEnableString "on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on"
MaskVarAliasString ",,,,,"
MaskVariables "Rs=@1;Rr=@2;L_param=@3;wo=@4;Hi=@5;ic=@6;"
MaskDisplay "plot(-1.5,-1.5,1.5,1.5,cos(0:.01:7),sin(0:.01:7"
"),[-.5 -1 1 .5],[-.866 -1.2 -1.2 -.866] )\ndisp('INDUCTION\\nMACHINE')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "0.01|0.02|[0.1 0.1 4.5]|2*pi*50|0.3|[0.4517 -.0"
"019 0.1778 0.004 0.98]"
System {
Name "Subsystem"
Location [141, 175, 408, 349]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [25, 68, 55, 82]
}
Block {
BlockType "S-Function"
Name "indmotor"
Ports [1, 1]
Position [80, 25, 205, 125]
BackgroundColor "lightBlue"
DropShadow on
FontAngle "italic"
FunctionName "imKmod0"
Parameters "Rs,Rr,L_param,Hi,wo,ic"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType Outport
Name "Out1"
Position [230, 68, 260, 82]
}
Line {
SrcBlock "indmotor"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "indmotor"
DstPort 1
}
}
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [80, 255, 100, 275]
ShowName off
IconShape "round"
Inputs "|+-"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [110, 300, 130, 320]
ShowName off
IconShape "round"
Inputs "|+-"
}
Block {
BlockType Reference
Name "XY Graph1"
Ports [2]
Position [150, 19, 215, 121]
NamePlacement "alternate"
SourceBlock "simulink/Sinks/XY Graph"
SourceType "XY scope."
xmin "-1.5"
xmax "1.5"
ymin "-1.5"
ymax "1.5"
st "0"
}
Block {
BlockType Scope
Name "currents"
Ports [1]
Position [725, 373, 780, 447]
Location [6, 412, 364, 716]
Open off
NumInputPorts "1"
TickLabels "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "0.5"
YMin "-2"
YMax "2"
DataFormat "Array"
LimitDataPoints off
}
Block {
BlockType Scope
Name "mec"
Ports [2]
Position [720, 234, 780, 336]
Location [671, 94, 1008, 451]
Open on
NumInputPorts "2"
TickLabels "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
}
TimeRange "0.5"
YMin "0.96~-1"
YMax "1.02~1.5"
DataFormat "Array"
LimitDataPoints off
}
Block {
BlockType Scope
Name "v_sq"
Ports [2]
Position [715, 104, 775, 206]
Location [6, 71, 364, 428]
Open on
NumInputPorts "2"
TickLabels "on"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
}
TimeRange "0.5"
YMin "-1~-1"
YMax "1~1"
DataFormat "Array"
LimitDataPoints off
}
Line {
SrcBlock "Subsystem"
SrcPort 1
DstBlock "Demux1"
DstPort 1
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "Subsystem"
DstPort 1
}
Line {
SrcBlock "Mux6"
SrcPort 1
DstBlock "currents"
DstPort 1
}
Line {
Name "wm"
Labels [1, 0]
SrcBlock "Demux1"
SrcPort 1
DstBlock "mec"
DstPort 1
}
Line {
Name "Te"
Labels [1, 0]
SrcBlock "Demux1"
SrcPort 2
DstBlock "mec"
DstPort 2
}
Line {
Name "ias"
Labels [1, 0]
SrcBlock "Demux1"
SrcPort 3
Points [85, 0]
Branch {
DstBlock "Mux6"
DstPort 1
}
Branch {
Points [0, 150; -520, 0]
DstBlock "Sum"
DstPort 2
}
}
Line {
Name "wk"
Labels [1, 0]
SrcBlock "Ground1"
SrcPort 1
DstBlock "Mux1"
DstPort 3
}
Line {
Name "Tl"
Labels [0, 0]
SrcBlock "Step load"
SrcPort 1
DstBlock "Mux1"
DstPort 4
}
Line {
Name "vbs"
Labels [1, 0]
SrcBlock "Relay1"
SrcPort 1
Points [50, 0]
Branch {
DstBlock "Mux1"
DstPort 2
}
Branch {
Points [0, -130]
DstBlock "v_sq"
DstPort 2
}
}
Line {
Labels [1, 0]
SrcBlock "Relay"
SrcPort 1
Points [30, 0]
Branch {
DstBlock "Mux1"
DstPort 1
}
Branch {
Points [0, -135]
Branch {
DstBlock "v_sq"
DstPort 1
}
Branch {
Points [-100, 0; 0, -35]
DstBlock "XY Graph1"
DstPort 2
}
}
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Relay1"
DstPort 1
}
Line {
Name "B"
Labels [1, 0]
SrcBlock "B"
SrcPort 1
DstBlock "Sum1"
DstPort 1
}
Line {
Name "ibs"
SrcBlock "Demux1"
SrcPort 4
Points [35, 0]
Branch {
Labels [1, 0]
DstBlock "Mux6"
DstPort 2
}
Branch {
Points [0, 70; -440, 0]
DstBlock "Sum1"
DstPort 2
}
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "Relay"
DstPort 1
}
Branch {
Points [0, -220]
DstBlock "XY Graph1"
DstPort 1
}
}
Line {
Name "A"
Labels [0, 1]
SrcBlock "A"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Sum"
DstPort 1
}
Branch {
Points [0, 285; 580, 0]
DstBlock "Mux6"
DstPort 3
}
}
Annotation {
Name "hysteresis controller"
Position [168, 231]
FontSize 11
FontWeight "bold"
}
Annotation {
Name "vas"
Position [208, 259]
}
Annotation {
Name "dias"
Position [118, 255]
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -