📄 ssts__tether_mmet_ii_discrete_number_case.mdl
字号:
VectorParams1D on
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
}
Block {
BlockType Mux
Inputs "4"
DisplayOption "none"
UseBusObject off
BusObject "BusObject"
NonVirtualBus off
}
Block {
BlockType Scope
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 "-1"
}
Block {
BlockType "S-Function"
FunctionName "system"
SFunctionModules "''"
PortCounts "[]"
}
}
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 "SSTS__tether_MMET_II_discrete_number_case"
Location [2, 74, 998, 744]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Constant
Name "Constant"
Position [165, 160, 195, 190]
}
Block {
BlockType Constant
Name "Constant1"
Position [165, 225, 195, 255]
Value "2"
}
Block {
BlockType Constant
Name "Constant10"
Position [175, 900, 205, 930]
Value "2"
}
Block {
BlockType Constant
Name "Constant11"
Position [175, 965, 205, 995]
Value "0"
}
Block {
BlockType Constant
Name "Constant2"
Position [165, 290, 195, 320]
Value "2"
}
Block {
BlockType Constant
Name "Constant3"
Position [165, 355, 195, 385]
Value "0"
}
Block {
BlockType Constant
Name "Constant4"
Position [165, 470, 195, 500]
}
Block {
BlockType Constant
Name "Constant5"
Position [165, 535, 195, 565]
Value "2"
}
Block {
BlockType Constant
Name "Constant6"
Position [165, 600, 195, 630]
Value "2"
}
Block {
BlockType Constant
Name "Constant7"
Position [165, 665, 195, 695]
Value "0"
}
Block {
BlockType Constant
Name "Constant8"
Position [175, 770, 205, 800]
}
Block {
BlockType Constant
Name "Constant9"
Position [175, 835, 205, 865]
Value "2"
}
Block {
BlockType Mux
Name "Mux"
Ports [4, 1]
Position [330, 139, 340, 406]
ShowName off
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux1"
Ports [4, 1]
Position [330, 449, 340, 716]
ShowName off
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux2"
Ports [4, 1]
Position [340, 749, 350, 1016]
ShowName off
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux3"
Ports [3, 1]
Position [850, 451, 860, 719]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType "S-Function"
Name "S-Function"
Ports [1, 1]
Position [395, 237, 735, 313]
FunctionName "SSTS__tether_MMET_II_discrete_number_sfunction_"
"I"
Parameters "option"
MaskDescription "% if '+'\n% 1\n% "
" __________________________ \n% \n% ( R^2 + (2*idx-1)*R*L*cos(psi)/N "
"+\n% ((2*idx-1)*L/2/N))^2 )^(3/2);\n% \n% if '-'\n% "
" 1\n% __________________________ \n% \n% ( R^2 - (2*idx-1)"
"*R*L*cos(psi)/N +\n% ((2*idx-1)*L/2/N))^2 )^(3/2);\n% "
MaskHelp "%=============================================="
"=================================\n%Revision -\n%Date Name Descript"
"ion of Change email Location\n%22-Dec-2006 Chen Yi Initial "
" chenyi2005@gmail.com Glasgow\n%HISTORY$\n%======================"
"=========================================================\n"
MaskPromptString "operator"
MaskStyleString "popup(+|-)"
MaskTunableValueString "on"
MaskEnableString "on"
MaskVisibilityString "on"
MaskToolTipString "on"
MaskVariables "option=@1;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "-"
}
Block {
BlockType "S-Function"
Name "S-Function1"
Ports [1, 1]
Position [395, 547, 735, 623]
FunctionName "SSTS__tether_MMET_II_discrete_number_sfunction_"
"II"
MaskDescription "% 2*idx - 1\n% __________"
"_________________________ _ \n% \n% ( R^2 - (2*idx-1)*R*L*cos(psi)/N +\n%"
" ((2*idx-1)*L/2/N))^2 )^(3/2);\n% \n% "
" 2*idx - 1\n% ___________________________________ \n% \n% ( R^2 +"
" (2*idx-1)*R*L*cos(psi)/N +\n% ((2*idx-1)*L/2/N))^2 )^(3/2);"
MaskHelp "%=============================================="
"=================================\n%Revision -\n%Date Name Descript"
"ion of Change email Location\n%22-Dec-2006 Chen Yi Initial "
" chenyi2005@gmail.com Glasgow\n%HISTORY$\n%======================"
"=========================================================\n"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType "S-Function"
Name "S-Function2"
Ports [1, 1]
Position [405, 847, 745, 923]
FunctionName "SSTS__tether_MMET_II_discrete_number_sfunction_"
"III"
MaskDescription "% 2*idx - 1\n% __________"
"_________________________ _ \n% \n% ( R^2 - (2*idx-1)*R*L*cos(psi)/N +\n%"
" ((2*idx-1)*L/2/N))^2 )^(3/2);\n% \n% "
" 2*idx - 1\n% ___________________________________ \n% \n% ( R^2 +"
" (2*idx-1)*R*L*cos(psi)/N +\n% ((2*idx-1)*L/2/N))^2 )^(3/2);"
MaskHelp "%=============================================="
"=================================\n%Revision -\n%Date Name Descript"
"ion of Change email Location\n%22-Dec-2006 Chen Yi Initial "
" chenyi2005@gmail.com Glasgow\n%HISTORY$\n%======================"
"=========================================================\n"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
}
Block {
BlockType Scope
Name "Scope"
Ports [1]
Position [925, 569, 955, 601]
Floating off
Location [5, 40, 1029, 762]
Open off
NumInputPorts "1"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
DataFormat "StructureWithTime"
SampleTime "0"
}
Line {
SrcBlock "S-Function"
SrcPort 1
Points [55, 0; 0, 220]
DstBlock "Mux3"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "S-Function"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Constant1"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Constant2"
SrcPort 1
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "Constant3"
SrcPort 1
DstBlock "Mux"
DstPort 4
}
Line {
SrcBlock "S-Function1"
SrcPort 1
DstBlock "Mux3"
DstPort 2
}
Line {
SrcBlock "Mux1"
SrcPort 1
DstBlock "S-Function1"
DstPort 1
}
Line {
SrcBlock "Constant4"
SrcPort 1
DstBlock "Mux1"
DstPort 1
}
Line {
SrcBlock "Constant5"
SrcPort 1
DstBlock "Mux1"
DstPort 2
}
Line {
SrcBlock "Constant6"
SrcPort 1
DstBlock "Mux1"
DstPort 3
}
Line {
SrcBlock "Constant7"
SrcPort 1
DstBlock "Mux1"
DstPort 4
}
Line {
SrcBlock "S-Function2"
SrcPort 1
Points [45, 0; 0, -210]
DstBlock "Mux3"
DstPort 3
}
Line {
SrcBlock "Mux2"
SrcPort 1
Points [0, 0]
DstBlock "S-Function2"
DstPort 1
}
Line {
SrcBlock "Constant8"
SrcPort 1
DstBlock "Mux2"
DstPort 1
}
Line {
SrcBlock "Constant9"
SrcPort 1
DstBlock "Mux2"
DstPort 2
}
Line {
SrcBlock "Constant10"
SrcPort 1
DstBlock "Mux2"
DstPort 3
}
Line {
SrcBlock "Constant11"
SrcPort 1
DstBlock "Mux2"
DstPort 4
}
Line {
SrcBlock "Mux3"
SrcPort 1
DstBlock "Scope"
DstPort 1
}
Annotation {
Name "N"
Position [292, 169]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "R"
Position [295, 227]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "L"
Position [292, 291]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "psi"
Position [291, 360]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "N"
Position [292, 479]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "R"
Position [295, 537]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "L"
Position [292, 601]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "psi"
Position [291, 670]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "N"
Position [302, 779]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "R"
Position [305, 837]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "L"
Position [302, 901]
UseDisplayTextAsClickCallback off
}
Annotation {
Name "psi"
Position [301, 970]
UseDisplayTextAsClickCallback off
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -