📄 mada_bo_fluxgggg.mdl
字号:
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 Saturate
UpperLimit "0.5"
LowerLimit "-0.5"
LinearizeAsGain on
ZeroCross 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 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 Switch
Criteria "u2 >= Threshold"
Threshold "0"
InputSameDT on
OutDataTypeMode "Inherit via internal rule"
RndMeth "Floor"
SaturateOnIntegerOverflow on
ZeroCross on
SampleTime "-1"
}
Block {
BlockType Terminator
}
Block {
BlockType ToWorkspace
VariableName "simulink_output"
MaxDataPoints "1000"
Decimation "1"
SampleTime "0"
FixptAsFi off
}
Block {
BlockType TransferFcn
Numerator "[1]"
Denominator "[1 2 1]"
AbsoluteTolerance "auto"
Realization "auto"
}
Block {
BlockType TransportDelay
DelayTime "1"
InitialInput "0"
BufferSize "1024"
PadeOrder "0"
TransDelayFeedthrough 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 "mada_bo_fluxGGGG"
Location [2, 82, 997, 705]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Scope
Name "COURANT ROTOR "
Ports [3]
Position [845, 500, 905, 580]
DropShadow on
Location [5, 54, 1029, 737]
Open off
NumInputPorts "3"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
}
YMin "-25~-25~-25"
YMax "25~25~25"
SaveName "ScopeData4"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "COURANT STATOR"
Ports [3]
Position [1000, 175, 1065, 255]
DropShadow on
Location [5, 54, 1029, 737]
Open off
NumInputPorts "3"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
}
YMin "-17.5~-10~-15"
YMax "12.5~15~10"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Cem"
Ports [1]
Position [845, 459, 875, 491]
DropShadow on
Location [5, 54, 1029, 737]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
YMin "13.712"
YMax "13.719"
SaveName "ScopeData3"
DataFormat "StructureWithTime"
}
Block {
BlockType Clock
Name "Clock"
Position [1125, 55, 1145, 75]
DropShadow on
Decimation "10"
}
Block {
BlockType Constant
Name "Constant1"
Position [135, 470, 160, 500]
ShowName off
FontName "Times New Roman"
FontSize 12
Value "157"
}
Block {
BlockType SubSystem
Name "DFOC"
Ports [4, 6]
Position [275, 326, 330, 514]
ForegroundColor "red"
DropShadow on
FontName "Times New Roman"
FontSize 12
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskPromptString "resistances|poles de courant|poles de flux|pole"
"s de vitesse|inductances|paire de pole|pole impos閑s q-w-f|flux reference|coe"
"ffi de frottement|moment d'in閞tie|vitesse nominale"
MaskStyleString "edit,edit,edit,edit,edit,edit,edit,edit,edit,ed"
"it,edit"
MaskTunableValueString "on,on,on,on,on,on,on,on,on,on,on"
MaskCallbackString "||||||||||"
MaskEnableString "on,on,on,on,on,on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on,on,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on,on,on,on,on,on"
MaskVarAliasString ",,,,,,,,,,"
MaskVariables "r=@1;roq=@2;rof=@3;row=@4;l=@5;P=@6;rp=@7;fref="
"@8;fc=@9;J=@10;wn=@11;"
MaskInitialization "rr=r(1);rs=r(2);\nlr=l(1);ls=l(2);lm=l(3);\nroq"
"=rp(1);row=rp(2);rof=rp(3);\n\nsig = 1- lm^2/(lr*ls);\ntr= lr/rr;\n\nkif = 2*"
"lr*rof^2/(rr*lm); kpf = 1/lm * (2*rof*lr/rr-1);\nkid = 2*sig*ls*roq^2; "
" kpd = 2*roq*sig*ls-rs;\n\nkiq = kid; kpq = kpd;\n\nkiw = 2*J*row^2/P; k"
"pw = (2*row*J-fc)/P;\n"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "[3.805 4.85] |200|200|35|[0.274 0.274 0.258]|2|"
"[709 16 96]|1|0.00114|0.031|298.7"
MaskTabNameString ",,,,,,,,,,"
System {
Name "DFOC"
Location [2, 82, 997, 722]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "ids"
Position [40, 113, 70, 127]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "iqs"
Position [45, 343, 75, 357]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "wm"
Position [50, 453, 80, 467]
Port "3"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "wref"
Position [30, 288, 60, 302]
Port "4"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Gain
Name "Gain"
Position [235, 280, 265, 310]
Gain "lr/(lm*P)"
}
Block {
BlockType Mux
Name "Mux"
Ports [4, 1]
Position [515, 32, 520, 103]
ShowName off
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux1"
Ports [3, 1]
Position [335, 370, 340, 410]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux2"
Ports [4, 1]
Position [310, 523, 315, 592]
ShowName off
DisplayOption "bar"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [285, 270, 295, 305]
ShowName off
Inputs "/*"
InputSameDT off
RndMeth "Floor"
Port {
PortNumber 1
Name "iqs*"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
}
Block {
BlockType Saturate
Name "Saturation"
Position [370, 158, 385, 182]
UpperLimit "30"
LowerLimit "-30"
}
Block {
BlockType Saturate
Name "Saturation2"
Position [370, 278, 385, 302]
UpperLimit "30"
LowerLimit "-30"
}
Block {
BlockType SubSystem
Name "Subsystem1"
Ports [1, 1]
Position [120, 153, 160, 187]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Subsystem1"
Location [95, 170, 593, 453]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "wm"
Position [50, 138, 80, 152]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Abs
Name "Abs"
Position [120, 130, 150, 160]
}
Block {
BlockType Constant
Name "Constant"
Position [60, 185, 90, 215]
Value "wn"
}
Block {
BlockType Constant
Name "Constant1"
Position [155, 65, 185, 95]
Value "fref"
}
Block {
BlockType Constant
Name "Constant2"
Position [60, 235, 90, 265]
Value "0.01"
}
Block {
BlockType Gain
Name "Gain"
Position [320, 230, 350, 260]
Gain "fref"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [225, 226, 240, 264]
Inputs "/*"
InputSameDT off
RndMeth "Floor"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [195, 135, 215, 155]
ShowName off
IconShape "round"
Inputs "|-+"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [175, 220, 195, 240]
ShowName off
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Switch
Name "Switch"
Position [415, 145, 445, 175]
InputSameDT off
}
Block {
BlockType Outport
Name "fref"
Position [490, 153, 520, 167]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Switch"
SrcPort 1
DstBlock "fref"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [5, 0; 0, 5]
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Constant2"
SrcPort 1
Points [45, 0; 0, -15]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [210, 0]
DstBlock "Switch"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [180, 0]
DstBlock "Switch"
DstPort 2
}
Line {
SrcBlock "Constant"
SrcPort 1
Points [30, 0]
Branch {
Points [0, 70; 85, 0]
DstBlock "Product"
DstPort 2
}
Branch {
Points [80, 0]
DstBlock "Sum"
DstPort 2
}
}
Line {
SrcBlock "Abs"
SrcPort 1
Points [0, 0]
Branch {
Points [0, 80]
DstBlock "Sum1"
DstPort 1
}
Branch {
DstBlock "Sum"
DstPort 1
}
}
Line {
SrcBlock "wm"
SrcPort 1
DstBlock "Abs"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [45, 0]
DstBlock "Switch"
DstPort 3
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -