📄 amedianfilter_hw.mdl
字号:
}
Line {
SrcBlock " SFunction "
SrcPort 1
DstBlock " Demux "
DstPort 1
}
Line {
SrcBlock "column_data"
SrcPort 1
DstBlock " SFunction "
DstPort 1
}
Line {
Name "min3"
Labels [0, 0]
SrcBlock " SFunction "
SrcPort 2
DstBlock "min3"
DstPort 1
}
Line {
Name "med3"
Labels [0, 0]
SrcBlock " SFunction "
SrcPort 3
DstBlock "med3"
DstPort 1
}
Line {
Name "max3"
Labels [0, 0]
SrcBlock " SFunction "
SrcPort 4
DstBlock "max3"
DstPort 1
}
Line {
Name "center_data"
Labels [0, 0]
SrcBlock " SFunction "
SrcPort 5
DstBlock "center_data"
DstPort 1
}
Line {
SrcBlock " Demux "
SrcPort 1
DstBlock " Terminator "
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "d5x5"
Ports [1, 4]
Position [510, 159, 675, 216]
PermitHierarchicalResolution "ExplicitOnly"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskType "Stateflow"
MaskDescription "Embedded MATLAB block"
MaskDisplay "disp('d5x5');"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "d5x5"
Location [257, 457, 812, 717]
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 "column_data"
Position [20, 101, 40, 119]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Demux
Name " Demux "
Ports [1, 1]
Position [270, 220, 320, 260]
Outputs "1"
}
Block {
BlockType "S-Function"
Name " SFunction "
Tag "Stateflow S-Function aMedianFilter_hw 3"
Ports [1, 5]
Position [180, 100, 230, 220]
FunctionName "sf_sfun"
PortCounts "[1 5]"
EnableBusSupport on
Port {
PortNumber 2
Name "min5"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
Port {
PortNumber 3
Name "med5"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
Port {
PortNumber 4
Name "max5"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
Port {
PortNumber 5
Name "center_data"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Terminator
Name " Terminator "
Position [460, 231, 480, 249]
}
Block {
BlockType Outport
Name "min5"
Position [460, 101, 480, 119]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Outport
Name "med5"
Position [460, 136, 480, 154]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Outport
Name "max5"
Position [460, 171, 480, 189]
Port "3"
IconDisplay "Port number"
}
Block {
BlockType Outport
Name "center_data"
Position [460, 206, 480, 224]
Port "4"
IconDisplay "Port number"
}
Line {
SrcBlock " SFunction "
SrcPort 1
DstBlock " Demux "
DstPort 1
}
Line {
SrcBlock "column_data"
SrcPort 1
DstBlock " SFunction "
DstPort 1
}
Line {
Name "min5"
Labels [0, 0]
SrcBlock " SFunction "
SrcPort 2
DstBlock "min5"
DstPort 1
}
Line {
Name "med5"
Labels [0, 0]
SrcBlock " SFunction "
SrcPort 3
DstBlock "med5"
DstPort 1
}
Line {
Name "max5"
Labels [0, 0]
SrcBlock " SFunction "
SrcPort 4
DstBlock "max5"
DstPort 1
}
Line {
Name "center_data"
Labels [0, 0]
SrcBlock " SFunction "
SrcPort 5
DstBlock "center_data"
DstPort 1
}
Line {
SrcBlock " Demux "
SrcPort 1
DstBlock " Terminator "
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "d7x7"
Ports [1, 4]
Position [510, 249, 675, 306]
PermitHierarchicalResolution "ExplicitOnly"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskType "Stateflow"
MaskDescription "Embedded MATLAB block"
MaskDisplay "disp('d7x7');"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "d7x7"
Location [257, 457, 812, 717]
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 "column_data"
Position [20, 101, 40, 119]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Demux
Name " Demux "
Ports [1, 1]
Position [270, 220, 320, 260]
Outputs "1"
}
Block {
BlockType "S-Function"
Name " SFunction "
Tag "Stateflow S-Function aMedianFilter_hw 4"
Ports [1, 5]
Position [180, 100, 230, 220]
FunctionName "sf_sfun"
PortCounts "[1 5]"
EnableBusSupport on
Port {
PortNumber 2
Name "min7"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
Port {
PortNumber 3
Name "med7"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
Port {
PortNumber 4
Name "max7"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
Port {
PortNumber 5
Name "center_data"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Terminator
Name " Terminator "
Position [460, 231, 480, 249]
}
Block {
BlockType Outport
Name "min7"
Position [460, 101, 480, 119]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Outport
Name "med7"
Position [460, 136, 480, 154]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Outport
Name "max7"
Position [460, 171, 480, 189]
Port "3"
IconDisplay "Port number"
}
Block {
BlockType Outport
Name "center_data"
Position [460, 206, 480, 224]
Port "4"
IconDisplay "Port number"
}
Line {
SrcBlock " SFunction "
SrcPort 1
DstBlock " Demux "
DstPort 1
}
Line {
SrcBlock "column_data"
SrcPort 1
DstBlock " SFunction "
DstPort 1
}
Line {
Name "min7"
Labels [0, 0]
SrcBlock " SFunction "
SrcPort 2
DstBlock "min7"
DstPort 1
}
Line {
Name "med7"
Labels [0, 0]
SrcBlock " SFunction "
SrcPort 3
DstBlock "med7"
DstPort 1
}
Line {
Name "max7"
Labels [0, 0]
SrcBlock " SFunction "
SrcPort 4
DstBlock "max7"
DstPort 1
}
Line {
Name "center_data"
Labels [0, 0]
SrcBlock " SFunction "
SrcPort 5
DstBlock "center_data"
DstPort 1
}
Line {
SrcBlock " Demux "
SrcPort 1
DstBlock " Terminator "
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "d9x9"
Ports [1, 4]
Position [515, 345, 680, 400]
PermitHierarchicalResolution "ExplicitOnly"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskType "Stateflow"
MaskDescription "Embedded MATLAB block"
MaskDisplay "disp('d9x9');"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "d9x9"
Location [257, 457, 812, 717]
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 "column_data"
Position [20, 101, 40, 119]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Demux
Name " Demux "
Ports [1, 1]
Position [270, 220, 320, 260]
Outputs "1"
}
Block {
BlockType "S-Function"
Name " SFunction "
Tag "Stateflow S-Function aMedianFilter_hw 7"
Ports [1, 5]
Position [180, 100, 230, 220]
FunctionName "sf_sfun"
PortCounts "[1 5]"
EnableBusSupport on
Port {
PortNumber 2
Name "min9"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
Port {
PortNumber 3
Name "med9"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
Port {
PortNumber 4
Name "max9"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
Port {
PortNumber 5
Name "center_data"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Terminator
Name " Terminator "
Position [460, 231, 480, 249]
}
Block {
BlockType Outport
Name "min9"
Position [460, 101, 480, 119]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Outport
Name "med9"
Position [460, 136, 480, 154]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Outport
Name "max9"
Position [460, 171, 480, 189]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -