📄 testmotor_simulinkf_070530.mdl
字号:
BlockType Constant
Name "1-rs/Ls*T"
Position [170, 25, 200, 55]
Value "1-rs*T/Ls"
VectorParams1D on
SamplingMode "Sample based"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
FramePeriod "inf"
}
Block {
BlockType Constant
Name "1-rs/Ls*T1"
Position [240, 285, 270, 315]
Value "1-rs*T/Ls"
VectorParams1D on
SamplingMode "Sample based"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
FramePeriod "inf"
}
Block {
BlockType Concatenate
Name "A_dis(1)"
Ports [4, 1]
Position [425, 25, 555, 115]
NumInputs "4"
Mode "Vector concatenation"
}
Block {
BlockType Concatenate
Name "A_dis(2)"
Ports [4, 1]
Position [430, 265, 560, 355]
NumInputs "4"
Mode "Vector concatenation"
}
Block {
BlockType Concatenate
Name "A_dis(2)1"
Ports [4, 1]
Position [725, 231, 880, 439]
NumInputs "4"
Mode "Vector concatenation"
}
Block {
BlockType Constant
Name "A_dis(3)"
Position [590, 345, 620, 375]
Value "[0 0 1 0]"
VectorParams1D off
SamplingMode "Sample based"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
FramePeriod "inf"
}
Block {
BlockType Constant
Name "A_dis(4)"
Position [590, 395, 620, 425]
Value "[0 0 T*P 1]"
VectorParams1D off
SamplingMode "Sample based"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
FramePeriod "inf"
}
Block {
BlockType Product
Name "Divide"
Ports [2, 1]
Position [325, 147, 355, 178]
Inputs "**"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Divide1"
Ports [2, 1]
Position [325, 387, 355, 418]
Inputs "**"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "Gain"
Position [235, 435, 265, 465]
Gain "-1"
ParameterDataTypeMode "Inherit via internal rule"
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Trigonometry
Name "Trigonometric\nFunction"
Ports [1, 1]
Position [210, 195, 240, 225]
}
Block {
BlockType Trigonometry
Name "Trigonometric\nFunction1"
Ports [1, 1]
Position [185, 435, 215, 465]
Operator "cos"
}
Block {
BlockType Constant
Name "f*P/Ls*T"
Position [170, 140, 200, 170]
Value "f*P*T/Ls"
VectorParams1D on
SamplingMode "Sample based"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
FramePeriod "inf"
}
Block {
BlockType Constant
Name "f*P/Ls*T_1"
Position [205, 380, 235, 410]
Value "f*P*T/Ls"
VectorParams1D on
SamplingMode "Sample based"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
FramePeriod "inf"
}
Block {
BlockType Selector
Name "thea1"
Ports [1, 1]
Position [60, 191, 100, 229]
Elements "4"
InputPortWidth "4"
}
Block {
BlockType Outport
Name "A_dis"
Position [905, 328, 935, 342]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "1-rs/Ls*T"
SrcPort 1
Points [0, 0]
DstBlock "A_dis(1)"
DstPort 1
}
Line {
SrcBlock "0"
SrcPort 1
Points [0, 0; 40, 0]
Branch {
Points [0, -30]
DstBlock "A_dis(1)"
DstPort 2
}
Branch {
Points [0, 10]
DstBlock "A_dis(1)"
DstPort 4
}
}
Line {
SrcBlock "xhat"
SrcPort 1
DstBlock "thea1"
DstPort 1
}
Line {
SrcBlock "f*P/Ls*T"
SrcPort 1
DstBlock "Divide"
DstPort 1
}
Line {
SrcBlock "Trigonometric\nFunction"
SrcPort 1
Points [30, 0; 0, -40]
DstBlock "Divide"
DstPort 2
}
Line {
SrcBlock "Divide"
SrcPort 1
Points [0, -40; -25, 0; 0, -45]
DstBlock "A_dis(1)"
DstPort 3
}
Line {
SrcBlock "0_1"
SrcPort 1
Points [0, 0; 45, 0]
Branch {
DstBlock "A_dis(2)"
DstPort 4
}
Branch {
Points [-25, 0; 0, -60]
DstBlock "A_dis(2)"
DstPort 1
}
}
Line {
SrcBlock "f*P/Ls*T_1"
SrcPort 1
DstBlock "Divide1"
DstPort 1
}
Line {
SrcBlock "Trigonometric\nFunction1"
SrcPort 1
DstBlock "Gain"
DstPort 1
}
Line {
SrcBlock "Divide1"
SrcPort 1
Points [0, -40; -25, 0; 0, -45]
DstBlock "A_dis(2)"
DstPort 3
}
Line {
SrcBlock "1-rs/Ls*T1"
SrcPort 1
DstBlock "A_dis(2)"
DstPort 2
}
Line {
SrcBlock "Gain"
SrcPort 1
Points [5, 0; 0, -40]
DstBlock "Divide1"
DstPort 2
}
Line {
SrcBlock "A_dis(1)"
SrcPort 1
Points [100, 0; 0, 190]
DstBlock "A_dis(2)1"
DstPort 1
}
Line {
SrcBlock "A_dis(2)"
SrcPort 1
DstBlock "A_dis(2)1"
DstPort 2
}
Line {
SrcBlock "A_dis(3)"
SrcPort 1
DstBlock "A_dis(2)1"
DstPort 3
}
Line {
SrcBlock "A_dis(4)"
SrcPort 1
DstBlock "A_dis(2)1"
DstPort 4
}
Line {
SrcBlock "A_dis(2)1"
SrcPort 1
DstBlock "A_dis"
DstPort 1
}
Line {
SrcBlock "thea1"
SrcPort 1
Points [50, 0]
Branch {
DstBlock "Trigonometric\nFunction"
DstPort 1
}
Branch {
Points [0, 240]
DstBlock "Trigonometric\nFunction1"
DstPort 1
}
}
}
}
Block {
BlockType SubSystem
Name "A_yage"
Ports [1, 1]
Position [330, 278, 410, 322]
NamePlacement "alternate"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "A_yage"
Location [2, 82, 997, 705]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins "[0.500000, 0.500000, 0.500000, 0.5000"
"00]"
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "108"
Block {
BlockType Inport
Name "xhat"
Position [70, 183, 100, 197]
IconDisplay "Port number"
}
Block {
BlockType Constant
Name "0"
Position [250, 48, 275, 72]
Value "0"
VectorParams1D on
SamplingMode "Sample based"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
FramePeriod "inf"
}
Block {
BlockType Constant
Name "0_1"
Position [255, 300, 285, 330]
Value "0"
VectorParams1D on
SamplingMode "Sample based"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
FramePeriod "inf"
}
Block {
BlockType Constant
Name "1-rs/Ls*T"
Position [195, 25, 225, 55]
Value "1-rs*T/Ls"
VectorParams1D on
SamplingMode "Sample based"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
FramePeriod "inf"
}
Block {
BlockType Constant
Name "1-rs/Ls*T1"
Position [320, 320, 350, 350]
Value "1-rs*T/Ls"
VectorParams1D on
SamplingMode "Sample based"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
FramePeriod "inf"
}
Block {
BlockType Concatenate
Name "A_dis(1)"
Ports [4, 1]
Position [555, 25, 685, 115]
NumInputs "4"
Mode "Vector concatenation"
}
Block {
BlockType Concatenate
Name "A_dis(2)"
Ports [4, 1]
Position [510, 310, 640, 400]
NumInputs "4"
Mode "Vector concatenation"
}
Block {
BlockType Concatenate
Name "A_dis(2)1"
Ports [4, 1]
Position [725, 241, 880, 449]
NumInputs "4"
Mode "Vector concatenation"
}
Block {
BlockType Constant
Name "A_dis(3)"
Position [670, 355, 700, 385]
Value "[0 0 1 0]"
VectorParams1D off
SamplingMode "Sample based"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
FramePeriod "inf"
}
Block {
BlockType Constant
Name "A_dis(4)"
Position [670, 405, 700, 435]
Value "[0 0 T*P 1]"
VectorParams1D off
SamplingMode "Sample based"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
FramePeriod "inf"
}
Block {
BlockType Product
Name "Divide"
Ports [2, 1]
Position [400, 102, 430, 133]
Inputs "**"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Divide1"
Ports [2, 1]
Position [375, 377, 405, 408]
Inputs "**"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Divide2"
Ports [2, 1]
Position [405, 197, 435, 228]
Inputs "**"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Product
Name "Divide3"
Ports [2, 1]
Position [495, 217, 525, 248]
Inputs "**"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -