📄 smithpredictor.mdl
字号:
}
Block {
BlockType Mux
Inputs "4"
DisplayOption "none"
UseBusObject off
BusObject "BusObject"
NonVirtualBus off
}
Block {
BlockType Outport
Port "1"
UseBusObject off
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 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 StateSpace
A "1"
B "1"
C "1"
D "1"
X0 "0"
AbsoluteTolerance "auto"
Realization "auto"
}
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 ToWorkspace
VariableName "simulink_output"
MaxDataPoints "1000"
Decimation "1"
SampleTime "0"
FixptAsFi off
}
Block {
BlockType UnitDelay
X0 "0"
SampleTime "1"
StateMustResolveToSignalObject off
RTWStateStorageClass "Auto"
}
Block {
BlockType ZeroOrderHold
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 "smithpredictor"
Location [2, 82, 1259, 748]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType SubSystem
Name "Consigna"
Ports [0, 1]
Position [45, 95, 70, 115]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "Consigna"
Location [38, 82, 834, 564]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [140, 66, 145, 104]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Step
Name "id"
Position [60, 39, 85, 61]
Time "0.1"
After "id"
SampleTime "0"
}
Block {
BlockType Step
Name "iq"
Position [60, 84, 85, 106]
Time "0.125"
After "iq"
SampleTime "0"
}
Block {
BlockType Outport
Name "idq"
Position [170, 78, 200, 92]
IconDisplay "Port number"
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "idq"
DstPort 1
}
Line {
SrcBlock "id"
SrcPort 1
Points [0, 25]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "iq"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
}
}
Block {
BlockType SubSystem
Name "Controlador\nPI"
Ports [4, 1]
Position [145, 98, 205, 172]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "Controlador\nPI"
Location [25, 82, 821, 564]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "idq_c"
Position [40, 43, 70, 57]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "idq"
Position [40, 88, 70, 102]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "idq_smith"
Position [40, 138, 70, 152]
Port "3"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "edq"
Position [40, 198, 70, 212]
Port "4"
IconDisplay "Port number"
}
Block {
BlockType Constant
Name "Constant"
Position [110, 256, 140, 274]
Value "2*pi*50"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 2]
Position [105, 30, 110, 70]
BackgroundColor "black"
ShowName off
Outputs "2"
}
Block {
BlockType Demux
Name "Demux1"
Ports [1, 2]
Position [105, 75, 110, 115]
BackgroundColor "black"
ShowName off
Outputs "2"
}
Block {
BlockType Demux
Name "Demux2"
Ports [1, 2]
Position [105, 185, 110, 225]
BackgroundColor "black"
ShowName off
Outputs "2"
}
Block {
BlockType Demux
Name "Demux3"
Ports [1, 2]
Position [105, 125, 110, 165]
BackgroundColor "black"
ShowName off
Outputs "2"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [320, 68, 325, 177]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType UnitDelay
Name "Unit Delay2"
Position [365, 113, 385, 137]
ShowName off
SampleTime "Ts"
}
Block {
BlockType SubSystem
Name "d-axis current\ncontroller"
Ports [7, 1]
Position [225, 28, 270, 112]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "d-axis current\ncontroller"
Location [74, 82, 870, 554]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "id_c"
Position [20, 68, 50, 82]
IconDisplay "Port number"
SampleTime "Ts"
}
Block {
BlockType Inport
Name "id"
Position [20, 113, 50, 127]
Port "2"
IconDisplay "Port number"
SampleTime "Ts"
}
Block {
BlockType Inport
Name "iq"
Position [20, 218, 50, 232]
Port "3"
IconDisplay "Port number"
SampleTime "Ts"
}
Block {
BlockType Inport
Name "w"
Position [20, 253, 50, 267]
Port "4"
IconDisplay "Port number"
SampleTime "Ts"
}
Block {
BlockType Inport
Name "ed"
Position [20, 288, 50, 302]
Port "5"
IconDisplay "Port number"
SampleTime "Ts"
}
Block {
BlockType Inport
Name "iq_c"
Position [20, 328, 50, 342]
Port "6"
IconDisplay "Port number"
SampleTime "Ts"
}
Block {
BlockType Inport
Name "id_smith"
Position [20, 158, 50, 172]
Port "7"
IconDisplay "Port number"
SampleTime "Ts"
}
Block {
BlockType DiscreteIntegrator
Name "Discrete-Time\nIntegrator"
Ports [1, 1]
Position [255, 120, 300, 160]
IntegratorMethod "Integration: Forward Euler"
ExternalReset "none"
InitialConditionSource "internal"
SampleTime "Ts"
UpperSaturationLimit "sqrt(2/3)*750"
LowerSaturationLimit "-sqrt(2/3)*750"
ICPrevOutput "DiscIntNeverNeededParam"
ICPrevScaledInput "DiscIntNeverNeededParam"
}
Block {
BlockType Gain
Name "Gain"
Position [180, 126, 205, 154]
Gain "1/kip"
}
Block {
BlockType Gain
Name "Gain1"
Position [350, 61, 385, 89]
Gain "kp"
}
Block {
BlockType Gain
Name "Gain2"
Position [285, 241, 310, 269]
Gain "L/2"
}
Block {
BlockType Product
Name "Product4"
Ports [2, 1]
Position [195, 238, 210, 267]
ShowName off
Inputs "**"
RndMeth "Floor"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [75, 65, 95, 85]
ShowName off
IconShape "round"
Inputs "|+-"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [310, 65, 330, 85]
ShowName off
IconShape "round"
Inputs "|++"
}
Block {
BlockType Sum
Name "Sum2"
Ports [3, 1]
Position [425, 71, 445, 99]
ShowName off
Inputs "+-+"
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1]
Position [75, 215, 95, 235]
ShowName off
IconShape "round"
Inputs "|++"
}
Block {
BlockType Sum
Name "Sum4"
Ports [2, 1]
Position [125, 65, 145, 85]
ShowName off
IconShape "round"
Inputs "|+-"
}
Block {
BlockType ZeroOrderHold
Name "Zero-Order\nHold1"
Position [470, 66, 505, 104]
SampleTime "Ts"
}
Block {
BlockType Outport
Name "ud_c"
Position [540, 78, 570, 92]
IconDisplay "Port number"
}
Line {
SrcBlock "id_c"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "id"
SrcPort 1
Points [30, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Discrete-Time\nIntegrator"
SrcPort 1
Points [15, 0]
DstBlock "Sum1"
DstPort 2
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -