📄 bldc_00.mdl
字号:
Name "Add"
Ports [2, 1]
Position [380, 167, 410, 198]
Inputs "+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Add1"
Ports [2, 1]
Position [535, 177, 565, 208]
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Constant
Name "Constant2"
Position [325, 175, 355, 205]
Value "0.5"
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 "Constant3"
Position [455, 185, 485, 215]
Value "0.5"
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 SubSystem
Name "Decoder"
Ports [1, 1]
Position [225, 29, 310, 71]
BackgroundColor "lightBlue"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "Decoder"
Location [101, 228, 1088, 779]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "Hall\n"
Position [25, 43, 55, 57]
IconDisplay "Port number"
}
Block {
BlockType DataTypeConversion
Name "Data Type Conversion1"
Position [425, 169, 470, 191]
ShowName off
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType DataTypeConversion
Name "Data Type Conversion2"
Position [430, 104, 475, 126]
ShowName off
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType DataTypeConversion
Name "Data Type Conversion3"
Position [425, 234, 470, 256]
ShowName off
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType DataTypeConversion
Name "Data Type Conversion4"
Position [425, 304, 470, 326]
ShowName off
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType DataTypeConversion
Name "Data Type Conversion5"
Position [425, 384, 470, 406]
ShowName off
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType DataTypeConversion
Name "Data Type Conversion6"
Position [425, 454, 470, 476]
ShowName off
RndMeth "Floor"
SaturateOnIntegerOverflow off
}
Block {
BlockType Demux
Name "Demux1"
Ports [1, 3]
Position [165, 31, 170, 69]
BackgroundColor "black"
ShowName off
Outputs "3"
DisplayOption "bar"
}
Block {
BlockType Demux
Name "Demux2"
Ports [1, 3]
Position [165, 96, 170, 134]
BackgroundColor "black"
ShowName off
Outputs "3"
DisplayOption "bar"
}
Block {
BlockType Logic
Name "Logical\nOperator1"
Ports [1, 1]
Position [95, 34, 125, 66]
Operator "NOT"
AllPortsSameDT off
OutDataTypeMode "Boolean"
}
Block {
BlockType Logic
Name "Logical\nOperator2"
Ports [2, 1]
Position [375, 96, 405, 129]
ShowName off
AllPortsSameDT off
OutDataTypeMode "Boolean"
}
Block {
BlockType Logic
Name "Logical\nOperator3"
Ports [2, 1]
Position [370, 161, 400, 194]
ShowName off
AllPortsSameDT off
OutDataTypeMode "Boolean"
}
Block {
BlockType Logic
Name "Logical\nOperator4"
Ports [2, 1]
Position [370, 226, 400, 259]
ShowName off
AllPortsSameDT off
OutDataTypeMode "Boolean"
}
Block {
BlockType Logic
Name "Logical\nOperator5"
Ports [2, 1]
Position [370, 296, 400, 329]
ShowName off
AllPortsSameDT off
OutDataTypeMode "Boolean"
}
Block {
BlockType Logic
Name "Logical\nOperator6"
Ports [2, 1]
Position [370, 376, 400, 409]
ShowName off
AllPortsSameDT off
OutDataTypeMode "Boolean"
}
Block {
BlockType Logic
Name "Logical\nOperator7"
Ports [2, 1]
Position [370, 446, 400, 479]
ShowName off
AllPortsSameDT off
OutDataTypeMode "Boolean"
}
Block {
BlockType Mux
Name "Mux1"
Ports [3, 1]
Position [720, 231, 725, 329]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [670, 270, 690, 290]
ShowName off
Inputs "-+"
InputSameDT off
OutDataTypeMode "double"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [670, 240, 690, 260]
ShowName off
Inputs "-+"
InputSameDT off
OutDataTypeMode "double"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1]
Position [670, 300, 690, 320]
ShowName off
Inputs "-+"
InputSameDT off
OutDataTypeMode "double"
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "emf_abc"
Position [770, 273, 800, 287]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Hall\n"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Logical\nOperator1"
DstPort 1
}
Branch {
Points [0, 65]
DstBlock "Demux2"
DstPort 1
}
}
Line {
SrcBlock "Logical\nOperator1"
SrcPort 1
DstBlock "Demux1"
DstPort 1
}
Line {
SrcBlock "Demux2"
SrcPort 3
Points [10, 0; 0, 110]
Branch {
DstBlock "Logical\nOperator4"
DstPort 1
}
Branch {
Points [0, 165]
DstBlock "Logical\nOperator6"
DstPort 2
}
}
Line {
SrcBlock "Demux2"
SrcPort 2
Points [30, 0; 0, 55]
Branch {
DstBlock "Logical\nOperator3"
DstPort 1
}
Branch {
Points [0, 150]
DstBlock "Logical\nOperator5"
DstPort 2
}
}
Line {
SrcBlock "Demux2"
SrcPort 1
Points [45, 0]
Branch {
DstBlock "Logical\nOperator2"
DstPort 1
}
Branch {
Points [5, 0; 0, 365]
DstBlock "Logical\nOperator7"
DstPort 2
}
}
Line {
SrcBlock "Demux1"
SrcPort 3
Points [75, 0; 0, 125]
Branch {
DstBlock "Logical\nOperator3"
DstPort 2
}
Branch {
Points [0, 270]
DstBlock "Logical\nOperator7"
DstPort 1
}
}
Line {
SrcBlock "Demux1"
SrcPort 2
Points [100, 0; 0, 70]
Branch {
DstBlock "Logical\nOperator2"
DstPort 2
}
Branch {
Points [0, 265]
DstBlock "Logical\nOperator6"
DstPort 1
}
}
Line {
SrcBlock "Demux1"
SrcPort 1
Points [125, 0; 0, 205]
Branch {
Points [0, 5]
DstBlock "Logical\nOperator4"
DstPort 2
}
Branch {
Points [0, 60]
DstBlock "Logical\nOperator5"
DstPort 1
}
}
Line {
SrcBlock "Logical\nOperator2"
SrcPort 1
DstBlock "Data Type Conversion2"
DstPort 1
}
Line {
SrcBlock "Sum2"
SrcPort 1
DstBlock "Mux1"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Mux1"
DstPort 2
}
Line {
SrcBlock "Sum3"
SrcPort 1
DstBlock "Mux1"
DstPort 3
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "emf_abc"
DstPort 1
}
Line {
SrcBlock "Logical\nOperator3"
SrcPort 1
DstBlock "Data Type Conversion1"
DstPort 1
}
Line {
SrcBlock "Logical\nOperator4"
SrcPort 1
DstBlock "Data Type Conversion3"
DstPort 1
}
Line {
SrcBlock "Logical\nOperator5"
SrcPort 1
DstBlock "Data Type Conversion4"
DstPort 1
}
Line {
SrcBlock "Logical\nOperator6"
SrcPort 1
DstBlock "Data Type Conversion5"
DstPort 1
}
Line {
SrcBlock "Logical\nOperator7"
SrcPort 1
DstBlock "Data Type Conversion6"
DstPort 1
}
Line {
SrcBlock "Data Type Conversion2"
SrcPort 1
Points [140, 0; 0, 130]
DstBlock "Sum2"
DstPort 1
}
Line {
SrcBlock "Data Type Conversion4"
SrcPort 1
Points [145, 0; 0, -60]
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Data Type Conversion1"
SrcPort 1
Points [110, 0; 0, 95]
DstBlock "Sum1"
DstPort 1
}
Line {
SrcBlock "Data Type Conversion5"
SrcPort 1
Points [110, 0; 0, -110]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "Data Type Conversion3"
SrcPort 1
Points [60, 0; 0, 60]
DstBlock "Sum3"
DstPort 1
}
Line {
SrcBlock "Data Type Conversion6"
SrcPort 1
Points [60, 0; 0, -120; 120, 0]
DstBlock "Sum3"
DstPort 2
}
Annotation {
Name "/ha"
Position [191, 35]
UseDisplayTextAsClickCallback off
}
Annotation {
Name
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -