📄 qizhongji.mdl
字号:
SaveToWorkspace off
SaveName "ScopeData"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "-1"
}
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 "qizhongji"
Location [2, 74, 1014, 721]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Sum
Name "\n"
Ports [2, 1]
Position [655, 267, 675, 298]
Inputs "+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Constant
Name "Constant"
Position [55, 85, 85, 115]
ShowName off
Value "0"
}
Block {
BlockType Gain
Name "G1"
Position [235, 104, 270, 136]
Gain "k1"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "G2"
Position [340, 318, 375, 342]
Gain "k2"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "G3"
Position [240, 227, 285, 263]
Orientation "left"
Gain "lmp"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Integrator
Name "Omiga"
Ports [1, 1]
Position [400, 314, 425, 346]
IgnoreLimit off
}
Block {
BlockType Product
Name "P1"
Ports [2, 1]
Position [600, 322, 620, 353]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "P2"
Ports [2, 1]
Position [525, 377, 545, 408]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "P3"
Ports [2, 1]
Position [600, 257, 620, 288]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Pc"
Ports [2, 1]
Position [210, 312, 235, 343]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Ps"
Ports [2, 1]
Position [210, 372, 235, 403]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [470, 104, 500, 136]
Floating off
Location [5, 45, 1021, 729]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
TimeRange "200"
YMin "0"
YMax "10"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [665, 469, 695, 501]
Floating off
Location [5, 45, 1021, 729]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData1"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [280, 320, 300, 340]
ShowName off
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Integrator
Name "Theta"
Ports [1, 1]
Position [460, 314, 485, 346]
InitialCondition "0.01"
IgnoreLimit off
}
Block {
BlockType Gain
Name "c"
Position [235, 180, 265, 210]
Orientation "left"
Gain "c"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Trigonometry
Name "cos3"
Ports [1, 1]
Position [515, 270, 545, 290]
Operator "cos"
}
Block {
BlockType Trigonometry
Name "cossita"
Ports [1, 1]
Position [55, 325, 85, 345]
Operator "cos"
}
Block {
BlockType Constant
Name "g"
Position [145, 355, 175, 375]
Value "9.8"
}
Block {
BlockType Sum
Name "s1"
Ports [3, 1]
Position [150, 92, 170, 148]
Inputs "++-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Trigonometry
Name "sin2"
Ports [1, 1]
Position [515, 319, 540, 341]
}
Block {
BlockType Trigonometry
Name "sinsita"
Ports [1, 1]
Position [55, 384, 85, 406]
}
Block {
BlockType Integrator
Name "x"
Ports [1, 1]
Position [385, 105, 415, 135]
IgnoreLimit off
}
Block {
BlockType Integrator
Name "xdot"
Ports [1, 1]
Position [305, 105, 335, 135]
IgnoreLimit off
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "s1"
DstPort 1
}
Line {
SrcBlock "G1"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "xdot"
DstPort 1
}
Branch {
Points [0, 50; -85, 0]
DstBlock "Pc"
DstPort 1
}
}
Line {
SrcBlock "xdot"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "x"
DstPort 1
}
Branch {
Points [0, 75]
DstBlock "c"
DstPort 1
}
}
Line {
Labels [0, 0]
SrcBlock "x"
SrcPort 1
DstBlock "Scope"
DstPort 1
}
Line {
SrcBlock "c"
SrcPort 1
Points [-115, 0; 0, -55]
DstBlock "s1"
DstPort 3
}
Line {
SrcBlock "G3"
SrcPort 1
Points [-100, 0]
DstBlock "s1"
DstPort 2
}
Line {
SrcBlock "s1"
SrcPort 1
DstBlock "G1"
DstPort 1
}
Line {
SrcBlock "Pc"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Ps"
SrcPort 1
Points [50, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "G2"
DstPort 1
}
Line {
SrcBlock "G2"
SrcPort 1
Points [-5, 0]
Branch {
DstBlock "Omiga"
DstPort 1
}
Branch {
Points [0, -65]
DstBlock "P3"
DstPort 1
}
}
Line {
SrcBlock "Omiga"
SrcPort 1
Points [10, 0]
Branch {
DstBlock "Theta"
DstPort 1
}
Branch {
Points [0, 55]
Branch {
DstBlock "P2"
DstPort 1
}
Branch {
Points [0, 15]
DstBlock "P2"
DstPort 2
}
}
}
Line {
SrcBlock "P1"
SrcPort 1
Points [15, 0]
DstBlock "\n"
DstPort 2
}
Line {
SrcBlock "\n"
SrcPort 1
Points [0, -40]
DstBlock "G3"
DstPort 1
}
Line {
SrcBlock "cos3"
SrcPort 1
DstBlock "P3"
DstPort 2
}
Line {
SrcBlock "P3"
SrcPort 1
DstBlock "\n"
DstPort 1
}
Line {
SrcBlock "sin2"
SrcPort 1
DstBlock "P1"
DstPort 1
}
Line {
SrcBlock "P2"
SrcPort 1
Points [15, 0; 0, -50]
DstBlock "P1"
DstPort 2
}
Line {
SrcBlock "Theta"
SrcPort 1
Points [5, 0]
Branch {
DstBlock "sin2"
DstPort 1
}
Branch {
Points [0, 155]
Branch {
DstBlock "Scope1"
DstPort 1
}
Branch {
Points [-465, 0; 0, -90]
Branch {
Points [0, -60]
DstBlock "cossita"
DstPort 1
}
Branch {
DstBlock "sinsita"
DstPort 1
}
}
}
Branch {
Points [0, -50]
DstBlock "cos3"
DstPort 1
}
}
Line {
SrcBlock "g"
SrcPort 1
Points [5, 0; 0, 15]
DstBlock "Ps"
DstPort 1
}
Line {
SrcBlock "cossita"
SrcPort 1
DstBlock "Pc"
DstPort 2
}
Line {
SrcBlock "sinsita"
SrcPort 1
DstBlock "Ps"
DstPort 2
}
Annotation {
Name "F"
Position [67, 127]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "s2"
Position [664, 305]
UseDisplayTextAsClickCallback off
}
Annotation {
Position [804, 285]
UseDisplayTextAsClickCallback off
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -