📄 cascaded_filter_rab.mdl
字号:
Block {
BlockType Lookup
InputValues "[-4:5]"
OutputValues " rand(1,10)-0.5"
LookUpMeth "Interpolation-Extrapolation"
OutDataTypeMode "Same as input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
LUTDesignTableMode "Redesign Table"
LUTDesignDataSource "Block Dialog"
LUTDesignFunctionName "sqrt(x)"
LUTDesignUseExistingBP on
LUTDesignRelError "0.01"
LUTDesignAbsError "1e-6"
}
Block {
BlockType MagnitudeAngleToComplex
Input "Magnitude and angle"
ConstantPart "0"
SampleTime "-1"
}
Block {
BlockType Math
Operator "exp"
OutputSignalType "auto"
SampleTime "-1"
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
}
Block {
BlockType "M-S-Function"
MFile "mlfile"
}
Block {
BlockType Merge
Inputs "2"
InitialOutput "[]"
AllowUnequalInputPortWidths off
InputPortOffsets "[]"
}
Block {
BlockType Outport
Port "1"
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType PMComponent
SubClassName "unknown"
}
Block {
BlockType PMIOPort
}
Block {
BlockType Probe
ProbeWidth on
ProbeSampleTime on
ProbeComplexSignal on
ProbeSignalDimensions off
ProbeFramedSignal off
ProbeWidthDataType "double"
ProbeSampleTimeDataType "double"
ProbeComplexityDataType "double"
ProbeDimensionsDataType "double"
ProbeFrameDataType "double"
}
Block {
BlockType Product
Inputs "2"
Multiplication "Element-wise(.*)"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Zero"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType RateTransition
Integrity on
Deterministic on
X0 "0"
OutPortSampleTime "-1"
}
Block {
BlockType Sensor
SubClassName "unknown"
PortType "blob"
}
Block {
BlockType "S-Function"
FunctionName "system"
SFunctionModules "''"
PortCounts "[]"
}
Block {
BlockType SubSystem
ShowPortLabels on
Permissions "ReadWrite"
PermitHierarchicalResolution "All"
SystemSampleTime "-1"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType Sum
IconShape "rectangular"
Inputs "++"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Switch
Criteria "u2 >= Threshold"
Threshold "0"
InputSameDT on
OutDataTypeMode "Inherit via internal rule"
RndMeth "Floor"
SaturateOnIntegerOverflow on
ZeroCross on
SampleTime "-1"
}
Block {
BlockType Terminator
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "cascaded_filter_rab"
Location [7, 77, 1167, 440]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name "Bandpass Pi"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [365, 190, 445, 230]
SourceBlock "rfblackbox1/General \nCircuit Element"
SourceType "General Circuit Element"
PhysicalDomain "rfsystemsdomain"
SubClassName "general-circuit-element"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__newl0"
RConnTagsString "__newr0"
Ckt "rfckt.lcbandpasspi('L', L ,'C',C)"
DisplayData off
PlotFreq "Derived from Input Port parameters"
PlotFreqNoSim "User-specified"
Freq "[70e6:1.0e5:80e6]"
AllPlotType "X-Y plane"
NetworkData "S21"
SmithData "S11"
PolarData "S11"
ComplexFormat "Magnitude (decibels)"
DBFormat "Magnitude (decibels)"
NoneFormat "None"
}
Block {
BlockType SubSystem
Name "Cascaded Filters"
Ports []
Position [650, 269, 710, 309]
BackgroundColor "cyan"
DropShadow on
ShowName off
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskDisplay "disp('Info')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Cascaded Filters"
Location [514, 300, 965, 606]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Annotation {
Name "Multiple Realizations of Cascaded Filters"
Position [221, 24]
FontName "Arial"
FontSize 14
}
Annotation {
Name "This model illustrates three different ways"
" to create a\ncascade of three filters - the transmission line, bandpass \nfi"
"lter and another transmission line. "
Position [226, 67]
FontName "Arial"
FontSize 14
}
Annotation {
Name "The first method uses transmission line blo"
"cks\nfrom the Transmission Lines sublibrary and bandpass \nfilter block from "
"the Ladder Filters sublibrary."
Position [230, 134]
FontName "Arial"
FontSize 14
}
Annotation {
Name "The second method creates transmission line"
" and bandpass\nfilter objects using the General Circuit Element block from \n"
"Black Box Elements sublibrary and the RF Toolbox objects. "
Position [240, 206]
FontName "Arial"
FontSize 14
}
Annotation {
Name "The third method creates a cascade object u"
"sing the General \nCircuit Element block and RF Toolbox objects"
Position [235, 271]
FontName "Arial"
FontSize 14
}
}
}
Block {
BlockType Reference
Name "Cascaded circuit"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [240, 295, 320, 335]
SourceBlock "rfblackbox1/General \nCircuit Element"
SourceType "General Circuit Element"
PhysicalDomain "rfsystemsdomain"
SubClassName "general-circuit-element"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__newl0"
RConnTagsString "__newr0"
Ckt "rfckt.cascade('Ckts',{rfckt.txline,rfckt.lcband"
"passpi('L', L, 'C',C), rfckt.txline})"
DisplayData off
PlotFreq "Derived from Input Port parameters"
PlotFreqNoSim "User-specified"
Freq "[70e6:1.0e5:80e6]"
AllPlotType "X-Y plane"
NetworkData "S21"
SmithData "S11"
PolarData "S11"
ComplexFormat "Magnitude (decibels)"
DBFormat "Magnitude (decibels)"
NoneFormat "None"
}
Block {
BlockType Reference
Name "Complex Filter Magnitude in dB"
Ports [1]
Position [1050, 100, 1085, 150]
SourceBlock "dspsnks4/Vector\nScope"
SourceType "Vector Scope"
ScopeProperties on
Domain "Frequency"
HorizSpan "1"
DisplayProperties off
AxisGrid on
Memory off
FrameNumber on
AxisLegend off
AxisZoom off
OpenScopeAtSimStart on
OpenScopeImmediately off
FigPos "[75 330 372 236]"
AxisProperties off
XUnits "Hertz"
XRange "[-Fs/2...Fs/2]"
InheritXIncr on
XIncr "2*Fs"
XLabel "Time"
YUnits "dB"
YMin "-22.4876429420511"
YMax "-3.5794227664141"
YLabel "dB"
LineProperties off
LineColors "[0 0 1]|[1 0 0]|[0 1 0]"
ShowPortLabels off
}
Block {
BlockType Reference
Name "Complex Filter Phase in Degrees"
Ports [1]
Position [1050, 185, 1085, 235]
SourceBlock "dspsnks4/Vector\nScope"
SourceType "Vector Scope"
ScopeProperties on
Domain "Frequency"
HorizSpan "1"
DisplayProperties off
AxisGrid on
Memory off
FrameNumber on
AxisLegend off
AxisZoom off
OpenScopeAtSimStart on
OpenScopeImmediately off
FigPos "[457 331 372 236]"
AxisProperties off
XUnits "Hertz"
XRange "[-Fs/2...Fs/2]"
InheritXIncr on
XIncr "1"
XLabel "Frequency"
YUnits "Magnitude"
YMin "-12540.2136509701"
YMax "12378.9930792327"
YLabel "Phase in Degrees"
LineProperties off
LineColors "[0 0 1]|[1 0 0]|[0 1 0]"
ShowPortLabels off
}
Block {
BlockType Reference
Name "Input Port1"
Description "source block"
Ports [1, 0, 0, 0, 0, 0, 1]
Position [165, 85, 195, 125]
SourceBlock "rfports1/Input Port"
SourceType "Input Port"
ShowPortLabels on
MaxLength "128"
Fc "75e6"
Ts "1e-7"
Zs "50"
NoiseFlag off
seed "67987"
GoToTag "BBEFILOEAACXBBBNJNSSVZQ"
}
Block {
BlockType Reference
Name "Input Port2"
Description "source block"
Ports [1, 0, 0, 0, 0, 0, 1]
Position [165, 190, 195, 230]
SourceBlock "rfports1/Input Port"
SourceType "Input Port"
ShowPortLabels on
MaxLength "128"
Fc "75e6"
Ts "1e-7"
Zs "50"
NoiseFlag off
seed "67987"
GoToTag "BABCHEMRJDDSHQMSIKJYBEW"
}
Block {
BlockType Reference
Name "Input Port3"
Description "source block"
Ports [1, 0, 0, 0, 0, 0, 1]
Position [165, 295, 195, 335]
SourceBlock "rfports1/Input Port"
SourceType "Input Port"
ShowPortLabels on
MaxLength "128"
Fc "75e6"
Ts "1e-7"
Zs "50"
NoiseFlag off
seed "67987"
GoToTag "BCDGGKKLSGENYFSYOQPLMKX"
}
Block {
BlockType Reference
Name "LC Bandpass Pi"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [360, 81, 450, 129]
SourceBlock "rfladderfilters1/LC Bandpass Pi"
SourceType "LC Bandpass Pi"
PhysicalDomain "rfsystemsdomain"
SubClassName "lcbandpasspi"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__newl0"
RConnTagsString "__newr0"
L "L"
C "C"
DisplayData off
PlotFreq "Derived from Input Port parameters"
PlotFreqNoSim "User-specified"
Freq "[70e6:1.0e5:80e6]"
AllPlotType "X-Y plane"
NetworkData "S21"
SmithData "S11"
PolarData "S11"
ComplexFormat "Magnitude (decibels)"
DBFormat "Magnitude (decibels)"
NoneFormat "None"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation"
Ports [3, 1]
Position [770, 34, 825, 76]
SourceBlock "simulink/Math\nOperations/Matrix\nConcatenation"
SourceType "Matrix Concatenation"
numInports "3"
catMethod "Horizontal"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation1"
Ports [3, 1]
Position [770, 189, 825, 231]
SourceBlock "simulink/Math\nOperations/Matrix\nConcatenation"
SourceType "Matrix Concatenation"
numInports "3"
catMethod "Horizontal"
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -