?? work007.mdl
字號:
DstPort 1
}
Line {
SrcBlock "Demux1"
SrcPort 3
Points [15, 0; 0, 70]
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Demux2"
SrcPort 3
Points [50, 0]
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Demux2"
SrcPort 2
Points [45, 0; 0, -50]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Demux2"
SrcPort 1
Points [35, 0; 0, -85]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Iabc*"
SrcPort 1
DstBlock "Demux2"
DstPort 1
}
Line {
SrcBlock "Relay"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "Mux"
DstPort 1
}
Branch {
DstBlock "Data Type \nConversion"
DstPort 1
}
}
Line {
SrcBlock "Relay1"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Mux"
DstPort 3
}
Branch {
DstBlock "Data Type \nConversion4"
DstPort 1
}
}
Line {
SrcBlock "Relay2"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Mux"
DstPort 5
}
Branch {
Points [0, 25]
DstBlock "Data Type \nConversion5"
DstPort 1
}
}
Line {
SrcBlock "Data Type \nConversion"
SrcPort 1
DstBlock "Logical\nOperator"
DstPort 1
}
Line {
SrcBlock "Logical\nOperator"
SrcPort 1
DstBlock "Data Type \nConversion1"
DstPort 1
}
Line {
SrcBlock "Data Type \nConversion1"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Logical\nOperator1"
SrcPort 1
DstBlock "Data Type \nConversion2"
DstPort 1
}
Line {
SrcBlock "Data Type \nConversion2"
SrcPort 1
DstBlock "Mux"
DstPort 4
}
Line {
SrcBlock "Logical\nOperator2"
SrcPort 1
DstBlock "Data Type \nConversion3"
DstPort 1
}
Line {
SrcBlock "Data Type \nConversion3"
SrcPort 1
DstBlock "Mux"
DstPort 6
}
Line {
SrcBlock "Data Type \nConversion4"
SrcPort 1
DstBlock "Logical\nOperator1"
DstPort 1
}
Line {
SrcBlock "Data Type \nConversion5"
SrcPort 1
DstBlock "Logical\nOperator2"
DstPort 1
}
}
}
Block {
BlockType Reference
Name "Demux"
Ports [1, 3]
Position [715, 99, 755, 211]
NamePlacement "alternate"
SourceBlock "powerlib2/Machines/Machines\nMeasurement\nDemux"
SourceType "Machine measurements"
machType "Asynchronous"
ssm1 on
ssm2 on
ssm3 on
ssm4 on
ssm5 on
ssm6 on
sm1 on
sm2 on
sm3 on
sm4 on
sm5 on
sm6 on
sm7 on
sm8 on
sm9 on
sm10 on
sm11 on
asm1 off
asm2 off
asm3 off
asm4 off
asm5 on
asm6 off
asm7 off
asm8 off
asm9 on
asm10 on
asm11 off
pmsm1 on
pmsm2 on
pmsm3 on
pmsm4 on
pmsm5 on
pmsm6 on
lastType "3"
}
Block {
BlockType SubSystem
Name "Flux-observor"
Ports [3, 2]
Position [185, 210, 285, 260]
Orientation "left"
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskType "magcureent observor"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Flux-observor"
Location [80, 217, 578, 517]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "ialpha"
Position [45, 33, 75, 47]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "wr"
Position [15, 133, 45, 147]
Port "2"
LatchInput off
Interpolate on
}
Block {
BlockType Inport
Name "ibeta"
Position [45, 243, 75, 257]
Port "3"
LatchInput off
Interpolate on
}
Block {
BlockType Reference
Name "Cartesian to\nPolar"
Ports [2, 2]
Position [385, 114, 415, 181]
SourceBlock "simulink_extras/Transformations/Cartesian t"
"o\nPolar"
SourceType "Cart2Polar"
}
Block {
BlockType SubSystem
Name "Discrete Tranfer Function"
Ports [1, 1]
Position [245, 13, 315, 67]
NamePlacement "alternate"
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskType "First Order Low Pass Filter (Discrete)"
MaskDescription "H(s)=1/(1+T.s)"
MaskPromptString "Time constant T (s) :|Time step (s)"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskToolTipString "on,on"
MaskVariables "T=@1;Ts=@2;"
MaskInitialization " X=[0 1 2 3 4];\n Y=[-2 -2 -3 -4 -4];\n str"
"=sprintf('\\nH=1/(1+T.s)\\n T= %g s\\n\\n\\n',T);\nnum=1/T;\nden=[1 -exp(-Ts/"
"T)];\n\n% discrete transfer function\n% descending powers of z\nnumd= Ts/T;\n"
"dend=[ 1 (Ts-T)/T];\n\n"
MaskDisplay "plot(X,Y);\ndisp(str);\n"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "0.1557|1e-5"
MaskVariableAliases ","
System {
Name "Discrete Tranfer Function"
Location [234, 299, 663, 469]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In"
Position [25, 38, 55, 52]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType DiscreteTransferFcn
Name "Discrete\nTransfer Fcn"
Position [75, 26, 185, 64]
Numerator "numd"
Denominator "dend"
SampleTime "Ts"
Realization "auto"
RTWStateStorageClass "Auto"
}
Block {
BlockType Outport
Name "Out"
Position [335, 38, 365, 52]
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
}
Line {
SrcBlock "Discrete\nTransfer Fcn"
SrcPort 1
DstBlock "Out"
DstPort 1
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "Discrete\nTransfer Fcn"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Discrete Tranfer Function1"
Ports [1, 1]
Position [245, 218, 315, 272]
NamePlacement "alternate"
ShowPortLabels on
TreatAsAtomicUnit off
RTWSystemCode "Auto"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
MaskType "First Order Low Pass Filter (Discrete)"
MaskDescription "H(s)=1/(1+T.s)"
MaskPromptString "Time constant T (s) :|Time step (s)"
MaskStyleString "edit,edit"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskToolTipString "on,on"
MaskVariables "T=@1;Ts=@2;"
MaskInitialization " X=[0 1 2 3 4];\n Y=[-2 -2 -3 -4 -4];\n str"
"=sprintf('\\nH=1/(1+T.s)\\n T= %g s\\n\\n\\n',T);\nnum=1/T;\nden=[1 -exp(-Ts/"
"T)];\n\n% discrete transfer function\n% descending powers of z\nnumd= Ts/T;\n"
"dend=[ 1 (Ts-T)/T];\n\n"
MaskDisplay "plot(X,Y);\ndisp(str);\n"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "0.1557|1e-5"
MaskVariableAliases ","
System {
Name "Discrete Tranfer Function1"
Location [2, 70, 798, 579]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In"
Position [25, 38, 55, 52]
Port "1"
LatchInput off
Interpolate on
}
Block {
BlockType DiscreteTransferFcn
Name "Discrete\nTransfer Fcn"
Position [75, 26, 185, 64]
Numerator "numd"
Denominator "dend"
SampleTime "Ts"
Realization "auto"
RTWStateStorageClass "Auto"
}
Block {
BlockType Outport
Name "Out"
Position [335, 38, 365, 52]
Port "1"
OutputWhenDisabled "held"
InitialOutput "0"
}
Line {
SrcBlock "In"
SrcPort 1
DstBlock "Discrete\nTransfer Fcn"
DstPort 1
}
Line {
SrcBlock "Discrete\nTransfer Fcn"
SrcPort 1
DstBlock "Out"
DstPort 1
}
}
}
Block {
BlockType Gain
Name "Lm"
Position [120, 23, 170, 57]
Gain "34.7e-3"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "Lm1"
Position [115, 235, 160, 265]
Gain "34.7e-3"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [152, 85, 203, 120]
Orientation "up"
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [150, 155, 205, 190]
Orientation "down"
Inputs "2"
Multiplication "Element-wise(.*)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [195, 30, 215, 50]
ShowName off
IconShape "rectangular"
Inputs "|+-"
SaturateOnIntegerOverflow on
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [200, 235, 220, 255]
ShowName off
IconShape "rectangular"
Inputs "|++"
SaturateOnIntegerOverflow on
}
Block {
BlockType Gain
Name "T2"
Position [95, 124, 140, 156]
Gain "0.1557"
Multiplication "Element-wise(K.*u)"
SaturateOnIntegerOverflow on
}
Block {
BlockType Outport
Name "teta"
Position [455, 168, 485, 182]
Port "1"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Outport
Name "phir"
Position [450, 108, 480, 122]
Port "2"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Line {
SrcBlock "ialpha"
SrcPort 1
DstBlock "Lm"
DstPort 1
}
Line {
SrcBlock "ibeta"
SrcPort 1
DstBlock "Lm1"
DstPort 1
}
Line {
SrcBlock "Lm1"
SrcPort 1
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Lm"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
Points [5, 0]
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "wr"
SrcPort 1
DstBlock "T2"
DstPort 1
}
Line {
SrcBlock "T2"
SrcPort 1
Points [20, 0]
Branch {
DstBlock "Product"
DstPort 1
}
Branch {
DstBlock "Product1"
DstPort 1
}
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Discrete Tranfer Function1"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Discrete Tranfer Function"
DstPort 1
}
Line {
SrcBlock "Discrete Tranfer Function"
SrcPort 1
Points [15, 0]
Branch {
Points [0, 100]
DstBlock "Product1"
DstPort 2
}
Branch {
Points [35, 0]
DstBlock "Cartesian to\nPolar"
DstPort 1
}
}
Line {
SrcBlock "Discrete Tranfer Function1"
SrcPort 1
Points [20, 0]
Branch {
Points [0, -110]
DstBlock "Product"
DstPort 2
}
Branch {
Points [15, 0; 0, -80]
DstBlock "Cartesian to\nPolar"
DstPort 2
}
}
Line {
SrcBlock "Cartesian to\nPolar"
SrcPort 1
Points [15, 0]
DstBlock "phir"
DstPort 1
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -