📄 pmsm_motor_model_220708.mdl
字号:
Block {
BlockType Product
Inputs "2"
Multiplication "Element-wise(.*)"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Zero"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Scope
Floating off
ModelBased off
TickLabels "OneTimeTick"
ZoomMode "on"
Grid "on"
TimeRange "auto"
YMin "-5"
YMax "5"
SaveToWorkspace off
SaveName "ScopeData"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType Sin
SineType "Time based"
TimeSource "Use simulation time"
Amplitude "1"
Bias "0"
Frequency "1"
Phase "0"
Samples "10"
Offset "0"
SampleTime "-1"
VectorParams1D on
}
Block {
BlockType Step
Time "1"
Before "0"
After "1"
SampleTime "-1"
VectorParams1D on
ZeroCross on
}
Block {
BlockType SubSystem
ShowPortLabels on
Permissions "ReadWrite"
PermitHierarchicalResolution "All"
SystemSampleTime "-1"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType Sum
IconShape "rectangular"
Inputs "++"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Terminator
}
Block {
BlockType ToWorkspace
VariableName "simulink_output"
MaxDataPoints "1000"
Decimation "1"
SampleTime "0"
FixptAsFi off
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "PMSM_MOTOR_MODEL_220708"
Location [2, 94, 1014, 717]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Clock
Name "Clock"
Position [190, 31, 245, 79]
FontName "Arial"
FontSize 16
FontWeight "bold"
Decimation "10"
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [320, 31, 525, 79]
FontName "Arial"
FontSize 16
FontWeight "bold"
Decimation "1"
}
Block {
BlockType Gain
Name "Gain1"
Position [585, 533, 765, 587]
ShowName off
FontSize 16
FontWeight "bold"
Gain "radpsec2rpm"
}
Block {
BlockType SubSystem
Name "PMSM MOTOR MODEL"
Ports [3, 4]
Position [250, 211, 465, 464]
ForegroundColor "red"
BackgroundColor "cyan"
FontName "Arial"
FontSize 16
FontWeight "bold"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "PMSM MOTOR MODEL"
Location [2, 94, 993, 696]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "80"
Block {
BlockType Inport
Name "Va"
Position [35, 14, 95, 46]
FontName "Arial"
FontSize 16
FontWeight "bold"
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "Vb"
Position [35, 119, 95, 151]
FontName "Arial"
FontSize 16
FontWeight "bold"
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "Vc"
Position [35, 234, 95, 266]
FontName "Arial"
FontSize 16
FontWeight "bold"
Port "3"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType SubSystem
Name "AC Supply to\nStator"
Ports [3, 1]
Position [140, 94, 225, 176]
FontName "Arial"
FontSize 16
FontWeight "bold"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "AC Supply to\nStator"
Location [2, 94, 1014, 717]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "Va"
Position [95, 104, 155, 136]
FontName "Arial"
FontSize 16
FontWeight "bold"
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "Vb"
Position [285, 194, 345, 226]
FontName "Arial"
FontSize 16
FontWeight "bold"
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "Vc"
Position [425, 349, 485, 381]
FontName "Arial"
FontSize 16
FontWeight "bold"
Port "3"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Mux
Name "Mux1"
Ports [3, 1]
Position [785, 107, 790, 173]
ShowName off
FontSize 16
FontWeight "bold"
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [195, 240, 245, 290]
Orientation "down"
NamePlacement "alternate"
ShowName off
FontName "Arial"
FontSize 16
FontWeight "bold"
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [275, 405, 325, 455]
Orientation "down"
NamePlacement "alternate"
ShowName off
FontName "Arial"
FontSize 16
FontWeight "bold"
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType ToWorkspace
Name "To Workspace1"
Position [490, 33, 550, 77]
FontName "Arial"
FontSize 16
FontWeight "bold"
VariableName "Va"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace2"
Position [495, 188, 555, 232]
FontName "Arial"
FontSize 16
FontWeight "bold"
VariableName "Vb"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace3"
Position [710, 343, 770, 387]
FontName "Arial"
FontSize 16
FontWeight "bold"
VariableName "Vc"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace4"
Position [50, 288, 110, 332]
Orientation "left"
NamePlacement "alternate"
FontName "Arial"
FontSize 16
FontWeight "bold"
VariableName "Vab"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace5"
Position [90, 473, 150, 517]
Orientation "left"
NamePlacement "alternate"
FontName "Arial"
FontSize 16
FontWeight "bold"
VariableName "Vbc"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType Outport
Name "Vabc"
Position [880, 126, 935, 154]
FontSize 16
FontWeight "bold"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Va"
SrcPort 1
Points [60, 0]
Branch {
Points [170, 0; 45, 0]
Branch {
Points [0, -65]
DstBlock "To Workspace1"
DstPort 1
}
Branch {
DstBlock "Mux1"
DstPort 1
}
}
Branch {
DstBlock "Sum"
DstPort 1
}
}
Line {
SrcBlock "Vb"
SrcPort 1
Points [45, 0]
Branch {
Points [60, 0]
Branch {
DstBlock "To Workspace2"
DstPort 1
}
Branch {
Points [0, -70]
DstBlock "Mux1"
DstPort 2
}
}
Branch {
Points [0, 55; -95, 0]
Branch {
DstBlock "Sum"
DstPort 2
}
Branch {
DstBlock "Sum1"
DstPort 1
}
}
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "Vabc"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [0, 15]
DstBlock "To Workspace4"
DstPort 1
}
Line {
SrcBlock "Vc"
SrcPort 1
Points [60, 0]
Branch {
Points [75, 0]
Branch {
Points [0, -205]
DstBlock "Mux1"
DstPort 3
}
Branch {
DstBlock "To Workspace3"
DstPort 1
}
}
Branch {
Points [0, 65]
DstBlock "Sum1"
DstPort 2
}
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [0, 35]
DstBlock "To Workspace5"
DstPort 1
}
Annotation {
Name "AC SUPPLY APPLIED TO STATOR WINDINGS OF"
" THE PMSM"
Position [483, 583]
BackgroundColor "orange"
FontName "Arial"
FontSize 24
FontWeight "bold"
}
}
}
Block {
BlockType Clock
Name "Clock"
Position [30, 706, 85, 754]
FontName "Arial"
FontSize 16
FontWeight "bold"
Decimation "10"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 3]
Position [455, 80, 460, 230]
BackgroundColor "black"
ShowName off
FontName "Arial"
FontSize 16
FontWeight "bold"
Outputs "3"
DisplayOption "bar"
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [220, 706, 425, 754]
FontName "Arial"
FontSize 16
FontWeight "bold"
Decimation "1"
}
Block {
BlockType Step
Name "Mechanical\n Load Torque Step"
Position [870, 551, 930, 599]
Orientation "left"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -