📄 bldcm.mdl
字号:
InitialConditionSource "internal"
InitialCondition "0"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
IgnoreLimit off
ZeroCross on
}
Block {
BlockType Logic
Operator "AND"
Inputs "2"
AllPortsSameDT on
OutDataTypeMode "Logical (see Configuration Parameters: Optimiza"
"tion)"
LogicDataType "uint(8)"
SampleTime "-1"
}
Block {
BlockType Outport
Port "1"
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
OutputWhenDisabled "held"
InitialOutput "[]"
}
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 Relay
OnSwitchValue "eps"
OffSwitchValue "eps"
OnOutputValue "1"
OffOutputValue "0"
OutputDataTypeScalingMode "All ports same datatype"
OutDataType "sfix(16)"
OutScaling "2^0"
ConRadixGroup "Use specified scaling"
ZeroCross on
SampleTime "-1"
}
Block {
BlockType RelationalOperator
Operator ">="
InputSameDT on
LogicOutDataTypeMode "Logical (see Configuration Parameters: Optimiza"
"tion)"
LogicDataType "uint(8)"
ZeroCross on
SampleTime "-1"
}
Block {
BlockType Saturate
UpperLimit "0.5"
LowerLimit "-0.5"
LinearizeAsGain on
ZeroCross on
SampleTime "-1"
}
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
}
Block {
BlockType Trigonometry
Operator "sin"
OutputSignalType "auto"
SampleTime "-1"
}
}
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 "bldcm"
Location [176, 116, 780, 415]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 212
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Inport
Name "Im_ref"
Position [110, 73, 140, 87]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "LOAD"
Position [110, 173, 140, 187]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType SubSystem
Name "BLDCM"
Ports [2, 5]
Position [190, 28, 295, 232]
FontName "Arial"
FontSize 14
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "BLDCM"
Location [70, 82, 961, 610]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "Im_ref"
Position [15, 143, 45, 157]
FontSize 14
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "Load"
Position [15, 343, 45, 357]
FontName "Arial"
FontSize 12
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType SubSystem
Name "BLDCM"
Ports [4, 4]
Position [410, 100, 465, 205]
FontName "Arial"
FontSize 14
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "The Parameter of The BLDCM Module"
MaskDescription "This Module is to Set The Parameter of The "
"Noumenon of The Brushless DC Motor"
MaskPromptString "Magnetic Pole(twin): P|Resume Plus(V/radper"
"s): 2*Ke|Resistance of Motor(ohms): Rs|Inductance Coefficient(perH): 1/(Ls-Lm"
")"
MaskStyleString "edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on"
MaskCallbackString "|||"
MaskEnableString "on,on,on,on"
MaskVisibilityString "on,on,on,on"
MaskToolTipString "on,on,on,on"
MaskVarAliasString ",,,"
MaskVariables "P=@1;KeKe=@2;Rs=@3;LsLm=@4;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "2|0.1652|6.8|82.65"
MaskTabNameString ",,,"
System {
Name "BLDCM"
Location [62, 111, 984, 535]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "Ua"
Position [15, 58, 45, 72]
FontName "Arial"
FontSize 14
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "Ub"
Position [15, 153, 45, 167]
FontName "Arial"
FontSize 14
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "Uc"
Position [15, 278, 45, 292]
FontName "Arial"
FontSize 14
Port "3"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "ω"
Position [15, 233, 45, 247]
FontName "Arial"
FontSize 14
Port "4"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Product
Name "*( 0)"
Ports [2, 1]
Position [685, 64, 710, 91]
InputSameDT off
OutDataTypeMode "double"
RndMeth "Floor"
}
Block {
BlockType Product
Name "*(1)"
Ports [2, 1]
Position [690, 159, 715, 186]
InputSameDT off
OutDataTypeMode "double"
RndMeth "Floor"
}
Block {
BlockType Product
Name "*(2)"
Ports [2, 1]
Position [690, 284, 715, 311]
InputSameDT off
OutDataTypeMode "double"
RndMeth "Floor"
}
Block {
BlockType Gain
Name "M0_1/(Ls-Lm)"
Position [610, 59, 630, 81]
Gain "LsLm"
}
Block {
BlockType Saturate
Name "M0_1/2"
Position [305, 85, 335, 115]
}
Block {
BlockType Gain
Name "M0_2*Ke"
Position [355, 89, 375, 111]
Gain "KeKe"
}
Block {
BlockType Gain
Name "M0_R"
Position [525, 100, 545, 120]
Orientation "left"
Gain "Rs"
}
Block {
BlockType Gain
Name "M1_1/(Ls-Lm)"
Position [610, 154, 630, 176]
Gain "LsLm"
}
Block {
BlockType Saturate
Name "M1_1/2"
Position [305, 170, 335, 200]
}
Block {
BlockType Integrator
Name "M1_1/s"
Ports [1, 1]
Position [540, 57, 565, 83]
}
Block {
BlockType Gain
Name "M1_2*Ke"
Position [355, 173, 375, 197]
Gain "KeKe"
}
Block {
BlockType Gain
Name "M1_R"
Position [525, 210, 545, 230]
Orientation "left"
Gain "Rs"
}
Block {
BlockType Gain
Name "M2_1/(Ls-Lm)"
Position [610, 279, 630, 301]
Gain "LsLm"
}
Block {
BlockType Saturate
Name "M2_1/2"
Position [305, 300, 335, 330]
}
Block {
BlockType Integrator
Name "M2_1/s"
Ports [1, 1]
Position [545, 152, 570, 178]
}
Block {
BlockType Gain
Name "M2_2*Ke"
Position [355, 304, 375, 326]
Gain "KeKe"
}
Block {
BlockType Gain
Name "M2_R"
Position [525, 320, 545, 340]
Orientation "left"
Gain "Rs"
}
Block {
BlockType Integrator
Name "M3_1/s"
Ports [1, 1]
Position [545, 277, 570, 303]
}
Block {
BlockType Constant
Name "M_-2*pi/3"
Position [110, 184, 150, 206]
FontName "Arial"
FontSize 14
Value "-2.0943950666666666666666666666667"
}
Block {
BlockType Constant
Name "M_0"
Position [110, 99, 150, 121]
FontName "Arial"
FontSize 14
Value "0"
}
Block {
BlockType Integrator
Name "M_1/s"
Ports [1, 1]
Position [145, 227, 170, 253]
}
Block {
BlockType Constant
Name "M_2*pi/3"
Position [115, 314, 155, 336]
FontName "Arial"
FontSize 14
Value "2.0943950666666666666666666666667"
}
Block {
BlockType Gain
Name "M_P"
Position [95, 224, 125, 256]
Gain "P"
}
Block {
BlockType Product
Name "M_ea"
Ports [2, 1]
Position [430, 94, 455, 121]
InputSameDT off
OutDataTypeMode "double"
RndMeth "Floor"
}
Block {
BlockType Product
Name "M_eb"
Ports [2, 1]
Position [430, 179, 455, 206]
InputSameDT off
OutDataTypeMode "double"
RndMeth "Floor"
}
Block {
BlockType Product
Name "M_ec"
Ports [2, 1]
Position [430, 294, 455, 321]
InputSameDT off
OutDataTypeMode "double"
RndMeth "Floor"
}
Block {
BlockType Sum
Name "Sum"
Ports [3, 1]
Position [500, 52, 520, 88]
ShowName off
Inputs "|+--"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum1"
Ports [3, 1]
Position [500, 147, 520, 183]
ShowName off
Inputs "|+--"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum2"
Ports [3, 1]
Position [500, 272, 520, 308]
ShowName off
Inputs "|+--"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -