📄 vecto_control.mdl
字号:
Ports [0, 0, 0, 0, 0, 1, 1]
Position [600, 250, 620, 285]
Orientation "up"
AttributesFormatString "\\n"
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Electrical\nSources/DC Voltage Source"
SourceType "DC Voltage Source"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
Amplitude "780"
Measurements "None"
}
Block {
BlockType Reference
Name "Vab"
Tag "PoWeRsYsTeMmEaSuReMeNt"
Ports [0, 1, 0, 0, 0, 2]
Position [425, 378, 450, 402]
NamePlacement "alternate"
AttributesFormatString "\\n"
DialogController "POWERSYS.PowerSysDialog"
SourceBlock "powerlib/Measurements/Voltage Measurement"
SourceType "Voltage Measurement"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
PhasorSimulation off
OutputType "Magnitude"
PSBequivalent "0"
Port {
PortNumber 1
Name "Vab (V)"
PropagatedSignals "signal"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType SubSystem
Name "Vector Control"
Ports [1, 1]
Position [405, 102, 495, 158]
Orientation "left"
ForegroundColor "blue"
BackgroundColor "cyan"
NamePlacement "alternate"
FontWeight "bold"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "Vector Control"
Location [290, 143, 1198, 765]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "speed"
Position [25, 468, 55, 482]
IconDisplay "Port number"
}
Block {
BlockType SubSystem
Name "ABC to dq\nconversion"
Ports [2, 2]
Position [480, 104, 535, 151]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "ABC to dq\nconversion"
Location [568, 204, 946, 382]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "Iabc"
Position [15, 83, 45, 97]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Teta"
Position [15, 23, 45, 37]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Fcn
Name "Fcn"
Position [75, 49, 115, 71]
ShowName off
Expr "sin(u)"
}
Block {
BlockType Fcn
Name "Fcn1"
Position [75, 19, 115, 41]
ShowName off
Expr "cos(u)"
}
Block {
BlockType Gain
Name "Gain"
Position [255, 25, 285, 55]
ShowName off
Gain "sqrt(2/3)"
}
Block {
BlockType Gain
Name "Gain1"
Position [255, 60, 285, 90]
ShowName off
Gain "sqrt(2/3)"
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [145, 15, 150, 105]
ShowName off
Inputs "[1 1 3]"
}
Block {
BlockType Fcn
Name "id"
Position [185, 28, 225, 52]
NamePlacement "alternate"
Expr "u[1]*u[3]+(1.7320508*u[2]-u[1])*u[4]*0."
"5+(-u[1]-1.7320508*u[2])*u[5]*0.5"
}
Block {
BlockType Fcn
Name "iq"
Position [185, 63, 225, 87]
Expr "-u[2]*u[3]+(u[2]+1.7320508*u[1])*u[4]*0"
".5+(u[2]-1.7320508*u[1])*u[5]*0.5"
}
Block {
BlockType Outport
Name "Id"
Position [315, 33, 345, 47]
IconDisplay "Port number"
BusOutputAsStruct off
InitialOutput "0"
}
Block {
BlockType Outport
Name "Iq"
Position [315, 68, 345, 82]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
InitialOutput "0"
}
Line {
SrcBlock "Fcn"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Fcn1"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Teta"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "Fcn1"
DstPort 1
}
Branch {
Points [0, 30]
DstBlock "Fcn"
DstPort 1
}
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [5, 0]
Branch {
Points [0, 15]
DstBlock "iq"
DstPort 1
}
Branch {
Points [0, -20]
DstBlock "id"
DstPort 1
}
}
Line {
SrcBlock "Iabc"
SrcPort 1
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "iq"
SrcPort 1
DstBlock "Gain1"
DstPort 1
}
Line {
SrcBlock "id"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Id"
DstPort 1
}
Line {
SrcBlock "Gain1"
SrcPort 1
DstBlock "Iq"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "Flux\nCalculation"
Ports [1, 1]
Position [480, 60, 535, 90]
Orientation "left"
NamePlacement "alternate"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskType "Flux Calcultation"
MaskInitialization "NF=0.44572610323020e-6;\nDF=[1 -0.999987154"
"86734];"
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Flux\nCalculation"
Location [359, 152, 1246, 697]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "Id"
Position [320, 38, 350, 52]
Orientation "left"
IconDisplay "Port number"
}
Block {
BlockType SubSystem
Name "Discrete Tranfer Function"
Ports [1, 1]
Position [95, 20, 165, 70]
Orientation "left"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
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"
MaskVarAliasString ","
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;\nden=[T 1];\n\n"
"% discrete transfer function\n% descending powers of z\nnumd= Ts/T;\ndend=[ 1"
" (Ts-T)/T];\n\n"
MaskDisplay "plot(X,Y);\ndisp(str);\n"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "0.1557|Ts"
MaskTabNameString ","
System {
Name "Discrete Tranfer Function"
Location [565, 312, 1119, 612]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins "[0.500000, 0.500000, 0.500000, 0.5000"
"00]"
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "In"
Position [25, 38, 55, 52]
IconDisplay "Port number"
}
Block {
BlockType DiscreteTransferFcn
Name "Discrete\nTransfer Fcn"
Position [75, 27, 135, 63]
Numerator "numd"
Denominator "dend"
SampleTime "Ts"
}
Block {
BlockType Outport
Name "Out"
Position [165, 38, 195, 52]
IconDisplay "Port number"
BusOutputAsStruct off
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 Gain
Name "Lm"
Position [220, 27, 280, 63]
Orientation "left"
Gain "34.7e-3"
}
Block {
BlockType Outport
Name "Phir"
Position [25, 38, 55, 52]
Orientation "left"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Discrete Tranfer Function"
SrcPort 1
DstBlock "Phir"
DstPort 1
}
Line {
SrcBlock "Id"
SrcPort 1
DstBlock "Lm"
DstPort 1
}
Line {
SrcBlock "Lm"
SrcPort 1
DstBlock "Discrete Tranfer Function"
DstPort 1
}
Annotation {
Name "Phir = Lm *Id / (1 +Tr .s) "
Position [95, 118]
}
Annotation {
Name "Lm = 34.7 mH"
Position [74, 139]
}
Annotation {
Name "Lr = Ll'r +Lm = 0.8 +34.7= 35.5 mH"
Position [124, 179]
}
Annotation {
Name "Tr = Lr / Rr = 0.1557 s"
Position [94, 159]
}
Annotation {
Name "Rr = 0.228 ohms"
Position [284, 179]
}
}
}
Block {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -