📄 c8munsta.mdl
字号:
NamePlacement "normal"
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
BlockParameterDefaults {
Block {
BlockType Abs
SaturateOnIntegerOverflow on
ZeroCross on
SampleTime "-1"
}
Block {
BlockType Clock
DisplayTime off
}
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 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 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 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 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 TransferFcn
Numerator "[1]"
Denominator "[1 2 1]"
AbsoluteTolerance "auto"
Realization "auto"
}
}
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 "c8munsta"
Location [390, 104, 1061, 403]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "portrait"
PaperPositionMode "auto"
PaperType "a4letter"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Abs
Name "Abs"
Position [175, 65, 205, 95]
ShowName off
FontName "Times New Roman"
FontSize 14
}
Block {
BlockType Gain
Name "Gain"
Position [155, 164, 200, 196]
ShowName off
FontName "Times New Roman"
FontSize 14
Gain "Kp"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Integrator
Name "Integrator1"
Ports [1, 1]
Position [320, 45, 350, 75]
ShowName off
FontName "Times New Roman"
FontSize 14
IgnoreLimit off
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [250, 41, 295, 74]
ShowName off
FontName "Times New Roman"
FontSize 14
InputSameDT off
RndMeth "Floor"
}
Block {
BlockType Saturate
Name "Saturation"
Position [255, 165, 300, 195]
FontName "Times New Roman"
FontSize 14
UpperLimit "5"
LowerLimit "-5"
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [470, 164, 500, 196]
FontName "Times New Roman"
FontSize 14
Location [395, 436, 719, 675]
Open on
NumInputPorts "1"
ZoomMode "yonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "10"
YMin "0"
YMax "1.4"
SaveToWorkspace on
SaveName "yy"
DataFormat "Array"
LimitDataPoints off
}
Block {
BlockType Step
Name "Step"
Position [60, 165, 90, 195]
FontName "Times New Roman"
FontSize 14
Time "0"
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [105, 170, 125, 190]
ShowName off
FontName "Times New Roman"
FontSize 14
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum1"
Ports [3, 1]
Position [220, 170, 240, 190]
ShowName off
FontName "Times New Roman"
FontSize 14
IconShape "round"
Inputs "+++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType TransferFcn
Name "Transfer Fcn"
Position [315, 154, 435, 206]
FontName "Times New Roman"
FontSize 14
Numerator "[1 2 ]"
Denominator "[1 8 4 -1 0.4]"
}
Block {
BlockType TransferFcn
Name "Transfer Fcn1"
Position [155, 216, 225, 254]
ShowName off
FontName "Times New Roman"
FontSize 14
Numerator "[Kd 0]"
Denominator "[0.02 1 ]"
}
Block {
BlockType TransferFcn
Name "Transfer Fcn2"
Position [155, 112, 190, 148]
ShowName off
FontName "Times New Roman"
FontSize 14
Numerator "Ki"
Denominator "[1 0 ]"
}
Block {
BlockType Clock
Name "time"
Position [70, 40, 90, 60]
FontName "Times New Roman"
FontSize 14
Decimation "10"
}
Block {
BlockType Outport
Name "Out2"
Position [415, 53, 445, 67]
ShowName off
FontName "Times New Roman"
FontSize 14
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Step"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [10, 0]
Branch {
Points [0, 0]
DstBlock "Transfer Fcn1"
DstPort 1
}
Branch {
DstBlock "Gain"
DstPort 1
}
Branch {
Points [0, -50]
Branch {
Points [0, -50]
DstBlock "Abs"
DstPort 1
}
Branch {
DstBlock "Transfer Fcn2"
DstPort 1
}
}
}
Line {
SrcBlock "Transfer Fcn"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Scope"
DstPort 1
}
Branch {
Points [0, 0; 0, 100; -335, 0]
DstBlock "Sum"
DstPort 2
}
}
Line {
SrcBlock "time"
SrcPort 1
DstBlock "Product1"
DstPort 1
}
Line {
SrcBlock "Integrator1"
SrcPort 1
DstBlock "Out2"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
DstBlock "Integrator1"
DstPort 1
}
Line {
SrcBlock "Abs"
SrcPort 1
Points [10, 0; 0, -15]
DstBlock "Product1"
DstPort 2
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Saturation"
DstPort 1
}
Line {
SrcBlock "Saturation"
SrcPort 1
DstBlock "Transfer Fcn"
DstPort 1
}
Line {
SrcBlock "Gain"
SrcPort 1
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Transfer Fcn1"
SrcPort 1
DstBlock "Sum1"
DstPort 3
}
Line {
SrcBlock "Transfer Fcn2"
SrcPort 1
Points [35, 0]
DstBlock "Sum1"
DstPort 1
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -