📄 filters.mdl
字号:
outputFracLength "15"
accumMode "Same as product output"
accumWordLength "32"
accumFracLength "30"
prodOutputMode "Same as input"
prodOutputWordLength "32"
prodOutputFracLength "30"
roundingMode "Floor"
overflowMode off
LockScale off
}
Block {
BlockType SubSystem
Name "amedfilt2"
Ports [1, 1]
Position [90, 39, 200, 101]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "amedfilt2"
Location [535, 101, 895, 211]
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 "In1"
Position [25, 48, 55, 62]
IconDisplay "Port number"
}
Block {
BlockType SubSystem
Name "Embedded\nMATLAB Function"
Ports [1, 1]
Position [90, 26, 255, 84]
ShowName off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskDescription "Real-Time Workshop generated S-function."
MaskHelp "helpview([docroot,'\\toolbox\\rtw\\helptarg"
"ets.map'],'rtw_Sfunc_target');"
MaskDisplay "disp('amedfilt2');"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Embedded\nMATLAB Function"
Location [480, 85, 1016, 386]
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 "I"
Position [95, 40, 115, 60]
IconDisplay "Port number"
}
Block {
BlockType "S-Function"
Name "Embedded\nMATLAB Function_sfcn"
Ports [1, 1]
Position [400, 37, 700, 63]
BackgroundColor "darkGreen"
CopyFcn "set_param(gcb,'LinkStatus','none');"
FontSize 12
FontWeight "bold"
FunctionName "Embedded0_sf"
SFunctionModules " "
MaskDescription "Real-Time Workshop generated S-function"
"."
MaskHelp "helpview([docroot,'\\toolbox\\rtw\\help"
"targets.map'],'rtw_Sfunc_target');"
MaskPromptString "Generated S-function name (model_sf):|S"
"how module list"
MaskStyleString "edit,checkbox"
MaskTunableValueString "on,on"
MaskCallbackString "|"
MaskEnableString "on,on"
MaskVisibilityString "on,on"
MaskToolTipString "on,on"
MaskVarAliasString ","
MaskVariables "rtw_sf_name=&1;showVar=@2;"
MaskInitialization "displist = '';\nif ~strcmp(get_param(gc"
"b, 'FunctionName'), rtw_sf_name);\n set_param(gcb, 'FunctionName', rtw_sf_na"
"me);\nend\n% Check if we are generating RTW code\nrtw_mode = false;\nif strcm"
"pi(get_param(bdroot(gcb),'SimulationStatus'),'Initializing')\n rtw_mod"
"e = strcmpi(get_param(bdroot(gcb),'BuildingRTWCode'),'on') && ...\n "
" ~strcmpi(get_param(bdroot(gcb),'TargetStyle'),'SimulationTarget');\ne"
"nd\nif showVar || rtw_mode\n if exist('rtwsfunc') == 2 | exist('rtwsfu"
"nc') == 6\n tmplist = rtwsfunc(rtw_sf_name,gcb);\n "
" tmplist = ['\\nList of Modules:\\n', tmplist];\n elseif showVa"
"r\n tmplist = '\\nList of Modules:\\nRTW not licensed\\n';\n "
" end\nend\nif showVar\n displist = tmplist;\nend"
MaskDisplay "\nport_label('input',1,'I');\nport_labe"
"l('output',1,'J');"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "Embedded0_sf|off"
MaskTabNameString ","
}
Block {
BlockType SubSystem
Name "__InputSSForSFun__"
Ports [1, 1]
Position [200, 37, 300, 63]
PermitHierarchicalResolution "ExplicitOnly"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "__InputSSForSFun__"
Location [480, 85, 1016, 386]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins "[0.500000, 0.500000, 0.500000, 0.5000"
"00]"
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "I"
Position [70, 30, 90, 40]
IconDisplay "Port number"
}
Block {
BlockType Outport
Name "__UniqueOutportName__1__"
Position [395, 25, 415, 45]
ShowName off
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "I"
SrcPort 1
DstBlock "__UniqueOutportName__1__"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "__OutputSSForSFun__"
Ports [1, 1]
Position [800, 37, 900, 63]
PermitHierarchicalResolution "ExplicitOnly"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "__OutputSSForSFun__"
Location [480, 85, 1016, 386]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins "[0.500000, 0.500000, 0.500000, 0.5000"
"00]"
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "__UniqueInportName__1__"
Position [100, 40, 120, 60]
ShowName off
IconDisplay "Port number"
Port {
PortNumber 1
Name "J"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Outport
Name "J"
Position [225, 45, 245, 55]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
Name "J"
Labels [0, 0]
SrcBlock "__UniqueInportName__1__"
SrcPort 1
DstBlock "J"
DstPort 1
}
}
}
Block {
BlockType Outport
Name "J"
Position [1005, 40, 1025, 60]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "__OutputSSForSFun__"
SrcPort 1
DstBlock "J"
DstPort 1
}
Line {
SrcBlock "Embedded\nMATLAB Function_sfcn"
SrcPort 1
DstBlock "__OutputSSForSFun__"
DstPort 1
}
Line {
SrcBlock "__InputSSForSFun__"
SrcPort 1
DstBlock "Embedded\nMATLAB Function_sfcn"
DstPort 1
}
Line {
SrcBlock "I"
SrcPort 1
DstBlock "__InputSSForSFun__"
DstPort 1
}
}
}
Block {
BlockType Outport
Name "Out1"
Position [305, 48, 335, 62]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Embedded\nMATLAB Function"
DstPort 1
}
Line {
SrcBlock "Embedded\nMATLAB Function"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
}
}
MatData {
NumRecords 2
DataRecord {
Tag DataTag1
Data " %)30 . < 8 ( 0 % "
"\" $ ! 0 . 0 8 ( ! % \" $ "
". 0 0 #@ $UE9&EA;D9I;'1E<C)$ "
}
DataRecord {
Tag DataTag0
Data " %)30 . < 8 ( 0 % "
"\" $ ! 0 . 0 8 ( ! % \" $ "
"+ 0 0 \"P $9)4D9I;'1E<C)$ "
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -