📄 machine.mdl
字号:
BlockType Fcn
Expr "sin(u[1])"
SampleTime "-1"
}
Block {
BlockType Gain
Gain "1"
Multiplication "Element-wise(K.*u)"
ParameterDataTypeMode "Same as input"
ParameterDataType "sfix(16)"
ParameterScalingMode "Best Precision: Matrix-wise"
ParameterScaling "2^0"
OutDataTypeMode "Same as input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Goto
IconDisplay "Tag"
}
Block {
BlockType Inport
Port "1"
UseBusObject off
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
LatchByDelayingOutsideSignal off
LatchByCopyingInsideSignal off
Interpolate on
}
Block {
BlockType Integrator
ExternalReset "none"
InitialConditionSource "internal"
InitialCondition "0"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
IgnoreLimit off
ZeroCross on
}
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 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 Trigonometry
Operator "sin"
OutputSignalType "auto"
SampleTime "-1"
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "arial"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "arial"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "machine"
Location [2, 78, 1022, 717]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Inport
Name "USabc"
Position [85, 68, 115, 82]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "URabc"
Position [90, 178, 120, 192]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "wr"
Position [45, 303, 75, 317]
Port "3"
IconDisplay "Port number"
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [3, 7]
Position [465, 304, 505, 366]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "Subsystem"
Location [22, 86, 962, 724]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "USabc"
Position [65, 63, 95, 77]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "URabc"
Position [70, 173, 100, 187]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "wr"
Position [25, 298, 55, 312]
Port "3"
IconDisplay "Port number"
}
Block {
BlockType Sum
Name "Add"
Ports [2, 1]
Position [185, 277, 215, 308]
Inputs "+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Add1"
Ports [2, 1]
Position [710, 537, 740, 568]
Inputs "+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 2]
Position [225, 54, 230, 116]
BackgroundColor "black"
ShowName off
Outputs "2"
DisplayOption "bar"
}
Block {
BlockType Demux
Name "Demux1"
Ports [1, 2]
Position [225, 121, 230, 234]
BackgroundColor "black"
ShowName off
Outputs "2"
DisplayOption "bar"
}
Block {
BlockType From
Name "From"
Position [65, 212, 105, 228]
CloseFcn "tagdialog Close"
GotoTag "w2"
}
Block {
BlockType From
Name "From1"
Position [735, 387, 775, 403]
CloseFcn "tagdialog Close"
GotoTag "w2"
}
Block {
BlockType From
Name "From2"
Position [405, 541, 445, 559]
CloseFcn "tagdialog Close"
GotoTag "idr"
}
Block {
BlockType From
Name "From3"
Position [415, 577, 455, 593]
CloseFcn "tagdialog Close"
GotoTag "iqs"
}
Block {
BlockType From
Name "From4"
Position [565, 556, 600, 574]
CloseFcn "tagdialog Close"
GotoTag "iqr"
}
Block {
BlockType From
Name "From5"
Position [560, 596, 595, 614]
CloseFcn "tagdialog Close"
GotoTag "ids"
}
Block {
BlockType Goto
Name "Goto"
Position [245, 283, 290, 307]
GotoTag "w2"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto1"
Position [620, 83, 655, 107]
GotoTag "ids"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto2"
Position [615, 163, 650, 187]
GotoTag "iqs"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto3"
Position [615, 268, 650, 292]
GotoTag "idr"
TagVisibility "local"
}
Block {
BlockType Goto
Name "Goto4"
Position [605, 363, 640, 387]
GotoTag "iqr"
TagVisibility "local"
}
Block {
BlockType Constant
Name "Lm"
Position [300, 293, 360, 317]
Value "0.3"
}
Block {
BlockType Constant
Name "Lr"
Position [345, 263, 405, 287]
Value "0.32"
}
Block {
BlockType Constant
Name "Ls"
Position [345, 223, 405, 247]
Value "0.32"
}
Block {
BlockType Mux
Name "Mux"
Ports [2, 1]
Position [690, 88, 695, 257]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux1"
Ports [2, 1]
Position [690, 278, 695, 447]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Product
Name "Product"
Ports [2, 1]
Position [445, 498, 510, 522]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [785, 503, 840, 547]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product2"
Ports [2, 1]
Position [485, 548, 515, 592]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Product3"
Ports [2, 1]
Position [625, 563, 655, 607]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Constant
Name "Rr"
Position [340, 363, 400, 387]
Value "4.1"
}
Block {
BlockType Constant
Name "Rs"
Position [340, 323, 400, 347]
Value "4.1"
}
Block {
BlockType SubSystem
Name "Submachine"
Ports [11, 4]
Position [465, 78, 550, 462]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskHideContents off
System {
Name "Submachine"
Location [-8, 82, 677, 725]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "uds"
Position [25, 198, 55, 212]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "uqs"
Position [25, 238, 55, 252]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "udr"
Position [25, 278, 55, 292]
Port "3"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "uqr"
Position [25, 318, 55, 332]
Port "4"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Ls"
Position [25, 358, 55, 372]
Port "5"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Lr"
Position [25, 398, 55, 412]
Port "6"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Lm"
Position [25, 438, 55, 452]
Port "7"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Rs"
Position [25, 478, 55, 492]
Port "8"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Rr"
Position [25, 518, 55, 532]
Port "9"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "w1"
Position [25, 558, 55, 572]
Port "10"
IconDisplay "Port number"
}
Block {
BlockType Inport
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -