📄 imsq6full.mdl
字号:
MaskPromptString "Amplitude|Frequency [rad/s]|Phase [rad]"
MaskStyleString "edit,edit,edit"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "on,on,on"
MaskVisibilityString "on,on,on"
MaskToolTipString "on,on,on"
MaskVarAliasString ",,"
MaskVariables "A=@1;w=@2;p=@3;"
MaskDisplay "disp('6-PULSE\\nSQUAREWAVE\\nSIGNAL')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "1.0|2*pi*50|2*pi/3+1e-3"
Port {
PortNumber 1
Name "vC"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
System {
Name "6-pulse2"
Location [373, 135, 733, 304]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Constant
Name "Amplitude"
Position [100, 30, 130, 60]
NamePlacement "alternate"
Value "A"
}
Block {
BlockType Clock
Name "Clock"
Position [25, 75, 45, 95]
Decimation "10"
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [160, 46, 165, 124]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Constant
Name "phase"
Position [100, 115, 130, 145]
Value "p"
}
Block {
BlockType Fcn
Name "sq"
Position [220, 70, 280, 100]
Expr "u(1)*(sgn(cos(u(2)+u(3)))/2+sgn(cos(-3*(u(2"
")+u(3))))/6)"
}
Block {
BlockType Gain
Name "w"
Position [75, 70, 105, 100]
Gain "w"
}
Block {
BlockType Outport
Name "Out1"
Position [305, 78, 335, 92]
ShowName off
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "sq"
DstPort 1
}
Line {
SrcBlock "sq"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "Clock"
SrcPort 1
DstBlock "w"
DstPort 1
}
Line {
SrcBlock "w"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "phase"
SrcPort 1
Points [10, 0]
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "Amplitude"
SrcPort 1
Points [10, 0]
DstBlock "Mux"
DstPort 1
}
}
}
Block {
BlockType Scope
Name "ABC\n voltages"
Ports [1]
Position [190, 69, 220, 101]
ForegroundColor "green"
NamePlacement "alternate"
Location [36, 78, 546, 364]
Open on
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
}
TimeRange "0.02"
YMin "-1"
YMax "1"
DataFormat "StructureWithTime"
}
Block {
BlockType SubSystem
Name "Fourier"
Ports []
Position [146, 306, 219, 349]
BackgroundColor "yellow"
DropShadow on
ShowName off
OpenFcn "fourierdec"
FontName "Arial"
FontSize 12
FontWeight "bold"
ShowPortLabels off
TreatAsAtomicUnit off
MaskHelp "Fourier series decomposition"
MaskDisplay "disp('FOURIER')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Fourier"
Location [148, 571, 512, 671]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Annotation {
Name "To obtain the Fourier decomposition of a pe"
"riodic signal:\na) run a simulation for one period duration\nb) Specify the f"
"undamental frequency\n c) Specify the number of harmonics\n"
Position [187, 48]
FontSize 12
}
}
}
Block {
BlockType From
Name "From"
Position [325, 256, 365, 284]
CloseFcn "tagdialog Close"
GotoTag "A"
}
Block {
BlockType Gain
Name "Gain"
Position [200, 175, 230, 205]
ForegroundColor "blue"
Gain "5*pi/(12*sqrt(3))"
Port {
PortNumber 1
Name "b"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Gain
Name "Gain1"
Position [200, 130, 230, 160]
ForegroundColor "blue"
Gain "5*pi/12"
Port {
PortNumber 1
Name "vas"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Goto
Name "Goto"
Position [825, 70, 865, 100]
GotoTag "A"
TagVisibility "local"
}
Block {
BlockType Ground
Name "Ground"
Position [365, 205, 385, 225]
ShowName off
Port {
PortNumber 1
Name "wk"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType SubSystem
Name "IM"
Ports [3, 2]
Position [410, 134, 580, 296]
ForegroundColor "blue"
ShowName off
FontName "Arial"
FontSize 14
FontWeight "bold"
TreatAsAtomicUnit off
MaskPromptString "Stator resistance [pu]|Rotor resistance [pu]|St"
"ator leakage inductance [pu]|Rotor leakage inductance [pu]|Magnetizing induct"
"ance [pu]|Base frequency [rad/s]"
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;Lsl=@3;Lrl=@4;Lm=@5;wo=@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\\nMOTOR')"
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "0.01|0.02|0.10|0.10|4.5|2*pi*60"
Port {
PortNumber 1
Name "Te"
PropagatedSignals "Te"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
Port {
PortNumber 2
Name "is"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
System {
Name "IM"
Location [497, 335, 1009, 688]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "78"
Block {
BlockType Inport
Name "vs"
Position [15, 123, 45, 137]
}
Block {
BlockType Inport
Name "wk"
Position [15, 68, 45, 82]
Port "2"
}
Block {
BlockType Inport
Name "wm"
Position [25, 333, 55, 347]
Port "3"
}
Block {
BlockType SubSystem
Name " ckt"
Ports []
Position [545, 266, 594, 306]
BackgroundColor "lightBlue"
DropShadow on
ShowName off
OpenFcn "helpview(which('imeqs.html'));"
FontWeight "bold"
TreatAsAtomicUnit off
MaskDisplay "disp('HELP')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name " ckt"
Location [116, 520, 441, 651]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
}
}
Block {
BlockType Reference
Name "Dot Product"
Ports [2, 1]
Position [545, 28, 585, 72]
ShowName off
SourceBlock "simulink/Math\nOperations/Dot Product"
SourceType "Dot Product"
Port {
PortNumber 1
Name "Te"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
}
Block {
BlockType Gain
Name "Gain"
Position [240, 210, 270, 240]
Orientation "left"
ShowName off
Gain "Rs"
}
Block {
BlockType Gain
Name "Gain1"
Position [240, 390, 270, 420]
Orientation "left"
ShowName off
Gain "Rr"
}
Block {
BlockType Gain
Name "Gain4"
Position [220, 115, 245, 145]
ShowName off
Gain "2*pi*60"
}
Block {
BlockType Gain
Name "Gain5"
Position [220, 325, 245, 355]
ShowName off
Gain "2*pi*60"
}
Block {
BlockType Integrator
Name "Integrator"
Ports [1, 1]
Position [275, 115, 305, 145]
ShowName off
InitialCondition "[0 0]"
}
Block {
BlockType Integrator
Name "Integrator1"
Ports [1, 1]
Position [275, 325, 305, 355]
ShowName off
InitialCondition "[0 0]"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [130, 52, 160, 83]
ShowName off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [130, 267, 160, 298]
ShowName off
}
Block {
BlockType Sum
Name "Sum"
Ports [3, 1]
Position [175, 120, 195, 140]
ShowName off
IconShape "round"
Inputs "-+-"
}
Block {
BlockType Sum
Name "Sum1"
Ports [3, 1]
Position [175, 330, 195, 350]
ShowName off
IconShape "round"
Inputs "-+-"
}
Block {
BlockType Sum
Name "Sum4"
Ports [2, 1]
Position [80, 280, 100, 300]
ShowName off
IconShape "round"
Inputs "|+-"
}
Block {
BlockType SubSystem
Name "flux-current1"
Ports [2, 2]
Position [355, 107, 470, 203]
ShowName off
FontWeight "bold"
TreatAsAtomicUnit off
MaskDisplay "disp('FLUX-CURRENT\\nRELATIONS')"
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
Port {
PortNumber 2
Name "ir"
TestPoint off
LinearAnalysisOutput off
LinearAnalysisInput off
RTWStorageClass "Auto"
DataLogging off
DataLoggingNameMode "SignalName"
DataLoggingDecimateData off
DataLoggingDecimation "2"
DataLoggingLimitDataPoints off
DataLoggingMaxPoints "5000"
}
System {
Name "flux-current1"
Location [704, 391, 995, 682]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "fs"
Position [15, 38, 45, 52]
}
Block {
BlockType Inport
Name "fr"
Position [15, 103, 45, 117]
Port "2"
}
Block {
BlockType Gain
Name "Gm"
Position [120, 95, 150, 125]
NamePlacement "alternate"
Gain "Lm /(Lsl*Lrl+Lsl*Lm+Lrl*Lm)"
}
Block {
BlockType Gain
Name "Gm1"
Position [120, 160, 150, 190]
NamePlacement "alternate"
Gain "Lm /(Lsl*Lrl+Lsl*Lm+Lrl*Lm)"
}
Block {
BlockType Gain
Name "Gr"
Position [120, 225, 150, 255]
NamePlacement "alternate"
Gain "(Lsl+Lm )/(Lsl*Lrl+Lsl*Lm+Lrl*Lm)"
}
Block {
BlockType Gain
Name "Gs"
Position [120, 30, 150, 60]
NamePlacement "alternate"
Gain "(Lrl+Lm) /(Lsl*Lrl+Lsl*Lm+Lrl*Lm)"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [175, 200, 195, 220]
ShowName off
IconShape "round"
Inputs "-+"
}
Block {
BlockType Sum
Name "Sum4"
Ports [2, 1]
Position [175, 70, 195, 90]
ShowName off
IconShape "round"
Inputs "+-"
}
Block {
BlockType Outport
Name "is"
Position [235, 73, 265, 87]
}
Block {
BlockType Outport
Name "ir"
Position [235, 203, 265, 217]
Port "2"
}
Line {
SrcBlock "fs"
SrcPort 1
Points [45, 0]
Branch {
DstBlock "Gs"
DstPort 1
}
Branch {
Points [0, 130]
DstBlock "Gm1"
DstPort 1
}
}
Line {
SrcBlock "Gs"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -